State is being required, even though it is not set as required

  • Posts: 24
  • Thank you received: 1
6 years 7 months ago #290824

-- HikaShop version -- : 3.3.0
-- Joomla version -- : 3.7.8
-- PHP version -- : 7.0.1
-- Browser(s) name and version -- : Chrome
-- Error-message(debug-mod must be tuned on) -- : There was an error while processing your transaction: 33 Bill To State/Province is required.

We have a customer from Lebanon. Unfortunately, the customer is unable to make a transaction because of this error:
There was an error while processing your transaction: 33 Bill To State/Province is required.

When the country Lebanon is selected, the state field disappears.

To resolve the issue, I tried making the state field not required, but the same error still comes up.

Any help resolving this issue for countries that do not have states is appreciated.

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
6 years 7 months ago #290830

Hi,

I've checked your link and I don't see why you want to make the state field required ?
There is automatically already a choice preselected in the state dropdown. So when the dropdown appears, there will always be a state selected.
And when there is no dropdown then you don't want the field to be required.
So you should just turn off the required option for that field.

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

  • Posts: 24
  • Thank you received: 1
6 years 7 months ago #291117

The state is set to NOT required (see screenshot 1)

.
The field validator is behaving as if it is required (see screenshot 2).
The country being used is Lebanon

Attachments:
Last edit: 6 years 7 months ago by pcomelearning. Reason: Added country.

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
6 years 7 months ago #291122

Hi,

That error doesn't come from HikaShop but from your payment gateway.
That's probably because there are no zones added in the "sub zones" listing of the lebanon zone and your payment gateway requires one.
If you want to avoid that, you can thus add sub zones to that country in the menu System>Zones.
However, you might want to ask your payment gateway if something can be done for that error for lebanon as I don't think that the state/province is useful for lebanon.

The following user(s) said Thank You: pcomelearning

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

Time to create page: 0.072 seconds
Powered by Kunena Forum