Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to change style to prices


chatomike

Recommended Posts

first of all hello and pardon my english, its not my native languaje

Does some one knows how to change the style of the products price, the way special products does,

example: size, color, font.

so it becomes something like this:

 

example.gif

 

i've looking in stylesheet but nothing seems to do the trick

any help will be very apreciated

 

miguel

Link to comment
Share on other sites

thanks Nacer,

i've already saw and test that code, and it is only for the cents part of the price, and what i wanna do is to style the whole price like in the picture

any sugestions will be apreciated

 

thanks in advance,

miguel

Link to comment
Share on other sites

in your stylesheet insert

 

.pricestyle{

color: #FF6600;

font-size: 17px;

}

 

in your product_info.php

 

find:

 

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

 

replace with

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

 

open catalog/module/product_listing.php

search for

			if (tep_not_null($listing['specials_new_products_price'])) {
		  $lc_text = ' <s>' .  $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</s>  <span class="productSpecialPrice">' . $currencies->display_price($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</span> ';
		} else {
		  $lc_text = ' ' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . ' ';
		}

 

replace with

		   if (tep_not_null($listing['specials_new_products_price'])) {
		 $lc_text = '<span class=pricestyle style="color:#7F7F7F;font-size:13px"><s>' .  $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</s></span><br><span class=pricestyle style="font-size:17px">' . $currencies->display_price($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</span>';
	   } else {
		 $lc_text = '<span style="font-size:17px"  class=pricestyle>' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</span>';
		}

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...