How to skip required field controls when custom shipping is selected

  • Posts: 4
  • Thank you received: 0
  • Hikashop Essential
2 days 8 hours ago #368159

-- HikaShop version -- : 6.0.0
-- Joomla version -- : 5.3.2
-- PHP version -- : 8.3.23
-- Error-message(debug-mod must be tuned on) -- : The billing address you selected cannot be used as some information is missing. Please edit it before proceeding.

Hi,
I added a pickup-in-store shipping option by configuring "Override shipping address text" in the plugin, but this error appears at checkout: "The billing address you selected cannot be used as some information is missing. Please edit it before proceeding."
This obviously refers to the mandatory shipping fields that are left blank due to the override but there's no reason to validate them because they will not be used.
How can I disable validation of the shipping address fields (overridden and hidden) for the manual shipping option?

Thank you very much
Kind regards

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

  • Posts: 84216
  • Thank you received: 13665
  • MODERATOR
1 day 21 hours ago #368161

Hi,

The system takes into account the "Override shipping address" setting of the selected shipping method before assessing if it needs to check for the shipping method validity against the custom address fields.
So, normally, an error should not happen in such case.
Also, supposing this would happen, the error message should read "The shipping address you selected cannot be used as some information is missing. Please edit it before proceeding." and not "The billings address you selected cannot be used as some information is missing. Please edit it before proceeding."
So, it seems to me that your issue is with the billing address not being complete in your user account after you added some extra required custom address fields. Please check.

The following user(s) said Thank You: lacascinaromana

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

  • Posts: 4
  • Thank you received: 0
  • Hikashop Essential
1 day 21 hours ago #368162

You are right, some required fields have been added after user's profile has been created so some fields were missing.
Thank you!!!

nicolas wrote: Hi,

The system takes into account the "Override shipping address" setting of the selected shipping method before assessing if it needs to check for the shipping method validity against the custom address fields.
So, normally, an error should not happen in such case.
Also, supposing this would happen, the error message should read "The shipping address you selected cannot be used as some information is missing. Please edit it before proceeding." and not "The billings address you selected cannot be used as some information is missing. Please edit it before proceeding."
So, it seems to me that your issue is with the billing address not being complete in your user account after you added some extra required custom address fields. Please check.

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

Time to create page: 0.034 seconds
Powered by Kunena Forum