[英]bigcommerce api, how do I push multiple category ids when updating a product
I'm using php to communicate with the bigcommerce API and I can update a product's category, by pushing the following: 我正在使用php与bigcommerce API进行通信,并且可以通过以下操作来更新产品的类别:
'categories' => "['value'] = 10",
Maybe I am an idiot, or haven't attempted every possibility yet, but I have not figured out how to update and item with multiple categories. 也许我是个白痴,或者还没有尝试过所有可能性,但是我还没有弄清楚如何更新和分类多个类别。
I have attempted to send and array of associative arrays, to no avail. 我试图发送和关联数组的数组,无济于事。
thanks in advance for any assistance. 在此先感谢您的协助。
disregard, bigcommerce is a odd bird. 不管,bigcommerce是一只奇怪的鸟。
my free solution: 我的免费解决方案:
to add one category, you'll push: 要添加一个类别,您将推动:
"categories" => (array("value"=>$myCategoryID)),
but for multiple: 但对于多个:
"categories" => ($myCategories),
where $myCategories=explode(',','id,id,id,id'); 其中$ myCategories = explode(',','id,id,id,id');
I apologize for answering my own question again, but it seems that I am the only person on earth developing a bigcommerce app these days.... 对于再次回答自己的问题,我深表歉意,但似乎我是当今世界上唯一开发bigcommerce应用程序的人。
lol(i laugh cause crying doesn't help) 大声笑(我笑,因为哭泣没有帮助)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.