Cateye Posted December 12, 2013 Share Posted December 12, 2013 Hi everyone! I am using Prestashop 1.4.3 My wish is to add on invoices a " * " at the end of product name which are affiliated to a supplier. Products with no supplier won't have that character attached to them. Product 1* Product 2* Product 3 Product 4* On invoice footer a short message would say: " *Certified Organic Product" On my store, suppliers became organic labels If somebody can help me... Link to comment Share on other sites More sharing options...
CartExpert.net Posted December 13, 2013 Share Posted December 13, 2013 Hi. You need to override the 'getProductsDetail' function of the Order class and LEFT JOIN the '[DB_PREFIX]_product' table to get the id_supplier, then override the 'ProdTab' function of the PDF class and where the product name is displayed you check wether id_supplier is zero or not and display the '*' according to it. Regards.Robin.The CartExpert Team Link to comment Share on other sites More sharing options...
Cateye Posted December 13, 2013 Author Share Posted December 13, 2013 Thanks for your answer! 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