Problem goes away after rolling back to OPC ver 1.10 :huh:
Printable View
Darnit. @schoolboy, would you generate me a log (I think the instructions on in post #265 or there-a-abouts) and check the console-log? I'll PM you an email address.
I am hoping I can get some help with this great!!! plugin. I am using the Lambda Shipping Tables module and set up to have both retail and wholesale customers. My retail customers pay a flat fee for delivery locally, no issues with one page checkout. My wholesale customers pay 1% shipping if there order is less than $500. If there order is more than $500 they pay 2% shipping of there total order. At initial checkout the shipping rate under the Shipping Method heading matches the value at the bottom of Shopping Cart Contents. If changes are then made to the shopping cart and updated, the shipping value at the bottom of remains unchanged and does not match the new correct value under the Shipping Method Heading. My live site is running OPC 1.0.9 but have had to disable it because of this. I have tried 1.11 on my test site but nothing changes. Using ZC 1.55a.
Attachment 16869
@allmart, I've recreated your issue on my local testbed and hope to have a solution RSN (real soon now).
@allmart, I've found the issue and the correction is available on GitHub and will be part of One-Page Checkout's 1.0.12 release.
Would you download the updated version of /includes/modules/pages/checkout_one/header_php.php from that repository and let me know if that corrects the issue for you?
Essentially, when a shipping-method is selected, that method (and associated cost) are recorded into the customer's browser session. Leaving the OPC page and changing the cart's contents didn't change the shipping-method but did change the cost. The OPC issue was that the previous shipping cost was not being updated when the OPC processing was re-entered.
That value will now be properly updated on re-entry to the OPC's primary page.
lat9,
Your fix worked like a charm. Thank you so much for your prompt response and resolution. I am sure that most of us will agree that this is one of Zen Cart's most valuable plugins.
Happy New Year!!!
@allmart, thanks for the update that the change has corrected your issue! With the community's help, One-Page Checkout just keeps getting better!
I am having the similar trouble to Nicksab except I am running the following:
Checkout One version 1.0.11
ZenCart v1.5.5
Jquery is 2.1.4
Template is Furniture Black by 12leaves
Using the Gateway Processing Services Module (3-step redirect) for payment (gps.php), CEON module works fine. I'm assuming it just doesn't work with this payment module.
Clicking Confirm Order just reloads the same page. The gateway gets record of the transaction as processing, but it doesn't capture the payment. Never get to the confirmation page.
Debug shows this:
From the checkout one log:Code:[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Undefined index: in /home/mcas/public_html/includes/classes/order.php on line 354
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Trying to get property of non-object in /home/mcas/public_html/includes/classes/order.php on line 354
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Undefined index: in /home/mcas/public_html/includes/classes/order.php on line 355
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Trying to get property of non-object in /home/mcas/public_html/includes/classes/order.php on line 355
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Undefined variable: coupon_code in /home/mcas/public_html/includes/classes/order.php on line 356
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Trying to get property of non-object in /home/mcas/public_html/includes/classes/order.php on line 356
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Undefined index: shipping in /home/mcas/public_html/includes/classes/order.php on line 363
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Undefined variable: pass in /home/mcas/public_html/includes/modules/pages/checkout_one/header_php.php on line 210
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Undefined index: freeshipper in /home/mcas/public_html/includes/classes/shipping.php on line 187
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Trying to get property of non-object in /home/mcas/public_html/includes/classes/shipping.php on line 187
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Constant FREE_SHIPPING_TITLE already defined in /home/mcas/public_html/includes/languages/english/modules/order_total/ot_shipping.php on line 26
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Constant FREE_SHIPPING_DESCRIPTION already defined in /home/mcas/public_html/includes/languages/english/modules/order_total/ot_shipping.php on line 27
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Constant MODULE_ORDER_TOTAL_COUPON_HEADER already defined in /home/mcas/public_html/includes/languages/english/modules/order_total/ot_coupon.php on line 14
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Constant SHIPPING_NOT_INCLUDED already defined in /home/mcas/public_html/includes/languages/english/modules/order_total/ot_gv.php on line 13
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Constant TAX_NOT_INCLUDED already defined in /home/mcas/public_html/includes/languages/english/modules/order_total/ot_gv.php on line 14
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Use of undefined constant MODULE_ORDER_TOTAL_GV_REDEEM_BOX - assumed 'MODULE_ORDER_TOTAL_GV_REDEEM_BOX' in /home/mcas/public_html/includes/modules/order_total/ot_gv.php on line 46
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Undefined index: cot_gv in /home/mcas/public_html/includes/modules/order_total/ot_gv.php on line 48
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Undefined property: ot_subtotal::$credit_class in /home/mcas/public_html/includes/classes/order_total.php on line 165
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Undefined property: ot_shipping::$credit_class in /home/mcas/public_html/includes/classes/order_total.php on line 165
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Undefined index: cot_coupon in /home/mcas/public_html/includes/classes/order_total.php on line 167
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Undefined index: cot_group_pricing in /home/mcas/public_html/includes/classes/order_total.php on line 167
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Undefined property: ot_tax::$credit_class in /home/mcas/public_html/includes/classes/order_total.php on line 165
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Undefined property: ot_loworderfee::$credit_class in /home/mcas/public_html/includes/classes/order_total.php on line 165
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Undefined index: cot_gv in /home/mcas/public_html/includes/classes/order_total.php on line 167
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Undefined index: gv_redeem_code in /home/mcas/public_html/includes/modules/order_total/ot_gv.php on line 238
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Undefined index: submit_redeem_x in /home/mcas/public_html/includes/modules/order_total/ot_gv.php on line 284
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Undefined property: ot_total::$credit_class in /home/mcas/public_html/includes/classes/order_total.php on line 165
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Undefined index: cc_id in /home/mcas/public_html/includes/modules/order_total/ot_coupon.php on line 391
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Undefined index: total in /home/mcas/public_html/includes/modules/order_total/ot_group_pricing.php on line 32
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Undefined index: total in /home/mcas/public_html/includes/modules/order_total/ot_group_pricing.php on line 33
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Undefined index: cc_issue in /home/mcas/public_html/includes/modules/payment/ceon_manual_card.php on line 2933
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Undefined index: gps in /home/mcas/public_html/includes/classes/payment.php on line 175
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Trying to get property of non-object in /home/mcas/public_html/includes/classes/payment.php on line 175
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Undefined index: ResCookie in /home/mcas/public_html/includes/templates/frn_black/common/html_header.php on line 37
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Undefined index: ResCookie in /home/mcas/public_html/includes/templates/frn_black/common/html_header.php on line 147
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Undefined index: ResCookie in /home/mcas/public_html/includes/templates/frn_black/common/tpl_main_page.php on line 45
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Undefined variable: active in /home/mcas/public_html/includes/templates/frn_black/common/tpl_header_top_section.php on line 22
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Undefined variable: active in /home/mcas/public_html/includes/templates/frn_black/common/tpl_header_top_section.php on line 41
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Undefined variable: active in /home/mcas/public_html/includes/templates/frn_black/common/tpl_header.php on line 93
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Undefined index: gps in /home/mcas/public_html/includes/classes/payment.php on line 175
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Trying to get property of non-object in /home/mcas/public_html/includes/classes/payment.php on line 175
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Undefined index: gps in /home/mcas/public_html/includes/classes/payment.php on line 145
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Trying to get property of non-object in /home/mcas/public_html/includes/classes/payment.php on line 145
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Undefined index: gps in /home/mcas/public_html/includes/classes/payment.php on line 175
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Trying to get property of non-object in /home/mcas/public_html/includes/classes/payment.php on line 175
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Undefined index: gps in /home/mcas/public_html/includes/classes/payment.php on line 198
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Trying to get property of non-object in /home/mcas/public_html/includes/classes/payment.php on line 198
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Use of undefined constant CSS_BUTTON_POPUPS_IS_ARRAY - assumed 'CSS_BUTTON_POPUPS_IS_ARRAY' in /home/mcas/public_html/includes/functions/html_output.php on line 322
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Use of undefined constant CSS_BUTTON_POPUPS_IS_ARRAY - assumed 'CSS_BUTTON_POPUPS_IS_ARRAY' in /home/mcas/public_html/includes/functions/html_output.php on line 322
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Undefined property: ot_subtotal::$credit_class in /home/mcas/public_html/includes/classes/order_total.php on line 125
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Undefined property: ot_shipping::$credit_class in /home/mcas/public_html/includes/classes/order_total.php on line 125
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Trying to get property of non-object in /home/mcas/public_html/includes/modules/order_total/ot_coupon.php on line 135
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Trying to get property of non-object in /home/mcas/public_html/includes/modules/order_total/ot_coupon.php on line 135
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Undefined variable: selection in /home/mcas/public_html/includes/modules/order_total/ot_group_pricing.php on line 141
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Undefined property: ot_tax::$credit_class in /home/mcas/public_html/includes/classes/order_total.php on line 125
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Undefined property: ot_loworderfee::$credit_class in /home/mcas/public_html/includes/classes/order_total.php on line 125
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Undefined variable: output_string in /home/mcas/public_html/includes/modules/order_total/ot_gv.php on line 139
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Undefined variable: selection in /home/mcas/public_html/includes/modules/order_total/ot_gv.php on line 201
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Undefined property: ot_total::$credit_class in /home/mcas/public_html/includes/classes/order_total.php on line 125
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Undefined index: checkbox in /home/mcas/public_html/includes/templates/template_default/templates/tpl_checkout_one_default.php on line 95
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Use of undefined constant CSS_BUTTON_POPUPS_IS_ARRAY - assumed 'CSS_BUTTON_POPUPS_IS_ARRAY' in /home/mcas/public_html/includes/functions/html_output.php on line 322
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Undefined index: tax in /home/mcas/public_html/includes/templates/template_default/templates/tpl_modules_checkout_one_shipping.php on line 34
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Undefined index: gps in /home/mcas/public_html/includes/classes/payment.php on line 198
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Trying to get property of non-object in /home/mcas/public_html/includes/classes/payment.php on line 198
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Undefined index: cc_id in /home/mcas/public_html/includes/modules/order_total/ot_coupon.php on line 391
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Undefined index: total in /home/mcas/public_html/includes/modules/order_total/ot_group_pricing.php on line 32
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Undefined index: total in /home/mcas/public_html/includes/modules/order_total/ot_group_pricing.php on line 33
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Use of undefined constant CSS_BUTTON_POPUPS_IS_ARRAY - assumed 'CSS_BUTTON_POPUPS_IS_ARRAY' in /home/mcas/public_html/includes/functions/html_output.php on line 322
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Undefined index: ResCookie in /home/mcas/public_html/includes/templates/frn_black/common/tpl_footer.php on line 65
[09-Jan-2017 10:56:06 America/New_York] PHP Notice: Undefined index: ResCookie in /home/mcas/public_html/includes/templates/frn_black/common/tpl_footer.php on line 79
Code:2017-01-09 10:44:52 checkout_one: CHECKOUT_ONE_ENTRY, version (1.0.11 (2016-12-29)), Zen Cart version (1.5.5), template (frn_black)
2017-01-09 10:44:52 checkout_one: CHECKOUT_ONE_AFTER_SHIPPING_CALCULATIONS, pass (), free_shipping (), array (
'id' => 'flat_flat',
'title' => 'Flat Rate (Best Way)',
'cost' => '10.00',
)
2017-01-09 10:44:52 checkout_one: CHECKOUT_ONE_SHIPPING_CHECK (flat_flat)
Array
(
[0] => Array
(
[id] => flat
[module] => Flat Rate
[methods] => Array
(
[0] => Array
(
[id] => flat
[title] => Best Way
[cost] => 10.00
)
)
)
)
Array
(
[0] => flat_flat
)
2017-01-09 10:44:52 checkout_one: CHECKOUT_ONE_AFTER_SHIPPING_QUOTES
array (
'id' => 'flat_flat',
'title' => 'Flat Rate (Best Way)',
'cost' => '10.00',
)order Object
(
[info] => Array
(
[order_status] => 1
[currency] => USD
[currency_value] => 1.00000000
[payment_method] =>
[payment_module_code] =>
[coupon_code] =>
[shipping_method] => Flat Rate (Best Way)
[shipping_module_code] => flat_flat
[shipping_cost] => 10.00
[subtotal] => 1
[shipping_tax] => 0
[tax] => 0
[total] => 11
[tax_groups] => Array
(
[0] => 0
)
[comments] =>
[ip_address] => 107.77.203.150 - 107.77.203.150
)
[totals] => Array
(
)
[products] => Array
(
[0] => Array
(
[qty] => 1
[name] => Aqua-Clo <b></b>
[model] =>
[tax_groups] => Array
(
[0] => Sales Tax
)
[tax_description] => Sales Tax
[price] => 1.0000
[final_price] => 1
[onetime_charges] => 0
[weight] => 0
[products_priced_by_attribute] => 0
[product_is_free] => 0
[products_discount_type] => 0
[products_discount_type_from] => 0
[id] => 40
[rowClass] => rowEven
[tax] => 0
)
)
[customer] => Array
(
[firstname] => Bob
[lastname] => Hess
[company] =>
[street_address] => 2306 greenwood st
[suburb] =>
[city] => Lindenwold
[postcode] => 98002
[state] => Oregon
[zone_id] => 41
[country] => Array
(
[id] => 223
[title] => United States
[iso_code_2] => US
[iso_code_3] => USA
)
[format_id] => 2
[telephone] => 8002939183
[email_address] => [email protected]
)
[delivery] => Array
(
[firstname] => Bob
[lastname] => Hess
[company] =>
[street_address] => 2306 greenwood st
[suburb] =>
[city] => Lindenwold
[postcode] => 98002
[state] => Oregon
[zone_id] => 41
[country] => Array
(
[id] => 223
[title] => United States
[iso_code_2] => US
[iso_code_3] => USA
)
[country_id] => 223
[format_id] => 2
)
[content_type] => physical
[email_low_stock] =>
[products_ordered_attributes] =>
[products_ordered] =>
[products_ordered_email] =>
[attachArray] =>
[billing] => Array
(
[firstname] => Bob
[lastname] => Hess
[company] =>
[street_address] => 2306 greenwood st
[suburb] =>
[city] => Lindenwold
[postcode] => 98002
[state] => Oregon
[zone_id] => 41
[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
(
)
)
Array
(
[0] => Array
(
[id] => flat
[module] => Flat Rate
[methods] => Array
(
[0] => Array
(
[id] => flat
[title] => Best Way
[cost] => 10.00
)
)
)
)
2017-01-09 10:44:52 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_total.php
)
)
order Object
(
[info] => Array
(
[order_status] => 1
[currency] => USD
[currency_value] => 1.00000000
[payment_method] =>
[payment_module_code] =>
[coupon_code] =>
[shipping_method] => Flat Rate (Best Way)
[shipping_module_code] => flat_flat
[shipping_cost] => 10.00
[subtotal] => 1
[shipping_tax] => 0
[tax] => 0
[total] => 11
[tax_groups] => Array
(
[0] => 0
)
[comments] =>
[ip_address] => 107.77.203.150 - 107.77.203.150
)
[totals] => Array
(
)
[products] => Array
(
[0] => Array
(
[qty] => 1
[name] => Aqua-Clo <b></b>
[model] =>
[tax_groups] => Array
(
[0] => Sales Tax
)
[tax_description] => Sales Tax
[price] => 1.0000
[final_price] => 1
[onetime_charges] => 0
[weight] => 0
[products_priced_by_attribute] => 0
[product_is_free] => 0
[products_discount_type] => 0
[products_discount_type_from] => 0
[id] => 40
[rowClass] => rowEven
[tax] => 0
)
)
[customer] => Array
(
[firstname] => Bob
[lastname] => Hess
[company] =>
[street_address] => 2306 greenwood st
[suburb] =>
[city] => Lindenwold
[postcode] => 98002
[state] => Oregon
[zone_id] => 41
[country] => Array
(
[id] => 223
[title] => United States
[iso_code_2] => US
[iso_code_3] => USA
)
[format_id] => 2
[telephone] => 8002939183
[email_address] => [email protected]
)
[delivery] => Array
(
[firstname] => Bob
[lastname] => Hess
[company] =>
[street_address] => 2306 greenwood st
[suburb] =>
[city] => Lindenwold
[postcode] => 98002
[state] => Oregon
[zone_id] => 41
[country] => Array
(
[id] => 223
[title] => United States
[iso_code_2] => US
[iso_code_3] => USA
)
[country_id] => 223
[format_id] => 2
)
[content_type] => physical
[email_low_stock] =>
[products_ordered_attributes] =>
[products_ordered] =>
[products_ordered_email] =>
[attachArray] =>
[billing] => Array
(
[firstname] => Bob
[lastname] => Hess
[company] =>
[street_address] => 2306 greenwood st
[suburb] =>
[city] => Lindenwold
[postcode] => 98002
[state] => Oregon
[zone_id] => 41
[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
(
)
)
2017-01-09 10:44:52 checkout_one: CHECKOUT_ONE_AFTER_PAYMENT_MODULES_SELECTION
payment Object
(
[modules] => Array
(
[0] => ceon_manual_card.php
[1] => gps.php
)
[selected_module] =>
[doesCollectsCardDataOnsite] =>
[paymentClass] => gps Object
(
["code"] => gps
[title] => Credit Card
[description] =>
[enabled] => 1
[delimiter] => |
[encapChar] => *
[_logDir] => /home/mcas/public_html/cache
[authorize] =>
[commErrNo] => 0
[commError] =>
[reportable_submit_data] => Array
(
)
[gateway_url] => secure.nmi.com
[sort_order] => 0
[form_action_url] => https://www.musclechemadvancedsupps.com/index.php?main_page=checkout_process
[order_status] => 2
)
)
array (
'id' => 'flat_flat',
'title' => 'Flat Rate (Best Way)',
'cost' => '10.00',
)