- Posts: 218
- Thank you received: 6
change colour of non-discounted prices
- woonydanny
-
Topic Author
- Offline
Less
More
14 years 8 months ago - 14 years 8 months ago #37149
by woonydanny
change colour of non-discounted prices was created by woonydanny
Hi, At the moment all the prices are being displayed as red.
for example
$50.00
However, i only want discounted prices to show as red and all non-discounted prices to be black.
So i want =
[strike]$50.00[/strike]
$25.00
and normal prices to show black like:
$50.00
for example
$50.00
However, i only want discounted prices to show as red and all non-discounted prices to be black.
So i want =
[strike]$50.00[/strike]
$25.00
and normal prices to show black like:
$50.00
Last edit: 14 years 8 months ago by woonydanny.
Please Log in or Create an account to join the conversation.
14 years 8 months ago #37268
by nicolas
Replied by nicolas on topic Re: change colour of non-discounted prices
if you don't want the red on the non discounted price, you can add such CSS in the front end CSS file of HikaShop that you can edit via the Display tab of the configuration:
.hikashop_product_price_before_discount{
color: black !important;
}
.hikashop_product_price_before_discount{
color: black !important;
}
The following user(s) said Thank You: woonydanny
Please Log in or Create an account to join the conversation.
- woonydanny
-
Topic Author
- Offline
Less
More
- Posts: 218
- Thank you received: 6
14 years 8 months ago #37291
by woonydanny
Replied by woonydanny on topic Re: change colour of non-discounted prices
You may want to change this as default styling for hikashop as it is common for the price to be in black and the discounted/sale price to be in red. It seems quite strange to have the normal price in red IMO.
Please Log in or Create an account to join the conversation.
- woonydanny
-
Topic Author
- Offline
Less
More
- Posts: 218
- Thank you received: 6
14 years 8 months ago #37294
by woonydanny
Replied by woonydanny on topic Re: change colour of non-discounted prices
Actually the css you gave is not correct. It seems that the discounted price has the same css as the normal price on other products.
i need a css class for the discounted price which it seems doesn't exist.
the css that is needed is for 3 different prices:
product_price_discount, product_price_before_discount, and also product_price
i need a css class for the discounted price which it seems doesn't exist.
the css that is needed is for 3 different prices:
product_price_discount, product_price_before_discount, and also product_price
Please Log in or Create an account to join the conversation.
14 years 8 months ago #37417
by nicolas
Replied by nicolas on topic Re: change colour of non-discounted prices
Could you give a link to a page where you have that ?
The CSS modification I provided works fine for our product prices before discount.
The CSS modification I provided works fine for our product prices before discount.
Please Log in or Create an account to join the conversation.
- woonydanny
-
Topic Author
- Offline
Less
More
- Posts: 218
- Thank you received: 6
14 years 8 months ago #37419
by woonydanny
Replied by woonydanny on topic Re: change colour of non-discounted prices
PM sent
Please Log in or Create an account to join the conversation.
14 years 8 months ago #37534
by nicolas
Replied by nicolas on topic Re: change colour of non-discounted prices
I can see the non discounted prices in black on your website. So it's working for me on your website.
Are you talking about something else ?
Are you talking about something else ?
Please Log in or Create an account to join the conversation.
- woonydanny
-
Topic Author
- Offline
Less
More
- Posts: 218
- Thank you received: 6
14 years 8 months ago #37566
by woonydanny
Replied by woonydanny on topic Re: change colour of non-discounted prices
Please Log in or Create an account to join the conversation.
14 years 8 months ago #37692
by nicolas
Replied by nicolas on topic Re: change colour of non-discounted prices
That's not possible with just CSS. You will have to edit the file "listing_price" of the view "product" to add such class to the product price when discounted.
Please Log in or Create an account to join the conversation.
Time to create page: 0.248 seconds