If this is your first visit, check our documentation. To post, register or login.
Forums / Setting Up Your Zen Cart Products / Setting Up Specials and SaleMaker / Why isn't my specials not showing prices with red text and old with strike through?

Why isn't my specials not showing prices with red text and old with strike through?

Started by oavs on 4 Dec 2013, 5:17 AM · Views: 2,478

Results 1 to 7 of 7
4 Dec 2013, 5:17 AM
#1
oavs avatar

oavs

Totally Zenned

Join Date:
Jan 2006
Location:
Downunder - QLD - Gold Coast
Posts:
921
Plugin Contributions:
0

Post #1 by oavs

I am unable see my specials with old prices with strike through and the new one with red text.

I finally get the red colour over the new special prices by adding to the CSS

.productSpecialPrice, .productSalePrice, .productSpecialPriceSale, .productPriceDiscount {
	color: #ff0000;
	}

I can see same CSS has also following line but not doing it. Because when I inspect that element it shows a

<span class="normalprice">

Naturally I do not want ALL my "normalprice" crossed out. Only when they are on special.

.productSpecialPriceSale {
	text-decoration:line-through;
}

Can anyone please suggest a solution?

Downunder QLD

4 Dec 2013, 12:04 PM
#2
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Post #2 by mc12345678

oavs:

I am unable see my specials with old prices with strike through and the new one with red text.

I finally get the red colour over the new special prices by adding to the CSS

.productSpecialPrice, .productSalePrice, .productSpecialPriceSale, .productPriceDiscount {
color: #ff0000;
}

> 
> I can see same CSS has also following line but not doing it. Because when I inspect that element it shows a 
> 
> ```
<span class="normalprice">

Naturally I do not want ALL my "normalprice" crossed out. Only when they are on special.

.productSpecialPriceSale {
text-decoration:line-through;
}

> 
> Can anyone please suggest a solution?

I am not in a position to identify a solution; however, most of those that can would probably ask for a link to the site so that they can personally see and identify what would work.  So, if you could provide a link (can put spaces in place of periods) to both an area that works and an area that is not responding properly, (be sure this includes the area you want to have the change applied) then perhaps those that are more able to help can do so quickly.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

5 Dec 2013, 12:56 AM
#4
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Post #4 by mc12345678

oavs:

Ok here it is

http://www.silkaurora.com.au/index.php?main_page=specials

Okay, so I jumped around to a few different products/areas... Seems that if there are two prices (new "special" and an old "normal", that the class types are different than what is used in other normal locations... You can find this out more by searching your files for the class normalprice. For example the Leggings category uses just normal as the price class.

So, looks like your stylesheet.css file on line 546 starts the definition for the normalprice style. This is where you would more than likely put the line through...

Then in the area with all four categories listed in a row, you can try to add your other special coding. From looking through the pages a little, I don't see where anything other than these two styles. So I think you are in the clear; however, would look at the databse entries we currently

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

5 Dec 2013, 3:02 AM
#5
oavs avatar

oavs

Totally Zenned

Join Date:
Jan 2006
Location:
Downunder - QLD - Gold Coast
Posts:
921
Plugin Contributions:
0

Post #5 by oavs

Hi

Thanks for your valuable input.

I already have in the css file line 561 but it has no effect. I am only interested in placeing the strike through where ever the special price is mentioned, This means only two places. Side bar and the 'Specials' page.

.productSpecialPriceSale {
    text-decoration:line-through;
}

Downunder QLD

5 Dec 2013, 3:12 AM
#6
oavs avatar

oavs

Totally Zenned

Join Date:
Jan 2006
Location:
Downunder - QLD - Gold Coast
Posts:
921
Plugin Contributions:
0

Post #6 by oavs

Ok I found it.

/* --------------- PRICES --------------- */

.normalprice, .productSpecialPriceSale {
text-decoration:line-through; >> this was not there before.

}

Ok now it works I now need the fancy stuff like words to be added.. Was $xxx.000 Now $xxx.00 etc and show % saving etc. Do you have any ideas?

Downunder QLD

5 Dec 2013, 3:44 AM
#7
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Post #7 by mc12345678

oavs:

Ok I found it.

/* --------------- PRICES --------------- */

.normalprice, .productSpecialPriceSale {
text-decoration:line-through; >> this was not there before.

}

Ok now it works I now need the fancy stuff like words to be added.. Was $xxx.000 Now $xxx.00 etc and show % saving etc. Do you have any ideas?

Well, I would use the developer's tool kit (dtk) under tools of the admin panel to look for the template file that adds like the productspecialpricesale tag, and then once found possibly add a nied variable (or if one was already present go look for the definition to add words like you are wanting. I do not recommend just typing in the words was: and now: but instead change it with consideration of the template system. The text to be added may need to be added deeper in the code, but at least it would give a start.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...