tarek.fellah Posted April 1, 2014 Share Posted April 1, 2014 Hi, I would like to know where can i find the code with returns the json data from the cart module, i tried to find in CartController, but i didn't find anywhere. My problem i would like to update the product price with ecotax in the cart. There's a difference between the price in product declination and the price in the cart. Thanks in advance Link to comment Share on other sites More sharing options...
Vinum Posted April 2, 2014 Share Posted April 2, 2014 Hi, Normally all is in the cart module you use. If you use the default cart, it is in modules/blockcart/ Link to comment Share on other sites More sharing options...
vekia Posted April 2, 2014 Share Posted April 2, 2014 /modules/blockcart/blockcart-json.tpl there is a line like: "price": "{if $priceDisplay == $smarty.const.PS_TAX_EXC}{displayWtPrice|html_entity_decode:2:'UTF-8' p=$product.total}{else}{displayWtPrice|html_entity_decode:2:'UTF-8' p=$product.total_wt}{/if}", Link to comment Share on other sites More sharing options...
tarek.fellah Posted April 2, 2014 Author Share Posted April 2, 2014 /modules/blockcart/blockcart-json.tpl there is a line like: "price": "{if $priceDisplay == $smarty.const.PS_TAX_EXC}{displayWtPrice|html_entity_decode:2:'UTF-8' p=$product.total}{else}{displayWtPrice|html_entity_decode:2:'UTF-8' p=$product.total_wt}{/if}", Thanks for your response, i deleted the if statement, to display $product.total but the price exclude the ecotax, the price in the product is different to the cart price when i have eco tax in declination product 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