Re: One-Page Checkout [Support Thread]
Just throwing this out there since i have not used OPC before v2. I am wondering if you are using code and db backup from before installing any version of OPC then why are you getting the upgrade message when installing v2? Also, could it be there are some residual files from 1.5 to 2 that don't get overwritten during upgrade that can cause a conflict? Are you getting any errors or warnings in the logs?
Re: One-Page Checkout [Support Thread]
Thanks for the feedback chaps
I cleared everything back to base download and am tracking through step by step of my changes checking whetehr there are any problems with OPC install at each point. Overkill but the problem is intriguing - and annoying !
I just put on a full PHP debug trace so when I have waded through that I shall hopefully pin down whats adrift - I bet its me being thick !!!
The only thing that I have come across so far is that some of the merge instructions for 1.5 are ambiguous as to which folder one or two files go into - so i loaded them in both possible places. I am checking if one of those has not been cleared.
But the point about the " brains" position is one I followed through a couple of times and I cant see anything wrong - YET !
I am running fine with 1.5 though so the issue as I say is not urgent.
Could I comment that I see the point of installation being done by " merge" BUT it would be so much simpler just to provide additionally a straight set of replacements for file in the standard download - would it not?
1 Attachment(s)
Re: One-Page Checkout [Support Thread]
I have a question that I don’t know how to solve it.
when I am on the checkout page, guest checkout in this example, I fill in the contact info window but didn't click [save changes],then i submit,order will not include contact info.
I want it to submit contact info to the order without clicking the save button.
Of course, Billing Address also has to deal with this, who can help me.
Attachment 17851
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
shapocc
I have a question that I don’t know how to solve it.
when I am on the checkout page, guest checkout in this example, I fill in the contact info window but didn't click [save changes],then i submit,order will not include contact info.
I want it to submit contact info to the order without clicking the save button.
Of course, Billing Address also has to deal with this, who can help me.
Attachment 17851
That's not the way that OPC 2.0.0 was designed to work. Those Save buttons on the customer-info and addresses (er) save the information in the customer's current session (via AJAX calls) so that they are available to include in the order.
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
lat9
@simon1066, what happens if you change the line you identified to read
Code:
$opc_disable_address_change = !$editShippingButtonLink;
Probable bug report related to the above change:
index.php?main_page=checkout_one
- change shipping address on page
- select 'cancel'
- change shipping address on page, again
- add/cancel/save buttons do not show
removing the if statement from this code in tpl_modules_opc_shipping_address.php allows the display of buttons (but then removes the shipping address dropdown)
if ($editShippingButtonLink) {
$cancel_title = 'title="' . BUTTON_CANCEL_CHANGES_TITLE . '"';
$save_title = 'title="' . BUTTON_SAVE_CHANGES_TITLE . '"';
$show_add_address = $_SESSION['opc']->showAddAddressField();
$parameters = ($show_add_address) ? '' : ' class="hiddenField"';
?>
...
<?php
}
?></code>
Re: One-Page Checkout [Support Thread]
A bug it is! I've created a GitHub issue to track the changes: https://github.com/lat9/one_page_checkout/issues/132
Re: One-Page Checkout [Support Thread]
All Fixed ....
Helps after I read the square edit button and turn it to TRUE instead of FALSE ...
Grrrrrrrrrrrrrrrrrrrrrrrrrrrr ...
Re: One-Page Checkout [Support Thread]
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,
)
Re: One-Page Checkout [Support Thread]
Dave, the console-log identifying the source of the jQuery issue is going to be easier to find if you change the OPC configuration to use the non-minimized version of the OPC's jQuery module(s).
Re: One-Page Checkout [Support Thread]
Hi
I have installed the opc. While same shipping address/billing address(where there is no change is the content) prints the delivery address on the checkout confirmation email, the delivery address is not printed on the email when it is different from billing address.
Please consider it as a bug and resolve.
Thanks
Balaji