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

One-Page Checkout [Support Thread]

Views: 629,264

Results 2,181 to 2,200 of 3,073
18 Mar 2022, 6:23 PM
#2181
linuxguy2 avatar

linuxguy2

Zen Follower

Join Date:
Sep 2013
Location:
Texas
Posts:
315
Plugin Contributions:
0

One-Page Checkout [Support Thread]

(This site is based on "Clone Classic" with several core Mods)

zen-cart-v1.5.6a-01042019
CheckBoxTextBoxIconV1.0.3
ckeditor-for-zencart
ColumnGridLayout_for_155f
EasyPopulate-4.master-ZC
export_shipping_information_V1.3.5
extra_field_on_customer_sign_up_0
one_page_checkout-2.0.5
purchase_order_basic_v1_1b

Apache Version 2.4.52
PHP Version 7.4.28
MySQL Version 10.2.43-MariaDB

I need to prevent customers from editing the Company Name (only) on the One-Page Checkout screen. I'm thinking in "tpl_modules_opc_address_block-PHP" around line 56.
(Yes this would be a core edit) I do have other hacks to do this but I'd rather have some clean code.

At times the Customer changes the Company Name instead of creating a new account. In my system/process this messes up imports into QuickBooks as the company name must be an exact match.

OR
Better yet once the customer creates an account I would prefer preventing them from ever changing the company name.

NOTE:
This thread I inadvertently started for another issue that had to do with the drop box selections.
https://www.zen-cart.com/showthread.php?228715-Checkout-Page-Addresses&goto=newpost

18 Mar 2022, 10:18 PM
#2182
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

linuxguy2:

(This site is based on "Clone Classic" with several core Mods)

zen-cart-v1.5.6a-01042019
CheckBoxTextBoxIconV1.0.3
ckeditor-for-zencart
ColumnGridLayout_for_155f
EasyPopulate-4.master-ZC
export_shipping_information_V1.3.5
extra_field_on_customer_sign_up_0
one_page_checkout-2.0.5
purchase_order_basic_v1_1b

Apache Version 2.4.52
PHP Version 7.4.28
MySQL Version 10.2.43-MariaDB

I need to prevent customers from editing the Company Name (only) on the One-Page Checkout screen. I'm thinking in "tpl_modules_opc_address_block-PHP" around line 56.
(Yes this would be a core edit) I do have other hacks to do this but I'd rather have some clean code.

At times the Customer changes the Company Name instead of creating a new account. In my system/process this messes up imports into QuickBooks as the company name must be an exact match.

OR
Better yet once the customer creates an account I would prefer preventing them from ever changing the company name.

NOTE:
This thread I inadvertently started for another issue that had to do with the drop box selections.
https://www.zen-cart.com/showthread.php?228715-Checkout-Page-Addresses&goto=newpost
Sorry to disappoint, but the latest Zen Cart version is 1.5.7d and the latest version of OPC is 2.3.11. There have been **significant **changes to OPC over the last 3 years. I'll suggest that you upgrade and then we can discuss further.

22 Mar 2022, 1:43 PM
#2183
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

I thought there was a way to identify which orders are placed as a Guest. I search the readme and this thread but was unable to find an answer. Maybe I'm confusing this with a previous plugin. Is there a way?

22 Mar 2022, 2:55 PM
#2184
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,763
Plugin Contributions:
9

Re: One-Page Checkout [Support Thread]

jeking:

I thought there was a way to identify which orders are placed as a Guest. I search the readme and this thread but was unable to find an answer. Maybe I'm confusing this with a previous plugin. Is there a way?From the admin Customers >> Orders you will see the "spy guy" icon by any order number that was a guest order.

22 Mar 2022, 3:08 PM
#2185
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

dbltoe:

From the admin Customers >> Orders you will see the "spy guy" icon by any order number that was a guest order.

Well, look at that cute little guy. I never noticed, thanks for pointing him out. For the benefit of others:
Attachment 19929

22 Mar 2022, 6:59 PM
#2186
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,682
Plugin Contributions:
56

Re: One-Page Checkout [Support Thread]

Fond memories of Mad Magazine and "Spy vs. Spy."

28 Mar 2022, 12:02 AM
#2187
nicksab avatar

nicksab

Totally Zenned

Join Date:
Apr 2011
Posts:
592
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

Zc version 1.5.7d
OPC version : 2.3.10
Bootstrap version :3.3.0 with latest OPC integration.

I am getting an error while checking out. Itis states " sorry our expedited....." with the pop up "Please contact the store owner; some required elements of this page are missing."

I am getting the following in the console: Missing #ottotal > div:first-child

No other logs or else anywhere.

I tried the fix in post #2075 but it did not work for me. I am only using flat rate and storepickup as a shipping options.

On i click"ok" on the pop up message, the page appears. If I switch the shipping method,the page reload and the same error message comes up

Can anyone help me please?

Thank you

P.S: it is on a local machine so i can't provide any link to it.

28 Mar 2022, 5:33 AM
#2188
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,954
Plugin Contributions:
8

Re: One-Page Checkout [Support Thread]

you need to go to your admin -> configuration -> 1 page checkout settings and look for this element:

Order Total, jQuery Selector
CHECKOUT_ONE_OTTOTAL_SELECTOR

OPC needs to know the css selector for order total. i'm guessing that is your problem.

if, as you say, you are using bootstrap, you can change that value to:

#ottotal > td.ot-text

and see if that works.

best.

28 Mar 2022, 7:01 AM
#2189
nicksab avatar

nicksab

Totally Zenned

Join Date:
Apr 2011
Posts:
592
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

carlwhat:

you need to go to your admin -> configuration -> 1 page checkout settings and look for this element:

Order Total, jQuery Selector
CHECKOUT_ONE_OTTOTAL_SELECTOR

OPC needs to know the css selector for order total. i'm guessing that is your problem.

if, as you say, you are using bootstrap, you can change that value to:

#ottotal > td.ot-text

and see if that works.

best.

Thank you very much for pointing me in the right direction.

It seems to be fixed so far (finger crossed) after applying your change.

3 Apr 2022, 3:16 PM
#2190
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

lat9:

Issue reproduced; I'll determine the root cause and correct 'shortly'.
See https://github.com/lat9/one_page_checkout/issues/314 for follow-on changes.

3 Apr 2022, 3:33 PM
#2191
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

I've just submitted v2.3.12 of OPC for the Zen Cart moderators' review; I'll post back here when it's available for download (https://www.zen-cart.com/downloads.php?do=file&id=2095).

This release contains changes associated with these GitHub issues:

#309: Correct PHP notice on missing HTTP_USER_AGENT
#310: Correct PHP notice for missing gender on guest-account creation.
#314: Correct misleading "Shipping options have changed" messaging when cart's changed post-checkout start.

4 Apr 2022, 12:05 PM
#2192
strelitzia avatar

strelitzia

Totally Zenned

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

Re: One-Page Checkout [Support Thread]

Hi @lat9,

I've received reports of a bug in the address processes during checkout. I tested this myself with a clean install of ZC 1.5.7d and OPC and can confirm I saw the same issues that were reported to me.

I have pasted the initial report as I received it.

  1. If you only have 2 addresses in your address book and go to edit either the shipping or billing details, you don't get the drop down menu with the other address in it, you just have to fill out your details again. Ideally, if someone has 2 + addresses, the drop down should appear on both shipping and billing
  2. If you have 3 + addresses, and you change your billing details,
    your shipping address automatically changes. This shouldn't happen, you should be able to change your billing details and it not have an effect on the shipping address. The problem only occurs when you change the billing details. If you change the shipping address, the billing details do not update. Things to note:
  • When you manually change the billing address at checkout, the
    problem doesn't occur. It only seems to be when you are choosing from the drop down
  • If you test this, when I initially added more addresses to my
    account and then changed the billing details, the problem didn't occur. However, when you log out and back in, that's when you get the issue.
4 Apr 2022, 1:02 PM
#2193
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

strelitzia:

Hi @lat9,

I've received reports of a bug in the address processes during checkout. I tested this myself with a clean install of ZC 1.5.7d and OPC and can confirm I saw the same issues that were reported to me.

I have pasted the initial report as I received it.

  1. If you only have 2 addresses in your address book and go to edit either the shipping or billing details, you don't get the drop down menu with the other address in it, you just have to fill out your details again. Ideally, if someone has 2 + addresses, the drop down should appear on both shipping and billing
  2. If you have 3 + addresses, and you change your billing details,
    your shipping address automatically changes. This shouldn't happen, you should be able to change your billing details and it not have an effect on the shipping address. The problem only occurs when you change the billing details. If you change the shipping address, the billing details do not update. Things to note:
  • When you manually change the billing address at checkout, the
    problem doesn't occur. It only seems to be when you are choosing from the drop down
  • If you test this, when I initially added more addresses to my
    account and then changed the billing details, the problem didn't occur. However, when you log out and back in, that's when you get the issue.
    Thanks for the report. I've opened a GitHub issue to track the cause and solution: https://github.com/lat9/one_page_checkout/issues/315
6 Apr 2022, 8:37 AM
#2194
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: One-Page Checkout [Support Thread]

I am working on a site that has very slow shipping methods. (it makes sense because they are shipping very heavy things by freight and get specific quotes)

So, when I change an address manually, the opc-overlay is made active. When I chose a stored address from the dropdown it is not. This means that while the quotes are being received, the customer can hit the checkout button. Which causes issues.

At about line 700 in jquery.checkout_one.js I have a fix in

       // -----
    // Monitor the billing- and shipping-address blocks for changes.
    //
    jQuery(document).on('change', '#select-address-bill', function(event) {
        jQuery('#checkoutPayment > .opc-overlay').addClass('active');
        useSelectedAddress('bill', this.value);
    });
    jQuery(document).on('change', '#select-address-ship', function(event) {
        jQuery('#checkoutPayment > .opc-overlay').addClass('active');
        useSelectedAddress('ship', this.value);
    });

Not sure if this is the appropriate way of doing it or not ...

(or maybe I am missing something)

6 Apr 2022, 11:51 AM
#2195
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

niccol:

I am working on a site that has very slow shipping methods. (it makes sense because they are shipping very heavy things by freight and get specific quotes)

So, when I change an address manually, the opc-overlay is made active. When I chose a stored address from the dropdown it is not. This means that while the quotes are being received, the customer can hit the checkout button. Which causes issues.

At about line 700 in jquery.checkout_one.js I have a fix in

   // -----
// Monitor the billing- and shipping-address blocks for changes.
//
jQuery(document).on('change', '#select-address-bill', function(event) {
    jQuery('#checkoutPayment > .opc-overlay').addClass('active');
    useSelectedAddress('bill', this.value);
});
jQuery(document).on('change', '#select-address-ship', function(event) {
    jQuery('#checkoutPayment > .opc-overlay').addClass('active');
    useSelectedAddress('ship', this.value);
});
> 
> Not sure if this is the appropriate way of doing it or not ...
> 
> (or maybe I am missing something)
niccol, it's appropriate ... I'll need to do a more thorough review of the other processing path (i.e. where a different shipping method is chosen) to see if there's anything else that needs to be added.

GitHub tracking issue: <https://github.com/lat9/one_page_checkout/issues/316>
7 Apr 2022, 6:49 PM
#2196
helenewallis avatar

helenewallis

Totally Zenned

Join Date:
Jun 2016
Location:
Suffolk VA
Posts:
625
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

Is the Fluorspar template known to be compatible (or not) with the One Page Checkout plugin?

7 Apr 2022, 7:04 PM
#2197
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

HeleneWallis:

Is the Fluorspar template known to be compatible (or not) with the One Page Checkout plugin?
It's an unknown. You'll probably need to change the ot-total selector in the configuration, but YMMV.

7 Apr 2022, 7:21 PM
#2198
helenewallis avatar

helenewallis

Totally Zenned

Join Date:
Jun 2016
Location:
Suffolk VA
Posts:
625
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

lat9:

It's an unknown. You'll probably need to change the ot-total selector in the configuration, but YMMV.

Thanks, I probably won't risk it.

7 Apr 2022, 7:23 PM
#2199
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,682
Plugin Contributions:
56

Re: One-Page Checkout [Support Thread]

Build a test version of your site and try without fear. Risk mitigated!

https://docs.zen-cart.com/user/running/local_testing/

16 Apr 2022, 2:32 AM
#2200
nicksab avatar

nicksab

Totally Zenned

Join Date:
Apr 2011
Posts:
592
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

ZC 1.5.6 c
OPC Version 2.3.1

Hello all,

I am having an issue with OPC process. It is technically more of inconvenience and i am not sure if someone already addressed it before.

When customers go thru the checkout process, the billing and shipping address being displayed are the same ( normal behavior i believe)

If they change the shipping address and go on with the checkout process without clicking the "save change" button ( see picture) ,the desired shipping address is not saved and/or shown on the admin side, address book....As a result, the customer needs to be called or emailed to verify the shipping address. This site being a flower shop, it is really rare when billing and shipping are the same.

Attachment 19959

To my question, is it possible to force the save of the shipping address when change are made ( like an autosave or such )? or can the "save change" button be mandatory? so the checkout can not be continued if the shipping address changes are not saved.

Sorry for the long post and hope it makes sense.

Thank you for your time and help