Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

New Low Price


busonero

Recommended Posts

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...