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

One-Page Checkout [Support Thread]

Views: 629,379

Results 1,881 to 1,900 of 3,077
21 Dec 2020, 5:10 PM
#1881
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

One-Page Checkout [Support Thread]

lat9:

Mike, the issue is that the site's got a jQuery issue

... that's "polluting the jQuery/javascript pool". Once a jQuery error occurs, nothing else can continue. You'll need to either correct or remove whatever's looking for that tabSlideOut function.

Thank you so much Cindy !! You are a Champion :smile:

I found the offender - it was me (guilty as charged) - I had inadvertently deleted that tabSlideOut jscript when doing some jscript minifying :wacko:

Once again you have come to the rescue!

many thanks,
Mike

3 Jan 2021, 6:56 PM
#1882
keneso avatar

keneso

Totally Zenned

Join Date:
May 2009
Posts:
1,273
Plugin Contributions:
3

Re: One-Page Checkout [Support Thread]

Working on a local install 1.5.7b

I tried installing it on a 1.5.7 (no suffix), and had the following outcome:
while trying to checkout I would get the following message (windows popup)
**Please contact the store owner; some required elements of this page are missing
**
under which I could see the page with the following
sorry, but our expedited checkout process cannot be used. click here to use our alternate checkout process.
As soon as closing the former popup the other page/message would disappear, thus not being able to click here

I tried installing it on 1.5.7b which I had modified the create_account with extra field, and when trying to access admin I would get a "warning error, please refresh page"
I uninstalled, and would not be able to reinstall it (yes I had removed the files, and run the sql)

I tried installing it on yet another 1.5.7b where I have not added extra file, and the install went smooth, not so the checkout:
With
Enable One-Page Checkout? set to ture
Enable Account Registration? set to false
I would be presented with the Zen Cart's original login/register page
Enable Account Registration? set to true
I was presented with the OPC login/register page
Chose to register, and went thru, although displaying the following message
**Please contact the store owner; some required elements of this page are missing
**
no other info below it (white background)
when closing the popup this time got the section to add address, did so, and when clicking the button got again the message
**Please contact the store owner; some required elements of this page are missing
**
closed the popup and get the recap page, with the following message on top of it
Your order's details have changed. Please review the current values and re-submit.
re-submitted and got again
**Please contact the store owner; some required elements of this page are missing
**
loop

Probably it is by design, and it's perhaps to quicken the process, but if privacy checkbox is enabled in configuration > regulations you can't pass the registration as it is not displayed.

Please advise
Thank you

3 Jan 2021, 7:05 PM
#1883
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

keneso:

Working on a local install 1.5.7b

I tried installing it on a 1.5.7 (no suffix), and had the following outcome:
while trying to checkout I would get the following message (windows popup)
**Please contact the store owner; some required elements of this page are missing
**
under which I could see the page with the following
sorry, but our expedited checkout process cannot be used. click here to use our alternate checkout process.
As soon as closing the former popup the other page/message would disappear, thus not being able to click here

I tried installing it on 1.5.7b which I had modified the create_account with extra field, and when trying to access admin I would get a "warning error, please refresh page"
I uninstalled, and would not be able to reinstall it (yes I had removed the files, and run the sql)

I tried installing it on yet another 1.5.7b where I have not added extra file, and the install went smooth, not so the checkout:
With
Enable One-Page Checkout? set to ture
Enable Account Registration? set to false
I would be presented with the Zen Cart's original login/register page
Enable Account Registration? set to true
I was presented with the OPC login/register page
Chose to register, and went thru, although displaying the following message
**Please contact the store owner; some required elements of this page are missing
**
no other info below it (white background)
when closing the popup this time got the section to add address, did so, and when clicking the button got again the message
**Please contact the store owner; some required elements of this page are missing
**
closed the popup and get the recap page, with the following message on top of it
Your order's details have changed. Please review the current values and re-submit.
re-submitted and got again
**Please contact the store owner; some required elements of this page are missing
**
loop

Probably it is by design, and it's perhaps to quicken the process, but if privacy checkbox is enabled in configuration > regulations you can't pass the registration as it is not displayed.

Please advise
Thank you
You didn't mention which version of OPC is in use (currently v2.3.6) ... but

  1. The Please contact the storeowner, some required elements are missing indicates that one or more of OPC's required CSS/jQuery selectors are missing. Use your browser's Developer Tools and inspect the 'Console' tab; that'll let you know which elements are missing.

  2. The "Your orders details have changed" loop. There's now an admin tool that will help you determine what's changed, see https://github.com/lat9/one_page_checkout/blob/master/pages/debugging_redirect.md for additional information.

3 Jan 2021, 7:42 PM
#1884
keneso avatar

keneso

Totally Zenned

Join Date:
May 2009
Posts:
1,273
Plugin Contributions:
3

Re: One-Page Checkout [Support Thread]

Thank you.
Sorry, last version v2.3.6

1
For the missing css/jquery I see this in the console
Missing #ottotal > div:first-child jquery.checkout_one.min.js:5:934

Running a find in notepad++ it finds
includes\modules\pages\checkout_one\jscript_main.php (2 hits)
Line 15: define('CHECKOUT_ONE_OTTOTAL_SELECTOR', '#ottotal > div:first-child');
Line 16: // define('CHECKOUT_ONE_OTTOTAL_SELECTOR', '#ottotal div span'); //-Value for YourStore template

2
Isn't the the output of yoursite.com/your_admin/opc_debug_redirection_error.php?id=ccc-yyyy-mm-dd same as the data in the mentioned logs?

Anyhow, what shall I do with it? ;)

I retried, and get same behaviour, I noticed that it kind of registers the default Florida (USA) when first entering data in creating account, and then when entering the shipping info it gets that (different than the former), when going to see "my account" there is no trace of Florida, yet it does come up in the log file.

4 Jan 2021, 11:48 AM
#1885
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

keneso:

Thank you.
Sorry, last version v2.3.6

1
For the missing css/jquery I see this in the console
Missing #ottotal > div:first-child jquery.checkout_one.min.js:5:934

Running a find in notepad++ it finds
includes\modules\pages\checkout_one\jscript_main.php (2 hits)
Line 15: define('CHECKOUT_ONE_OTTOTAL_SELECTOR', '#ottotal > div:first-child');
Line 16: // define('CHECKOUT_ONE_OTTOTAL_SELECTOR', '#ottotal div span'); //-Value for YourStore template

2
Isn't the the output of yoursite.com/your_admin/opc_debug_redirection_error.php?id=ccc-yyyy-mm-dd same as the data in the mentioned logs?

Anyhow, what shall I do with it? ;)

I retried, and get same behaviour, I noticed that it kind of registers the default Florida (USA) when first entering data in creating account, and then when entering the shipping info it gets that (different than the former), when going to see "my account" there is no trace of Florida, yet it does come up in the log file.

  1. That CHECKOUT_ONE_OTTOTAL_SELECTOR is a configuration setting; the 'bits' you found in the jscript_main.php file are wrapped with an if (!defined()) statement. You'll need to update that configuration setting, based on the formatting that your template provides for the order-totals section. What template is in use?

  2. No. That admin superuser tool runs through an OPC debug-log file looking for the situation that causes the 'Your order's details have changed' message. Copy the screen output into your clipboard and paste it into a 'CODE' block when you're writing your reply here.

4 Jan 2021, 6:16 PM
#1886
keneso avatar

keneso

Totally Zenned

Join Date:
May 2009
Posts:
1,273
Plugin Contributions:
3

Re: One-Page Checkout [Support Thread]

Thank you

1
Using a bootstrap clone

2
At first after logging in got "Please contact the store owner; some required elements of this page are missing" and two log files generated, one with na, and one with id number.

Running them in the admin as suggested returned for both:
Report completed.

After confirmation got again the above message, and as expected the "Your order's details have changed. Please review the current values and re-submit"
By rerunning the tool this time got the following

2021-01-04 18:42:40: Found a redirection back to checkout_one, difference follows.

'securityToken' => 'e5a7e9cdeea96058dc59c4c5ecf189a6', 'customers_host_address' => 'mypc', 'opc' => OnePageCheckout::__set_state(array ( 'isGuestCheckoutEnabled' => false, 'registeredAccounts' => true, 'guestIsActive' => false, 'isEnabled' => true, 'tempAddressValues' => array ( 'ship' => array ( 'address_book_id' => '6', 'customers_id' => '5', 'zone_name' => 'California', 'gender' => '', 'company' => '', 'firstname' => 'Pinco', 'lastname' => 'Pallino', 'street_address' => 'home rd', 'suburb' => '', 'postcode' => '92120', 'city' => 'los angeles', 'state' => '', 'country' => '223', 'country_id' => '223', 'zone_id' => '12', 'error' => false, 'error_state_input' => false, 'country_has_zones' => true, 'validated' => true, 'selected_country' => '223', 'state_field_label' => '', 'show_pulldown_states' => true, ), 'bill' => array ( 'gender' => '', 'company' => '', 'firstname' => '', 'lastname' => '', 'street_address' => '', 'suburb' => '', 'city' => '', 'postcode' => '', 'state' => '', 'country' => 223, 'country_id' => 223, 'zone_id' => 0, 'zone_name' => '', 'address_book_id' => 0, 'selected_country' => 223, 'country_has_zones' => true, 'state_field_label' => '', 'show_pulldown_states' => true, 'error' => false, 'error_state_input' => false, 'validated' => false, ), ), 'guestCustomerInfo' => NULL, 'guestCustomerId' => 2, 'tempBilltoAddressBookId' => 2, 'tempSendtoAddressBookId' => 3, 'dbStringType' => 'stringIgnoreNull', 'customerInfoOk' => NULL, 'billtoTempAddrOk' => NULL, 'sendtoTempAddrOk' => NULL, 'isVirtualOrder' => false, 'billtoAddressChangeable' => true, 'sendtoAddressChangeable' => true, 'observerAliases' => array ( 'NOTIFIY_ORDER_CART_SUBTOTAL_CALCULATE' => 'NOTIFY_ORDER_CART_SUBTOTAL_CALCULATE', ), 'label_params' => ' class="inputLabel"', )), 'cartID' => '10982', 'cart' => shoppingCart::__set_state(array( 'contents' => array ( '1:edff669e5da95c1d027b04d5412532fa' => array ( 'qty' => '1', 'attributes' => array ( 3 => '5', 4 => '1', ), ), ), 'total' => 299.99, 'weight' => 23, 'cartID' => '10982', 'content_type' => 'physical', 'free_shipping_item' => 0, 'free_shipping_weight' => 0, 'free_shipping_price' => 0.0, 'download_count' => 0, 'total_before_discounts' => 299.99, 'display_debug_messages' => false, 'flag_duplicate_msgs_set' => false, 'flag_duplicate_quantity_msgs_set' => array ( ), 'observerAliases' => array ( 'NOTIFIY_ORDER_CART_SUBTOTAL_CALCULATE' => 'NOTIFY_ORDER_CART_SUBTOTAL_CALCULATE', ), )), 'check_valid_prod' => true, 'language' => 'english', 'languages_id' => 2, 'languages_code' => 'it', 'layoutType' => 'legacy', 'currency' => 'EUR', 'today_is' => '2021-01-04', 'updateExpirations' => true, 'antispam_fieldname' => '7YE17Gm5ET', 'session_counter' => true, 'customers_ip_address' => '127.0.0.1', 'new_products_id_in_cart' => '1:edff669e5da95c1d027b04d5412532fa', 'valid_to_checkout' => true, 'cart_errors' => '', 'customer_id' => '5', 'customers_email_address' => '[email protected]', 'customer_default_address_id' => '6', 'customers_authorization' => '0', 'customer_first_name' => 'Pinco', 'customer_last_name' => 'Pallino', 'customer_country_id' => '223', 'customer_zone_id' => '12', 'billto' => '6', 'sendto' => '6', 'shipping_weight' => 26.0, 'shipping' => array ( 'id' => 'flat_flat', 'title' => 'Flat Rate (Best Way)', 'cost' => '5.00', ), 'cot_gv' => '0.00', 'order_current_total' => '0', ) '€304.99', ) 
4 Jan 2021, 7:19 PM
#1887
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

First, the OPC/Bootstrap 4-v3 template integration is still a work-in-progress.

Secondly, could you post a screenshot of that output? Unfortunately, the on-page highlighting of the differences doesn't show up in a copy/past operation.

4 Jan 2021, 10:33 PM
#1888
keneso avatar

keneso

Totally Zenned

Join Date:
May 2009
Posts:
1,273
Plugin Contributions:
3

Re: One-Page Checkout [Support Thread]

Here are the screenshots for each step
Hope this is what you meant

after clicking checkout

Attachment 19362

after clicking ok on popup

Attachment 19363

after clicking confirm order

Attachment 19362

after clicking ok on popup

Attachment 19364

5 Jan 2021, 11:44 AM
#1889
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

@keneso, I meant the output of that admin-level tool.

5 Jan 2021, 2:57 PM
#1890
keneso avatar

keneso

Totally Zenned

Join Date:
May 2009
Posts:
1,273
Plugin Contributions:
3

Re: One-Page Checkout [Support Thread]

For some reason I thought of it, but decided otherwise, sorry. ;)

Here the report screenshot, date is today's

Attachment 19366

5 Jan 2021, 3:17 PM
#1891
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

keneso:

For some reason I thought of it, but decided otherwise, sorry. ;)

Here the report screenshot, date is today's

Attachment 19366
That's a direct result of the "Missing elements" message; the order's value can't be 'found' by the jQuery processing, so the value passed to the confirmation phase is 0 instead of that formatted value.

5 Jan 2021, 3:34 PM
#1892
keneso avatar

keneso

Totally Zenned

Join Date:
May 2009
Posts:
1,273
Plugin Contributions:
3

Re: One-Page Checkout [Support Thread]

Thank you

So I need to find which is the selector for my template, and use that in "Order Total, jQuery Selector"?

Not related:
Could you please tell me the difference between registered and full account?

5 Jan 2021, 4:17 PM
#1893
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

keneso:

Thank you

So I need to find which is the selector for my template, and use that in "Order Total, jQuery Selector"?

Not related:
Could you please tell me the difference between registered and full account?
Using my browser's Developer Tools and inspecting the 'total' value yields

#ottotal > .ot-text

There's a bunch of online documentation on the OPC GitHub repository, answering your question regarding registered vs. full accounts and others: https://github.com/lat9/one_page_checkout/

5 Jan 2021, 5:26 PM
#1894
keneso avatar

keneso

Totally Zenned

Join Date:
May 2009
Posts:
1,273
Plugin Contributions:
3

Re: One-Page Checkout [Support Thread]

Thank you for your patience, and of course the help.
No errors.

5 Jan 2021, 6:52 PM
#1895
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

keneso:

Thank you for your patience, and of course the help.
No errors.
No errors = good! Thanks for the report back.

6 Jan 2021, 5:29 PM
#1896
keneso avatar

keneso

Totally Zenned

Join Date:
May 2009
Posts:
1,273
Plugin Contributions:
3

Re: One-Page Checkout [Support Thread]

I have yet another issue.

I activated the guest checkout, and get again the "Please contact the store owner; some required elements of this page are missing"
I fill in the fields for the address, and get:
Sorry, we are not accepting payments from your region at this time.

The payment module is check/money order
shipping is flat rate
order total all save the COD fee

I used USA address

And no log generated.

I have commented the following in CUSTOM/css/checkout_one.css

/.floatingBox { width: 49%; }/
.opc-view { position: relative; z-index: 2; /box-shadow: 3px 3px 5px 6px #ccc;/ }

However I get the same result when restoring them.

6 Jan 2021, 5:55 PM
#1897
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]

Have you changed the configuration settings in the admin? They default to not using Moneyorder or COD for guest checkout.

Identify (using a comma-separated list, intervening blanks are OK) any payment methods that are disallowed during guest-checkout.

These payment methods normally have no validation of purchase — e.g. moneyorder and cod — and can, if left enabled, result in unwanted spam purchases.

6 Jan 2021, 6:02 PM
#1898
keneso avatar

keneso

Totally Zenned

Join Date:
May 2009
Posts:
1,273
Plugin Contributions:
3

Re: One-Page Checkout [Support Thread]

Thank you.

I thought I had seen that the other day, but today could not see it ... must get some rest!

I cleared that, and the message indeed doesn't display, nevertheless, it keeps reloading the page.
Log, generated, and the tool reports: report completed.

And as per the spam, I am testing local, and will not use it on production.

6 Jan 2021, 6:10 PM
#1899
keneso avatar

keneso

Totally Zenned

Join Date:
May 2009
Posts:
1,273
Plugin Contributions:
3

Re: One-Page Checkout [Support Thread]

Some more info:

I disabled OPC, cleared the cache, reactivated OPC, reloaded the catalog, and when clicking checkout instead of the login page it reloaded the checkout page with the info from the previous test, and while reloading for a short time I noticed the following message, which disappears on reload
"sorry, but our expedited checkout process cannot be used. click here to use our alternate checkout process."

6 Jan 2021, 6:21 PM
#1900
keneso avatar

keneso

Totally Zenned

Join Date:
May 2009
Posts:
1,273
Plugin Contributions:
3

Re: One-Page Checkout [Support Thread]

Nevermind, must have been a cache issue.

disabled OPC
closed everything
cleared cache
restarted pc
cleared cache again
reactivated OPC
and it worked fine

Thank you.