Checkout fields info dissapear

  • Posts: 5
  • Thank you received: 1
  • Hikashop Business
3 years 6 months ago #332794

-- HikaShop version -- : 4.4.2 Business
-- Joomla version -- : 3.9.26
-- PHP version -- : 7.3.26
-- Browser(s) name and version -- : Google Chrome 90.0.4430.212

Hi!

After update from 4.2 to 4.4.2 i have a problem with order form

Step 2 in order form contains "Fields", "Shipping", "Payment"

I fill out "Fields", then when i choose "Shipping" or "Payment", "Fields" update and all information dissapears.

Screenshots and video(in .zip) below)

Thanks!

File Attachment:

File Name: video.zip
File Size:1,070 KB

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
3 years 6 months ago #332808

Hi,

Ah yes, I see what you're talking about.
We've added a few releases ago the possibility to restrict custom fields of the "order" table based on the selected shipping and payment method.
This means that when the shipping method or payment method changes, we need to refresh the custom fields area.
If you don't want/need that, you'll want to edit the file checkout / show_block_fields.php via the menu Display>Views and change the line:

window.Oby.registerAjax(['checkout.fields.updated','cart.updated','checkout.shipping.changed','checkout.payment.changed'], function(params){
to:
window.Oby.registerAjax(['checkout.fields.updated','cart.updated'], function(params){
Another solution would be to move the fields and the shipping/payment selection views on different steps, or to place the fields view after the payment/shipping views so that the customer enters his data after selecting the shipping/payment method.

The following user(s) said Thank You: jushavl

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

  • Posts: 5
  • Thank you received: 1
  • Hikashop Business
3 years 6 months ago #332811

WORKS!!!

THANKS, Nicolas!!!

The following user(s) said Thank You: Philip

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

Time to create page: 0.093 seconds
Powered by Kunena Forum