Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

what and where is the parse error?


yesudo

Recommended Posts

if ((DOWNLOAD_ENABLED != 'true') || (!$stock_values'products_attributes_filename']))

{

 

$stock_left = $stock_values['products_quantity'] - $order->products[$i]['qty'];

 

<?php

// send low stock email

$warning_stock = STOCK_REORDER_LEVEL;

$current_stock = $stock_left;

$low_stock_email = '<b>The following product is

 

running low on stock:</b> ' . $product_info['products_name'] . "\n" . '<b>Model No.:</b> ' . $product_info['products_model'] . "\n" . '<b>Quantity:</b> ' .

 

$product_info['products_quantity'] . "\n" . '<b>Product URL:</b> ' . ' http://www.yesudo.com/product_info.php?products_id='. (int)$HTTP_GET_VARS[

 

'products_id'] . "\n\n" . '<b>Current Low order limit is ' . $warning_stock . ' units</b>';

$low_stock_subject = 'The following product is running low on stock: ' .

 

$product_info['products_name'];

if ($current_stock < $warning_stock) {

tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS,

 

$low_stock_subject, $low_stock_email, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

}

?>

 

}

Your online success is Paramount.

Link to comment
Share on other sites

done that thanx but still getting a parse error?

 

if ((DOWNLOAD_ENABLED != 'true') || (!$stock_values['products_attributes_filename']))

{

$stock_left = $stock_values['products_quantity'] - $order->products[$i]['qty'];

 

<?php

 

$warning_stock = STOCK_REORDER_LEVEL;

$current_stock = $stock_left;

$low_stock_email = '<b>The following product is running low on stock:</b> ' . $product_info['products_name'] . "\n" . '<b>Model No.:</b> ' . $product_info[

 

'products_model'] . "\n" . '<b>Quantity:</b> ' . $product_info['products_quantity'] . "\n" . '<b>Product URL:</b> ' . ' http://www.yesudo.com/product_info.php?

 

products_id='. (int)$HTTP_GET_VARS['products_id'] . "\n\n" . '<b>Current Low order limit is ' . $warning_stock . ' units</b>';

$low_stock_subject = 'The following product is running low on stock: ' . $product_info['products_name'];

if ($current_stock < $warning_stock) {

tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, $low_stock_subject, $low_stock_email, STORE_OWNER,

 

STORE_OWNER_EMAIL_ADDRESS);

}

?>

 

 

 

}

Your online success is Paramount.

Link to comment
Share on other sites

Try

 

<?php

if ((DOWNLOAD_ENABLED != 'true') || (!$stock_values['products_attributes_filename']))

{

$stock_left = $stock_values['products_quantity'] - $order->products[$i]['qty'];

 

 

$warning_stock = STOCK_REORDER_LEVEL;

$current_stock = $stock_left;

$low_stock_email = '<b>The following product is running low on stock:</b> ' . $product_info['products_name'] . "\n" . '<b>M

 

'products_model'] . "\n" . '<b>Quantity:</b> ' . $product_info['products_quantity'] . "\n" . '<b>Product URL:</b> ' . ' htt

 

products_id='. (int)$HTTP_GET_VARS['products_id'] . "\n\n" . '<b>Current Low order limit is ' . $warning_stock . ' units</b

$low_stock_subject = 'The following product is running low on stock: ' . $product_info['products_name'];

if ($current_stock < $warning_stock) {

tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, $low_stock_subject, $low_stock_email, STORE_OWNER,

 

STORE_OWNER_EMAIL_ADDRESS);

}

}

?>

 

The above code didn't give me a parse error, but I have not tested it.

 

Tom

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...