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

One-Page Checkout [Support Thread]

Views: 629,384

Results 1,981 to 2,000 of 3,077
15 Apr 2021, 5:41 PM
#1981
llemberg avatar

llemberg

New Zenner

Join Date:
Sep 2008
Posts:
22
Plugin Contributions:
0

One-Page Checkout [Support Thread]

Hmmm... when I verified my files against one_page_checkout-2.3.7.zip, my OnePageCheckout.php was a match. Here is line 2323 from my OnePageCheckout.php:

trigger_error("Unknown/invalid billto address #{$_SESSION['billto']} for customer#{$_SESSION['customer_id']}.", E_USER_ERROR);

which looks like the error message I received.

15 Apr 2021, 6:38 PM
#1982
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

llemberg:

Hmmm... when I verified my files against one_page_checkout-2.3.7.zip, my OnePageCheckout.php was a match. Here is line 2323 from my OnePageCheckout.php:

trigger_error("Unknown/invalid billto address #{$_SESSION['billto']} for customer#{$_SESSION['customer_id']}.", E_USER_ERROR);

> which looks like the error message I received.
My bad, I was looking at the version in the forthcoming v2.3.8 release.
16 Apr 2021, 12:51 PM
#1983
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.

Now I have another problem.

I have set in
configuration > my store the basis of product tax, and basis of shipping tax to "store", when adding product the cart shows the full price (tax included), when clicking to checkout, and selecting guest (haven't tested new or existing customer) the price is displayed without tax, and when going back to edit cart (shopping_cart.html) the price has changed and displays without tax.
The tax column is not displayed in the table

<?php // display tax info if exists if ($display_tax_column) { ?> <td class="cartTotalDisplay"><?php echo zen_display_tax_value($order->products[$i]['tax']); ?>%</td> <?php } // endif tax info display ?> ``` > > What do you think I messed up? You didn't mess up anything ... I did. I've replicated this issue locally and have provided a correction via [this](https://github.com/lat9/one_page_checkout/issues/294) OPC GitHub issue.

The underlying issue is that, for stores having configured My Store :: Store Country as a country containing zones (e.g. Italy) with My Store :: Basis of Product Tax set to Store, the order-class determines the tax-rate to apply via database lookup for a match on a database lookup of an address' country and zone-id. Unfortunately, the OnePageCheckout.php class was not initializing its temporary billing/shipping addresses to include the value present in My Store :: Store Zone.

With that zone_id set to 0, no matching country/zone pair was found in the database ... resulting in a 0-valued tax-rate.

That correction is now staged on the OPC GitHub repository for the v2.3.8 release. I'll wait for that release until you can provide third-party verification that the correction actually corrects the issue!

16 Apr 2021, 1:16 PM
#1984
keneso avatar

keneso

Totally Zenned

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

Re: One-Page Checkout [Support Thread]

Thank you.
Will give feedback.

16 Apr 2021, 3:10 PM
#1985
keneso avatar

keneso

Totally Zenned

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

Re: One-Page Checkout [Support Thread]

lat9:

That correction is now staged on the OPC GitHub repository for the v2.3.8 release. I'll wait for that release until you can provide third-party verification that the correction actually corrects the issue!

It's a go.
Thank you.

17 Apr 2021, 2:30 PM
#1986
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

I've just submitted v2.3.8 of One-Page Checkout for the Zen Cart moderators' review and will post back here when it's available for download.

 This release contains changes associated with the following GitHub issues:

#291: zc158 compatibility, adding global $languageLoader;.
#292: Using global $db; instead of $GLOBALS['db'].
#293: Re-organize the checkout_one page's language file, grouping all jQuery-based constants as an aid in language translations.
#294: Correct "disappearing taxes" when a store's country has zones and the tax-basis is 'Store'.

20 Apr 2021, 2:43 PM
#1987
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

lat9:

I've just submitted v2.3.8 of One-Page Checkout for the Zen Cart moderators' review and will post back here when it's available for download.

 This release contains changes associated with the following GitHub issues:

#291: zc158 compatibility, adding global $languageLoader;.
#292: Using global $db; instead of $GLOBALS['db'].
#293: Re-organize the checkout_one page's language file, grouping all jQuery-based constants as an aid in language translations.
#294: Correct "disappearing taxes" when a store's country has zones and the tax-basis is 'Store'.
Now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2095

22 Apr 2021, 1:47 PM
#1988
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 searched but did not find any mention of this error. After entering the address and clicking update, I get this:

jquery.checkout_one.min.js?1598622382:5
Uncaught TypeError: Cannot read property 'length' of null

Zen Cart 1.5.7a
OPC 2.3.4
jQuery 1.7.1 (it's an old template)

Thanks.

22 Apr 2021, 3:36 PM
#1989
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

jeking:

I searched but did not find any mention of this error. After entering the address and clicking update, I get this:

jquery.checkout_one.min.js?1598622382:5
Uncaught TypeError: Cannot read property 'length' of null

Zen Cart 1.5.7a
OPC 2.3.4
jQuery 1.7.1 (it's an old template)

Thanks.
That's going to be a bit difficult to isolate, since it's the minimized jQuery file, but I'm guessing that it's got to do with that very, very woefully old version of jQuery. I'll need to review the jQuery base requirements for OPC's jQuery processing and will most likely provide an update that disallows the OPC processing if the current jQuery version is prior to that minimum-version requirement.

22 Apr 2021, 3:50 PM
#1990
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]

lat9:

That's going to be a bit difficult to isolate, since it's the minimized jQuery file, but I'm guessing that it's got to do with that very, very woefully old version of jQuery. I'll need to review the jQuery base requirements for OPC's jQuery processing and will most likely provide an update that disallows the OPC processing if the current jQuery version is prior to that minimum-version requirement.

If it will be helpful, I can switch to the unminimized version and report back.

22 Apr 2021, 4:00 PM
#1991
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

jeking:

If it will be helpful, I can switch to the unminimized version and report back.
Thanks, @jeking, that would help pinpoint where the issue is.

22 Apr 2021, 4:44 PM
#1992
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]

lat9:

Thanks, @jeking, that would help pinpoint where the issue is.

I switched to the uncompressed 1.12.4 and here is the full console log

jquery.checkout_one.min.js?1598622382:5 setFormSubmitButton, payment-module: null
jquery.checkout_one.min.js?1598622382:5 Showing "confirm"
jquery.checkout_one.min.js?1598622382:5 Setting orderConfirmed (0), submitter (null)
jquery.checkout_one.min.js?1598622382:5 jQuery version: 1.12.4
jquery.checkout_one.min.js?1598622382:5 saveCustomerInfo, starts ...
index.php?main_page=checkout_one&zenid=eh8g36jjbg0uhqlfqplgu0ham6:58 {cache: false, type: "POST", traditional: true, dataType: "json", timeout: 5000,##…}
jquery.checkout_one.min.js?1598622382:5 Uncaught TypeError: Cannot read property 'length' of null
at Object.<anonymous> (jquery.checkout_one.min.js?1598622382:5)
at fire (jscript__jquery.min.js:3232)
at Object.fireWith [as resolveWith] (jscript__jquery.min.js:3362)
at Object.deferred.<computed> [as resolve] (jscript__jquery.min.js:3461)
at Object.success (index.php?main_page=checkout_one&zenid=eh8g36jjbg0uhqlfqplgu0ham6:66)
at fire (jscript__jquery.min.js:3232)
at Object.fireWith [as resolveWith] (jscript__jquery.min.js:3362)
at done (jscript__jquery.min.js:9840)
at XMLHttpRequest.callback (jscript__jquery.min.js:10311)

FYI, I get the same error (Uncaught TypeError: Cannot read property 'length' of null) when using 3.6.0

22 Apr 2021, 5:19 PM
#1993
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: One-Page Checkout [Support Thread]

@jeking,
instead of using non-minified files for only jQuery itself, I think what lat9 would find most useful is using the OPC's non-minified files.
Switch it in Admin -> Configuration -> OPC -> Load Minified Script Files

22 Apr 2021, 5:21 PM
#1994
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

DrByte:

@jeking,
instead of using non-minified files for only jQuery itself, I think what lat9 would find most useful is using the OPC's non-minified files.
Switch it in Admin -> Configuration -> OPC -> Load Minified Script Files
Yep, that's what I'm looking for; thanks, DrByte.

22 Apr 2021, 5:35 PM
#1995
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]

lat9:

Yep, that's what I'm looking for; thanks, DrByte.

Oh sorry, I misunderstood. Do that I get this:

jquery.checkout_one.js?1598622382:972
Uncaught TypeError: Cannot read property 'length' of null
at Object.<anonymous> (jquery.checkout_one.js?1598622382:972)
at n (jscript__jquery.min.js:2)
at Object.fireWith (jscript__jquery.min.js:2)
at Object.fire [as resolve] (jscript__jquery.min.js:2)
at Object.success (index.php?main_page=checkout_one:66)
at n (jscript__jquery.min.js:2)
at Object.fireWith [as resolveWith] (jscript__jquery.min.js:2)
at w (jscript__jquery.min.js:4)
at XMLHttpRequest.d (jscript__jquery.min.js:4)

22 Apr 2021, 6:06 PM
#1996
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

Jim, there have been numerous changes/corrections to the jquery.checkout_one.js in the time since OPC v2.3.4 was released last August. Might I suggest that it's time to upgrade to v2.3.8?

22 Apr 2021, 6:13 PM
#1997
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]

lat9:

Jim, there have been numerous changes/corrections to the jquery.checkout_one.js in the time since OPC v2.3.4 was released last August. Might I suggest that it's time to upgrade to v2.3.8?

That did cross my mind. I asked about the error first in case it was clear it was unrelated to a newer version. Since that is clearly not the case, I will do the upgrade and report back. Thank you!

10 May 2021, 3:51 PM
#1998
lintong avatar

lintong

New Zenner

Join Date:
May 2021
Location:
UK
Posts:
5
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

Hi Please help

This is my first post so please forgive me if I don't give enough information.

I have installed OPC on v1.5.7c and when I run the store in non SSL mode it works fine. As soon as I enable SSL then I get a WHOOPS! YOUR SESSION HAS EXPIRED. page when I click check out as a guest. Part of the log file is below ( it wouldnt let me post the fuull log). Has anyone any ideas how to resolve this. thank you.

2021-05-10 16:31:36 checkout_one_observer: checkout_one redirect 1a: array (
'main_page' => 'checkout_shipping',
)

array (
'securityToken' => '67690581ed153967dcea3f1104ce6db5',
'customers_host_address' => 'broadband.bt.com',
'SSL_SESSION_ID' => NULL,
'opc' =>
OnePageCheckout::__set_state(array(
'isGuestCheckoutEnabled' => true,
'registeredAccounts' => true,
'guestIsActive' => false,
'isEnabled' => true,
'tempAddressValues' => NULL,
'guestCustomerInfo' => NULL,
'guestCustomerId' => 3,
'tempBilltoAddressBookId' => 3,
'tempSendtoAddressBookId' => 4,
'dbStringType' => 'stringIgnoreNull',
'paypalAddressOverride' => NULL,
'paypalTotalValue' => NULL,
'paypalTotalValueChanged' => NULL,
'paypalNoShipping' => NULL,
'customerInfoOk' => NULL,
'billtoTempAddrOk' => NULL,
'sendtoTempAddrOk' => NULL,
'isVirtualOrder' => NULL,
'billtoAddressChangeable' => NULL,
'sendtoAddressChangeable' => NULL,
'observerAliases' =>
array (
'NOTIFIY_ORDER_CART_SUBTOTAL_CALCULATE' => 'NOTIFY_ORDER_CART_SUBTOTAL_CALCULATE',
),
)),
'cartID' => '',
'cart' =>
shoppingCart::__set_state(array(
'contents' =>
array (
'3:4f4ef1da0c407f06362a1c6ae9652e3b' =>
array (
'qty' => 1.0,
'attributes' =>
array (
1 => 1,
2 => 4,
),
),
),
'total' => 5.0,
'weight' => 290.0,
'cartID' => '88750',
'content_type' => false,
'free_shipping_item' => 0,
'free_shipping_weight' => 0,
'free_shipping_price' => 0.0,
'download_count' => 0,
'total_before_discounts' => 5.0,
'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,
'navigation' =>
navigationHistory::__set_state(array(
'path' =>
array (
0 =>
array (
'page' => 'index',
'mode' => 'SSL',
'get' =>
array (
'cPath' => '1_3',
),
'post' =>
array (
),
),
1 =>
array (
'page' => 'product_info',
'mode' => 'SSL',
'get' =>
array (
'cPath' => '1_3',
'products_id' => '3',
'number_of_uploads' => '0',
'action' => 'add_product',
),
'post' =>
array (
),
),
2 =>
array (
'page' => 'shopping_cart',
'mode' => 'SSL',
'get' =>
array (
),
'post' =>
array (
),
),
3 =>
array (
'page' => 'checkout_shipping',
'mode' => 'SSL',
'get' =>
array (
),
'post' =>
array (
),
),
),
'snapshot' =>
array (
'page' => 'product_info',
'mode' => 'SSL',
'get' =>
array (
'cPath' => '1_3',
'products_id' => '3',
),
'post' =>
array (
),
),
'observerAliases' =>
array (
'NOTIFIY_ORDER_CART_SUBTOTAL_CALCULATE' => 'NOTIFY_ORDER_CART_SUBTOTAL_CALCULATE',
),
)),
'language' => 'english',
'languages_id' => 1,
'languages_code' => 'en',
'layoutType' => 'legacy',
'currency' => 'GBP',
'today_is' => '2021-05-10',
'updateExpirations' => true,
'antispam_fieldname' => '9WG9nBpwNV',
'session_counter' => true,
'customers_ip_address' => '2a00:23c6:3b94:8700:b4a8:7c5:210f:f68',
'new_products_id_in_cart' => '3:4f4ef1da0c407f06362a1c6ae9652e3b',
'valid_to_checkout' => true,
'cart_errors' => '',
)
2021-05-10 16:31:37 checkout_one: CHECKOUT_ONE_ENTRY, version (2.3.8 (2021-04-17)), Zen Cart version (1.5.7c), template (winchester_responsive)
2021-05-10 16:31:37 OnePageCheckout: startGuestOnePageCheckout, exit: sendto: not set, billto: not setOnePageCheckout::__set_state(array(
'isGuestCheckoutEnabled' => true,
'registeredAccounts' => true,
'guestIsActive' => false,
'isEnabled' => true,
'tempAddressValues' =>
array (
'ship' =>
array (
'gender' => '',
'company' => '',
'firstname' => '',
'lastname' => '',
'street_address' => '',
'suburb' => '',
'city' => '',
'postcode' => '',
'state' => '',
'country' => 222,
'country_id' => 222,
'zone_id' => 0,
'zone_name' => '0',
'address_book_id' => 0,
'selected_country' => 222,
'country_has_zones' => false,
'state_field_label' => '',
'show_pulldown_states' => true,
'error' => false,
'error_state_input' => false,
'validated' => false,
),
'bill' =>
array (
'gender' => '',
'company' => '',
'firstname' => '',
'lastname' => '',
'street_address' => '',
'suburb' => '',
'city' => '',
'postcode' => '',
'state' => '',
'country' => 222,
'country_id' => 222,
'zone_id' => 0,
'zone_name' => '0',
'address_book_id' => 0,
'selected_country' => 222,
'country_has_zones' => false,
'state_field_label' => '',
'show_pulldown_states' => true,
'error' => false,
'error_state_input' => false,
'validated' => false,
),
),
'guestCustomerInfo' => NULL,
'guestCustomerId' => 3,
'tempBilltoAddressBookId' => 3,
'tempSendtoAddressBookId' => 4,
'dbStringType' => 'stringIgnoreNull',
'paypalAddressOverride' => NULL,
'paypalTotalValue' => NULL,
'paypalTotalValueChanged' => NULL,
'paypalNoShipping' => NULL,
'customerInfoOk' => NULL,
'billtoTempAddrOk' => NULL,
'sendtoTempAddrOk' => NULL,
'isVirtualOrder' => NULL,
'billtoAddressChangeable' => NULL,
'sendtoAddressChangeable' => NULL,
'observerAliases' =>
array (
'NOTIFIY_ORDER_CART_SUBTOTAL_CALCULATE' => 'NOTIFY_ORDER_CART_SUBTOTAL_CALCULATE',
),
))
2021-05-10 16:31:41 checkout_one: CHECKOUT_ONE_ENTRY, version (2.3.8 (2021-04-17)), Zen Cart version (1.5.7c), template (winchester_responsive)
2021-05-10 16:31:41 OnePageCheckout: startGuestOnePageCheckout, exit: sendto: not set, billto: not setOnePageCheckout::__set_state(array(
'isGuestCheckoutEnabled' => true,
'registeredAccounts' => true,
'guestIsActive' => true,
'isEnabled' => true,
'tempAddressValues' =>
array (
'ship' =>
array (
'gender' => '',
'company' => '',
'firstname' => '',
'lastname' => '',
'street_address' => '',
'suburb' => '',
'city' => '',
'postcode' => '',
'state' => '',
'country' => 222,
'country_id' => 222,
'zone_id' => 0,
'zone_name' => '0',
'address_book_id' => 0,
'selected_country' => 222,
'country_has_zones' => false,
'state_field_label' => '',
'show_pulldown_states' => true,
'error' => false,
'error_state_input' => false,
'validated' => false,
),
'bill' =>
array (
'gender' => '',
'company' => '',
'firstname' => '',
'lastname' => '',
'street_address' => '',
'suburb' => '',
'city' => '',
'postcode' => '',
'state' => '',
'country' => 222,
'country_id' => 222,
'zone_id' => 0,
'zone_name' => '0',
'address_book_id' => 0,
'selected_country' => 222,
'country_has_zones' => false,
'state_field_label' => '',
'show_pulldown_states' => true,
'error' => false,
'error_state_input' => false,
'validated' => false,
),
),
'guestCustomerInfo' =>
array (
'firstname' => '',
'lastname' => '',
'email_address' => '',
'telephone' => '',
'dob' => '',
),
'guestCustomerId' => 3,
'tempBilltoAddressBookId' => 3,
'tempSendtoAddressBookId' => 4,
'dbStringType' => 'stringIgnoreNull',
'paypalAddressOverride' => NULL,
'paypalTotalValue' => NULL,
'paypalTotalValueChanged' => NULL,
'paypalNoShipping' => NULL,
'customerInfoOk' => false,
'billtoTempAddrOk' => false,
'sendtoTempAddrOk' => false,
'isVirtualOrder' => NULL,
'billtoAddressChangeable' => NULL,
'sendtoAddressChangeable' => NULL,
'observerAliases' =>
array (
'NOTIFIY_ORDER_CART_SUBTOTAL_CALCULATE' => 'NOTIFY_ORDER_CART_SUBTOTAL_CALCULATE',
),
))
2021-05-10 16:34:20 checkout_one_observer: checkout_one redirect 1a: array (
'main_page' => 'checkout_shipping',
)

array (
'securityToken' => 'd26ea0bee3497c9a50256128f9cf44ad',
'customers_host_address' => 'broadband.bt.com',
'SSL_SESSION_ID' => NULL,
'opc' =>
OnePageCheckout::__set_state(array(
'isGuestCheckoutEnabled' => true,
'registeredAccounts' => true,
'guestIsActive' => false,
'isEnabled' => true,
'tempAddressValues' => NULL,
'guestCustomerInfo' => NULL,
'guestCustomerId' => 3,
'tempBilltoAddressBookId' => 3,
'tempSendtoAddressBookId' => 4,
'dbStringType' => 'stringIgnoreNull',
'paypalAddressOverride' => NULL,
'paypalTotalValue' => NULL,
'paypalTotalValueChanged' => NULL,
'paypalNoShipping' => NULL,
'customerInfoOk' => NULL,
'billtoTempAddrOk' => NULL,
'sendtoTempAddrOk' => NULL,
'isVirtualOrder' => NULL,
'billtoAddressChangeable' => NULL,
'sendtoAddressChangeable' => NULL,
'observerAliases' =>
array (
'NOTIFIY_ORDER_CART_SUBTOTAL_CALCULATE' => 'NOTIFY_ORDER_CART_SUBTOTAL_CALCULATE',
),
)),
'cartID' => '',
'cart' =>
shoppingCart::__set_state(array(
'contents' =>
array (
'3:4f4ef1da0c407f06362a1c6ae9652e3b' =>
array (
'qty' => 1.0,
'attributes' =>
array (
1 => 1,
2 => 4,
),
),
),
'total' => 5.0,
'weight' => 290.0,
'cartID' => '99995',
'content_type' => false,
'free_shipping_item' => 0,
'free_shipping_weight' => 0,
'free_shipping_price' => 0.0,
'download_count' => 0,
'total_before_discounts' => 5.0,
'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,
'navigation' =>
navigationHistory::__set_state(array(
'path' =>
array (
0 =>
array (
'page' => 'index',
'mode' => 'SSL',
'get' =>
array (
'cPath' => '1_3',
),
'post' =>
array (
),
),
1 =>
array (
'page' => 'product_info',
'mode' => 'SSL',
'get' =>
array (
'cPath' => '1_3',
'products_id' => '3',
'number_of_uploads' => '0',
'action' => 'add_product',
),
'post' =>
array (
),
),
2 =>
array (
'page' => 'shopping_cart',
'mode' => 'SSL',
'get' =>
array (
),
'post' =>
array (
),
),
3 =>
array (
'page' => 'checkout_shipping',
'mode' => 'SSL',
'get' =>
array (
),
'post' =>
array (
),
),
),
'snapshot' =>
array (
'page' => 'product_info',
'mode' => 'SSL',
'get' =>
array (
'cPath' => '1_3',
'products_id' => '3',
),
'post' =>
array (
),
),
'observerAliases' =>
array (
'NOTIFIY_ORDER_CART_SUBTOTAL_CALCULATE' => 'NOTIFY_ORDER_CART_SUBTOTAL_CALCULATE',
),
)),
'language' => 'english',
'languages_id' => 1,
'languages_code' => 'en',
'layoutType' => 'legacy',
'currency' => 'GBP',
'today_is' => '2021-05-10',
'updateExpirations' => true,
'antispam_fieldname' => 'tkcK433Uzo',
'session_counter' => true,
'customers_ip_address' => '2a00:23c6:3b94:8700:91d3:13f8:5e6f:c638',
'new_products_id_in_cart' => '3:4f4ef1da0c407f06362a1c6ae9652e3b',
'valid_to_checkout' => true,
'cart_errors' => '',
)
2021-05-10 16:34:21 checkout_one: CHECKOUT_ONE_ENTRY, version (2.3.8 (2021-04-17)), Zen Cart version (1.5.7c), template (winchester_responsive)
2021-05-10 16:34:21 OnePageCheckout: startGuestOnePageCheckout, exit: sendto: not set, billto: not setOnePageCheckout::__set_state(array(
'isGuestCheckoutEnabled' => true,
'registeredAccounts' => true,
'guestIsActive' => false,
'isEnabled' => true,
'tempAddressValues' =>
array (
'ship' =>
array (
'gender' => '',
'company' => '',
'firstname' => '',
'lastname' => '',
'street_address' => '',
'suburb' => '',
'city' => '',
'postcode' => '',
'state' => '',
'country' => 222,
'country_id' => 222,
'zone_id' => 0,
'zone_name' => '0',
'address_book_id' => 0,
'selected_country' => 222,
'country_has_zones' => false,
'state_field_label' => '',
'show_pulldown_states' => true,
'error' => false,
'error_state_input' => false,
'validated' => false,
),
'bill' =>
array (
'gender' => '',
'company' => '',
'firstname' => '',
'lastname' => '',
'street_address' => '',
'suburb' => '',
'city' => '',
'postcode' => '',
'state' => '',
'country' => 222,
'country_id' => 222,
'zone_id' => 0,
'zone_name' => '0',
'address_book_id' => 0,
'selected_country' => 222,
'country_has_zones' => false,
'state_field_label' => '',
'show_pulldown_states' => true,
'error' => false,
'error_state_input' => false,
'validated' => false,
),
),
'guestCustomerInfo' => NULL,
'guestCustomerId' => 3,
'tempBilltoAddressBookId' => 3,
'tempSendtoAddressBookId' => 4,
'dbStringType' => 'stringIgnoreNull',
'paypalAddressOverride' => NULL,
'paypalTotalValue' => NULL,
'paypalTotalValueChanged' => NULL,
'paypalNoShipping' => NULL,
'customerInfoOk' => NULL,
'billtoTempAddrOk' => NULL,
'sendtoTempAddrOk' => NULL,
'isVirtualOrder' => NULL,
'billtoAddressChangeable' => NULL,
'sendtoAddressChangeable' => NULL,
'observerAliases' =>
array (
'NOTIFIY_ORDER_CART_SUBTOTAL_CALCULATE' => 'NOTIFY_ORDER_CART_SUBTOTAL_CALCULATE',
),
))
2021-05-10 16:34:32 checkout_one: CHECKOUT_ONE_ENTRY, version (2.3.8 (2021-04-17)), Zen Cart version (1.5.7c), template (winchester_responsive)
2021-05-10 16:34:32 OnePageCheckout: startGuestOnePageCheckout, exit: sendto: not set, billto: not setOnePageCheckout::__set_state(array(
'isGuestCheckoutEnabled' => true,
'registeredAccounts' => true,
'guestIsActive' => true,
'isEnabled' => true,
'tempAddressValues' =>
array (
'ship' =>
array (
'gender' => '',
'company' => '',
'firstname' => '',
'lastname' => '',
'street_address' => '',
'suburb' => '',
'city' => '',
'postcode' => '',
'state' => '',
'country' => 222,
'country_id' => 222,
'zone_id' => 0,
'zone_name' => '0',
'address_book_id' => 0,
'selected_country' => 222,
'country_has_zones' => false,
'state_field_label' => '',
'show_pulldown_states' => true,
'error' => false,
'error_state_input' => false,
'validated' => false,
),
'bill' =>
array (
'gender' => '',
'company' => '',
'firstname' => '',
'lastname' => '',
'street_address' => '',
'suburb' => '',
'city' => '',
'postcode' => '',
'state' => '',
'country' => 222,
'country_id' => 222,
'zone_id' => 0,
'zone_name' => '0',
'address_book_id' => 0,
'selected_country' => 222,
'country_has_zones' => false,
'state_field_label' => '',
'show_pulldown_states' => true,
'error' => false,
'error_state_input' => false,
'validated' => false,
),
),
'guestCustomerInfo' =>
array (
'firstname' => '',
'lastname' => '',
'email_address' => '',
'telephone' => '',
'dob' => '',
),
'guestCustomerId' => 3,
'tempBilltoAddressBookId' => 3,
'tempSendtoAddressBookId' => 4,
'dbStringType' => 'stringIgnoreNull',
'paypalAddressOverride' => NULL,
'paypalTotalValue' => NULL,
'paypalTotalValueChanged' => NULL,
'paypalNoShipping' => NULL,
'customerInfoOk' => false,
'billtoTempAddrOk' => false,
'sendtoTempAddrOk' => false,
'isVirtualOrder' => NULL,
'billtoAddressChangeable' => NULL,
'sendtoAddressChangeable' => NULL,
'observerAliases' =>
array (
'NOTIFIY_ORDER_CART_SUBTOTAL_CALCULATE' => 'NOTIFY_ORDER_CART_SUBTOTAL_CALCULATE',
),
))
2021-05-10 16:41:54 checkout_one_observer: checkout_one redirect 1a: array (
'main_page' => 'checkout_shipping',
)

array (
'securityToken' => '8af9952d712f141b5d363cf765bafe42',
'customers_host_address' => 'broadband.bt.com',
'SSL_SESSION_ID' => NULL,
'opc' =>
OnePageCheckout::__set_state(array(
'isGuestCheckoutEnabled' => true,
'registeredAccounts' => true,
'guestIsActive' => false,
'isEnabled' => true,
'tempAddressValues' => NULL,
'guestCustomerInfo' => NULL,
'guestCustomerId' => 3,
'tempBilltoAddressBookId' => 3,
'tempSendtoAddressBookId' => 4,
'dbStringType' => 'stringIgnoreNull',
'paypalAddressOverride' => NULL,
'paypalTotalValue' => NULL,
'paypalTotalValueChanged' => NULL,
'paypalNoShipping' => NULL,
'customerInfoOk' => NULL,
'billtoTempAddrOk' => NULL,
'sendtoTempAddrOk' => NULL,
'isVirtualOrder' => NULL,
'billtoAddressChangeable' => NULL,
'sendtoAddressChangeable' => NULL,
'observerAliases' =>
array (
'NOTIFIY_ORDER_CART_SUBTOTAL_CALCULATE' => 'NOTIFY_ORDER_CART_SUBTOTAL_CALCULATE',
),
)),
'cartID' => '',
'cart' =>
shoppingCart::__set_state(array(
'contents' =>
array (
'5:2f1d77905d81c46c3e7d0db87e48588f' =>
array (
'qty' => 1.0,
'attributes' =>
array (
1 => 1,
2 => 4,
),
),
),
'total' => 4.0,

10 May 2021, 5:12 PM
#1999
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

@Lintong, welcome to the Zen Cart forums! Those OPC log files, as you found, can get very large ... to large for posting on the forums directly.

When you 'enabled' SSL in your site's /includes/configure.php and the /YOUR_ADMIN/includes/configure.php, what did you change? The recommended settings (for the storefront) are (pretending that your site is example.com):

define('HTTP_SERVER', 'https://example.com');
define('HTTPS_SERVER', 'https://example.com');
define('ENABLE_SSL', 'true');

Is that different from what you've used? Note, too, that Zen Cart automatically forces the /includes/configure.php file to be read-only, so if you think you've made changes, check the file again just to be sure.

10 May 2021, 5:25 PM
#2000
lintong avatar

lintong

New Zenner

Join Date:
May 2021
Location:
UK
Posts:
5
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

Hi,

Thank you for replying.

The settings are as you have said. I reinstalled with ssl so the settings would be correct.