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

One-Page Checkout [Support Thread]

Views: 629,435

Results 1,021 to 1,040 of 3,078
24 Dec 2018, 10:27 PM
#1021
lat9 avatar

lat9

Administrator

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

One-Page Checkout [Support Thread]

lat9:

I've just submitted v2.0.5 of One-Page Checkout to the Zen Cart plugins for review. This version contains changes associated with the following GitHub issues:

#133: Guest/Registered-Accounts, pre-fill Zip Code
#148: Payment change requires order-totals block update
#151: zc156 updates not fully incorporated
#152: Salutation Ms. not saved on guest-account creation
#156: Square payments input blocks disappear after shipping change
#157: Taxed order-totals 'lose' their tax on payment-method update.
#158: Correct various 'PHP Notice' issues.
#159: Partial zc156 integration; downward-compatible files only.

Please note: This version is not fully integrated with Zen Cart 1.5.6; you'll need to review the core- and template-file changes and merge the well-marked change sections into the Zen Cart 1.5.6 base. I expect to have the zc156 integration completed early next year.

This is the final release that will continue to support Zen Cart versions less than 1.5.5f, too, due to the number of changes introduced by the zc156 core.
Now available for download from the Zen Cart plugins section.

5 Feb 2019, 12:17 AM
#1022
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

Hello Cindy - I would like to add some text to the PayPal image in payment selection - had a few customers 'expecting' that when they selected the paypal radio button on the payment page that it would take them immediately to PayPal (like the paypal icon on the checkout page) not realizing they need to click confirm order first which requires scrolling with a lot of white space between them (a couple have contacted me meaning a bunch of others haven't) - so in an effort to try to obviate these instances could you guide me please to where/how I can add some text to the bottom of that block, if this is possible that is - if not then no problem.

cheers, Mike
[Attachment no longer available]

5 Feb 2019, 3:02 AM
#1023
dbltoe avatar

dbltoe

Totally Zenned

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

Re: One-Page Checkout [Support Thread]

includes/modules/payment/paypalwpp.php around line 270. It's all an image from PayPal itself.

MODULE_PAYMENT_PAYPALEC_MARK_BUTTON_IMG

5 Feb 2019, 4:50 AM
#1024
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

dbltoe:

includes/modules/payment/paypalwpp.php around line 270. It's all an image from PayPal itself.

MODULE_PAYMENT_PAYPALEC_MARK_BUTTON_IMG

Many Thanks dbltoe

6 Feb 2019, 2:53 AM
#1025
gerrim avatar

gerrim

New Zenner

Join Date:
Jul 2013
Location:
Brisbane, Australia
Posts:
39
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

Since I couldn't find this referenced on the ZC forum, here's some info in case it can help another not-so-experienced Zenner out there like me. Cindy, please see text in blue below re whether this affects OPC code.

An OPC javascript-like error started to appear i.e. on checkout entry, instead of the usual OPC screen, only this is displayed:

Sorry, but our expedited checkout process cannot be used. Click here to use our alternate checkout process
```. 
FYI, javascript errors (Firefox: F12; Console menu) displayed while  SQUARE was enabled (the middle ones disappeared when SQUARE was  disabled): Attachment 18321  
However, I couldn’t track the problem down & resolve this issue for ages because, just through bad luck, a server PHP version issue happened at the same time and 'muddied the waters'. But more about the PHP issue later…

My system: ZC1.5.5e; OPC v2.0.5; Template: RSB v2 modified; various payment & shipping modules including SQUARE v, Direct Bank Deposit & Australia Post Shipping Modules; lots more plugins & mods. My website: (currently under development so closed for maintenance): <https://recoveredheritage.com.au/> .

First, the OPC issue + solution:
That **OPC error message was caused by 2 x database entries in my zones table including an apostrophe**: Côte-d**'**Or & Côtes-d**'**Armor. Internet research mentioned that one could use "a SqlParameter object to pass in values...so you don't have to worry about the apostrophes users enter in". However I did a manual work-around (replaced those apostrophes with spaces) since I'm not sure whether OPC has that functionality or if one of my other mods is interfering. 

Where did the apostrophe errors come from? Back in January, after getting OPC to play well with SQUARE (with Cindy's help - thanks), I added extra countries into my zones table in the  database using ZC plugins including [this one](https://www.zen-cart.com/downloads.php?do=file&id=1177).  After working through ZC1.5.5 compatibility issues with the old ZC version SQL files, I  did lots of testing...and thought I had nailed it :no:. When I tested OPC the next day or so, I started getting error logs at the same time. With hind-sight being 20-20, I now know those error logs had abolutely nothing to do with the OPC issue but were, instead, to do with the PHP issue (below). But I didn't know that then so... since a site can only have one active PHP version, I headed in the wrong direction and started in on upgrading to PHP 7.2. :oops: 

Now that this OPC issue is solved:clap:I've reverted to backups and am free instead to progress towards launching the website (using PHP 7.1) while upgrading to ZC1.5.6(maybe b) locally with WAMP where I can run PHP 7.3 while testing.   

And now the PHP issue:

**Don't take it for granted that your hosting company will tell you when they upgrade the server PHP default version to 7.2**. Mine didn't (inMotion hosting). So...if you start getting error logs out of the blue like [these ones](https://www.zen-cart.com/showthread.php?222638-Done-v1-5-6-PHP-Warning-A-non-numeric-value-encountered-PHP-7-warnings&p=1340188#post1340188), investigate whether you can just change your site PHP version manually back to PHP 7.1 FIRST - before you assume you have to do a full PHP 7.2 upgrade like I did. 

While I still had to address a few error logs even after I had reverted to Site PHP 7.1, there aren't too many so far. I think these occur when the cPanel currency cron job runs &, of course accessed the default server running PHP 7.2. (I haven't yet been able to get the SQUARE cron job to work...so fingers crossed.) 
 
Hope this helps.
6 Feb 2019, 11:35 AM
#1026
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

Thanks for the great job of analysis and data-gathering, @GerriM! I'll see if I can reproduce the issue to correct the underlying issue.

6 Feb 2019, 4:22 PM
#1027
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,279
Plugin Contributions:
37

Re: One-Page Checkout [Support Thread]

Greetings =)

I am having an issues where guest checkout is not updating totals for order total modules such as low order fee and minimum order fee. Neither works and checkout proceeds without adding them at all.

Zen Cart 1.5.5F
PayPal Express & WPP
PHP 7.1.26
OPC 2.0.5 (2018-12-23)
ZCA Bootstrap 1.0.6

[06-Feb-2019 15:56:26 UTC] PHP Notice:  Undefined property: ot_loworderfee::$credit_class in /home/----/public_html/includes/classes/order_total.php on line 125
2019-02-06 15:56:26 checkout_one: CHECKOUT_ONE_AFTER_ORDER_TOTAL_PROCESSING
order_total::__set_state(array(
   'modules' => 
  array (
    0 => 'ot_subtotal.php',
    1 => 'ot_shipping.php',
    2 => 'ot_coupon.php',
    3 => 'ot_tax.php',
    4 => 'ot_loworderfee.php',
    5 => 'ot_mfg_min_order.php',
    6 => 'ot_gv.php',
    7 => 'ot_total.php',
  ),
    <tr id="otsubtotal">
<td colspan="2" class="text-right bg-white">
Sub-Total:</td>
<td class="text-left bg-white">
$53.85</td> 
    </tr>

    <tr id="otshipping">
<td colspan="2" class="text-right bg-white">
USPS (Priority Mail™):</td>
<td class="text-left bg-white">
$11.16</td> 
    </tr>

    <tr id="ottotal">
<td colspan="2" class="text-right bg-white">
Total:</td>
<td class="text-left bg-white">
$65.01</td> 
    </tr>

I can provide the whole log if necessary, it's a dev environment.

2019-02-06 15:56:36 checkout_one_confirmation: Initial order information:order::__set_state(array(
   'info' => 
  array (
    'order_status' => '1',
    'currency' => 'USD',
    'currency_value' => '1.00000000',
    'payment_method' => NULL,
    'payment_module_code' => NULL,
    'coupon_code' => NULL,
    'shipping_method' => 'USPS (Priority Mail™)',
    'shipping_module_code' => 'usps_Priority MailTM',
    'shipping_cost' => 11.160000000000000142108547152020037174224853515625,
    'subtotal' => 53.85000000000000142108547152020037174224853515625,
    'shipping_tax' => 0,
    'tax' => 0.0,
    'total' => 65.0100000000000051159076974727213382720947265625,
    'tax_groups' => 
    array (
      'Sales Tax' => 0.0,
    ),
    'comments' => '',

Any ideas?

Thanks,
~Melanie

6 Feb 2019, 4:49 PM
#1028
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

Melanie, I just tried a < $50.00 order on my demo site (the configured low-order fee cut-off). Running zc155f/OPC 2.0.5/responsive_classic and had no issues regarding the low-order fee's addition to the order (verified that it's included in the order-confirmation email, too).

I've never used a "Minimum Order Fee", so I can't comment on its operation. I suppose the next step is to see what differences are seen between the bootstrap templates versions of the OPC template files (as-shipped in the /template_default subdirectory).

10 Feb 2019, 5:17 PM
#1029
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,279
Plugin Contributions:
37

Re: One-Page Checkout [Support Thread]

Question. I have been using this for sites instead of FEC. Problem is that I create a start template and thus it's already installed and customized. When I port over the live site's info the added SQL installation pieces are lost. It doesn't recheck even if I remove the admin installation.

Can you provide a means to install the SQL changes after installation?

10 Feb 2019, 8:09 PM
#1030
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

mprough:

Question. I have been using this for sites instead of FEC. Problem is that I create a start template and thus it's already installed and customized. When I port over the live site's info the added SQL installation pieces are lost. It doesn't recheck even if I remove the admin installation.

Can you provide a means to install the SQL changes after installation?
I don't understand. If the live site doesn't currently have OPC installed, then the admin-side processing will auto-create those configuration settings.

If you're porting from a test- to live-site, I suggest taking a snapshot of the test-site's OPC settings and updating those on the live site.

10 Feb 2019, 8:11 PM
#1031
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,279
Plugin Contributions:
37

Re: One-Page Checkout [Support Thread]

It is installed. But when I bring over the updated tables from the live site they do not contain all the database changes from OPC and it does not reinstall them.

11 Feb 2019, 11:25 AM
#1032
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

@mprough, I still don't understand. Which tables is it that you are "bringing over" from the live site and which OPC database changes are missing?

OPC doesn't perform its database update process if it doesn't see a change in its version.

11 Feb 2019, 1:24 PM
#1033
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,279
Plugin Contributions:
37

Re: One-Page Checkout [Support Thread]

So you create a dev site for an upgrade. Build it, make sure everything works... then when it's done, you have to upgrade the live site's database to catch up the orders, customers etc.

But the tables created by OPC are then lost and the installer doesn't re-create them, then people cannot check out for example.

11 Feb 2019, 3:55 PM
#1034
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

... and how do you go about that upgrading of the live site's database? I ask because what you said still doesn't make sense to me.

Was OPC previously installed on the live site? If so, what version? What version of OPC is installed on the upgrade site?

There are no tables, per se, created by OPC's installation script ... just additions to the database's configuration, customers and address_book tables.

11 Feb 2019, 4:02 PM
#1035
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,279
Plugin Contributions:
37

Re: One-Page Checkout [Support Thread]

Another one, sorry to double you up... It's a great mod. I am migrating a great deal of site from FEC, many of them have guest checkout only. I am trying to include the post for guest from the shopping cart page checkout button, so they go directly to checkout as a guest. I cannot redirect them because the checkout type is un-chosen, so I have to post the guest checkout selection.

So even if I bring in

zen_draw_hidden_field('guest_checkout', 1)

I am still directed to the login page. I have tried a bunch of things and I am certainly missing something, but no idea what. Any ideas?

11 Feb 2019, 4:05 PM
#1036
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,279
Plugin Contributions:
37

Re: One-Page Checkout [Support Thread]

lat9:

... and how do you go about that upgrading of the live site's database? I ask because what you said still doesn't make sense to me.

Was OPC previously installed on the live site? If so, what version? What version of OPC is installed on the upgrade site?

There are no tables, per se, created by OPC's installation script ... just additions to the database's configuration, customers and address_book tables.

The live site's database is upgraded to zc_install and then I bring over all of the customer, order and related tables to "refresh" the dev site's data. Then it's just a matter of moving the live (in maintenance mode) site's files out and the new files in. Right, I need to then add the changes for customers and address_book tables.

11 Feb 2019, 4:32 PM
#1037
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

@mprough, you can have OPC re-generate those customers and address-book records by cutting and pasting the following into the store's Tools->Install SQL Patches:

DELETE FROM configuration WHERE configuration_key IN ('CHECKOUT_ONE_GUEST_CUSTOMER_ID', 'CHECKOUT_ONE_GUEST_BILLTO_ADDRESS_BOOK_ID', 'CHECKOUT_ONE_GUEST_SENDTO_ADDRESS_BOOK_ID');

That will cause the OPC auto-installer to create those customer/address-book records on the next admin login or screen refresh.

11 Feb 2019, 7:02 PM
#1038
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,279
Plugin Contributions:
37

Re: One-Page Checkout [Support Thread]

lat9:

@mprough, you can have OPC re-generate those customers and address-book records by cutting and pasting the following into the store's Tools->Install SQL Patches:

DELETE FROM configuration WHERE configuration_key IN ('CHECKOUT_ONE_GUEST_CUSTOMER_ID', 'CHECKOUT_ONE_GUEST_BILLTO_ADDRESS_BOOK_ID', 'CHECKOUT_ONE_GUEST_SENDTO_ADDRESS_BOOK_ID');

> That will cause the OPC auto-installer to create those customer/address-book records on the next admin login or screen refresh.

Thank you very much
11 Feb 2019, 7:36 PM
#1039
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,279
Plugin Contributions:
37

Re: One-Page Checkout [Support Thread]

mprough:

Another one, sorry to double you up... It's a great mod. I am migrating a great deal of site from FEC, many of them have guest checkout only. I am trying to include the post for guest from the shopping cart page checkout button, so they go directly to checkout as a guest. I cannot redirect them because the checkout type is un-chosen, so I have to post the guest checkout selection.

So even if I bring in

zen_draw_hidden_field('guest_checkout', 1)

> 
> I am still directed to the login page. I have tried a bunch of things and I am certainly missing something, but no idea what. Any ideas?

So I figured this out.
V1.5.5F

In tpl_shopping_cart_default.php
find
   <!-- Finished loop through all products /-->
  </table>
<div id="cartSubTotal"><?php echo SUB_TITLE_SUB_TOTAL; ?> <?php echo $cartShowTotal; ?></div> ``` And make it ``` <!-- Finished loop through all products /--> </table> </form> <div id="cartSubTotal"><?php echo SUB_TITLE_SUB_TOTAL; ?> <?php echo $cartShowTotal; ?></div> ```

then find:

<!--bof shopping cart buttons-->
<div class="buttonRow forward"><?php echo '<a href="' . zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . zen_image_button(BUTTON_IMAGE_CHECKOUT, BUTTON_CHECKOUT_ALT) . '</a>'; ?></div>
<div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_CONTINUE_SHOPPING, BUTTON_CONTINUE_SHOPPING_ALT) . '</a>'; ?></div>

and make it:

<!--bof shopping cart buttons-->
<?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_CONTINUE_SHOPPING, BUTTON_CONTINUE_SHOPPING_ALT) . '</a>'; ?><?php echo zen_draw_form('guest', zen_href_link(FILENAME_CHECKOUT_ONE, '', 'SSL'), 'post') . zen_draw_hidden_field('guest_checkout', 1); ?>
<div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_CONTINUE_SHOPPING, BUTTON_CONTINUE_SHOPPING_ALT) . '</a>'; ?></div>
</form>

Then a few lines down (146ish)
find

</form>

and remove it.

This change makes people always be a guest and continue right in to checkout from the shopping cart page.

My testing so far is minimal, but if I find any issues I'll report here.

~Melanie

12 Feb 2019, 4:27 AM
#1040
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

Hi Cindy - after checking out with OPC on the checkout success page SITE/index.php?main_page=checkout_success I am seeing the following;
Checkout Success Sample Text ...

Checkout Success Sample Text ...

A few words about the approximate shipping time or your processing policy for guest-checkout would be put here.

This section of text is from the Define Pages Editor located under Tools in the Admin.
You can view the status of this order by going to the Order Status page and supplying this order number and your email address.
Please direct any questions you have to customer service.

in admin/tools/define pages editor/checkout success ... I inserted customized text when the site was built but that text is not showing - have I missed a file merge or something?

cheers, Mike