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

One-Page Checkout [Support Thread]

Views: 628,981

Results 141 to 160 of 3,073
13 Sep 2016, 7:50 PM
#141
lightbrown avatar

lightbrown

New Zenner

Join Date:
Jun 2015
Location:
California
Posts:
54
Plugin Contributions:
0

One-Page Checkout [Support Thread]

LightBrown:

Is there a way for the shipping address box on the checkout_one page to automatically display/contain the account's shipping address (or second address in the address book) if one exists?

lat9:

That's something you could add via custom programming; it's very non-standard so it's not a feature that I'll currently consider in the plugin's base processing.

In case anyone needs this in the future:

My site uses a forced COWOA feature, and the "login" page includes a field for the billing address as well as an optional shipping address field. So, if the customer chose to input a shipping address in the "login" page, when they move to the checkout_one page, there is already a sendto address in the session. So to make the checkout_one page display the shipping address I only needed to comment out a few lines of code:

includes\modules\pages\checkout_one\header.php

// if no shipping destination address was selected, use the customers own address as default
if (!isset ($_SESSION['sendto'])) {
    $_SESSION['sendto'] = $_SESSION['customer_default_address_id'];
 /*the following lines have been commented out to allow login page to assign a sendto address in the session	
} elseif ($shipping_billing) {
    $_SESSION['sendto'] = $_SESSION['billto'];
*/
} else {
// verify the selected shipping address

includes\templates\template_default\templates\tpl_checkout_one_default.php

<?php
// -----
// Display shipping-address information **only if** the order contains at least one physical product (i.e. it's not virtual).
//
if ($is_virtual_order) {
    echo zen_draw_checkbox_field ('shipping_billing', '1', false, 'id="shipping_billing" style="display: none;"');
} else {
?>
<!--This section disabled to remove shippingIsBilling checkbox
    <div id="checkoutOneShippingFlag" style="display: none;"><?php //echo  zen_draw_checkbox_field ('shipping_billing', '1', $shipping_billing, 'id="shipping_billing" onchange="shippingIsBilling ();"');?>
      <label class="checkboxLabel" for="shipping_billing"><?php //echo TEXT_USE_BILLING_FOR_SHIPPING; ?></label>
    </div>
 -->
    <div id="checkoutOneShipto">
      <fieldset>
        <legend><?php echo TITLE_SHIPPING_ADDRESS; ?></legend>

<!--This section should pull the sendto address if there is one, otherwise it will repeat the billing address-->		
        <address><?php echo zen_address_format($order->delivery['format_id'], $order->delivery, 1, ' ', '<br />'); ?></address>

        <div class="buttonRow forward"><?php echo '<a href="' . $editShippingButtonLink . '">' . zen_image_button (BUTTON_IMAGE_EDIT_SMALL, BUTTON_EDIT_SMALL_ALT) . '</a>'; ?></div>
      </fieldset>
    </div>
<?php
}
?>    

I have only tested these changes with my exact setup, so your mileage may vary. Or let me know if anyone thinks these changes will break anything.

14 Sep 2016, 4:10 PM
#142
fjbern1943 avatar

fjbern1943

Zen Follower

Join Date:
Apr 2015
Location:
United States
Posts:
144
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

Hello,

I just upgraded my one page checkout to version 1.04
My setup:
zencart 1.54
template: Responsive_sheffield_blue 2.0

Here are my results:

Tested checkout using check/money order, pay pal, Braintree

Using check/money order or payal after hitting the confirm button I get the screen with the revolving circle, one of my banners at the top and another confirm button on the side (Almost Hidden) and nothing happens until I click this extra confirm button then everything proceeds as expected.
Is this normal operation? Or did I do something wrong?

When using credit card through Braintree I get the extra page I guess to confirm the order one last time before submitting to Braintree. Then after I click the second confirm button everything proceeds as expected.

This is not what I would expect. What is the use of having to confirm the order again no matter what payment method is selected.

Best regards,

Frank

14 Sep 2016, 5:24 PM
#143
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

fjbern1943:

Hello,

I just upgraded my one page checkout to version 1.04
My setup:
zencart 1.54
template: Responsive_sheffield_blue 2.0

Here are my results:

Tested checkout using check/money order, pay pal, Braintree

Using check/money order or payal after hitting the confirm button I get the screen with the revolving circle, one of my banners at the top and another confirm button on the side (Almost Hidden) and nothing happens until I click this extra confirm button then everything proceeds as expected.
Is this normal operation? Or did I do something wrong?

When using credit card through Braintree I get the extra page I guess to confirm the order one last time before submitting to Braintree. Then after I click the second confirm button everything proceeds as expected.

This is not what I would expect. What is the use of having to confirm the order again no matter what payment method is selected.

Best regards,

Frank
Do you have a link to the site where you've got this installed? I'll need to see the confirmation page for check/moneyorder and PayPal processing to understand why those fields aren't hidden. If you don't want to post the site-link here, you can send it to me via PM.

The Braintree payment method "collects credit-card data onsite"; that's why you're seeing that extra confirmation page. That's just an extra level of "comfort" for those card-paying customers, so that they've got a spot to verify that they entered their credit-card information properly before committing the order.

14 Sep 2016, 5:35 PM
#144
fjbern1943 avatar

fjbern1943

Zen Follower

Join Date:
Apr 2015
Location:
United States
Posts:
144
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

lat9:

Do you have a link to the site where you've got this installed? I'll need to see the confirmation page for check/moneyorder and PayPal processing to understand why those fields aren't hidden. If you don't want to post the site-link here, you can send it to me via PM.

The Braintree payment method "collects credit-card data onsite"; that's why you're seeing that extra confirmation page. That's just an extra level of "comfort" for those card-paying customers, so that they've got a spot to verify that they entered their credit-card information properly before committing the order.

The site url is religious-shop.com

14 Sep 2016, 6:11 PM
#145
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

You've got some serious HTML-formatting issues on the page that are probably "interfering" with the auto-submit javascript for the check/moneyorder and PayPal payments, starting with a stray ending } somewhere within your template's html_header.php.

<script type="text/javascript">window.jQuery || document.write(unescape('%3Cscript type="text/javascript" src="//code.jquery.com/jquery-1.11.1.min.js"%3E%3C/script%3E'));</script>
<script type="text/javascript">window.jQuery || document.write(unescape('%3Cscript type="text/javascript" src="includes/templates/responsive_sheffield_blue/jscript/jquery.min.js"%3E%3C/script%3E'));</script>
[B]
  }
[/B]

and continuing with the fact that your </body> tag comes before a collection of <script> and <meta> tags coming from (I'm guessing) the template's tpl_main_page.php.

The banner's display can be corrected by your editing of /includes/modules/pages/checkout_one_confirmation/jscript_main.php, adding the highlighted code fragment (I'll book that change for v1.0.5 of the plugin):

if (!$confirmation_required) {
?>
    $(document).ready(function(){
        $('body', 'html').css({ 
            "overflow": "hidden",
            "height": "100%",
            "background": "none"
        });
        $('#navBreadCrumb, #bannerSix'[B], '#bannerOne'[/B]).hide();
        $('#checkoutOneConfirmationLoading').show();
        $('form[name="checkout_confirmation"]').submit();
    });
<?php
}
14 Sep 2016, 7:37 PM
#146
fjbern1943 avatar

fjbern1943

Zen Follower

Join Date:
Apr 2015
Location:
United States
Posts:
144
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

lat9:

You've got some serious HTML-formatting issues on the page that are probably "interfering" with the auto-submit javascript for the check/moneyorder and PayPal payments, starting with a stray ending } somewhere within your template's html_header.php.

<script type="text/javascript">window.jQuery || document.write(unescape('%3Cscript type="text/javascript" src="//code.jquery.com/jquery-1.11.1.min.js"%3E%3C/script%3E'));</script> <script type="text/javascript">window.jQuery || document.write(unescape('%3Cscript type="text/javascript" src="includes/templates/responsive_sheffield_blue/jscript/jquery.min.js"%3E%3C/script%3E'));</script>

[B]
}
[/B]

> and continuing with the fact that your </body> tag comes before a collection of <script> and <meta> tags coming from (I'm guessing) the template's tpl_main_page.php.
> 
> The banner's display can be corrected by your editing of /includes/modules/pages/checkout_one_confirmation/jscript_main.php, adding the highlighted code fragment (I'll book that change for v1.0.5 of the plugin):
> ```
if (!$confirmation_required) {
?>
    $(document).ready(function(){
        $('body', 'html').css({ 
            "overflow": "hidden",
            "height": "100%",
            "background": "none"
        });
        $('#navBreadCrumb, #bannerSix'[B], '#bannerOne'[/B]).hide();
        $('#checkoutOneConfirmationLoading').show();
        $('form[name="checkout_confirmation"]').submit();
    });
<?php
}

Hello, Thanks for the quick reply.

I removed the extra "}" in the html_header.php
I also removed all the script and meta code that came before the ending </body> tag
I also modified the code in the jscript_main.php file to remove the top banner.

Everything is the same. No change. Banner still on top of page, spinning thingy spins and the only way to proceed is to click the exrta confirm button,
when using check/money order or paypal.

Please advise.

14 Sep 2016, 8:06 PM
#147
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

You're getting closer on the valid HTML. Now you've missing the </div> that's required for <div id="navSuppWrapper">.

I see the issue now; you've apparently either got a down-level template-override version (i.e. /includes/templates/responsive_sheffield_blue/templates/tpl_checkout_one_confirmation_default.php) or didn't install the v1.0.4 version of the plugin's file into the template_default folder.

The fact that the form's name is still 'checkout_one' and there's no associated id= attribute is what's telling me that!

If you're not making changes to the page's layout, there's no need to replicate the page's template into your active template's folders ... but if you do, you'll need to re-merge any changes to those template files each time you upgrade the One-Page Checkout plugin.

14 Sep 2016, 8:55 PM
#148
fjbern1943 avatar

fjbern1943

Zen Follower

Join Date:
Apr 2015
Location:
United States
Posts:
144
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

lat9:

You're getting closer on the valid HTML. Now you've missing the </div> that's required for <div id="navSuppWrapper">.

I see the issue now; you've apparently either got a down-level template-override version (i.e. /includes/templates/responsive_sheffield_blue/templates/tpl_checkout_one_confirmation_default.php) or didn't install the v1.0.4 version of the plugin's file into the template_default folder.

The fact that the form's name is still 'checkout_one' and there's no associated id= attribute is what's telling me that!

If you're not making changes to the page's layout, there's no need to replicate the page's template into your active template's folders ... but if you do, you'll need to re-merge any changes to those template files each time you upgrade the One-Page Checkout plugin.

Hello,

OK, I removed the files from the responsive_sheffield_blue template folder.
Made sure the files were in the template_default folder.
Ran a test order and it worked find.
The only thing is that for a couple of seconds the page with the top banner and the other confirm button shows up and then the page refreshes and either goes to the Thank you page, pay pal site, or the extra credit card page.

The </div> that's required for <div id="navSuppWrapper"> I didn't touch. The code is in the footer file, tpl_footer.php in the common/responsive_sheffield_blue directory. Here is the code:

<div id="navSuppWrapper">
<?php
if (!isset($flag_disable_footer) || !$flag_disable_footer) {
?>
<div id="navSupp">
<?php if (EZPAGES_STATUS_FOOTER == '1' or (EZPAGES_STATUS_FOOTER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
<ul>
<li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
<li><?php require($template->get_template_dir('tpl_ezpages_bar_footer.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_footer.php'); ?></li>
</ul>
<?php } ?>
</div>

I think the </div> is at the bottom. Can you see where this code should be changed?

Thanks for your help.

Frank

15 Sep 2016, 11:36 AM
#149
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

To get that banner to "disappear", you'll need to make the edit I suggested in post #146. As for the missing </div>, you should update that tpl_footer.php file, adding the highlighted line:

<div id="navSuppWrapper">
<?php
if (!isset($flag_disable_footer) || !$flag_disable_footer) {
?>
<div id="navSupp">
<?php if (EZPAGES_STATUS_FOOTER == '1' or (EZPAGES_STATUS_FOOTER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
<ul>
<li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
<li><?php require($template->get_template_dir('tpl_ezpages_bar_footer.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_footer.php'); ?></li>
</ul>
<?php } ?>
</div>
[B]</div>[/B]

The checkout_one_confirmation page (the one with the spinning icon) is displayed while the order is "processed", i.e. updating the database and sending any confirmation emails.

15 Sep 2016, 1:14 PM
#150
fjbern1943 avatar

fjbern1943

Zen Follower

Join Date:
Apr 2015
Location:
United States
Posts:
144
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

lat9:

To get that banner to "disappear", you'll need to make the edit I suggested in post #146. As for the missing </div>, you should update that tpl_footer.php file, adding the highlighted line:

<div id="navSuppWrapper"> <?php if (!isset($flag_disable_footer) || !$flag_disable_footer) { ?> <div id="navSupp"> <?php if (EZPAGES_STATUS_FOOTER == '1' or (EZPAGES_STATUS_FOOTER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?> <ul> <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li> <li><?php require($template->get_template_dir('tpl_ezpages_bar_footer.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_footer.php'); ?></li> </ul> <?php } ?> </div> [B]</div>[/B] ``` > The checkout_one_confirmation page (the one with the spinning icon) is displayed while the order is "processed", i.e. updating the database and sending any confirmation emails.

Hello, I made the changes in post #146. Here is the code as now appears on the site:

if (!$confirmation_required) {
?>
    $(document).ready(function(){
        $('body', 'html').css({ 
            "overflow": "hidden",
            "height": "100%",
            "background": "none"
        });
        $('#navBreadCrumb, #bannerSix', '#bannerOne').hide();
        $('#checkoutOneConfirmationLoading').show();
        $('form[name="checkout_confirmation"]').submit();
    });
<?php
}

Yet the banner is still there???????

As far as adding the </div> I added the code to the tpl_footer.php file but it added a blue bar where the copyright info etc. appears and makes the info almost impossible to read. Maybe I need to add the extra </div> somewhere else on the page?

I would like to change the confirmation page to remove the top banner, the confirm button on the side and add text like, "please wait processing your order".

Can you continue to help?

Frank

15 Sep 2016, 2:20 PM
#151
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

I'm being hampered by some setting on your site that's disabling the display of the CSS styling when using FireFox/FireBug. Until you can rectify that problem, I can't be of further help.

15 Sep 2016, 3:05 PM
#152
fjbern1943 avatar

fjbern1943

Zen Follower

Join Date:
Apr 2015
Location:
United States
Posts:
144
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

lat9:

I'm being hampered by some setting on your site that's disabling the display of the CSS styling when using FireFox/FireBug. Until you can rectify that problem, I can't be of further help.

OK, I'm not having any problem using firefox/debugger except I don't know what to look for???? So, it doesn't do me any good.

I did change the code in checkout_one_confirmation/jscript_main.php file from:

$('#navBreadCrumb, #bannerSix', '#bannerOne').hide();

to:

$('#navBreadCrumb, #bannerSix, #bannerOne').hide();
and the top banner disappeared. Yeah!

The confirm button still shows.

Frank

15 Sep 2016, 3:13 PM
#153
fjbern1943 avatar

fjbern1943

Zen Follower

Join Date:
Apr 2015
Location:
United States
Posts:
144
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

OK looks like I can't get rid of the confirm button but I would still like to add text to the page, "Please Wait While Your Order is being processed"

??????
Frank

15 Sep 2016, 3:18 PM
#154
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

You can do that by making a template-override version of /includes/languages/english/checkout_one_confirmation.php and supplying that text for the CHECKOUT_ONE_CONFIRMATION_INSTRUCTIONS constant.

19 Sep 2016, 8:49 PM
#155
amethyst_fairy avatar

amethyst_fairy

Zen Follower

Join Date:
Feb 2016
Location:
Salem, NH
Posts:
103
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

I am having trouble have reinstalled all files but still having issues. Am currently running zencart 1.54 and sterling grand template.

Debug log shows
2016-09-19 10:29:52 checkout_one_observer: checkout_one redirect: Array
(
[main_page] => checkout_shipping
)

2016-09-19 10:29:54 checkout_one: CHECKOUT_ONE_ENTRY, version (1.0.4 (2016-09-11)), Zen Cart version (1.5.4), template (stirling_grand)
2016-09-19 12:34:47 checkout_one_observer: checkout_one redirect: Array
(
[main_page] => checkout_shipping
)
Thanks
Sandria

20 Sep 2016, 11:42 AM
#156
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

Did you copy all the core/template overwrites, especially the /includes/templates/YOUR_TEMPLATE/jscript/jscript_framework.php and /ajax.php?

What other plugins do you have installed?

24 Sep 2016, 1:06 PM
#157
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

I've just submitted v1.0.5 to the Zen Cart Plugins for review. That version provides changes to address the following issues (as noted within the plugin's GitHub repository):

#39: Update jQuery handling to check for required selectors ... and issue a javascript alert if any are missing.
#40: Replace "CODE" tags in the log files to enable posting on the forums
#41: Hide bannerOne block on the confirmation page
#42: Hide "Confirm Order" button on the confirmation page

25 Sep 2016, 4:35 AM
#158
royaldave avatar

royaldave

Zen Follower

Join Date:
Aug 2013
Location:
Perth, WA, AU
Posts:
284
Plugin Contributions:
1

Re: One-Page Checkout [Support Thread]

Am using 1.5.4 and can't get it to work.

The checkout screen just has "Home" with no other breadcrumbs or content.

I get the following in debug -

[25-Sep-2016 12:06:41 Australia/Perth] PHP Fatal error: Call to a member function javascript_validation() on null in /var/www/html/zencart/includes/templates/template_default/templates/tpl_checkout_one_default.php on line 8

and in one_page_checkout_log -

2016-09-25 12:06:41 checkout_one_observer: checkout_one redirect: Array
(
[main_page] => checkout_shipping
)

Other modules installed are multisite and zipship if these may be affecting it.

EDIT: Actually, I just uninstalled zipship and still not working.

25 Sep 2016, 11:52 AM
#159
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

royaldave:

Am using 1.5.4 and can't get it to work.

The checkout screen just has "Home" with no other breadcrumbs or content.

I get the following in debug -

[25-Sep-2016 12:06:41 Australia/Perth] PHP Fatal error: Call to a member function javascript_validation() on null in /var/www/html/zencart/includes/templates/template_default/templates/tpl_checkout_one_default.php on line 8 ....
What payment modules do you have configured? Do you get the same error if you disable the One-Page Checkout?

25 Sep 2016, 11:19 PM
#160
royaldave avatar

royaldave

Zen Follower

Join Date:
Aug 2013
Location:
Perth, WA, AU
Posts:
284
Plugin Contributions:
1

Re: One-Page Checkout [Support Thread]

lat9:

What payment modules do you have configured? Do you get the same error if you disable the One-Page Checkout?

I have paypal express checkout. If I turn it off the old 3 page checkout works ok.