Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Where to put span class code?


chrisbg

Recommended Posts

Posted

I found that the small code in stylesheet.css make product list price to look differently:

 

SPAN.PriceColor {

font-color: value;

font-size: value;

}

 

Then the second part:

Then in every page (product_info.php includes/modules/product_listing.php etc) where the price needs to be displayed differently

add '<span class="PriceColor">' . $price . '</span>'

where '$price' perhaps will be called different in each page.

 

This is very cool, but where i need to put the code '<span class="PriceColor">' . $price . '</span>' i tryed several places in product_info.php and includes/modules/product_listing.php, NOTHING changed, please, HELP

Posted

You may be trying to change it where $price is being setup. You have to find where $price is actually being displayed. Since $price is not a variable used in the standard oscommerce file, I can't help you to find that. But for a standard shop, you would change this line

<td class="pageHeading" align="right" valign="top"><?php echo $products_price; ?></td>

to this

<td class="pageHeading" align="right" valign="top"><span class="PriceColor"><?php echo $products_price; ?></span></td>

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted
You may be trying to change it where $price is being setup. You have to find where $price is actually being displayed. Since $price is not a variable used in the standard oscommerce file, I can't help you to find that. But for a standard shop, you would change this line
<td class="pageHeading" align="right" valign="top"><?php echo $products_price; ?></td>

to this

<td class="pageHeading" align="right" valign="top"><span class="PriceColor"><?php echo $products_price; ?></span></td>

 

Jack

 

Sorry. nothing changed, any other ideas? :huh:

Posted
Sorry. nothing changed, any other ideas? :huh:

 

I want something like this:

 

redpricerb1.jpg

Archived

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

×
×
  • Create New...