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

One-Page Checkout [Support Thread]

Views: 629,534

Results 1,741 to 1,760 of 3,078
23 Aug 2020, 7:15 PM
#1741
lat9 avatar

lat9

Administrator

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

One-Page Checkout [Support Thread]

To keep that checkbox checked, you'll need to modify that optional insurance order-total so that it records the check when clicked (or unclicked) into the session, as you indicated, and also to initialize the checkbox based on that session value (if present).

23 Aug 2020, 8:11 PM
#1742
jeff_mash avatar

jeff_mash

Totally Zenned

Join Date:
Aug 2004
Posts:
732
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

lat9:

To keep that checkbox checked, you'll need to modify that optional insurance order-total so that it records the check when clicked (or unclicked) into the session, as you indicated, and also to initialize the checkbox based on that session value (if present).

Ok cool.....I just did that in the ot_insurance module and got it working!

Final question (I promise)! It looks like your One Page module is the one putting the "Apply" button next to these other modules, which makes total sense because it's designed to have the user "click to apply" their settings.

But since I modified the Insurance module to "auto-submit" upon checking the box, I no longer need the "Apply" button next to it (since it's auto-applied based on our changes).

How can I remove that Apply button from being displayed on the ot_insurance section of the checkout page? (Would it just be an if/else statement added to your function submitonce() in your checkout_one.js file)?

24 Aug 2020, 12:19 PM
#1743
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

Jeff_Mash:

Ok cool.....I just did that in the ot_insurance module and got it working!

Final question (I promise)! It looks like your One Page module is the one putting the "Apply" button next to these other modules, which makes total sense because it's designed to have the user "click to apply" their settings.

But since I modified the Insurance module to "auto-submit" upon checking the box, I no longer need the "Apply" button next to it (since it's auto-applied based on our changes).

How can I remove that Apply button from being displayed on the ot_insurance section of the checkout page? (Would it just be an if/else statement added to your function submitonce() in your checkout_one.js file)?
You can "hide" that button via CSS. Just update your template's version of /css/checkout_one.css and add something akin to

#disc-ot_insurance+div.buttonRow { display: none; }

Just use your browser's 'element inspector' and make sure that the id= attribute on the ot_insurance input matches the value above.

24 Aug 2020, 5:29 PM
#1744
jeff_mash avatar

jeff_mash

Totally Zenned

Join Date:
Aug 2004
Posts:
732
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

lat9:

You can "hide" that button via CSS. Just update your template's version of /css/checkout_one.css and add something akin to

#disc-ot_insurance+div.buttonRow { display: none; }

> 
> Just use your browser's 'element inspector' and make sure that the **id=** attribute on the *ot_insurance* input matches the value above.

Thank you so much for all your help!   That works PERFECTLY!!

Just to document what I did (for anyone else wanting to accomplish the same), I made two changes to the code.

1.  Since your template is the one that adds the Apply button on the checkout page, I modified the tpl_opc_credit_selections.php to assign a unique class name to ONLY the insurance block.

I changed this (line 54):

<div class="buttonRow forward"><?php echo zen_image_button(BUTTON_IMAGE_SUBMIT, ALT_TEXT_APPLY_DEDUCTION, $additional_parms, $secondary_class); ?></div> ```

And replaced it with this:

            <?php 
				if(strpos($current_selection['module'],"Shipping Insurance") !== false){
			?>
				<div class="buttonRow forward ot-insurance"><?php echo zen_image_button(BUTTON_IMAGE_SUBMIT, ALT_TEXT_APPLY_DEDUCTION, $additional_parms, $secondary_class); ?></div>
			<?php 
				}
				else {
			?>
					<div class="buttonRow forward"><?php echo zen_image_button(BUTTON_IMAGE_SUBMIT, ALT_TEXT_APPLY_DEDUCTION, $additional_parms, $secondary_class); ?></div>
			<?php 
				}
			?>

There is probably a better (and prettier) way to accomplish that, but I'm not a native PHP programmer. :)

  1. Finally, I simply edited your checkout_one.css file to add the following line:
.ot-insurance { display: none; }

Those changes (along with the previous posts of ours) made the module work exactly as we wanted! The customer can now click to apply insurance, it will update the form totals automatically, and the now-redundant "Apply" button has been removed from that Insurance block (without removing it from others like Coupons and Gift Certificates, etc).

Thanks again for all your help, Lat9!

25 Aug 2020, 12:21 PM
#1745
mprough avatar

mprough

Totally Zenned

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

Re: One-Page Checkout [Support Thread]

I think I have a bug =(

So when you change the shipping/billing address in checkout the only button there is cancel, "save changes" doesn't appear until you click the box which cannot be seen

Zen Cart 1.5.5f
OPC 2.3.3 (2020-07-07)

~Melanie

25 Aug 2020, 12:49 PM
#1746
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

mprough:

I think I have a bug =(

So when you change the shipping/billing address in checkout the only button there is cancel, "save changes" doesn't appear until you click the box which cannot be seen

Zen Cart 1.5.5f
OPC 2.3.3 (2020-07-07)

~Melanie
Which bootstrap template is in use? Have you checked to see that any of the template's overrides of the OPC templates is 'current'?

I'll note that the site's pulling in a woefully old v2.1.1 of jQuery, don't know if that has play in the issue or not.

25 Aug 2020, 12:54 PM
#1747
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

Noting, too, that the Save Changes button appears when you exit the changed field.

25 Aug 2020, 1:02 PM
#1748
mprough avatar

mprough

Totally Zenned

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

Re: One-Page Checkout [Support Thread]

lat9:

Which bootstrap template is in use? Have you checked to see that any of the template's overrides of the OPC templates is 'current'?

I'll note that the site's pulling in a woefully old v2.1.1 of jQuery, don't know if that has play in the issue or not.

Updated jQuery, no help. Bootstrap Version: 1.0.5 08 July 2018.

Have you checked to see that any of the template's overrides of the OPC templates is 'current'?
Not to be dense, but I don't understand this LOL

25 Aug 2020, 1:29 PM
#1749
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

For that last bit, I was suggesting that you file-compare the /templates/bootstrap/templates against templates/template_default/templates to ensure that any template-overrides for the OPC templates have all the current changes.

25 Aug 2020, 1:42 PM
#1750
mprough avatar

mprough

Totally Zenned

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

Re: One-Page Checkout [Support Thread]

lat9:

For that last bit, I was suggesting that you file-compare the /templates/bootstrap/templates against templates/template_default/templates to ensure that any template-overrides for the OPC templates have all the current changes.

I have done so.... did a full install of OPC instead of picking through it

26 Aug 2020, 2:35 PM
#1751
mprough avatar

mprough

Totally Zenned

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

Re: One-Page Checkout [Support Thread]

lat9:

Noting, too, that the Save Changes button appears when you exit the changed field.

Correct, but rarely do people click outside of the field... the simply need to be able to click save without having to unselect the last edited field. People can't use this like this... I showed it to 5 people and 4 of them couldn't figure out how to save the info

28 Aug 2020, 3:52 AM
#1752
spawnie69 avatar

spawnie69

Totally Zenned

Join Date:
Sep 2005
Location:
Ocala, FL
Posts:
527
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

fresh install zen 1.57 on php 5.64 temporarily until upgraded to 7.3 added Database Backup

After my square was setup I then enable one page checkout ver 2.3.3 (2020-07-07) and place items into a cart and select credit card for payment the cc fields are not displayed for entering data. When one page checkout settings are false my cc fields display correctly.Attachment 19167

28 Aug 2020, 9:46 AM
#1753
dbltoe avatar

dbltoe

Totally Zenned

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

Re: One-Page Checkout [Support Thread]

Last lines of the read.me for Square.

Have you copied the jscript_square.php file from /includes/modules/pages/checkout_payment/ into the /includes/modules/pages/checkout_one/ folder?

28 Aug 2020, 1:58 PM
#1754
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

I've just submitted v2.3.4 of One-Page Checkout for the Zen Cart moderators' review; I'll post back here when it's available for download.

 This release contains changes associated with the following GitHub issues:

#268: Enable "Save/Cancel" buttons on input-focus instead of change.
#269: Provide update scripts to ensure that guest address records are unmodified.

See also this additional documentation regarding the usage of /YOUR_ADMIN/opc_admin.php. That script, added for v2.3.4, provides fix-ups for OPC's guest billing and shipping addresses as there's the possibility that the addresses were overwritten by earlier versions of OPC's guest-handling.

28 Aug 2020, 7:09 PM
#1755
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

lat9:

I've just submitted v2.3.4 of One-Page Checkout for the Zen Cart moderators' review; I'll post back here when it's available for download.

 This release contains changes associated with the following GitHub issues:

#268: Enable "Save/Cancel" buttons on input-focus instead of change.
#269: Provide update scripts to ensure that guest address records are unmodified.

See also this additional documentation regarding the usage of /YOUR_ADMIN/opc_admin.php. That script, added for v2.3.4, provides fix-ups for OPC's guest billing and shipping addresses as there's the possibility that the addresses were overwritten by earlier versions of OPC's guest-handling.
Now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2095

29 Aug 2020, 12:58 PM
#1756
riomaha avatar

riomaha

New Zenner

Join Date:
Oct 2013
Location:
MTL
Posts:
66
Plugin Contributions:
1

Re: One-Page Checkout [Support Thread]

Hi, I did a fresh install of ZC 1.5.7 along with One-Page checkout version 2.3.4. All seems to be working fine but there is one thing I wish I could resolve. when users checkout as guest, the customer information aren't recorded in customers. instead only "Customer, do not remove" appears with whatever number of entries. The customer information is only found in the orders

Is there away to force it to record this name and email addresses. Why do I need it to do so?
We are using a hosted pay page which redirects back to the site after a payment is issued/deducted. If the browser fails to redirect or session timeout in between, there is no order number issues. So if I see a name registered an email address, it clues me in to check whether the fee was collected and nor order issues so that I can issue a refund immediately.

I use that functionality to determine whether a user tried to pay and or some reason their session timedout

29 Aug 2020, 3:03 PM
#1757
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

riomaha:

Hi, I did a fresh install of ZC 1.5.7 along with One-Page checkout version 2.3.4. All seems to be working fine but there is one thing I wish I could resolve. when users checkout as guest, the customer information aren't recorded in customers. instead only "Customer, do not remove" appears with whatever number of entries. The customer information is only found in the orders

Is there away to force it to record this name and email addresses. Why do I need it to do so?
We are using a hosted pay page which redirects back to the site after a payment is issued/deducted. If the browser fails to redirect or session timeout in between, there is no order number issues. So if I see a name registered an email address, it clues me in to check whether the fee was collected and nor order issues so that I can issue a refund immediately.

I use that functionality to determine whether a user tried to pay and or some reason their session timedout
For a guest-checkout, there's no individual customer record or address-book entries recorded ... it's a guest-checkout, after all. What payment method is in use on the site?

29 Aug 2020, 3:29 PM
#1758
riomaha avatar

riomaha

New Zenner

Join Date:
Oct 2013
Location:
MTL
Posts:
66
Plugin Contributions:
1

Re: One-Page Checkout [Support Thread]

I am using moneris hosted pay page. The module does not insert customer information until a the transaction is approved. If declined or canceled it is not recorded.

29 Aug 2020, 6:11 PM
#1759
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

riomaha:

I am using moneris hosted pay page. The module does not insert customer information until a the transaction is approved. If declined or canceled it is not recorded.
If you turn the Moneris debug on, the resulting .log files will contain the information you seek.

29 Aug 2020, 7:39 PM
#1760
jeff_mash avatar

jeff_mash

Totally Zenned

Join Date:
Aug 2004
Posts:
732
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

Out of curiosity, is there still an issue with Guest Checkout for virtual products? I am trying to work-around the reality of our customers buying a digital download that we sell, but using the guest checkout feature. Since they are purchasing it without an account, it would seem like there is no way to give them the access to the file.

If that's the case, do you know of anyway to PREVENT a customer from checking out as guest IF they have any virtual items in their cart? Perhaps a way to disable guest checkout if they have any products from Category XYZ (where XYZ equals the product category we have for digital items)?