Re: 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....s&goto=newpost
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
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....s&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.
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?
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
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.
1 Attachment(s)
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
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
Re: One-Page Checkout [Support Thread]
Fond memories of Mad Magazine and "Spy vs. Spy."
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.
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.
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
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.
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
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.