Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

it' s go like this...

i have an oscommerce v2.2 and when i add a special price to a product

i can see the price with the link (exmple: 659$) and the special price...

it's work with all the pages except the main page...

in the main page i only see the special price without the price with the line

 

plz plz... i try so much i'm working on this little thing since yesterday....

plz help me...

 

this is my store Click Here To See My Store

 

:sweating:

Posted (edited)

ok...i found this line... in the new_product.php

 

<tr><td class=cy1 align=right>'.$currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id'])).'</td></tr>

 

and i need to change it to this line (i take it from the Product_info.php)

 

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>';
} else {
  $products_price = $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id']));
}

 

but when i put it with the .' all i get is this...

Parse error: parse error, unexpected T_IF

 

and when i put it without the .' i get this

Parse error: parse error, unexpected T_STRING, expecting ',' or ';'

 

what to do guys? maybe i miss somthing ? maybe i need to add some script before?

 

:angry:

Edited by sexhack

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