Jump to content

Json data cart


tarek.fellah

Recommended Posts

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

/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

 

/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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...