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

Modifying the product.liquid asset via API by oferp

$
0
0

Hi,

I'm trying to modify the product.liquid asset in the templates section.

I call the API but when I look at the product.liquid in the web interface I see the value was erased.

Any idea?

                

 $params = array
                ("asset"=>array
                    ("key"=>"templates/product.liquid","value"=>'{% include 'product' %}\n{% include 'test_shopify' %}'
                    )
                );

                $sc->call('PUT','/admin/themes/'.$themeId.'/assets.json?asset[key]=templates/product.liquid&theme_id='.$themeId,$params);

 


Viewing all articles
Browse latest Browse all 25503

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>