Zen Cart Logo
Forums / All Other Contributions/Addons / One-Page Checkout [Support Thread]

One-Page Checkout [Support Thread]

Views: 629,358

Results 2,021 to 2,040 of 3,077
2 Jun 2021, 1:35 PM
#2021
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,066
Plugin Contributions:
56

One-Page Checkout [Support Thread]

It'll help if you could enable the OPC debug so that you can capture what OPC thinks is going on when the issue occurs. You can either make the associated log available via link (the files get too large to post in a response) or send me a PM and I'll let you know my direct email to which you can send that output.

2 Jun 2021, 2:00 PM
#2022
strelitzia avatar

strelitzia

Totally Zenned

Join Date:
Nov 2005
Location:
France
Posts:
588
Plugin Contributions:
1

Re: One-Page Checkout [Support Thread]

lat9:

It'll help if you could enable the OPC debug so that you can capture what OPC thinks is going on when the issue occurs. You can either make the associated log available via link (the files get too large to post in a response) or send me a PM and I'll let you know my direct email to which you can send that output.

It's now enabled. I'll let you know when I have a log where this issue occurred.

2 Jun 2021, 2:05 PM
#2023
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,066
Plugin Contributions:
56

Re: One-Page Checkout [Support Thread]

strelitzia:

It's now enabled. I'll let you know when I have a log where this issue occurred.
Thanks, that will help enormously!

5 Jun 2021, 5:45 PM
#2024
rosestar avatar

rosestar

New Zenner

Join Date:
Oct 2019
Posts:
24
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

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!

5 Jun 2021, 6:14 PM
#2025
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,066
Plugin Contributions:
56

Re: One-Page Checkout [Support Thread]

RoseStar:

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!
I'll consider your request, but that's going to be 'difficult'.

6 Jun 2021, 4:41 PM
#2026
rosestar avatar

rosestar

New Zenner

Join Date:
Oct 2019
Posts:
24
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

lat9:

I'll consider your request, but that's going to be 'difficult'.

My apologies, I didn't realize it may be a bit more difficult to achieve. I was hoping for small modification I could make myself in the files that I may have been overlooking.

I really appreciate your consideration and would love to help where I can.

7 Jun 2021, 11:06 AM
#2027
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,066
Plugin Contributions:
56

Re: One-Page Checkout [Support Thread]

RoseStar:

My apologies, I didn't realize it may be a bit more difficult to achieve. I was hoping for small modification I could make myself in the files that I may have been overlooking.

I really appreciate your consideration and would love to help where I can.
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 ...

7 Jun 2021, 11:39 AM
#2028
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: One-Page Checkout [Support Thread]

RoseStar:

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.

Why not use a one liner and filter the display if these conditions are met?

The back end code continues doing what it does and the display either drops the tax display line or you include a placeholder message if you like.

7 Jun 2021, 12:18 PM
#2029
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,066
Plugin Contributions:
56

Re: One-Page Checkout [Support Thread]

twitchtoo:

Why not use a one liner and filter the display if these conditions are met?

The back end code continues doing what it does and the display either drops the tax display line or you include a placeholder message if you like.
As I said previously to @RoseStar, it's not that simple.

10 Jun 2021, 9:17 PM
#2030
billj avatar

billj

New Zenner

Join Date:
Sep 2013
Location:
Devon, UK
Posts:
88
Plugin Contributions:
1

Re: One-Page Checkout [Support Thread]

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.

11 Jun 2021, 7:47 AM
#2031
billj avatar

billj

New Zenner

Join Date:
Sep 2013
Location:
Devon, UK
Posts:
88
Plugin Contributions:
1

Re: One-Page Checkout [Support Thread]

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.

11 Jun 2021, 11:27 AM
#2032
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,066
Plugin Contributions:
56

Re: One-Page Checkout [Support Thread]

@BillJ, check the browser's console-log (F12 for developer tools on most modern browsers) to see if anything is amiss in jQuery-land.

11 Jun 2021, 12:22 PM
#2033
billj avatar

billj

New Zenner

Join Date:
Sep 2013
Location:
Devon, UK
Posts:
88
Plugin Contributions:
1

Re: One-Page Checkout [Support Thread]

lat9:

@BillJ, check the browser's console-log (F12 for developer tools on most modern browsers) to see if anything is amiss in jQuery-land.
Thanks, Cindy. I've been using developer mode quite a bit and that's how I found the layer wasn't active on my site while it is on yours.
What in particular should I look for with jQuery? As far as I can tell I'm using the default jQuery that comes with the 1.5.7c distribution but then again everything else looks OK too so there's clearly something wrong that I'm not seeing yet :)

11 Jun 2021, 12:39 PM
#2034
billj avatar

billj

New Zenner

Join Date:
Sep 2013
Location:
Devon, UK
Posts:
88
Plugin Contributions:
1

Re: One-Page Checkout [Support Thread]

On the console I see:

setFormSubmitButton, payment-module: null jquery.checkout_one.min.js?1622987705:5
Showing "confirm" jquery.checkout_one.min.js?1622987705:5
Setting orderConfirmed (0), submitter (null) jquery.checkout_one.min.js?1622987705:5
jQuery version: 3.5.1
12 Jun 2021, 8:33 PM
#2035
billj avatar

billj

New Zenner

Join Date:
Sep 2013
Location:
Devon, UK
Posts:
88
Plugin Contributions:
1

Re: One-Page Checkout [Support Thread]

One thing I have just noticed, on the checkout page there briefly appears a red box with the JS_ERROR_OPC_NOT_ENABLED message ("Our expedited checkout process is temporarily unavailable", etc.). It disappears quickly and I don't always see it. I don't know if that is expected. I don't see it on the demo site.

13 Jun 2021, 9:19 AM
#2036
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

BillJ:

One thing I have just noticed, on the checkout page there briefly appears a red box with the JS_ERROR_OPC_NOT_ENABLED message ("Our expedited checkout process is temporarily unavailable", etc.). It disappears quickly and I don't always see it. I don't know if that is expected. I don't see it on the demo site.

I've also noticed this. I initially thought it was caused by a delay in the loading of javascript files, I made sure the min versions of OPC javascript were loaded and also disabled other scripts running on my site. I did wonder whether it was a server performance issue, but it occurs on my dev site (slower) as well as my live.

I was never able to pinpoint the cause for the brief warning message.

13 Jun 2021, 11:20 AM
#2037
billj avatar

billj

New Zenner

Join Date:
Sep 2013
Location:
Devon, UK
Posts:
88
Plugin Contributions:
1

Re: One-Page Checkout [Support Thread]

simon1066:

I've also noticed this.
Thanks, Simon. It probably isn't connected with my issue, then. I don't mind it happening as it is very brief but I just wondered if it might be a clue.

13 Jun 2021, 12:39 PM
#2038
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,066
Plugin Contributions:
56

Re: One-Page Checkout [Support Thread]

BillJ:

Thanks, Simon. It probably isn't connected with my issue, then. I don't mind it happening as it is very brief but I just wondered if it might be a clue.
Yes, if there is a bunch of latency in the checkout_one page's loading (css/javascript) you'll see that message temporarily until the OPC's jQuery gets loaded to 'hide' that message.

@BillJ, would you either post a link to the site or send me via PM?

13 Jun 2021, 7:30 PM
#2039
billj avatar

billj

New Zenner

Join Date:
Sep 2013
Location:
Devon, UK
Posts:
88
Plugin Contributions:
1

Re: One-Page Checkout [Support Thread]

Thanks - I've PM'd you the link since the supgraded site isn't live yet.

14 Jun 2021, 11:54 AM
#2040
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,066
Plugin Contributions:
56

Re: One-Page Checkout [Support Thread]

@BillJ, thanks for that. While the inclusion of the "Shipping, same as billing" checkbox is as expected (I ***do ***need to update that demo site), the inclusion of the blocks other than the shopping-cart (i.e. current products) list should not be displayed until the addresses have been validated. I'll open an issue on the OPC GitHub repository to track the change(s) required.