busonero Posted August 28, 2005 Share Posted August 28, 2005 Hi ! I hev just tried to install the Contribution : New Low Price but i cannot made the changes at Step 5, as the readme file says: in catalog/product_info.php 5. After if ($new_price = tep_get_products_special_price($product_info['products_id'])) { $products_price = '<s>' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>'; Add: // NLP - Output new low price } else if ($product_info['products_first_price'] > $product_info['products_price'] && (((($product_info['products_first_price'] - $product_info['products_price']) / ($product_info['products_first_price'])) * 100) > NLP_PERCENT_DIFF) && expires < time()) { $products_price = NEW_LOW_PRICE.' <s>' . $currencies->display_price($product_info['products_first_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>'; // NLP - End output new price I cannot find any string with if ($new_price ........... Anybody can help me to find this line of code ? Thank you Sincerely Roberto Quote Link to comment Share on other sites More sharing options...
Guest Posted August 28, 2005 Share Posted August 28, 2005 Line 77 :P Matti Quote Link to comment Share on other sites More sharing options...
busonero Posted August 28, 2005 Author Share Posted August 28, 2005 Hi Matti, thank you for your reply !! well, i do not have it any more. i found it the code on the original product_info.php , but on my own file is gone. now i will try to add the few line of code somewhere in my product_info.php :-) sincerely roberto Line 77 :P Matti <{POST_SNAPBACK}> Quote Link to comment Share on other sites More sharing options...
Guest Posted August 28, 2005 Share Posted August 28, 2005 Well, I didn't have a problem installing this, but there seems to be a problem running it. The error that I'm getting appears to come from the db query which has this added. UNIX_TIMESTAMP(DATE_ADD(p.products_price_changed, INTERVAL ".NLP_DAYS." DAY)) expires This does not seem to be understood by the system. Is there another way of creating the same query? Quote Link to comment Share on other sites More sharing options...
Guest Posted August 29, 2005 Share Posted August 29, 2005 You can use time(); for a timestamp <?php define('UNIX_TIMESTAMP', time()); echo UNIX_TIMESTAMP; ?> Matti Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.