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 OwenX7 Apr 9, 2024密码和用户名错误。用户数据不正确。无法登入。用户因无法访问自己的帐户而感到恐慌。 Shopify 是一个跨渠道的商业平台,协助您开启,发展和管理您的生意。您可以在线上商店、社交...
By Alice_Z Apr 2, 2024在这个竞争激烈的数字化时代,公司需要有效的策略来宣传自己的品牌并吸引客户。其中,博客就是一个强有力的工具。一个精心策划的博客不仅可以帮您在网络上树立形象,还能让您与目标受众进...
By OwenX7 Mar 26, 2024