View Single Post
  #5  
Old 02-04-2010, 07:49 PM
  PC Doctor's Avatar 
PC Doctor PC Doctor is offline
 

Advanced Member
  
Join Date: Apr 2003
Location: Cincinnati, OH USA
Posts: 38
 

Default Re: Select Options (Variants) Redirect Button Mod for X-Cart v4.3.0

Gizmo,
you are probably right, if you do not have certain options enabled or disabled then the mod will probably not show. You may have to put the code in products.tpl or products_list.tpl if you are not using the 'Add to Cart' buttons (I believe).

hoosierglass,
Not a problem, I'm glad to hear that you got it working. I'd like to see X-Cart officially support something like this in future versions (that would work independent of how all the 'Add to Cart' button settings are set.) Your options are probably set differently than mine, hence you having to put the code inside other {if} statements. Actually it's probably because of your 3 column setup and/or the no-description setup. Thanks for posting where you had to put the code to get it working.

For anyone else trying to use this code, there are about 5 or more {if} statements that are used in buy_now.tpl depending on which options you have set. You may have to try the other ones to get the mod to work properly. Just type in the word 'test' in each {if} statement one at a time to figure out where you'll need to put the code. When 'test' appears near the buttons when you refresh, you know that it's running through that {if} statement to build the page and that's where you need to put the code.
__________________
PS3 EZ Chill - Internal Cooling Fan Mod Kit
Overheating/YLOD Prevention for Your Playstation 3
www.PS3ezChill.com

Fix-My-PC-Doctor
PC and Game Repair Services
www.FixMyPCDoctor.com
X-Cart 4.3.2
Reply With Quote