OK, got one that's bugging me. OPC stopped working and my site is not logging any errors so having a hard time tracking it down. Running Firefox developer console I get a type error when the submit butting is hit. At first it was giving ot_totals is null, now it just says r after some fiddling.. On a almost clean install of 155f, I get no errors or problems with OPC working so OPC should be good. Uniformity, I was working on three other changes, so one of them could be affecting OPC. I'm thinking that the major change in shopping cart design I did may have something to do, but the tracking I was doing is not giving up any hints, just some bugs I need to fix yet. Doing a session dump is not showing any difference between working and not working sites.
What would fire off the type error in OPC? I'm thinking its something I'm feeding it or not from the shopping cart..
I tried changing jQuery to 1.12.4 and same issues.
All orders are affected so changed to the default checkout pages for now.
Site info:
ZC 155f
PHP 7.1.7
OPC 1.5.0
Template: Modified RSB 1.0
Web Console:
Code:
setFormSubmitButton, payment-module: freecharger -------------------- jquery.checkout_one.min.js:5:898
Showing "confirm" -------------------- jquery.checkout_one.min.js:5:898
Setting orderConfirmed (0), submitter (null) -------------------- jquery.checkout_one.min.js:5:898
jQuery version: 3.2.1 -------------------- jquery.checkout_one.min.js:5:898
submitFunction, 2 arguments: 0, 0, -------------------- jquery.checkout_one.min.js:5:898
TypeError: r is null[Learn More] -------------------- jquery.checkout_one.min.js:5:1129
submitFunction -------------------- https://**************/includes/modules/pages/checkout_one/jquery.checkout_one.min.js:5:1129
<anonymous> -------------------- https://**************/includes/modules/pages/checkout_one/jquery.checkout_one.min.js:5:9216
dispatch -------------------- https://code.jquery.com/jquery-3.2.1.min.js:3:10264
add/q.handle -------------------- https://code.jquery.com/jquery-3.2.1.min.js:3:8326
OPC log:
Code:
2018-05-26 09:24:20 checkout_one: CHECKOUT_ONE_ENTRY, version (1.5.0 (2018-01-10)), Zen Cart version (1.5.5f), template (dsw)
2018-05-26 09:24:20 checkout_one: CHECKOUT_ONE_AFTER_SHIPPING_QUOTES
array (
'id' => 'free_free',
'title' => 'Free Shipping',
'cost' => 0,
)order Object
(
[info] => Array
(
[order_status] => 1
[currency] => USD
[currency_value] => 1.00000000
[payment_method] =>
[payment_module_code] =>
[coupon_code] =>
[shipping_method] => Free Shipping
[shipping_module_code] => free_free
[shipping_cost] => 0
[subtotal] => 0
[shipping_tax] => 0
[tax] => 0
[total] => 0
[tax_groups] => Array
(
[Sales Tax] => 0
)
[comments] =>
[ip_address] => **********************
)
[totals] => Array
(
)
[products] => Array
(
[0] => Array
(
[qty] => 1
[name] => Zen Awesome Cloud
[model] => AWC101
[num] => AWC101
[tax_groups] => Array
(
[Sales Tax] => 0
)
[tax_description] => Sales Tax
[price] => 0
[final_price] => 0
[onetime_charges] => 0
[weight] => 0
[products_priced_by_attribute] => 0
[product_is_free] => 1
[products_discount_type] => 0
[products_discount_type_from] => 0
[id] => 16:c361f56d8f74fe8fd01ef573fca714b0
[rowClass] => rowEven
[tax] => 0
[attributes] => Array
(
[0] => Array
(
[option] => ZC Plugin
[value] => Free
[option_id] => 5
[value_id] => 9
[prefix] => +
[price] => 0.0000
)
)
)
)
[customer] => Array
(
[firstname] => dave
[lastname] => *******
[company] =>
[street_address] => **************
[suburb] =>
[city] => *********
[postcode] => **********
[state] => California
[zone_id] => 12
[country] => Array
(
[id] => 223
[title] => United States
[iso_code_2] => US
[iso_code_3] => USA
)
[format_id] => 2
[telephone] => *************
[email_address] => **************.com
)
[delivery] => Array
(
[firstname] =>
[lastname] =>
[company] =>
[street_address] =>
[suburb] =>
[city] =>
[postcode] =>
[state] =>
[zone_id] =>
[country] => Array
(
[id] =>
[title] =>
[iso_code_2] =>
[iso_code_3] =>
)
[country_id] =>
[format_id] => 0
)
[content_type] => virtual
[email_low_stock] =>
[products_ordered_attributes] =>
[products_ordered] =>
[products_ordered_email] =>
[attachArray] =>
[billing] => Array
(
[firstname] => dave
[lastname] => *********
[company] =>
[street_address] => *************
[suburb] =>
[city] => ***********
[postcode] => *********
[state] => California
[zone_id] => 12
[country] => Array
(
[id] => 223
[title] => United States
[iso_code_2] => US
[iso_code_3] => USA
)
[country_id] => 223
[format_id] => 2
)
[use_external_tax_handler_only] =>
)
messageStack Object
(
[messages] => Array
(
)
)
2018-05-26 09:24:20 checkout_one: CHECKOUT_ONE_AFTER_ORDER_TOTAL_PROCESSING
order_total Object
(
[modules] => Array
(
[0] => ot_subtotal.php
[1] => ot_shipping.php
[2] => ot_coupon.php
[3] => ot_group_pricing.php
[4] => ot_tax.php
[5] => ot_loworderfee.php
[6] => ot_gv.php
[7] => ot_cod_fee.php
[8] => ot_total.php
)
)
order Object
(
[info] => Array
(
[order_status] => 1
[currency] => USD
[currency_value] => 1.00000000
[payment_method] =>
[payment_module_code] =>
[coupon_code] =>
[shipping_method] => Free Shipping
[shipping_module_code] => free_free
[shipping_cost] => 0
[subtotal] => 0
[shipping_tax] => 0
[tax] => 0
[total] => 0
[tax_groups] => Array
(
[Sales Tax] => 0
)
[comments] =>
[ip_address] => *****************
)
[totals] => Array
(
)
[products] => Array
(
[0] => Array
(
[qty] => 1
[name] => Zen Awesome Cloud
[model] => AWC101
[num] => AWC101
[tax_groups] => Array
(
[Sales Tax] => 0
)
[tax_description] => Sales Tax
[price] => 0
[final_price] => 0
[onetime_charges] => 0
[weight] => 0
[products_priced_by_attribute] => 0
[product_is_free] => 1
[products_discount_type] => 0
[products_discount_type_from] => 0
[id] => 16:c361f56d8f74fe8fd01ef573fca714b0
[rowClass] => rowEven
[tax] => 0
[attributes] => Array
(
[0] => Array
(
[option] => ZC Plugin
[value] => Free
[option_id] => 5
[value_id] => 9
[prefix] => +
[price] => 0.0000
)
)
)
)
[customer] => Array
(
[firstname] => dave
[lastname] => ***********
[company] =>
[street_address] => *****************
[suburb] =>
[city] => *********
[postcode] => **********
[state] => California
[zone_id] => 12
[country] => Array
(
[id] => 223
[title] => United States
[iso_code_2] => US
[iso_code_3] => USA
)
[format_id] => 2
[telephone] => *************
[email_address] => ******************
)
[delivery] => Array
(
[firstname] =>
[lastname] =>
[company] =>
[street_address] =>
[suburb] =>
[city] =>
[postcode] =>
[state] =>
[zone_id] =>
[country] => Array
(
[id] =>
[title] =>
[iso_code_2] =>
[iso_code_3] =>
)
[country_id] =>
[format_id] => 0
)
[content_type] => virtual
[email_low_stock] =>
[products_ordered_attributes] =>
[products_ordered] =>
[products_ordered_email] =>
[attachArray] =>
[billing] => Array
(
[firstname] => dave
[lastname] => ***********
[company] =>
[street_address] => *******************
[suburb] =>
[city] => **********
[postcode] => *********
[state] => California
[zone_id] => 12
[country] => Array
(
[id] => 223
[title] => United States
[iso_code_2] => US
[iso_code_3] => USA
)
[country_id] => 223
[format_id] => 2
)
[use_external_tax_handler_only] =>
)
messageStack Object
(
[messages] => Array
(
)
)
2018-05-26 09:24:20 checkout_one: CHECKOUT_ONE_AFTER_PAYMENT_MODULES_SELECTION
payment Object
(
[modules] => Array
(
[0] => cod.php
[1] => freecharger.php
[2] => moneyorder.php
[3] => square.php
[4] => paypal.php
)
[selected_module] =>
[doesCollectsCardDataOnsite] =>
[paymentClass] => freecharger Object
(
["code"] => freecharger
[title] => Free Order
[description] => There is no charge for this order.
[enabled] => 1
[payment] =>
[sort_order] => 0
[order_status] => 2
[email_footer] => There is no charge for this order.
)
)
array (
'id' => 'free_free',
'title' => 'Free Shipping',
'cost' => 0,
)
Bookmarks