Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

product info page, price tag

Greg - Freeriders

Recommended Posts

on my info page I want the price tag to show up only if it is >0 (assuming that some of my products are freebies, and that I think it sounds stupid to have 0 EUR)


so I put this code


<td width="100" align="right" class="price"><?php

if ($products_price > 0) {

echo $products_price;

} else {


} ?>


around line 70


it works smoothy, exept that I have a bbig problem when the price is a special (for example old price 30 euro, now 15 euro) then it is going on the else option so it shows up no price


can someone explain me why it is such as..


indeed I would love to keep this if 0 no show up BUT also that it shows the special prices


thanx in advance for support and your time



Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...