- Posts: 431
- Thank you received: 22
Customfieldprice plugin only with selected payment methods
2 years 6 months ago #360195
by mojweb
Customfieldprice plugin only with selected payment methods was created by mojweb
-- 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.
-- 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.
2 years 6 months ago #360196
by nicolas
Replied by nicolas on topic Customfieldprice plugin only with selected payment methods
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.
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.172 seconds