Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Thanks to Pete B. for noticing this bug!

 

The prices shown on cieto Featured Products get all messed up when you have a special price for an product.

It shows regular price with line through then special price along with the

products price that is listed above.

 

I will think how to solve it, but if someone knows how to fix it, just do it (i hope i don't have to pay anything to say that?)

 

cheers

emiliano

patagonia, argentina

Posted

hey emiliano,

 

I got this too and just fixed it myself... I changed the code around so much on mine, that I figured I just copied something wrong...

 

in catalog/includes/modules/featured_products.php about line 17 the code

        $products_price = '<s>' .  $currencies->display_price($featured_products_array[$i]['price'], tep_get_tax_rate($featured_products_array[$i]['tax_class_id'])) . '</s>  <span class="productSpecialPrice">' . $currencies->display_price($featured_products_array[$i]['specials_price'], tep_get_tax_rate($featured_products_array[$i]['tax_class_id'])) . '</span>' . $products_price; 

     } else {

       $products_price = $currencies->display_price($featured_products_array[$i]['price'], tep_get_tax_rate($featured_products_array[$i]['tax_class_id']));

     }

 

should read

        $products_price = '<s>' .  $currencies->display_price($featured_products_array[$i]['price'], tep_get_tax_rate($featured_products_array[$i]['tax_class_id'])) . '</s>  <span class="productSpecialPrice">' . $currencies->display_price($featured_products_array[$i]['specials_price'], tep_get_tax_rate($featured_products_array[$i]['tax_class_id'])) . '</span>'; 

     } else {

       $products_price = $currencies->display_price($featured_products_array[$i]['price'], tep_get_tax_rate($featured_products_array[$i]['tax_class_id']));

     }

 

you had a "$products_price" on the end of the call for the special price that didn't belong there...

The only thing necessary for evil to flourish is for good men to do nothing

- Edmund Burke

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