Customfieldprice plugin only with selected payment methods

  • Posts: 278
  • Thank you received: 14
  • Hikashop Business
3 weeks 4 days ago #360195

-- HikaShop version -- : 5.0.3
-- Joomla version -- : 4

We use plugin customfieldprice for gift wraping selection on checkout.
So customer can select option Gift wrap (with some price).
For that we use custom field in table order.
We have some payment methods (cod) which we dont want to be available to customer when they select gift wrap.
We use guest onepage checkout.

I can set restriction for payments in custom field, but that just hides the field.
Example:
COD is default payment. If customer selects gift wrap and confirm, then select credit card, gift field is just hidden. Customer now dont know that gift wraping is not posible for that payment.

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

  • Posts: 81597
  • Thank you received: 13080
  • MODERATOR
3 weeks 3 days ago #360196

Hi,

There is no option to have the payment methods available or not based on custom order fields.
The only solution I can see would be to develop a small plugin implementing the onPaymentDisplay event ( www.hikashop.com/support/documentation/6...tml#onPaymentDisplay ).
In it, you could check the value of the custom field in $order and then filter out the payment methods in $methods and $usable_methods
A PHP developer should be able to develop this for a few hundred euros.

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

Time to create page: 0.057 seconds
Powered by Kunena Forum