Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

different payment options per product...


peloke

Recommended Posts

Posted

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

Posted

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

Posted

Oh? Did you add extra code and a column in the database? Or in some other way?

 

Cheers,

Matt

Posted

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...