Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

MSRP Contribution


Joline

Recommended Posts

PLEASE HELP

I installed the contribution for listing MSRP prices and it required changing multiple PHP files. I am now receiving the error:

Parse error: syntax error, unexpected T_LNUMBER in /home/lykecar1/public_html/includes/modules/new_products.php on line 31 on my home page. I know that the line begining with: while ($new_products = tep_db_fetch_array($new_products_query)) { is line 29. I copied and pasted the code following the while statement from the install instructions for the MSRP contribution. I have tried searching for the answer with no luck in resolving my problem. Can anyone tell me what I am doing wrong?

Thank you,

 

Joline

 

while ($new_products = tep_db_fetch_array($new_products_query)) {
   $product_query = tep_db_query("select products_name, products_description from " . TABLE_PRODUCTS_DESCRIPTION . " 
$products_price = '<table border="0" cellspacing="0" cellpadding="0">';
   $new_price = tep_get_products_special_price($new_products['products_id']);
   if ($new_products['products_msrp'] > $new_products['products_price'])
     $products_price .= '<tr><td class="smallText">' . TEXT_PRODUCTS_MSRP . '</td><td class="smallText" align=right>' . $currencies->display_price($new_products['products_msrp'], tep_get_tax_rate($new_products['products_tax_class_id'])) . '</td><td class="smallText"></td></tr>';
   $products_price .= '<tr><td class="smallText">' . TEXT_PRODUCTS_OUR_PRICE . '</td>';
   $products_price .= '<td class="smallText" align=right>' . $currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id'])) . '</td><td class="smallText"></td></tr>';
   if ($new_price != '')
     {$products_price .= '<tr class="productSpecialPrice"><td class="smallText">' . TEXT_PRODUCTS_SALE . '</td><td class="smallText" align=right>' . $currencies->display_price($new_price, tep_get_tax_rate($new_products['products_tax_class_id'])) . '</td><td class="smallText"></td></tr>';}
   if ($new_products['products_msrp'] > $new_products['products_price'])
     {if ($new_price != '')
        {$products_price .= '<tr><td class="smallText">' . TEXT_PRODUCTS_SAVINGS . '</td><td class="smallText" align=right>' . $currencies->display_price(($new_products['products_msrp'] -  $new_price), tep_get_tax_rate($new_products['products_tax_class_id'])) . '</td><td class="smallText"> ('. number_format(100 - (($new_price / $new_products['products_msrp']) * 100)) . '%)</td></tr>';}
     else
       {$products_price .= '<tr><td class="smallText">' . TEXT_PRODUCTS_SAVINGS . '</td><td class="smallText" align=right>' . $currencies->display_price(($new_products['products_msrp'] -  $new_products['products_price']), tep_get_tax_rate($new_products['products_tax_class_id'])) . '</td><td class="smallText"> ('. number_format(100 - (($new_products['products_price'] / $new_products['products_msrp']) * 100)) . '%)</td></tr>';}}
   else
     {if ($new_price != '')
        {$products_price .= '<tr><td class="smallText">' . TEXT_PRODUCTS_SAVINGS . '</td><td class="smallText" align=right>' . $currencies->display_price(($new_products['products_price'] -  $new_price), tep_get_tax_rate($new_products['products_tax_class_id'])) . '</td><td class="smallText"> ('. number_format(100 - (($new_price / $new_products['products_price']) * 100)) . '%)</td></tr>';}}
   $products_price .= '</table>';

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.
Note: Your post will require moderator approval before it will be visible.

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...