Hook to add user question during checkout

  • Posts: 45
  • Thank you received: 0
9 years 10 months ago #186652

-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.3.6

I'm about to develop a payment plugin, where the user is required to select a bank, before the payment transaction can be created, I.e. the name of the user's bank must be known before communicating to Payment Service Provider. I'm looking for a hook where to inject the code to ask the user for these details, but couldn't find any.

I'm about to alter the code in views/checkout/tmpl/payment.php to look for a file in the corresponding payment plug-in dir, that contains the additional user interaction.

Do you have any thoughts on this? Is there an alternative?

Thanks and regards, Paul van Haren

Last edit: 9 years 10 months ago by paulvanharen.

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

  • Posts: 82865
  • Thank you received: 13372
  • MODERATOR
9 years 10 months ago #186659

Hi,

No need to change a view or core files code.
I would recommend that you look at the plugins/hikashoppayment/purchaseorder payment plugin which uses the same triggers you would need in order to add a field for the user to fill in his purchase order number during the checkout if he selects this payment method.

The following user(s) said Thank You: paulvanharen

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

  • Posts: 45
  • Thank you received: 0
9 years 10 months ago #186806

Thank you. This is exactly what I was hoping for. I'm glad I asked.

Thanks again, Paul

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

Time to create page: 0.047 seconds
Powered by Kunena Forum