1 Attachment(s)
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
Quote:
Originally Posted by
lat9
Do the input boxes show if you disable OPC and checkout using the "traditional" method?
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?
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
Quote:
Originally Posted by
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?
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
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.
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
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
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?
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>):
Code:
$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'];)
Code:
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):
Code:
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!
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?
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?
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
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.