Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Modifying how special price look


maxi0361

Recommended Posts

I want to make the original price of the special price product.

because the strikethrough and small size makes the original price unreadable.

which and where .php should i change so that i can use larger font for original price.

Many thanks

Link to comment
Share on other sites

I want to make the original price of the special price product.

because the strikethrough and small size makes the original price unreadable.

which and where .php should i change so that i can use larger font for original price.

 

The output loop is in /includes/modules/products_listing.php :

		  case 'PRODUCT_LIST_PRICE':
		$lc_align = 'right';
		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'])) . ' ';
		}

 

To modify the Red strike through part, Add :

font-size

and

font-weight

to theproductSpecialPrice class in the stylesheet.css file :

 

SPAN.productSpecialPrice {

font-family: Verdana, Arial, sans-serif;

color: #ff0000;

}

 

To modify the price ONLY in the strikethru, put in a span class in the loop listed above, in between the <s> tags.

 

Corrie

Link to comment
Share on other sites

The output loop is in /includes/modules/products_listing.php :

		  case 'PRODUCT_LIST_PRICE':
		$lc_align = 'right';
		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'])) . ' ';
		}

 

To modify the Red strike through part, Add :

font-size

and

font-weight

to theproductSpecialPrice class in the stylesheet.css file :

 

SPAN.productSpecialPrice {

font-family: Verdana, Arial, sans-serif;

color: #ff0000;

}

 

To modify the price ONLY in the strikethru, put in a span class in the loop listed above, in between the <s> tags.

 

Corrie

 

What I want is propablely ONLY make the strikethru price BIGGER

If I design my own span class name productOriginalPrice

then is this how I add into the loop?

sorry about being stupid, I am a newbie to osCommerce

		  case 'PRODUCT_LIST_PRICE':
		$lc_align = 'right';
		if (tep_not_null($listing['specials_new_products_price'])) {
		  $lc_text = ' <s span class="productOriginalPrice">' .  $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'])) . ' ';
		}

Link to comment
Share on other sites

The output loop is in /includes/modules/products_listing.php :

		  case 'PRODUCT_LIST_PRICE':
		$lc_align = 'right';
		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'])) . ' ';
		}

 

My mistake

it should be like

' <s><span class="productOriginalPrice">' .  $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</span></s>  <span class="productSpecialPrice">'

but still the strikethru original price didnt enlarge and color not change

what is the correct way to do it?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...