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

Adding a custom attribute to the item in cart when adding the product to the cart. by Ketan Kotak

$
0
0

Hi,

I know there are a couple of post regarding custom attributes for CART. What I am looking for is a way to add a custom attribute to the item (for example, group name) when adding a product to the cart. My goal is to be able to display the items in the cart in a hierarchy of groups. I have implemented JS based add to cart through AJAX and would like to include additional attribute every time I call the POST on the add.js so I can pass the group name.

Any ideas?

Thanks,

_K


Viewing all articles
Browse latest Browse all 25503

Trending Articles



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