Reg. price of sale item strikethrough?

General ShopSite user discussion

Reg. price of sale item strikethrough?

Postby minifig » Tue Sep 04, 2007 11:53 am

Hi. I'm converting a SS store from an older version to the newest one. I've begun the new site by copying the classy-orange theme.

I want the new site's products to have strikethroughs on the regular prices when it's on sale. I've found no option for it in the SS interface, so, How can I do this? please help with detail. I assume I need to add some text to the pr_vars.sst include file were it says:
[-- VAR.pr_sale_reg_price_style "" --]

But what do I add? And, are there other places (in other templates) that I'll need to make this modification too?

-Suz
minifig
 
Posts: 6
Joined: Mon Jun 25, 2007 9:37 am

Strikethrough Regular Price of Sale item

Postby BFChris » Wed Sep 05, 2007 5:56 am

Not sure if there is any easier way, but I used a conditional bit of code in a Custom Template combined with a CSS style and style sheet.

In my Product Template:

Code: Select all
[-- IF PRODUCT.SaleOn --]
   <span class="regprice">[-- PRODUCT.Price --] </span><span class="saleprice">ON SALE! [--    PRODUCT.SaleAmount --]</span>
[-- ELSE --]
   <span class="price">[-- PRODUCT.Price --]</span>
[--END IF --]


In my CSS file:

Code: Select all
.regprice {
   text-decoration: line-through;
   font-size: 80%;
}

.saleprice {
   color: red;
   font-weight: bold;
}


Hope that helps.

Sincerely,
~~Barefoot Chris
--------------------------------
Barefoot Chris Web Design
www.barefootchris.net
--------------------------------
BFChris
 
Posts: 322
Joined: Mon Oct 09, 2006 3:28 pm
Location: PA


Return to User Forum

Who is online

Users browsing this forum: No registered users and 154 guests