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

One-Page Checkout [Support Thread]

Views: 632,616

Results 2,941 to 2,960 of 3,088
23 Jan 2025, 1:43 PM
#2941
lat9 avatar

lat9

Administrator

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

One-Page Checkout [Support Thread]

richard7315:

Update:
Potential fixes for issues 1 and 2 shown below:

In the responsive_mobile.css find

/bof checkout/
#checkoutConfirmDefault .forward, #checkoutPayment .forward, #checkoutShipping .forward{float:right;width:auto !important;}

Removing float:right; seems to fix the display problem.

The stylesheet.css has a minor bug. Around line 42 find:

.centerColumn, #bannerOne, #bannerTwo, #bannerThree, #bannerFour, #bannerFive, {padding:0.8em;}

The comma after #bannerFive should be deleted.

I have tested the fixes with OPC turned on/off and did not notice any issues. Please can the Zen Cart team check and apply these fixes to the core code.
Many thanks
Richard
Thanks for those updates for the built-in responsive_classic template. I've created a GitHub issue (https://github.com/zencart/zencart/issues/6928) to identify this change-request.

22 Feb 2025, 6:33 AM
#2942
tamya avatar

tamya

Zen Follower

Join Date:
Feb 2007
Posts:
336
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

One last item to "tidy up" ... registering the two new checkout pages into the ROBOTS_PAGES_TO_SKIP value. I don't think this is a high-priority item since the pages' names don't appear on any menus and include it only for completeness! If you want to make sure that robots aren't indexing the checkout_one and checkout_one_confirmation pages, you'll need to edit your template's version of /includes/languages/english/meta_tags.php and add those two page-names to the end of that constant's comma-separated-list.

meta_tags.php does not exist in my template's version of /includes/languages/english/ should i create one?

22 Feb 2025, 12:53 PM
#2943
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

TamyA:

meta_tags.php does not exist in my template's version of /includes/languages/english/ should i create one?
Just copy /includes/languages/english/meta_tags.php to /includes/languages/english/YOUR_TEMPLATE/meta_tags.php and make your edits there.

I'll also suggest adding comments to identify which language constants are changed.

23 Feb 2025, 7:14 AM
#2944
tamya avatar

tamya

Zen Follower

Join Date:
Feb 2007
Posts:
336
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

lat9:

Just copy /includes/languages/english/meta_tags.php to /includes/languages/english/YOUR_TEMPLATE/meta_tags.php and make your edits there.

I'll also suggest adding comments to identify which language constants are changed.

Oh, i see it now, i was looking for meta_tags.php and i could not find it, it is called lang.meta_tags.php

28 Mar 2025, 3:54 PM
#2945
chadlly2003 avatar

chadlly2003

Totally Zenned

Join Date:
Jan 2015
Posts:
789
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

zencart 2.1
php 8.2
template - ZCA Bootstrap template
OPC 2.5.4

Lat 9

I am having the same issue as #2608 in this thread

"Customer enters there address. Moves to change the country from United States to say Canada and the menu for Canada does not load in. It leaves the US states and just says:

"Please select a state from the States pull down menu."

Where should I look to fix this issue?

Seems to work if the international area has a dropdown for province. But leaves a input line which should not be there
Attachment 20939

28 Mar 2025, 6:11 PM
#2946
chadlly2003 avatar

chadlly2003

Totally Zenned

Join Date:
Jan 2015
Posts:
789
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

chadlly2003:

zencart 2.1
php 8.2
template - ZCA Bootstrap template
OPC 2.5.4

Lat 9

I am having the same issue as #2608 in this thread

"Customer enters there address. Moves to change the country from United States to say Canada and the menu for Canada does not load in. It leaves the US states and just says:

"Please select a state from the States pull down menu."

Where should I look to fix this issue?

Seems to work if the international area has a dropdown for province. But leaves a input line which should not be there
Attachment 20939
Just to be clear if it has a state or province like Canada all is good. When it does not have a state/province is when the issue occuurs as showed in the image above

29 Mar 2025, 2:13 AM
#2947
chadlly2003 avatar

chadlly2003

Totally Zenned

Join Date:
Jan 2015
Posts:
789
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

disregard it was a setting on my end

29 Mar 2025, 1:06 PM
#2948
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

chadlly2003:

disregard it was a setting on my end
... and what setting was that?

19 Apr 2025, 12:39 PM
#2949
simon1066 avatar

simon1066

Totally Zenned

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

Re: One-Page Checkout [Support Thread]

Back in April 2020 it was established that customers checking out as a guest, without already having an account, would receive a text-only checkout email (https://github.com/lat9/one_page_checkout/issues/244).

Has anything changed in the interim or does that restriction still apply?

Simon

19 Apr 2025, 1:35 PM
#2950
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

simon1066:

Back in April 2020 it was established that customers checking out as a guest, without already having an account, would receive a text-only checkout email (https://github.com/lat9/one_page_checkout/issues/244).

Has anything changed in the interim or does that restriction still apply?
Nothing has changed.

28 Apr 2025, 8:29 AM
#2951
heathenmagic avatar

heathenmagic

Totally Zenned

Join Date:
May 2005
Location:
England
Posts:
733
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

Just noticed a strange thing, I was looking on the website checking listings for an order, and got an error 500 on every page. Or refresh. In private session or another browser I could access the site. But not in the affected browser session. Only other thing is I Was logged into admin at the same time. I could only see several logs like this:-

PHP Fatal error: Uncaught Error: Call to a member function guestCheckoutEnabled() on int in /includes/classes/observers/class.checkout_one_observer.php:216

I turned off one page checkout for now in case its that, though got a feeling it might be due to ip address logged into admin and somehow its blocking in same session on existing browser. I didn't see anyone else with same issue, I saw a code edit I applied to make this log disappear though. In case that helps.

28 Apr 2025, 10:53 AM
#2952
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

HeathenMagic:

Just noticed a strange thing, I was looking on the website checking listings for an order, and got an error 500 on every page. Or refresh. In private session or another browser I could access the site. But not in the affected browser session. Only other thing is I Was logged into admin at the same time. I could only see several logs like this:-

I turned off one page checkout for now in case its that, though got a feeling it might be due to ip address logged into admin and somehow its blocking in same session on existing browser. I didn't see anyone else with same issue, I saw a code edit I applied to make this log disappear though. In case that helps.
That method (guestCheckoutEnabled) in the OnePageCheckout.php class-file was introduced in OPC v2.5.0. It sounds like your version of that file and OPC's observer-class file have somehow gotten out-of-sync.

To what code-edit do you refer?

28 Apr 2025, 1:42 PM
#2953
heathenmagic avatar

heathenmagic

Totally Zenned

Join Date:
May 2005
Location:
England
Posts:
733
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

lat9:

That method (guestCheckoutEnabled) in the OnePageCheckout.php class-file was introduced in OPC v2.5.0. It sounds like your version of that file and OPC's observer-class file have somehow gotten out-of-sync.

To what code-edit do you refer?

I found post #2838 and your fix after suggested, I amended that line as you recommended

30 Apr 2025, 5:15 AM
#2954
tamya avatar

tamya

Zen Follower

Join Date:
Feb 2007
Posts:
336
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

What is the Bottom instructions for?

30 Apr 2025, 12:22 PM
#2955
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

TamyA:

What is the Bottom instructions for?
Any unique guidance that you want to give your customers prior to checking out.

30 Apr 2025, 12:26 PM
#2956
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,843
Plugin Contributions:
17

Re: One-Page Checkout [Support Thread]

It's a language define in includes/languages/english/lang.checkout_one.php. If you have no bottom instructions, you may want to blank that out. If you do, be careful to retain the single quotes.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

9 Jul 2025, 9:46 PM
#2957
dave224 avatar

dave224

Zen Follower

Join Date:
Jun 2012
Posts:
481
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

I'm working on the address change card in OPC when the customer edits the shipping or billing address during checkout. For larger screens the Save Changes button, Cancel button, and checkbox to add the address to the address book look fine. But on smaller screens, the buttons and checkbox run over the card width. In addition, looking at the code, the checkbox and its label should be on one row, while the two buttons should be on a separate row. I can't understand why block display style is not being followed. See attached screenshots. The relevant code snippet from includes/templates/bootstrap/templates/tpl_modules_opc_shipping_address.php is:

    if ($editShippingButtonLink === true) {
        $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"';
?>
        <div class="opc-buttons">
<?php
        if ($show_add_address === true) {
?>
            <div class="custom-control custom-checkbox">
                <?php echo zen_draw_checkbox_field("add_address['ship']", '1', false, 'id="opc-add-ship"' . $parameters); ?>
                <label class="checkboxLabel custom-control-label" for="opc-add-ship" title="<?php echo TITLE_ADD_TO_ADDRESS_BOOK; ?>"><?php echo TEXT_ADD_TO_ADDRESS_BOOK; ?></label>
            </div>
<?php
        }
?>
            <div class="d-flex justify-content-around mt-2">
                <div id="opc-ship-cancel"><?php echo zen_image_button(BUTTON_IMAGE_CANCEL, BUTTON_CANCEL_CHANGES_ALT, $cancel_title); ?></div>
                <div id="opc-ship-save"><?php echo zen_image_button(BUTTON_IMAGE_UPDATE, BUTTON_SAVE_CHANGES_ALT, $save_title); ?></div>
            </div>
        </div>
<?php
    }

The images are attached.

Thank you,

Dave
zc1.5.8a, bootstrap 3.7.7, opc 2.5.4
Attachment 21002Attachment 21003

10 Jul 2025, 12:39 PM
#2958
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

Dave224:

I'm working on the address change card in OPC when the customer edits the shipping or billing address during checkout. For larger screens the Save Changes button, Cancel button, and checkbox to add the address to the address book look fine. But on smaller screens, the buttons and checkbox run over the card width. In addition, looking at the code, the checkbox and its label should be on one row, while the two buttons should be on a separate row. I can't understand why block display style is not being followed. See attached screenshots. The relevant code snippet from includes/templates/bootstrap/templates/tpl_modules_opc_shipping_address.php is:

if ($editShippingButtonLink === true) {
    $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"';

?>
<div class="opc-buttons">

<?php if ($show_add_address === true) { ?>
        <div class="custom-control custom-checkbox">
            <?php echo zen_draw_checkbox_field("add_address['ship']", '1', false, 'id="opc-add-ship"' . $parameters); ?>
            <label class="checkboxLabel custom-control-label" for="opc-add-ship" title="<?php echo TITLE_ADD_TO_ADDRESS_BOOK; ?>"><?php echo TEXT_ADD_TO_ADDRESS_BOOK; ?></label>
        </div>
<?php } ?>
        <div class="d-flex justify-content-around mt-2">
            <div id="opc-ship-cancel"><?php echo zen_image_button(BUTTON_IMAGE_CANCEL, BUTTON_CANCEL_CHANGES_ALT, $cancel_title); ?></div>
            <div id="opc-ship-save"><?php echo zen_image_button(BUTTON_IMAGE_UPDATE, BUTTON_SAVE_CHANGES_ALT, $save_title); ?></div>
        </div>
    </div>
<?php } ``` > The images are attached. > > Thank you, > > Dave > zc1.5.8a, bootstrap 3.7.7, opc 2.5.4 > Attachment 21002Attachment 21003 I'm not seeing that behavior. For wide screens, the "Cancel" and "Save Changes" buttons are on their own lines and I'm guessing that some CSS change that you've made is causing that change (which is also why the smaller screens' display has gone wonky).
10 Jul 2025, 7:23 PM
#2959
dave224 avatar

dave224

Zen Follower

Join Date:
Jun 2012
Posts:
481
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

lat9:

I'm not seeing that behavior. For wide screens, the "Cancel" and "Save Changes" buttons are on their own lines and I'm guessing that some CSS change that you've made is causing that change (which is also why the smaller screens' display has gone wonky).

I believe the offending CSS is line 25 in includes/templates/bootstrap/css/checkout_one.css:

.opc-buttons > div:first-child { float: left; }

which I have not edited. Float left apparently changes the block display. I got around the problem by adding a div before the checkbox div thus changing the first child div so the float left does not affect remaining div's. There are probably more elegant solutions.

        if ($show_add_address === true) {
?>
            <div class="p-2"></div>
            <div class="custom-control custom-checkbox">
                <?php echo zen_draw_checkbox_field("add_address['ship']", '1', false, 'id="opc-add-ship"' . $parameters); ?>
                <label class="checkboxLabel custom-control-label" for="opc-add-ship" title="<?php echo TITLE_ADD_TO_ADDRESS_BOOK; ?>"><?php echo TEXT_ADD_TO_ADDRESS_BOOK; ?></label>
            </div>
<?php
        }

Dave

10 Jul 2025, 8:52 PM
#2960
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

Dave224:

I believe the offending CSS is line 25 in includes/templates/bootstrap/css/checkout_one.css:

.opc-buttons > div:first-child { float: left; }

> which I have not edited. Float left apparently changes the block display. I got around the problem by adding a div before the checkbox div thus changing the first child div so the float left does not affect remaining div's. There are probably more elegant solutions.
> ```
        if ($show_add_address === true) {
?>
            <div class="p-2"></div>
            <div class="custom-control custom-checkbox">
                <?php echo zen_draw_checkbox_field("add_address['ship']", '1', false, 'id="opc-add-ship"' . $parameters); ?>
                <label class="checkboxLabel custom-control-label" for="opc-add-ship" title="<?php echo TITLE_ADD_TO_ADDRESS_BOOK; ?>"><?php echo TEXT_ADD_TO_ADDRESS_BOOK; ?></label>
            </div>
<?php
        }

Dave
You've missed the bit in the One-Page Checkout readme.html (Step B of the Initial Installation section):

If your store [B][I]is not using the Bootstrap template[/I][/B] (or a clone there-of), rename the YOUR_TEMPLATE sub-directories [B](5 of them)[/B]  to match your store's template name.  The Bootstrap template (v3.4.0  and later) already includes its template-specific integration, so the  files from [I]this[/I] distribution are neither needed nor wanted!

The checkout_one.css file distributed with the Bootstrap template is only 23 lines long.