View Single Post
  #177  
Old 05-01-2014, 09:03 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: common if/then modifications I make to x-cart...

Quote:
Originally Posted by Natures Elements
I am interested in the if/then modification #10. I need to do something similar. Is it possible to have a payment method not show up if a certain product option is selected? More specifically I have a product option called 'auto-ship' that if if is selected as 'No' I want the customer to have PayPal checkout as an option, however if they choose 'Yes' for this product option I do not want the PayPal option to be available during checkout. Any information/ advise would be very helpful and appreciated. Thank you.
Its probably going to take some PHP work, you need to loop through all the products in the cart looking for this option, then if found assign a variable that you can use in the template to formulate your if statement.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote