Personalized checkout and custom promotions with Shopify Scripts
using the shopify api,
i can add product variant like this $product->variants = [ [ "option1" => "color" "price" => "1.23", "sku" => "abc" ] ]; $shopify->Product->post($p);
But how can i add image to the same variant, i tried with
"image" => $p->image
"images" => $p->image
"imageSrc" => $p->image
"attachment" => base64_encode($r)
but no one is working
Thanks
Seem that the only way is to add the image to a product then get it's imageId and update the variant image_id.
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024