Jump to content

how to list new variable?


Recommended Posts

Hi guys,

 

I have automatic import in my prestashop which is adding one special value to ps_product table - it is sale in percent. The name of the column is simply "sale". And now when I have this value for each product I want add it to the productlist.tpl and make it visible in FO. I already tried something like $product.sale but seems like it doesn't work.

 

 

Can somebody advise please?

Link to comment
Share on other sites

If you want to use this value and select from database just add some additional information to Product Class. You would need some object oriented programming knowledge.

 

There are special array of field values that specifies their lengths of fields etc. Do not forget to use override capabilities and put your changed class in override/classes folder.

Link to comment
Share on other sites

  • 2 weeks later...

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