ganeshgp Posted April 2, 2014 Share Posted April 2, 2014 (edited) i have the product attribute id and product id how to get the quantity of the cart products in PS Version 1.5.6.1 in ajax_cart.js file from blockcart module.. thanks Edited April 2, 2014 by ganeshgp (see edit history) Link to comment Share on other sites More sharing options...
Enrique Gómez Posted April 2, 2014 Share Posted April 2, 2014 (edited) You can use $cart->getProducts(false,id_prod); then you'll have the resultset with the id_product_attributes and quantities for each combination of this product in the cart The $cart variable is available in a multiple ways. For example Context::getContext()->cart; Edited April 2, 2014 by Enrique Gómez (see edit history) 1 Link to comment Share on other sites More sharing options...
vekia Posted April 2, 2014 Share Posted April 2, 2014 only I don't understand what ganeshgp exactly expect? You want to check quantities of product added to cart? where you want to check it? in some module? controller? Link to comment Share on other sites More sharing options...
ganeshgp Posted April 2, 2014 Author Share Posted April 2, 2014 only I don't understand what ganeshgp exactly expect? You want to check quantities of product added to cart? where you want to check it? in some module? controller? i need in ajax_cart.js file with included in blockcart module.. thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now