Himanshu kumar Posted May 15, 2017 Share Posted May 15, 2017 (edited) Hi, I want to get the current added product's id_category_default on the blockcart.tpl using ajax so that i can implement the validation like if the product is selected from that particular category then label should be 'proceed to book' else 'proceed to checkout'. Here i am getting the issue that if i get the variable from blockcart.php like $id_category_default its value does not change after first time reloading the page. How can i fix this..? Thanks in advance. Edited May 19, 2017 by Himanshu kumar (see edit history) Link to comment Share on other sites More sharing options...
TiaNex Shopping Posted May 27, 2017 Share Posted May 27, 2017 there is a arrry $products (maybe other name) in cart object, so you can get id_category_default from each $product->id_category_default 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