Jump to content

Add a symbol to product name on invoice


Cateye

Recommended Posts

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

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

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