X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Saving Medallion (https://forum.x-cart.com/showthread.php?t=46489)

Alison 03-23-2009 07:57 PM

Saving Medallion
 
In the demo cart, as it is set up, a medallion appears on items that are on sale. For example, the dummy item "Patrick MARACANA HG Cleats" has an orange medallion that says "Save 12%."

I'd like to incorporate something like that, but guess it was just done manually? Ideas?

balinor 03-24-2009 02:31 AM

Re: Saving Medallion
 
That should automatically appear on your site when you put something on sale - meaning putting a list price higher than the actual price.

Alison 03-24-2009 11:28 AM

Re: Saving Medallion
 
Hmmm. When the item above shows up on the Featured Items section or in the general category, it doesn't show the medallion. When you go to the individual page for the item, it does.

But this doesn't seem to work for items *I* have added to my site.

I have set up an item that is 33% off list. It lists the market price with a line through it and says "save 33%" in red next to that (Right below the "Our price" line. But when I got to the detail page for that item, there is no sales medallion.

You can see my sale item here. You can see the general category (that shows the discount numerically) here. The demo sale item that does have the medallion is here.

Any ideas on why the sale medallion isn't working for me?

Alison 03-24-2009 09:35 PM

Re: Saving Medallion
 
Sorry, hoping to get some input on this. It doesn't work for me on products *I* have entered, only on those that were in the demo. Please see links in post above. Any help appreciated!

Victor D 03-25-2009 12:29 AM

Re: Saving Medallion
 
There is a bug in skin1/customer/main/product.tpl
http://forum.x-cart.com/showpost.php?p=245664&postcount=38

Alison 03-25-2009 09:08 AM

Re: Saving Medallion
 
OK, I read the linked page. It's kind of cryptic, but if I understand it you just posted the code that isn't working? (Since that code is the same code that is in my product.tpl file.)

Is there a fix for this?

Alison 03-25-2009 09:09 AM

Re: Saving Medallion
 
Ah, I think I figured it out. I added the "not" as per the first few lines and now it works.

Thanks so much!

Victor D 03-26-2009 12:07 AM

Re: Saving Medallion
 
Code:

<div class="save" id="save_percent_box"{if $product.appearance.market_price_discount} style="display: none;"{/if}>
It means "If there is a discount - hide the discount label"
You should change it to
Code:

<div class="save" id="save_percent_box"{if $product.appearance.market_price_discount eq ''} style="display: none;"{/if}>

Alison 03-26-2009 07:43 AM

Re: Saving Medallion
 
OK, I took out the "not" and put in the " eq ''". Seems to work. Thank you!


All times are GMT -8. The time now is 06:51 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.