Zen Cart Logo
Forums / General Questions / Percentage Discount Not showing Text or Percentage off

Percentage Discount Not showing Text or Percentage off

Locked

Views: 3,799

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
14 Sep 2009, 2:22 PM
#1
milobloom avatar

milobloom

Totally Zenned

Join Date:
Feb 2004
Posts:
1,267
Plugin Contributions:
1

Percentage Discount Not showing Text or Percentage off

http://www.nothingbutcostumes.com/index.php?main_page=advanced_search_result&search_in_description=1&zenid=b5ff2a506e768b4db92a47c1c9909e1d&keyword=joker&x=0&y=0

Also in the listing

http://www.nothingbutcostumes.com/index.php?main_page=product_info&products_id=15736

The site used to show something like

Percentage off 24%

Under the price down.

No I cant remember if this was a Mod I was supposed to re-install after the upgrade or someplace that is missing a file.

What do I do?

TIA

15 Sep 2009, 9:02 AM
#2
milobloom avatar

milobloom

Totally Zenned

Join Date:
Feb 2004
Posts:
1,267
Plugin Contributions:
1

Re: Percentage Discount Not showing Text or Percentage off

I see the Defines are still in my English file.

Not sue what to look for next

16 Sep 2009, 5:00 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Percentage Discount Not showing Text or Percentage off

Look in the Configuration ... Product Info ...

Product Info - Show Sales Discount Savings Status
Product Info - Show the amount of discount savings?
0= off 1= on

1 Apr 2010, 1:21 AM
#4
green333 avatar

green333

Zen Follower

Join Date:
Mar 2008
Location:
QLD - Aussie
Posts:
190
Plugin Contributions:
0

Re: Percentage Discount Not showing Text or Percentage off

Hi Ajeh,
similar problem - I have my settings set to 1.

But I don't have the "% off" under my specials

sorry if I've missed something obvious

Hope that you can guide me in the right direction

Many thanks

1 Apr 2010, 1:49 AM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Percentage Discount Not showing Text or Percentage off

What happens if you switch to the Classic Template ... do they show up?

1 Apr 2010, 1:57 AM
#6
green333 avatar

green333

Zen Follower

Join Date:
Mar 2008
Location:
QLD - Aussie
Posts:
190
Plugin Contributions:
0

Re: Percentage Discount Not showing Text or Percentage off

I'll try that a bit later on when the site's a tad quieter & I'll report back

(I have to admit - :blink: I've never tried the 'switch to classic template' before - will it cause any problems with my actual site when I switch back)?

1 Apr 2010, 2:04 AM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Percentage Discount Not showing Text or Percentage off

That is the point of the templates to be interchangeable ...

The differences may show in the sideboxes ... but you are looking for the listings and the product_info ... so be on that page when you switch it ... then refresh the page and switch it back to see what the results are with the least amount of affect on your site for visitors ...

1 Apr 2010, 2:53 AM
#8
green333 avatar

green333

Zen Follower

Join Date:
Mar 2008
Location:
QLD - Aussie
Posts:
190
Plugin Contributions:
0

Re: Percentage Discount Not showing Text or Percentage off

I survived my very first 'template switch'!:smile:
Seriously, tho, yes, the '% off' notation IS visible via the classic template.

1 Apr 2010, 2:56 AM
#9
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Percentage Discount Not showing Text or Percentage off

This would indicate the problem is with your template then ...

You might use something such as Beyond Compare from scootersoftware.com to compare your template to the default files to see why this isn't working on your customized template ...

1 Apr 2010, 3:01 AM
#10
green333 avatar

green333

Zen Follower

Join Date:
Mar 2008
Location:
QLD - Aussie
Posts:
190
Plugin Contributions:
0

Re: Percentage Discount Not showing Text or Percentage off

Thank you - will do.
I am sure that it used to be visible; however, I've added a few mods of late so I've obviously done 'something' to make it disappear:oops:

Would there be any particular files that I would be needing to concentrating on?

1 Apr 2010, 3:15 AM
#11
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Percentage Discount Not showing Text or Percentage off

There could be several causes ... but the conflict is in your template files so comparing them to the originals is the best place to start ...

11 Apr 2010, 6:36 AM
#12
green333 avatar

green333

Zen Follower

Join Date:
Mar 2008
Location:
QLD - Aussie
Posts:
190
Plugin Contributions:
0

Re: Percentage Discount Not showing Text or Percentage off

Hi again Ajeh

I have to admit I am lost.

so..... my includes/languages/MY_TEMPLATE/english.php seems to have the correct info as it matches the default in regards to the 'discount savings' code.. (if that's the right thing to look for?)

I've downloaded 'beyond compare' (only used winmerge before) - but (I'm sorry) I'm really stuck as I don't know which template folders to compare - with default ones

Sorry to be so 'dense' just can't get my head around it atm :no:

11 Apr 2010, 1:56 PM
#13
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Percentage Discount Not showing Text or Percentage off

The language files may be fine, but the other templates and override files that should be echoing that information could be changed to not display that ...

If you were to have a clean copy of Zen Cart v138 and put that on the left and then the copy of your site on the right you could do a compare of the files to see what is different ...

In your case, you need to compare templates ...

I open the left side to:
/includes/templates/template_default/templates

and then on the right side compare that to:
/includes/templates/your_template_dir

and see if you can find the differences ...

You can also do this with:
/includes/modules

/includes/modules/your_template_dir

and any other templates and override directories ...

You also said you found the text define for:
discount savings

so, you can search for the constant for that (it's in CAPS) to see where it is used in the original files and where it is either missing or commented out in your templates and overrides files ...

28 Jun 2010, 6:06 AM
#14
janks avatar

janks

New Zenner

Join Date:
May 2006
Posts:
30
Plugin Contributions:
1

Re: Percentage Discount Not showing Text or Percentage off

Hi Green333,

Your problem lies in your css.

Goto your template directory and look in your css directory
for a file called stylesheet.css

find the following code right near the end

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

.normalprice, .productSpecialPriceSale {
        
}
		
.normalprice {
	  color:#D52D00; font-weight:bold; font-size:16px; text-decoration:line-through;
}

.productSpecialPrice, .productSalePrice, .productSpecialPriceSale {
 	color:#D52D00; font-weight:bold; font-size:16px;
}

.productSpecialPriceSale {
	text-decoration:line-through;
}
		
.productPriceDiscount {color:#000000; display:none;}

the problematic code is shown in red..

replace it this with, a little extra formatting makes it look nice.

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

.normalprice, .productSpecialPriceSale {
        
}
		
.normalprice {
	  color:#D52D00; font-weight:bold; font-size:16px; text-decoration:line-through;
}

.productSpecialPrice, .productSalePrice, .productSpecialPriceSale {
 	color:#D52D00; font-weight:bold; font-size:16px; padding-left:15px;
}

.productSpecialPriceSale {
	text-decoration:line-through;
}
		
.productPriceDiscount {color:#000000; font-size:12px;}

This should most likely get it to display for you.
Let us know how it goes.