Quantcast
Channel: Opinion: Shopify Community - Shopify APIs & SDKs
Viewing all articles
Browse latest Browse all 25503

Xavier Sharp commented on Updating Product Variant Metafields

$
0
0
"variant" => array(
	array("id" => [variant_id],"option1" => [name],"price" => [price],"sku" => [sku],"inventory_management" => "shopify","inventory_policy" => "deny","inventory_quantity" => [qty]"requires_shipping" => false,"taxable" => false,"metafields" => array(
       			array("key" => "description","namespace" => "creasixteen","value" => [description],"value_type" => "string"
	       		),
	       		array("key" => "type","namespace" => "creasixteen","value" => [type],"value_type" => "string"
	       		),
	       		array("key" => "title","namespace" => "creasixteen","value" => [title],"value_type" => "string"
	       		)
	       	),
	)
);

When using ShopifyApiException:

exception 'CreaSixteen\UserBundle\Entity\ShopifyApiException' in /srv/web/www/clients/src/CreaSixteen/UserBundle/Entity/Shopify.php:79 Stack trace: #0 /srv/web/www/clients/src/CreaSixteen/UserBundle/Controller/TestsController.php(380): CreaSixteen\UserBundle\Entity\Shopify->call('PUT', '/admin/variants...', Array) #1 [internal function]: CreaSixteen\UserBundle\Controller\TestsController->shopifyMetafieldUpdateAction() #2 /srv/web/www/clients/app/bootstrap.php.cache(2774): call_user_func_array(Array, Array) #3 /srv/web/www/clients/app/bootstrap.php.cache(2748): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #4 /srv/web/www/clients/app/bootstrap.php.cache(2878): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #5 /srv/web/www/clients/app/bootstrap.php.cache(2179): Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #6 /srv/web/www/clients/htdocs/app.php(39): Symfony\Component\HttpKernel\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #7 {main}

 


Viewing all articles
Browse latest Browse all 25503

Trending Articles