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

One-Page Checkout [Support Thread]

Views: 629,399

Results 821 to 840 of 3,078
15 May 2018, 9:44 PM
#821
lankeeyankee avatar

lankeeyankee

Totally Zenned

Join Date:
Jan 2007
Posts:
1,514
Plugin Contributions:
1

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?

16 May 2018, 12:54 PM
#822
shayne avatar

shayne

New Zenner

Join Date:
Mar 2018
Location:
Cornwall
Posts:
26
Plugin Contributions:
0

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?

18 May 2018, 5:03 AM
#823
shapocc avatar

shapocc

New Zenner

Join Date:
Apr 2018
Location:
xia men
Posts:
4
Plugin Contributions:
0

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

18 May 2018, 12:58 PM
#824
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

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.

19 May 2018, 9:30 AM
#825
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

lat9:

@simon1066, what happens if you change the line you identified to read

$opc_disable_address_change = [B]![/B]$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>
19 May 2018, 12:52 PM
#826
lat9 avatar

lat9

Administrator

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

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

20 May 2018, 12:08 AM
#827
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,176
Plugin Contributions:
0

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 ...

26 May 2018, 5:06 PM
#828
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

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:

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:

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,
)
26 May 2018, 7:00 PM
#829
lat9 avatar

lat9

Administrator

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

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).

29 May 2018, 12:06 AM
#830
balaji avatar

balaji

New Zenner

Join Date:
Nov 2009
Location:
Chennai, India
Posts:
50
Plugin Contributions:
0

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

29 May 2018, 2:26 PM
#831
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

Balaji:

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
I've created an issue (https://github.com/lat9/one_page_checkout/issues/134) on the OPC's GitHub repository to track the change required.

29 May 2018, 4:10 PM
#832
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 created an issue (https://github.com/lat9/one_page_checkout/issues/134) on the OPC's GitHub repository to track the change required.
That correction is now made and will be part of the OPC's next release. You can download the update to /includes/classes/observers/class.checkout_one_observer.php here: https://raw.githubusercontent.com/lat9/one_page_checkout/master/includes/classes/observers/class.checkout_one_observer.php

The issue affects any non-guest-checkout where the customer chooses to use a "temporary" address for either their billing or shipping address.

29 May 2018, 4:36 PM
#833
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: One-Page Checkout [Support Thread]

lat9:

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).

Found my issue.

When I changed how the main shopping cart display behaved I ended up modifying tpl_modules_order_totals.php to display in a responsive table instead of the existing div's. When I did that I removed #otshipping and used dynamic classes. I moved the main shopping cart to its own tpl_modules_order_totals.php page and restored the default which fixed one page..

The ID was the only thing missing on the checkout page which was killing the submit and making it hard to track down. Running non-minimized gave a better reading in the developer tools.
Thanks

29 May 2018, 5:16 PM
#834
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

Dave, thanks for reporting back what the issue was!

2 Jun 2018, 2:39 PM
#835
shayne avatar

shayne

New Zenner

Join Date:
Mar 2018
Location:
Cornwall
Posts:
26
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

This OPC is just the thing EXCEPT!!
I dont want the price elements on the product listing - no problem doing that but the
" Total: £0.00" which is now appearing below is messy.
I just cant seem to get rid of it without killing the "Confirm order" link

So the code bit that is relevant in tpl_modules_opc_shopping_cart.php is

*// end for loopthru all products

if (MODULE_ORDER_TOTAL_INSTALLED) {
$row_class = ($last_row_class == 'rowEven') ? 'rowOdd' : 'rowEven';
?>
<tr class="<?php echo $row_class; ?>" id="cartOrderTotals">

        <td colspan="<?php echo (count ($order->info['tax_groups']) > 1) ? 4 : 3; ?>" id="orderTotalDivs"><?php $order_total_modules->process (); $order_total_modules->output (); ?></td>
    </tr>
<?php } ?>
  </table>
</fieldset>
</div> <div class="clearBoth"></div> <!--eof shopping-cart block --*> \[/I]

The above works fine apart from the unwanted line.

Then if I delete for instance *" $order_total_modules->process (); "
*then the "Total" line disappears BUT the Confirm Order link doesnt work
Am I looking in the wrong place or am I misunderstanding the logic ?

2 Jun 2018, 3:38 PM
#836
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

@shayne, I'm not clear on what you are attempting to do. Are you trying to remove the individual product pricing from the "shopping-cart" table's display or are you just trying to "not display" the overall order's total value?

2 Jun 2018, 5:51 PM
#837
shayne avatar

shayne

New Zenner

Join Date:
Mar 2018
Location:
Cornwall
Posts:
26
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

I have removed the table pricing I just am left with the Table total which I want to remove.

2 Jun 2018, 6:20 PM
#838
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

@shane, you can update your /includes/templates/YOUR_TEMPLATE/css/checkout_one.css to "hide" that output. Since you've been making changes there, without a link to the site (you can send via PM, if you choose), I can't be more specific.

3 Jun 2018, 8:45 AM
#839
shayne avatar

shayne

New Zenner

Join Date:
Mar 2018
Location:
Cornwall
Posts:
26
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

Thank you very much for that . I think that gets me what I need. I am soooooo old that I cant get used to using this "newfangled" CSS stuff! It takes more than decades for me to acclimatise!

But before I actually apply it I am adding in my "delivery datepicker cludge" so I am just putting aside smaller matters until I see what I break with that - since i will need to insert a Delivery Date Note somewhere in the same area.

3 Jun 2018, 12:08 PM
#840
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

Sorry about misspelling your name/moniker, @shayne! FWIW, I've found the https://www.w3schools.com site a great help for any CSS or HTML (and now jQuery) questions.

Once you "get rolling with it", I think you'll find that CSS is a fairly well laid-out 'language'!