Jump to content

Add supplier description in email to customer


Paul de Cocq

Recommended Posts

Hi,
 
I was wondering if it is possible to add the supplier details like (phone, name, address) into the order_conf.html template that goes out to the customer.
 
for example:
{supplier_name} = 'Supplier'
{supplier_address} = 'Prestashop lane 231' etc...
 
In classes/PaymentModule.php i tried to add the following code in the $data array (after line 560)

$address_id=Address::getAddressIdBySupplierId($this->product->id_supplier); 

$data = array (

             {supplier} => '$supplier->name',

 

 

It is a wish of one of our customers, but we can't find a module, and i'm pretty new with prestashop,

so any suggestions would be helpful Thanx!

post-723013-0-57494300-1384442731_thumb.png

Edited by Paul de Cocq (see edit history)
Link to comment
Share on other sites

  • 2 years later...

Hi,

 

I was wondering if it is possible to add the supplier details like (phone, name, address) into the order_conf.html template that goes out to the customer.

 

for example:

{supplier_name} = 'Supplier'

{supplier_address} = 'Prestashop lane 231' etc...

 

In classes/PaymentModule.php i tried to add the following code in the $data array (after line 560)

$address_id=Address::getAddressIdBySupplierId($this->product->id_supplier); 

$data = array (

             {supplier} => '$supplier->name',

 

 

It is a wish of one of our customers, but we can't find a module, and i'm pretty new with prestashop,

so any suggestions would be helpful Thanx!

 

Hi Paul,

 

Have you got any solution or reference for your issue? If so, please share me, I want the same!

 

:)

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