Forums / Templates, Stylesheets, Page Layout / Removing whole "Save X% off" line

Removing whole "Save X% off" line

Locked

Views: 780

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
26 Jul 2009, 6:10 PM
#1
creepyd avatar

creepyd

New Zenner

Join Date:
Jan 2009
Posts:
38
Plugin Contributions:
0

Removing whole "Save X% off" line

I want to remove the whole line that tells you the % off and have got stuck.
I found this in English.php:

// Discount Savings
define('PRODUCT_PRICE_DISCOUNT_PREFIX','Save: ');
define('PRODUCT_PRICE_DISCOUNT_PERCENTAGE','% off');
define('PRODUCT_PRICE_DISCOUNT_AMOUNT',' off');

and changed it to read:

// Discount Savings
define('PRODUCT_PRICE_DISCOUNT_PREFIX','Save:');
define('PRODUCT_PRICE_DISCOUNT_PERCENTAGE','');
define('PRODUCT_PRICE_DISCOUNT_AMOUNT','');

However, it still has the number that would have been the percentage showing - "13" in this case, as it would be 13% off if showing.
I assume that is defined in another file, but I can't find it!
Any help?

26 Jul 2009, 8:55 PM
#2
confused_aswell avatar

confused_aswell

Zen Follower

Join Date:
Apr 2008
Location:
UK
Posts:
315
Plugin Contributions:
1

Re: Removing whole "Save X% off" line

Hi

Are you editing the includes/languages/YOUR TEMPLATE/english.php file?

Phil

26 Jul 2009, 9:13 PM
#3
creepyd avatar

creepyd

New Zenner

Join Date:
Jan 2009
Posts:
38
Plugin Contributions:
0

Re: Removing whole "Save X% off" line

I am indeed.
Making this change has taken out the text that goes with the number, just not the number itself.
In the default file before I changed it, it said '% off' - it's the number before the % symbol I need to remove somehow.

26 Aug 2009, 9:04 PM
#4
creepyd avatar

creepyd

New Zenner

Join Date:
Jan 2009
Posts:
38
Plugin Contributions:
0

Re: Removing whole "Save X% off" line


Here you can see I've changed the text to say Sale: £x.xx
The 3rd line originally said "Save 13% off".

Well I just found the answer to take out the 13.
It's in includes/functions/functions_prices.php
This line:
$show_sale_discount = '<span class="productPriceDiscount">' . '<br />' . PRODUCT_PRICE_DISCOUNT_PREFIX . $show_discount_amount . PRODUCT_PRICE_DISCOUNT_PERCENTAGE . '</span>';

Became this line:
$show_sale_discount = '<span class="productPriceDiscount">' . '' . PRODUCT_PRICE_DISCOUNT_PREFIX . PRODUCT_PRICE_DISCOUNT_PERCENTAGE . '</span>';

It was the $show_discount_amount bit that was creating the number.

Happy :clap:

26 Aug 2009, 9:16 PM
#5
confused_aswell avatar

confused_aswell

Zen Follower

Join Date:
Apr 2008
Location:
UK
Posts:
315
Plugin Contributions:
1

Re: Removing whole "Save X% off" line

Hi

Glad you found the answer.

Phil