godaddy / wp-reseller-store

Resell hosting, domains, and more right from your WordPress site.
https://www.godaddy.com/reseller-program
GNU General Public License v2.0
62 stars 33 forks source link

Redirect cart which has wrong market #140

Open ErdemAkin opened 1 year ago

ErdemAkin commented 1 year ago

Hello,

On my wordpress store, when click to go to cart, it always go to wrong market. My default market is germany. I set up in settings that. For a instance, when i click go to cart, it redirect card which has england market. If i use private mode on browser, it redirect card which has turkish market. Everytime it changes. I check url, there is market parameter in query. Can you help me?

cberesford-godaddy commented 1 year ago

Hi @ErdemAkin - are you still experiencing this issue? If so, could you please provide a link to your Storefront website, along with your Private Label ID?

ErdemAkin commented 1 year ago

Hello @cberesford-godaddy, Here are the details. https://www.ironhosting.de/ https://shop.ironhosting.de/ Private label id: 586844

And also I want to give more details. This issue is really weird. Because If I try to go to the cart in a normal browser, it turns to English (UK). But if I try to go to the cart in private mode in the browser, it turns to Turkish. I suspected caches or cookies. That's why I tried it on my friend's computer also. He never opened my website or Godaddy's website before. That's the time, it turned to always English (US) on his computer.

cberesford-godaddy commented 1 year ago

Thank you for the information. I spent some time debugging this and identified a few interesting behaviors.

  1. When browsing as a signed in user on a non-private browser, everything appears to work as intended.
  2. When browsing as a signed in user on a private browser session, the market seems to be reverted to en-US (or whatever your browser's default market is)
  3. When browsing as an anonymous user, the market seems to be changing to the default market of that anonymous user.

The reason for the above behaviors seems to be due to the market that is set by the user that is browsing your site (either as a temporary non-logged in shopper, or a logged in shopper). A temporary shopper (anonymous user) should not be resetting the market cookie when navigating the site. This appears to be a bug and we have raised it with the appropriate team for fixing. To add to that, it is also worth noting that I was able to get the full experience working as intended when I created an account, set my market to de-DE, and went through the normal purchase flows on both your standard and custom storefront implementations. This is because the shopper account I created had a market that matched your site's market. Once again, we will work to achieve resolution on this - shopper accounts that are created (either anonymous users or logged in shoppers) should be defaulted to your reseller plan's default market, rather than something different.

Thanks for the report and I will keep this thread open as we work to resolve.