Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

How to get Shopping Cart Quantity in Catalog client script ?

tezen
Mega Expert

Hi All,

In Dev Helsinski....

Trying to get the value of shopping cart Quantity on a catalog client script.   Using price from UI macro "sc_order_item_subtotal", id = price_label_span but not able to get the quantity

find_real_file.png

Thanks

Tez

1 ACCEPTED SOLUTION

Abhinay Erra
Giga Sage

Use thin in the client script to get the quantity



$('quantity').value


View solution in original post

8 REPLIES 8

Abhinay Erra
Giga Sage

Use thin in the client script to get the quantity



$('quantity').value


Hi   Abhinay,



Got that working and use in single client script. With this, was able to reduce the number of client scripts.



Thanks


Tez


Hi Tez,



I am looking for the same. Would it possible for you to share the code that you have written?


@Abhinay this would work only i the order guide view , I am trying to get the quantity from teh Shopping cart onto my client script and $('quantity').value i.e. ($) is an unsupported method

So how do I get the Quantity??

regards,
Manoj