Skip to main content

Clean B2B Payment Plugin

3 weeks 2 days ago #100000648 by smart web
-- HikaShop version -- : HikaShop Business 6.8.2
-- Joomla version -- : 6.2
-- PHP version -- : 8.4
-- Browser(s) name and version -- : Firefox 159.0

Hi,

I manage a B2B shop that delivers exclusively on account. Products are dispatched immediately after an order is placed, and the delivery includes a paper invoice. Long-standing customers therefore only pay once they have received the goods.

Until now, I had been using the ‘HikaShop bank transfer payment plugin’, which worked well. However, due to the new ‘Thank you’ page, this is unfortunately no longer the case. The ‘Thank you’ page states that payment is pending, which is incorrect and has led to numerous enquiries from customers. The ‘Purchase order’ payment plugin is also unsuitable, as it requires an order number to be entered.

The solution would be a payment plugin that does absolutely nothing. The customer could simply place an order, and the rest would take place outside of HikaShop (the customer has explicitly requested this). The ‘Thank you’ page should then not state that payment is pending. Unfortunately, I cannot find such a payment plugin in HikaShop or on www.hikashop.com/marketplace/payment . Or have I overlooked something?

As a temporary measure, I’ve customised the ‘Thank you’ page template and completely removed the text and certain sections. However, this isn’t a clean solution in case the customer does eventually want to use other payment methods.

What approach would you recommend? Will there be a clean B2B payment plugin in one of the upcoming versions? Actually, the ‘Purchase order’ payment plugin would be ideal if entering the Purchase Order Number were optional or could be disabled altogether.

Best regards
Stefan

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

3 weeks 1 day ago #100000653 by nicolas
Replied by nicolas on topic Clean B2B Payment Plugin
Hi Stefan,

You have not overlooked anything: until now no payment method fitted ordering on account. The bank transfer method tells the customer how to pay and that the payment is awaited, which is what it is for, and the Purchase order method always required a number.

So we have extended the Purchase order payment method for that case, in the latest build of HikaShop 6.8.2. Download it from your account on our website and install it over your current HikaShop: it has the same version number, so Joomla's updater will not offer it, and your settings are kept.

Its settings (System > Payment methods, then a Purchase order method; create one with "New" if you have none) now have a "Purchase order number" option: Required (as before), Optional or Hide. With Hide, the customer simply chooses the method and places the order, with no field to fill in. The thank-you page then shows the order as being processed, with these next steps: "We prepare your order" and "You pay on invoice, pay our invoice on the terms agreed with us". It no longer says that a payment is awaited, whatever order status you give the method (Created or Confirmed). You can rename the method, for example "On account", and put your own text in its Information setting, which shows on the thank-you page.

Only the Purchase order method's page changes. Your other payment methods keep their own thank-you page, so you can add others later.

Once the Purchase order method is set up, unpublish the bank transfer method you used for ordering on account. Then remove your override of the thank-you page (in Joomla, System > Site Templates, your template, the html/com_hikashop/checkout folder) so that the standard page is shown again.
The following user(s) said Thank You: smart web

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

3 weeks 1 day ago #100000659 by smart web
Replied by smart web on topic Clean B2B Payment Plugin
Hi Nicolas,

Thank you very much for the prompt update; this resolves the underlying issue. It’s great to be able to count on such reliable partners. We can generally work well with this solution. If possible, the following further adjustments to the ‘HikaShop Purchase Order payment plugin’ would be desirable:

1. The option to define a custom value or language constant for the input field (currently the fixed constant ‘PURCHASE_ORDER_NUMBER’). As I suspect this constant is used elsewhere, I would prefer not to change this value to the one requested by the customer.
2. If possible, an option to disable the submit button below the field. The value would be saved automatically when the form is submitted.
2a. If disabling the button is not possible, it would be helpful to be able to define a custom value or language constant for the submit button.

This would make the plugin highly customisable and suitable for various offline payment methods.

One error I’ve found: The shop is trilingual; for historical reasons, we use Falang for this. Falang also offers the option to translate the value for ‘Specific configuration’ -> ‘Information’ inside the plugin. However, on the thank-you page, the original content from the field is always displayed instead of the translation.

If possible, it would also be good to remove the hard-coded ‘margin-left:10%’ from the <span> element surrounding the label field.

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

3 weeks 1 day ago #100000663 by nicolas
Replied by nicolas on topic Clean B2B Payment Plugin
Hi,

Everything you asked for is in the latest build of HikaShop 6.8.2. Download it from your account on our website and install it over your current HikaShop: it has the same version number, so Joomla's updater does not offer it, and your settings are kept.

In the Purchase order method's settings (System > Payment methods):

1. "Purchase order number label" holds the text shown before the field. Type the text itself or a language key of your own. Left empty, the current "Purchase Order Number" text is kept. The same label is used for the number in the order details, the order history and the emails.

2. "Submit button for the number": set it to No and the button disappears. The number is saved when the customer places the order.

3. The hard-coded margin-left:10% is gone. The span now has the class hikashop_purchase_order, so you can style it from your template's CSS.

The same build fixes another issue: when a customer typed a number and clicked the button to finish the order without clicking Submit first, the checkout only reloaded and a second click was needed. Now the order is placed with that first click.

About the translation of the Information setting with Falang: the translation window of the payment methods saved those texts in Falang, which cannot apply them to these settings, so the original text was always shown. They are now saved as HikaShop translation overrides, as on a shop without Falang, and the thank-you page shows them in the customer's language. Falang keeps working for everything else. The translations you already entered are not lost: open the translation window of the method once for each language (the flag icons on the method's page), check the texts and save. The new label setting is translated in the same window. Since this window used to show a PHP warning in an alias field, note that this is fixed too: the alias, which is only a reference for the backend, is no longer in the translation window.
The following user(s) said Thank You: smart web

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

3 weeks 3 hours ago #100000685 by smart web
Replied by smart web on topic Clean B2B Payment Plugin
Simply brilliant – many thanks for these adjustments.
Everything is working as intended. This plugin can now be used for various offline payment methods.

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

Time to create page: 0.072 seconds
Powered by Kunena Forum