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

One-Page Checkout [Support Thread]

Views: 629,482

Results 1,321 to 1,340 of 3,078
21 Aug 2019, 8:37 PM
#1321
mvstudio avatar

mvstudio

Zen Follower

Join Date:
Apr 2008
Posts:
447
Plugin Contributions:
1

One-Page Checkout [Support Thread]

dbltoe:

Yep, if the Admin >> Configuration >> Regulations are set to true, the system will not continue and throw the error.

Knowing that you get the same coupon result either way, can help with the troubleshooting.

I removed the the regulations, entered the coupon code, clicked APPLY and no coupon confirmation message either, so I'm guessing T&C box has no effect on this. I do need to have the regulations set to true though. I'll keep on working on the suggestions and see what I get.

21 Aug 2019, 8:59 PM
#1322
mvstudio avatar

mvstudio

Zen Follower

Join Date:
Apr 2008
Posts:
447
Plugin Contributions:
1

Re: One-Page Checkout [Support Thread]

Re-installed the plugin as it comes out of the box (well folder) before trying the suggestions and still the "Congratulations you have redeemed the Discount Coupon" won't display. :dontgetit

22 Aug 2019, 12:22 AM
#1323
mvstudio avatar

mvstudio

Zen Follower

Join Date:
Apr 2008
Posts:
447
Plugin Contributions:
1

Re: One-Page Checkout [Support Thread]

@lat9 I'm guessing this is what you where telling me to look for. I have no idea how to read that though :blush:

Attachment 18623

22 Aug 2019, 11:21 AM
#1324
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

mvstudio:

@lat9 I'm guessing this is what you where telling me to look for. I have no idea how to read that though :blush:

Attachment 18623

You got it, @mvstudio! That coupon-related message is 'targeted' (via that **class **parameter) to be displayed for a **checkout **group (which isn't one of the groups looked at by OPC). The base checkout_one-page template (tpl_checkout_one_default.php) will display the checkout_payment, checkout_shipping and redemptions groups by default.

If you make a template-override copy of that module, changing this section:

$messages_to_check = array('checkout_shipping', 'checkout_payment', 'redemptions');
foreach ($messages_to_check as $page_check) {
    if ($messageStack->size ($page_check) > 0) {
        echo $messageStack->output ($page_check);
    }
}

to read

$messages_to_check = array('checkout_shipping', 'checkout_payment', 'redemptions'[B], 'checkout'[/B]);
foreach ($messages_to_check as $page_check) {
    if ($messageStack->size ($page_check) > 0) {
        echo $messageStack->output ($page_check);
    }
}

... I believe that you'll find that coupon/reward-points message now displays.

FWIW, I've created a GitHub issue for OPC and will add that 'class' to its default display for the next release.

22 Aug 2019, 4:04 PM
#1325
mvstudio avatar

mvstudio

Zen Follower

Join Date:
Apr 2008
Posts:
447
Plugin Contributions:
1

Re: One-Page Checkout [Support Thread]

lat9:

You got it, @mvstudio! That coupon-related message is 'targeted' (via that **class **parameter) to be displayed for a **checkout **group (which isn't one of the groups looked at by OPC). The base checkout_one-page template (tpl_checkout_one_default.php) will display the checkout_payment, checkout_shipping and redemptions groups by default.

If you make a template-override copy of that module, changing this section:

$messages_to_check = array('checkout_shipping', 'checkout_payment', 'redemptions');
foreach ($messages_to_check as $page_check) {
if ($messageStack->size ($page_check) > 0) {
echo $messageStack->output ($page_check);
}
}

> to read
> ```
$messages_to_check = array('checkout_shipping', 'checkout_payment', 'redemptions'[B], 'checkout'[/B]);
foreach ($messages_to_check as $page_check) {
    if ($messageStack->size ($page_check) > 0) {
        echo $messageStack->output ($page_check);
    }
}

... I believe that you'll find that coupon/reward-points message now displays.

FWIW, I've created a GitHub issue for OPC and will add that 'class' to its default display for the next release.

You're AWESOME!!!!! Thank you!!!
It does work beautifully for the coupons, but not for the reward points. Actually no message is generated at all for reward points not even on the regular ZC checkout.

But I can work with this. Since I have prevented coupons and reward points from being used together, I can reword the message for customers to remove the coupon if they want to use their rewards and viceversa.

Thank you so, so much!!! :hug:

22 Aug 2019, 4:20 PM
#1326
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

No problems, @mvstudio; the resolution of your issue hinged on providing that screenshot!

23 Aug 2019, 8:00 PM
#1327
stellarweb avatar

stellarweb

Zen Follower

Join Date:
May 2006
Location:
Montana
Posts:
293
Plugin Contributions:
8

Re: One-Page Checkout [Support Thread]

I really really want to use OPC on my site, but having an issue with the square payment module and free shipping only. I looked through this thread and saw where someone else had a similar problem, but doesnt match mine... so here I go:
Dev site using:
PHP 7.1
Zen 1.5.6c (includes square code)
Mods so far are:
Slider on main page
Colorbox
Testimonials Mgr
News Mgr

Issue: Square shows up, but I get no input boxes
Hoping someone can help me figure out what is going on?
Attachment 18624

23 Aug 2019, 9:02 PM
#1328
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

What template are you using, @stellarweb?

23 Aug 2019, 11:34 PM
#1329
stellarweb avatar

stellarweb

Zen Follower

Join Date:
May 2006
Location:
Montana
Posts:
293
Plugin Contributions:
8

Re: One-Page Checkout [Support Thread]

Hi Cindy - I just have it set on the generic responsive classic template. I switched to the classic green template and it is the same way - no input boxes.

Judy Gunderson

lat9:

What template are you using, @stellarweb?

24 Aug 2019, 11:35 AM
#1330
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

Do the input boxes show if you disable OPC and checkout using the "traditional" method?

24 Aug 2019, 1:32 PM
#1331
stellarweb avatar

stellarweb

Zen Follower

Join Date:
May 2006
Location:
Montana
Posts:
293
Plugin Contributions:
8

Re: One-Page Checkout [Support Thread]

Yes, authorize.net shows up fine, I checked that first thing. I have also tried different versions of php and that didn't help either. I wonder if there is a javascript conflict with some of the mods I have installed? Do you think it will help if I try disabling some of the mod js and see if that changes anything?

Attachment 18625

lat9:

Do the input boxes show if you disable OPC and checkout using the "traditional" method?

24 Aug 2019, 1:50 PM
#1332
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

I was asking whether Square shows up OK in the 3-page checkout.

Saying that, have you copied /includes/modules/pages/checkout_payment/jscript_square.php to /includes/modules/pages/checkout_one?

24 Aug 2019, 2:13 PM
#1333
stellarweb avatar

stellarweb

Zen Follower

Join Date:
May 2006
Location:
Montana
Posts:
293
Plugin Contributions:
8

Re: One-Page Checkout [Support Thread]

Sorry for the misunderstanding Cindy! BUT... the good news is that copying the jscript_square.php file over did the trick so I am all good!!! :clap:

Thanks so much for your help!!!

Judy Gunderson

lat9:

I was asking whether Square shows up OK in the 3-page checkout.

Saying that, have you copied /includes/modules/pages/checkout_payment/jscript_square.php to /includes/modules/pages/checkout_one?

24 Aug 2019, 3:17 PM
#1334
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

stellarweb:

Sorry for the misunderstanding Cindy! BUT... the good news is that copying the jscript_square.php file over did the trick so I am all good!!! :clap:

Thanks so much for your help!!!

Judy Gunderson
No problems, Judy; I'm happy to have helped. Note that you'll need to do the same copy-over with jscript_payeezy.php if you're planning on using that payment method.

3 Sep 2019, 8:41 PM
#1335
jiji2018 avatar

jiji2018

Zen Follower

Join Date:
Apr 2018
Posts:
121
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

I installed a one-page payment function and encountered a problem. I used PayPal to pay. After clicking submit, I didn't jump to the PayPal page. Instead, I went back to the default payment step and prompted the red word.

You have changed the items in your cart since shipping was last calculated, and costs may have changed. Please verify/re-select your shipping method.

I need to check which file has a problem with the code?
Urgent,Urgent,Urgent

4 Sep 2019, 11:27 AM
#1336
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

jiji2018:

I installed a one-page payment function and encountered a problem. I used PayPal to pay. After clicking submit, I didn't jump to the PayPal page. Instead, I went back to the default payment step and prompted the red word.

You have changed the items in your cart since shipping was last calculated, and costs may have changed. Please verify/re-select your shipping method.

I need to check which file has a problem with the code?
Urgent,Urgent,Urgent
You haven't given me much information with which to diagnose your issue.

What version of Zen Cart, version of OPC is being used?

What template is being used?

What shipping methods were offered?

Which type of PayPal (PayPal Payments Standard, PayPal Express Checkout or PayPal Payments Pro)?

What other plugins are installed on the store?

5 Sep 2019, 10:34 AM
#1337
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,770
Plugin Contributions:
20

Re: One-Page Checkout [Support Thread]

Followup to my previous post here...

Report All Errors revealed nothing, there was no mention of checkout pages at all. OPC debug logs show nothing relevant, everything looks just the same as all other orders.

I now think this is related to the modifications I had added to the checkout process. I tried removing it and everything worked fine for a week. Then I restored the modifications and problems are back.
Several orders have gone through without any Shipping Address.

Did I make any mistakes with the custom-added session variable? Here's what I've done:
tpl_modules_opc_payment_choices.php - line 23 (right after <legend>):

$po_val = isset($_SESSION['po_number']) ? $_SESSION['po_number'] : '';

if($check_flag_group) {
?>
<!--bof comments block -->
    <div id="checkoutPurchaseOrder">
      <fieldset class="shipping" id="purchaseOrder"><legend><?php echo MODULE_PAYMENT_PURCHASEORDER_TEXT_PURCHASEORDER_NUMBER; ?></legend><?php echo zen_draw_input_field('po_number', $po_val, 'id="purchaseorders-po-number"' . $onFocus . ' autocomplete="off"'); ?></fieldset>
    </div>
<!--eof comments block -->
<?php } ?>

then, includes/modules/pages/checkout_one_confirmation/header.php - line 167 (right after $comments = $_SESSION['comments'];)

unset($_SESSION['po_number']);
if(zen_not_null($_POST['po_number'])) {
    $_SESSION['po_number'] = zen_clean_html($_POST['po_number']);
    $po_number = $_SESSION['po_number'];
}

and finally includes/classes/observers/class.checkout_one_observer.php on line 573 (right after unset for ceon manual card):

if (isset($session_data['po_number'])) {
            unset($session_data['po_number']);
        }

What am I missing? If I remove this code, everything works just fine. If this code is there, SOME orders come through without Shipping Address (database fields are left empty). :dontgetit :frusty:

Thanks!

5 Sep 2019, 10:48 AM
#1338
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

@balihr, you've done all the right things from an OPC perspective (although I don't believe that you need that alteration to the OPC observer).

Your template change adds the data-gathering for that PO number and the change you made to the confirmation page's header records that value in the session prior to the session-hash value being created. That's why you don't need that OPC observer change as those 'unsets' deal with order-totals and payment- or shipping-modules that modify their session values during order creation.

What additional processing is being performed if a PO number is supplied for the order?

5 Sep 2019, 10:59 AM
#1339
jiji2018 avatar

jiji2018

Zen Follower

Join Date:
Apr 2018
Posts:
121
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

There is a step I think can be optimized, but I don't know how to modify it.

When the customer is not logged in, click checkout on the shopping cart page, and I want to jump directly to the registration page.
I am using the 1.55F version of zencart
One-Page Checkout version 2.1.2
I don't want customers to choose to log in or register when they check out.
Because I found that many customers shut down my website on this page.
They should prefer to see the registration information as they are new customers.

How can I modify the code to implement this idea?

5 Sep 2019, 11:04 AM
#1340
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

jiji2018:

There is a step I think can be optimized, but I don't know how to modify it.

When the customer is not logged in, click checkout on the shopping cart page, and I want to jump directly to the registration page.
I am using the 1.55F version of zencart
One-Page Checkout version 2.1.2
I don't want customers to choose to log in or register when they check out.
Because I found that many customers shut down my website on this page.
They should prefer to see the registration information as they are new customers.

How can I modify the code to implement this idea?
It sounds like you should contact a developer ... see the Zen Cart Help Wanted area.