Show Product's availability data in Email

dstar

Avatar: dstar

2009-02-13 19:11

Hi,

I am looking for a way to show Product's availability data in The customers email and on other places of the webshop. Unfortunately, I am not able to get it to work. I am looking for the variables: $sAvailable and $aData[sAvailable] and want to include in the order data. Or because it's already present in the product data, find a way to get the variable out of products and display it on other pages. Any help is appreciated.

Thanks in advance!

» Quick.Cart v3.x

DTE

treewood (OpenSolution)

Avatar: treewood

2009-02-16 07:56

edit core/orders.php and find this:
$aData['sPrice'] = displayPrice( $aData['fPrice'] );
add after this:
$aData['sAvailable'] = $GLOBALS['oProduct']->aProducts[$aData['iProduct']]['sAvailable'];

After edit templates/orders_print.tpl and add in ORDER_EMAIL_LIST variable:
$aData['sAvailable']

Back to top
about us | contact