Liquid、JavaScript、主题、销售渠道。
Graphql >> discountCodeBasicCreate
指定用户部分
customerSelection: {
"customers": {
"add": "gid://shopify/Customer/xxx"
}
}
我尝试过 "add": ["gid://shopify/Customer/xxx"]
都是错误 {"message":"Parse error on \"customers\" (STRING) at [9, 7]
这个地方应该怎么写啊
content-type 还是这个application/graphql 这个没有改~~
是shopify-cli 下载的PHP
我说的改是 query 里面 那一个小部分修改
不是修改 content-type
意思就是我如果里面的内容是应用于全部客户, 可以成功返回, 但是如果我指定特定用户使用就错误,
我在想是不是我的query 指定特定用户得那一小段内容有问题~~正确的格式应该是什么样子的
是参数使用方式错误
$graphQL = <<<Query mutation ($input: CustomerInput!) { customerCreate(input: $input) { customer { id displayName } userErrors { field message } } } Query; $variables = [ "input" => [ "firstName" => "Greg", "lastName" => "Variables", "email" => "gregvariables@teleworm.us" ] ] $shopify->GraphQL->post($graphQL, null, null, $variables);
类似找各种参数方式就可以了
随着电商行业的不断发展,越来越多的企业开始重视电商运营的重要性。然而,电商运营工作繁琐且耗时,需要大量的人力和物力投入。为了提高运营效率,许多企业开始探索利用人工智能技术来辅助电商...
By Vikki May 30, 2023快速交货服务是提高客户忠诚度和增加销售额的有力的因素之一,也是最后一公里物流的核心内容。 完善的最后一公里物流方案对于提高客户满意度、增加销售额、增强品牌影响力都具有重要地位。...
By Vikki May 10, 2023我们希望所有商家都能通过使用 Shopify 平台在业务上取得成功,但是商家偶尔会遇到无法访问 Shopify 商店后台的情况。让我们探讨一下可能导致这个问题的原因,以及如何解决这...
By gina826 Apr 26, 2023