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)
-   -   Payment method question (https://forum.x-cart.com/showthread.php?t=57532)

ARW VISIONS 01-14-2011 02:46 PM

Payment method question
 
is it possible to have check as payment method only if a product from a certain category is in the cart?

gb2world 01-14-2011 03:00 PM

Re: Payment method question
 
Maybe if you look at the smarty variables available to you on that page, you will see the products array. If so - you can do an if-than to make a payment method available based on the product. Does this thread help? It is for shipping , but if that array is there, you could do the same for payment methods.

---

ARW VISIONS 01-14-2011 04:19 PM

Re: Payment method question
 
ok thanks, I'll try it out.

cflsystems 01-14-2011 04:27 PM

Re: Payment method question
 
Yes you have to enable the payment method and them use and if statement to hide it for all but that product. Product info is available throughout the cart I think


All times are GMT -8. The time now is 02:40 PM.

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