Jump to content

Change order_conf email, add product id


SaLiC

Recommended Posts

Hi

 

I am using PS 1.6.0.14 and wish to change the order conf. email to customers.

I need to add product ID and remove reference.

 

I did look in the order_conf.html, and changed the label, but I don't know where to change what is displayed for {products}.

 

So I hope someone can help.

Link to comment
Share on other sites

The list of products is being populated in classes/PaymentModule.php in ValidateOrder function.

So you can override that function and make you own products layout or just edit that file and look for $product_var_tpl

and change $product['reference'] to $product['id']

  • Like 1
Link to comment
Share on other sites

  • 10 months later...

Ok i find the solution

 

Presta 1.6.1.7

 

To have Product ID instead of Product Reference in customer order confirmation mail

 

In PaymantModule.php you have to:

 

change 'reference' => $product['reference'], in to 'id' => $product['id_product'],

 

But you have also change in mails/order_product_list.tpl

 

at line 9 {$product['reference']} to {$product['id']}

  • Like 1
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...