Forums / General Questions / Change how percent is worked on on special product price?

Change how percent is worked on on special product price?

Started by paddy_uk2007 on 21 Jul 2011, 10:23 PM · Views: 948

Results 1 to 4 of 4
21 Jul 2011, 10:23 PM
#1
paddy_uk2007 avatar

paddy_uk2007

New Zenner

Join Date:
Aug 2007
Posts:
95
Plugin Contributions:
0

Change how percent is worked on on special product price?

Hi i did post this earlier but i dont think i was clear with my title so fort i would try again

Hi i have a customer that wants to reverse the way the special maker displays the % off.

if the customer currently adds a special to a product it displays like below

the first price is the original price and is crossed out on the site

£100 £90
Save: 10% off

but they want it to display like this

£100 £90
Sold at: 90%

so the % is worked out the other way round and doesn't display the % they are saving but displays the % the item is sold at.

i have found were to edit the save: to make it say Sold at:

but I do not know what i will need to change to have the site display it as above....

can anyone please help me ????
thanks

22 Jul 2011, 2:08 AM
#2
gaurav10feb avatar

gaurav10feb

Zen Follower

Join Date:
Jan 2010
Location:
Australia
Posts:
243
Plugin Contributions:
1

Re: Change how percent is worked on on special product price?

You need to edit function zen_get_products_display_price under includes>>functions>>function_prices.php

LOOK for

$show_discount_amount = number_format(100 - (($display_sale_price / $display_normal_price) * 100),SHOW_SALE_DISCOUNT_DECIMALS);

change to

$show_discount_amount = number_format((($display_sale_price / $display_normal_price) * 100),SHOW_SALE_DISCOUNT_DECIMALS);

Rest you know how to change save to sold at
I havent tested thou ...let me know if any trouble

Believe it or not But My existence is illusional

22 Jul 2011, 9:21 AM
#3
paddy_uk2007 avatar

paddy_uk2007

New Zenner

Join Date:
Aug 2007
Posts:
95
Plugin Contributions:
0

Re: Change how percent is worked on on special product price?

gaurav10feb:

You need to edit function zen_get_products_display_price under includes>>functions>>function_prices.php

LOOK for

$show_discount_amount = number_format(100 - (($display_sale_price / $display_normal_price) * 100),SHOW_SALE_DISCOUNT_DECIMALS);

change to

$show_discount_amount = number_format((($display_sale_price / $display_normal_price) * 100),SHOW_SALE_DISCOUNT_DECIMALS);

Rest you know how to change save to sold at
I havent tested thou ...let me know if any trouble

yes this worked perfectly thanks

30 Nov 2011, 5:54 PM
#4
wavmixer avatar

wavmixer

New Zenner

Join Date:
Dec 2009
Posts:
31
Plugin Contributions:
0

Re: Change how percent is worked on on special product price?

paddy_uk2007:

i have found were to edit the save: to make it say Sold at:

I am currently trying to change the Save to Additional Savings but I have not found where to change this text. I did find the line:

.productPriceDiscount {color:#373737; font-size:12px;
in stylesheet.css where I am able to change the font size and color, but not the text.