Guest checkout change information

  • Posts: 1119
  • Thank you received: 114
6 years 7 months ago #278879

-- HikaShop version -- : 1709211021

Hi,

I see that we have new feature for guest checkout which allows user to change hes information. So as i understand, we dont need address block anymore...
Now question.

Would it be possible to make login block always open? After user enter email, address and goes to next step then going back you see that "new" button and you need to click on it to load login block. Then you can modify your information....

As for testing i have wrapped onclick function into jQuery on load and it works but i thought maybe there is a proper way to do it with hikashop it self?

<script>
    jQuery( window ).on( "load", function() {
        window.checkout.submitBlock('login', <?php echo $this->step; ?>, <?php echo $this->module_position; ?>, 'hikashop_checkout_guest_logout=1'); this.disabled=true; window.Oby.addClass(this, 'next_button_disabled'); return false;
    });
    </script>

Kind Regards

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

  • Posts: 26004
  • Thank you received: 4004
  • MODERATOR
6 years 7 months ago #278882

Hello,

No, the new feature of "login" block for guest do not change the need of the address block.
No, you can't make that block always open since it will generate unwanted side effects regarding the guest account making the system really unstable.

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: 1119
  • Thank you received: 114
6 years 6 months ago #279526

Hi,

I see some small issue with new guest information feature. If you modify country you need to press twice next button to get into next step.
I am talking about button who is in show block buttons view.
Can this be fixed?

Thanks

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

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
6 years 6 months ago #279551

Hi,

That should only be the case if the change impacts on the price, the shipping method, the payment method etc. Can you check on that ?

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

  • Posts: 1119
  • Thank you received: 114
6 years 6 months ago #279591

Hi,

I have cart status and login views in same step. Ask address on registration is set to YES.

After entering email and address information, pressing button next it will go to next step but if country select box is modified it wont go to next step instead it saves email and address information and shows change guest information button.

Kind Regards

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

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
6 years 6 months ago #279597

Hi,

Ok, but your message doesn't answer my question.

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

  • Posts: 1119
  • Thank you received: 114
6 years 6 months ago #279695

Hi,

I am not sure to fully understand your question. Are you talking about some restrictions?
Because there is no restrictions. Changing country wouldnt not change any price, shipping or payment method. Later for sure there will be some restrictions based on country....

Hope that answers your question.

Kind Regards

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

  • Posts: 1119
  • Thank you received: 114
6 years 6 months ago #279714

After some more investigation i see that if country has been changed to not your orginal country (by IP i guess..) then hikashop needs first to save guest information and then only you can go to next step.

1. Does hikashop checks and loads user country by default?
2. How can i go to next step without need to save country first?

I am using this to make address always opened:

<script>
    window.hikashop.ready(function() {
     window.checkout.submitBlock('login', <?php echo $this->step; ?>, <?php echo $this->module_position; ?>, 'hikashop_checkout_guest_logout=1');window.Oby.addClass(this, 'next_button_disabled'); return false;
    });
</script>

and the issue is that if i choose diferent country then i am, i cant even go to next step because hikashop needs to save/close login view first...

Thanks

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

  • Posts: 1119
  • Thank you received: 114
6 years 6 months ago #279716

Update. Found the issue. It was related to tax restriction. All fine now.

However i still would like to know if its possible to set country based on user IP. Can geolocation plugin do this?

Thanks

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

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
6 years 6 months ago #279764

Hi,

Yes, the geolocation plugin can do that. It will set the current zone as the country found based on the IP and the custom address field country will use it as default value.

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

  • Posts: 1119
  • Thank you received: 114
6 years 6 months ago #279780

Hi,

Could you please give more info how to set up this?
We have enabled geo plugin, registered @ ipinfodb, set server ip there and entered api key to plugin. Set default country as United Kingdom but it doesnt switch when we visit address step to our original country which is Lithuania.
Is there anything we should do more?

Kind Regards

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

  • Posts: 4519
  • Thank you received: 611
  • MODERATOR
6 years 6 months ago #279790

Hello,

You have a documentation that explain way to use the Geolocation plugin, here .
Hope this will help you.

Regards

Last edit: 6 years 6 months ago by Philip.

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

  • Posts: 1119
  • Thank you received: 114
6 years 6 months ago #279845

Hi,

Well i have read that documentation many times but country still no preselected by default. Thats why asking is there anything i should do more?

Thanks

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

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
6 years 6 months ago #279860

Hi,

Please make sure that you're testing the geolocation with a new user session or you won't see any change: www.hikashop.com/forum/install-update/89...currency.html#279858

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

  • Posts: 1119
  • Thank you received: 114
6 years 6 months ago #279930

Hi,

I have tried with google chrome incognito mode. Tried with firefox developer incognito mode and still no luck. Should this work with default address_country field? I have attched screenshots. The only i could think that issue is with plugin or api key from some point.

Any help would be appreciated.

Kind Regards

Attachments:

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

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
6 years 6 months ago #279977

Hi,

I've checked on our end but it's working fine.
Do you see the currency changing when you do your tests since you've configured the geolocation plugin to set the currency ?

Otherwise, I'm afraid we'll need you to provide precise instructions to reproduce the issue and a backend access in order to check your settings.

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

  • Posts: 1119
  • Thank you received: 114
6 years 6 months ago #279980

Hi,

So i have set main currency to GBP, enabled 2 currencies. EUR and GBP. Enabled geo plugin and added currency module. Custom field Address_country default set to United Kingdom.

And i see that currency switching does work. I see prices in EUR. Disabled plugin and currency went back to default GBP. So it is working but address country doesn't change. It still shows default country which is United Kingdom in checkout guest mode but should switch to Lithuania...

Tried to disabled chosen library, tried with protostar template and nothing helped.

Does address_country field is changing for you Nicolas?
Would you like me to send login details so you could check the issue?
Unless there is something more i could check....

Kind Regards

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

  • Posts: 4519
  • Thank you received: 611
  • MODERATOR
6 years 6 months ago #280085

Hello,

Your return able us to find an issue in the way HikaShop Location works on Address country, it seems that something avoid that process to be successful, we investigate on this issue and will provide as soon as possible a solution.
Thanks for your return.

Regards

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

  • Posts: 1119
  • Thank you received: 114
6 years 6 months ago #280090

Hi,

Thank you for looking into this Philip.

Have a great day

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

  • Posts: 1119
  • Thank you received: 114
6 years 6 months ago #280867

Hi,

I see 3.2.1 is out with "We've improved a bit the Geolocation plugin so that the country is preselected when possible on the registration form."

Has it been fixed? As for us it still doesn't work.

Thanks

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

Time to create page: 0.095 seconds
Powered by Kunena Forum