♥yesudo Posted February 2, 2004 Share Posted February 2, 2004 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 More sharing options...
OceanRanch Posted February 2, 2004 Share Posted February 2, 2004 if ((DOWNLOAD_ENABLED != 'true') || (!$stock_values'products_attributes_filename'])) should be if ((DOWNLOAD_ENABLED != 'true') || (!$stock_values['products_attributes_filename'])) HTH Tom Link to comment Share on other sites More sharing options...
♥yesudo Posted February 2, 2004 Author Share Posted February 2, 2004 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 More sharing options...
OceanRanch Posted February 2, 2004 Share Posted February 2, 2004 Try <?phpif ((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 More sharing options...
Guest Posted February 3, 2004 Share Posted February 3, 2004 it would also be easier on us, if we saw the line numbers associated with it, etc. Link to comment Share on other sites More sharing options...
♥yesudo Posted February 5, 2004 Author Share Posted February 5, 2004 thanx everyone - it was my mistake - i shouldn't have had it in <php quotes. Your online success is Paramount. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.