New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
find zone id from state where addressbook is broken #6073
base: master
Are you sure you want to change the base?
Conversation
Note: this seems to work where there shipping tax is not set to store. |
updated to fix shipping tax where zone id = 0 |
As stated on the forum, we do not use a dropdown for state in the registration form. |
@dbltoe On A clean install of Zencart, if I create a customer account in store then it doesn't set the address book entry_zone_id, regardless of whether zones exist or not. |
@dbltoe as per my post on the thread. Contact me directly at ian@zen-cart.com to see if I can help more directly with your problem |
A bit more context. This was fixed at e3c022f however the problem then becomes that with a State text entry the address_book entry_zone_id will be set to zero as create account does not try and match the entered state to a zone. @lat9 does have a PR that might address this . #6020 However this still doesn't address a more basic problem. While we can fix code to store a correct entry_zone_id in the address book, there is the possibility that zone information may be removed and rebuilt by the store owner. Relying on the entry-zone_id becomes problematic. In the order class we already try and account for this. in the query method we do
and don't rely on the entry_zone_id It therefore makes sense that cart calculations in checkout do the same thing. |
Note from @scottcwilson - please note this is a confirmed bug found during the investigation of #6008.