ZC 157c
ZCA Bootstrap 3.1.2
Local Sales Taxes 2.5.3a
One Page Checkout 2.3.8
OPC shows FL state sales tax on guest checkout before a customer enters/saves billing/shipping information (due to store's location).
For guests who enter/save Florida-based shipping addresses, the appropriate FL county surtax is then appended to their orders.
For guests who enter/save out-of-state-based shipping addresses, the FL state sales tax line is completely removed as expected.
I would like to hide the store-based state sales tax until the billing/shipping information is saved, so out-of-state delieveries don't think they're about to be charged FL's sales tax and abandon their carts.
I'm not sure which file(s) to modify to accomplish this. All help greatly appreciated!
Last edited by RoseStar; 5 Jun 2021 at 06:52 PM.
You could "fool" OPC into using guest address-book entries that have an untaxable country (e.g. Bermuda) ... that would have to be hand-entered in your site's phpMyAdmin. That way, no tax is displayed.
Unfortunately, the guest-customer will then need to change their bill/ship country from Bermuda ...
Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian
I'm building a site (an upgrade for our current 1.5.5f one) using Zen Cart 1.5.7c and running on PHP 7.1.
The template is a simple clone of Responsive Classic with some stylesheet changes but no PHP code changes at all. The issue below shows up both on this template and on Responsive Classic.
The only modules installed so far are Numinix Product Fields (we use some of the fields for shipping) and some of our own shipping modules.
I've just installed OPC 2.3.8 and everything seems to work well except one thing. I have "shipping=billing" enabled in admin and the result is almost as expected. I see the billing address form and the "Shipping Address, Same as Billing?" checkbox.
However, on lat9's demo site and on others I have looked at, that check-box and everything outside the billing address form are greyed out until the billing details are saved. That's a good thing and I am sure it is intentional since being able to click the check-box prematurely would reload the page and lose the unsaved billing details.
On my installation, however, the rest of the page is not greyed out. I can't see easily how it works so I don't know how to debug it. I'd appreciate a pointer to the part of the code that deals with it so I can do some debugging.
Last edited by BillJ; 10 Jun 2021 at 10:20 PM.
I can see that the form elements are disabled by activating a layer over them. This is done on page load depending, ultimately, on the OnePageCheckout class attribute $billtoAddressChangeable. However, I can't see where this is ever set to true. And even if I try initialising it to true in the constructor, the layer is still not activated.