Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Saving Medallion

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-23-2009, 07:57 PM
 
Alison Alison is offline
 

Advanced Member
  
Join Date: Mar 2009
Posts: 93
 

Default 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?
__________________
4.2
None

___________

10 Years of Advertising for $100
Reply With Quote
  #2  
Old 03-24-2009, 02:31 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 03-24-2009, 11:28 AM
 
Alison Alison is offline
 

Advanced Member
  
Join Date: Mar 2009
Posts: 93
 

Default 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?
__________________
4.2
None

___________

10 Years of Advertising for $100
Reply With Quote
  #4  
Old 03-24-2009, 09:35 PM
 
Alison Alison is offline
 

Advanced Member
  
Join Date: Mar 2009
Posts: 93
 

Default 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!
__________________
4.2
None

___________

10 Years of Advertising for $100
Reply With Quote
  #5  
Old 03-25-2009, 12:29 AM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default Re: Saving Medallion

There is a bug in skin1/customer/main/product.tpl
http://forum.x-cart.com/showpost.php?p=245664&postcount=38
__________________
Regards,
Victor Dubiniuk

X-Cart Skins Store
- twenty two different skins for 4.1.x and 4.2.x;
- 4.3.x compatible versions are available;
- refresh you store now!

Smart menu X-Cart add-on for 4.1.8 - 4.3.x
Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x
Reply With Quote

The following user thanks Victor D for this useful post:
Alison (03-25-2009)
  #6  
Old 03-25-2009, 09:08 AM
 
Alison Alison is offline
 

Advanced Member
  
Join Date: Mar 2009
Posts: 93
 

Default 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?
__________________
4.2
None

___________

10 Years of Advertising for $100
Reply With Quote
  #7  
Old 03-25-2009, 09:09 AM
 
Alison Alison is offline
 

Advanced Member
  
Join Date: Mar 2009
Posts: 93
 

Default 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!
__________________
4.2
None

___________

10 Years of Advertising for $100
Reply With Quote
  #8  
Old 03-26-2009, 12:07 AM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default 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}>
__________________
Regards,
Victor Dubiniuk

X-Cart Skins Store
- twenty two different skins for 4.1.x and 4.2.x;
- 4.3.x compatible versions are available;
- refresh you store now!

Smart menu X-Cart add-on for 4.1.8 - 4.3.x
Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x
Reply With Quote

The following user thanks Victor D for this useful post:
Alison (03-26-2009)
  #9  
Old 03-26-2009, 07:43 AM
 
Alison Alison is offline
 

Advanced Member
  
Join Date: Mar 2009
Posts: 93
 

Default Re: Saving Medallion

OK, I took out the "not" and put in the " eq ''". Seems to work. Thank you!
__________________
4.2
None

___________

10 Years of Advertising for $100
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:00 AM.

   

 
X-Cart forums © 2001-2020