Hi,
I have a product in a shopify shop with 36 variants.
Now this product is on sale and I wanted to change the price of all the variants.
But sending the request to update the product "PUT /admin/products/#{id}.xml", which includes the request xml having all the variant changed price, doesn't work.
<?xml version="1.0" encoding="UTF-8"?>
<product>
<id type="integer">104977489</id>
<variant>
<id type="integer">241280165</id>
<option1>Large</option1>
<option2>Blue</option2>
<option3>Bears</option3>
<sku>25000-030201</sku>
<price>85.00</price>
<inventory-quantity type="integer">20</inventory-quantity>
<inventory-management>shopify</inventory-management>
<inventory-policy>deny</inventory-policy>
<requires-shipping type="boolean">true</requires-shipping>
<taxable type="boolean">true</taxable>
</variant>
<variant>
</variant>
3
4
.
.
35
<variant>
</variant>
</product>
For this I have to update each variant separately using "PUT /admin/variants/#{id}.xml" request.
This results in performance issue as the application has to send request 36 times.
I just wanted to know if there is any way so that this could be done in a single request.
Thank you very much.
Regards
Prashant Bhure