sJakub Posted January 21, 2012 Share Posted January 21, 2012 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 More sharing options...
Richard S Posted January 22, 2012 Share Posted January 22, 2012 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 More sharing options...
Nikpro Posted January 30, 2012 Share Posted January 30, 2012 write a detailed example on 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