Address Info problem.

  • Posts: 64
  • Thank you received: 0
9 years 5 days ago #221607

-- HikaShop version -- : HikaShop Business: 2.6.0
-- Joomla version -- : 3.4.5
-- PHP version -- : 5.4.28
-- Browser(s) name and version -- : Chrome 46

When a user gets to where they need to enter their name and address, etc. Where we have State and Country, we're seeing "Please select a country first". I logged into the Admin and Country is Published, just USA and States are active. What's wrong and how can I fix it?



We only need the USA to appear in the Countries drop down so that the US states appear in the State drop down. What should be the Field Type?
For Country I'm using Zone, is that correct?

Attachments:
Last edit: 9 years 5 days ago by Scott2451.

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

  • Posts: 82908
  • Thank you received: 13378
  • MODERATOR
9 years 5 days ago #221610

Hi,

Can you provide a screenshot of the settings of both the address_country and the address_state custom fields that you can find when you edit them via the menu Display>Custom fields ?

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

  • Posts: 64
  • Thank you received: 0
9 years 5 days ago #221707

Can you provide a screenshot of the settings of both the address_country and the address_state custom fields that you can find when you edit them via the menu Display>Custom fields ?[/quote]









Field Type for State I had as Zone but changed it to Text so users can type in their 2 digit state code for the time being.

Attachments:
Last edit: 9 years 5 days ago by Scott2451.

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

  • Posts: 82908
  • Thank you received: 13378
  • MODERATOR
9 years 5 days ago #221710

Hi,

You have two problems here:
Changing the type of the address_state field to "text" instead of "zone".
Changing the "zone" of the address_country field to "state" instead of "country".
You should revert these changes or the system won't work properly.

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

  • Posts: 64
  • Thank you received: 0
9 years 5 days ago #221778

nicolas wrote: Hi,

You have two problems here:
Changing the type of the address_state field to "text" instead of "zone".
Changing the "zone" of the address_country field to "state" instead of "country".
You should revert these changes or the system won't work properly.


Are you saying that
Change address_state from text to zone?
Change address_country from state to country?
If not, please explain what these should be.

address_state is TEXT
address_country is ZONE

Please tell me what they should be if these are not correct.

Should address_state be TEXT or something else? If something else what should it be?

Should address_country be ZONE or something else? If something else what should it be?

Last edit: 9 years 4 days ago by Scott2451.

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

  • Posts: 64
  • Thank you received: 0
9 years 4 days ago #221846

Scott2451 wrote:

nicolas wrote: Hi,

You have two problems here:
Changing the type of the address_state field to "text" instead of "zone".
Changing the "zone" of the address_country field to "state" instead of "country".
You should revert these changes or the system won't work properly.


Are you saying that
Change address_state from text to zone?
Change address_country from state to country?
If not, please explain what these should be.

address_state is TEXT
address_country is ZONE

Please tell me what they should be if these are not correct.

Should address_state be TEXT or something else? If something else what should it be?

Should address_country be ZONE or something else? If something else what should it be?


I have the state and country in the Admin as Published. Why are they not active on the site as the screen shot shows?


Attachments:

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

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
9 years 4 days ago #221854

Hi,

Once again :

Change the type of the address_state field to "zone".
Change the "zone" of the address_country field to "country".


Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 64
  • Thank you received: 0
9 years 4 days ago #221935

Jerome wrote: Hi,

Once again :

Change the type of the address_state field to "zone".
Change the "zone" of the address_country field to "country".


Regards,


Someone else said this...
"The types should be "zone" as it is by default." which differs from what you say so now I'm confused.

address_country
Field Type - Zone
Zone - Countries
When I set it this way I get this error - In your custom zone field "address_country", you have the zone "". However, that zone does not exist.

address_state
Field Type - Zone
Zone - States

Please reply with exactly how these two should be.

address_country
Field Type - ?
Zone - ?

address_state
Field Type - ?
Zone - ?

As you see by the screen shot, the drop downs are now there but the State drop down shows the country which is wrong. It should be showing all the US states.



For State, why am I getting this?
Default value Please select a country first *
I want the drop down to work where it says Alabama first.



Why is the Preview section in the attached screen shot say this? How do I change it?
It should say State - Alabama




I need per the latest screen shot
For the Default Value to not display Please select a country first. It needs to be Alabama
For the Preview it needs to read Alabama and not Please select a country first
How do I make these changes?
Why isn't the Default Value active so I can change it?

Attachments:
Last edit: 9 years 3 days ago by Scott2451.

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

  • Posts: 82908
  • Thank you received: 13378
  • MODERATOR
9 years 3 days ago #221971

Hi,

It seems that you've messed up with the zones on your website and thus the system isn't able to find the necessary values anymore.

Go in your phpmyadmin and empty tables hikashop_zone and hikashop_zone_link
In the hikashop_field table, remove the address_country and address_state entries
Then, install the HikaShop install package again
That will reset all the zones to the default values and add back the address_country and address_state custom fields with the default settings
Then, edit your custom country field and set it's default value to "USA"
And edit your custom state field and set it's default value to "alabama"
And if you want to remove the other countries, just disable them via the System>Zones menu.

It should then work exactly like you want.

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

  • Posts: 64
  • Thank you received: 0
9 years 3 days ago #222092

Can't do that. The site is active and online.

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

  • Posts: 82908
  • Thank you received: 13378
  • MODERATOR
9 years 2 days ago #222104

Then, do it on a copy of the website and then just replace the hikashop_zone, hikashop_field and hikashop_zone_link tables from the copy to the live website. That way, it won't cause any problem to your live website.

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

Time to create page: 0.125 seconds
Powered by Kunena Forum