Add product id to mail customer and admin

Guido

Avatar: Guido

2013-03-16 18:41

Hi,

I want to add the product-id into the confirmation message send to customer/admin after purchase.

I notice $aData[sProducts] in file orders_step_3.
Guess this is generating productname, amount, price and summary.

But but where can I add the id?

Guido

» Quick.Cart v6.x

interkob

Avatar: interkob

2013-03-21 14:04

core/orders.php

there is a function sendEmailWithOrderDetails

Guido

Avatar: Guido

2013-03-22 12:09

Thanks.

I guess I need to add (a part of) this:

 'iProduct' => $aData['iProduct'



In this line?

 $aData['sProducts'] = $this->listProducts$sFile$iOrder'EMAIL_' ); 

interkob

Avatar: interkob

2013-03-22 12:33

core/orders.php

you have a line

$content .= "\n".'- '.$aData['sName'].' - '.$lang['Price'].': '.$aData['sPrice'].' '.$GLOBALS['config']['currency_symbol'].', '.$lang['Quantity'].': '.$aData['iQuantity'].', '.$lang['Summary'].': '.$aData['sSummary'].' '.$GLOBALS['config']['currency_symbol'];



i think you need to insert before the name this one

$aData['iProduct']

Guido

Avatar: Guido

2013-03-26 18:53

Thanks.

I have added this to file orders_step-3 at the beginning of this line:

<!-- BEGIN EMAIL_PRODUCTS --><!-- START LIST -->|n|$lang['Id']: $aData['iProduct'] - $aData[sName] - $lang[Price]: $aData[sPrice$config[currency_symbol], $lang[Quantity]: $aData[iQuantity], $lang[Summary]: $aData[sSummary$config[currency_symbol]<!-- END LIST --><!-- END EMAIL_PRODUCTS -->

Back to top
about us | contact