Payment Method available depending on product

  • Posts: 20
  • Thank you received: 0
13 years 7 months ago #14677

If I want to allow a payment method (say collect on delivery) on only some products, and not all products. Is there a way to do it?

Please Log in or Create an account to join the conversation.

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
13 years 7 months ago #14679

No. You would have to modify the payment plugin's code.

Please Log in or Create an account to join the conversation.

  • Posts: 20
  • Thank you received: 0
13 years 7 months ago #14683

Yep, I'm looking at it now. Just to double check, should I be making changes at function onPaymentDisplay in collectondelivery.php?

Please Log in or Create an account to join the conversation.

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
13 years 7 months ago #14684

Indeed.

Please Log in or Create an account to join the conversation.

  • Posts: 20
  • Thank you received: 0
13 years 6 months ago #16143

Hi nicolas, sorry to bother you again, but i've tried to configure the collectondelivery.php without much luck. would you be able to help me if I don't want the collectondelivery payment option to appear when there's a product_id 9 or 10 in the cart?

Please Log in or Create an account to join the conversation.

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
13 years 6 months ago #16152

There is someone else which is doing just that. You should look at that thread: www.hikashop.com/fr/support/forum/4-how-...sed-on-products.html

Please Log in or Create an account to join the conversation.

Time to create page: 0.068 seconds
Powered by Kunena Forum