peloke Posted July 24, 2003 Posted July 24, 2003 I need to specify either cod or credit card when adding products. If it is a cod product, the user should not get the credit card option when checking out, if it is a credit card product, no cod option. How can I do this? Is there a contribution for this? Is the functionality already in the system?? Thanks, Eddie
peloke Posted July 26, 2003 Author Posted July 26, 2003 Nevermind, I was actually able to solve this. Payment options are now on a product by product basis. If it is cod, then only the cod option is displayed on checkout, if credit card, only credit card, if both, both...etc. Eddie
Guest Posted July 26, 2003 Posted July 26, 2003 Oh? Did you add extra code and a column in the database? Or in some other way? Cheers, Matt
peloke Posted July 27, 2003 Author Posted July 27, 2003 Yep, I added a payment type code on the products. The 'add to cart' pages had to be changed so that you can only add items to the cart that had the same payment type. Then in the checkout_payment page, I search through the cart to get the payment type of the items, and when the modules are loaded, I only display the one that corresponds to the payment type of the products. This way, people can't try to pay cod when we only want to allow credit cards or vise versa. Eddie
Recommended Posts
Archived
This topic is now archived and is closed to further replies.