Jump to content

How to display product condition on blockcart?


Recommended Posts

Hello, I want to show product condition in blockcart module, I already have done some success but i cant make it work in ajax.

 

this is what I have done:

  1. added in classes > cart.php at line 510 p.condition

  2. added in blockcart-json.tpl "condition": {$product.condition|intval},

it works in blockcart.tpl but it is not working in the ajax-cart.tpl. In other words I must refresh the page so that it will work. But it should work without refresh when adding products to cart.

in ajax-cart.js I call it by this variable "this.condition" but the result i get after adding product to cart is "undefined"

Any idea what I am missing?

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...