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

One-Page Checkout [Support Thread]

Views: 629,530

Results 1,821 to 1,840 of 3,078
27 Oct 2020, 2:27 PM
#1821
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,955
Plugin Contributions:
8

One-Page Checkout [Support Thread]

lat9:

Nice one, @carlwhat! I'm guessing that that statement applies to constant definitions, too, since they're not variables.

:thumbsup:

27 Oct 2020, 2:28 PM
#1822
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

carlwhat:

:thumbsup:
I'll update OPC's readme to reflect that minimum PHP 5.5 requirement.

27 Oct 2020, 2:29 PM
#1823
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

carlwhat:

perhaps not that odd. from

https://www.php.net/manual/en/function.empty.php

Note:

Prior to PHP 5.5, empty() only supports variables; anything else will result in a parse error. In other words, the following will not work: empty(trim($name)). Instead, use trim($name) == false.

Thanks for finding and sharing this! Gives some hope that the PHP upgrade will resolve this issue. Still waiting on HostGator support for that.

29 Oct 2020, 6:14 PM
#1824
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

jeking:

Thanks for finding and sharing this! Gives some hope that the PHP upgrade will resolve this issue. Still waiting on HostGator support for that.

To wrap this up, PHP was the problem for the issue. We're using 7.1 now.

An new error occurred which turned out was due to the template over-ride file of tpl_modules_order_totals.php. Thanks to lat9 for help tracking it down. This site is using the M O Z E N template (still don't know why I can't use that work on the forum). Removing that file so the default is used solved that problem.

OPC is working.

29 Oct 2020, 7:30 PM
#1825
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: One-Page Checkout [Support Thread]

(the m o z e n template was initially spammed all over the forum and then full of crap code and then instead of supporting or maintaining it they just tried to advertise more of it ... all of which were reasons to block the author's ability to promote it on the forum)

2 Nov 2020, 7:10 PM
#1826
stellarweb avatar

stellarweb

Zen Follower

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

Re: One-Page Checkout [Support Thread]

Trying OPC on 1.5.7a, using PHP 1.5.6 and get this error

[02-Nov-2020 19:00:37 UTC] Request URI: /157/2020/index.php?cmd=login&camefrom=index.php&zenAdminID=ht44v1081e5v9f8ftio6hjf0n7, IP address: xxx.xx.xxx.xxx
--> PHP Fatal error: Class 'CheckoutOneEmailObserver' not found in /home/izom2012/public_html/157/includes/autoload_func.php on line 44.

Any advice?

2 Nov 2020, 7:44 PM
#1827
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

stellarweb:

Trying OPC on 1.5.7a, using PHP 1.5.6 and get this error

[02-Nov-2020 19:00:37 UTC] Request URI: /157/2020/index.php?cmd=login&camefrom=index.php&zenAdminID=ht44v1081e5v9f8ftio6hjf0n7, IP address: xxx.xx.xxx.xxx
--> PHP Fatal error: Class 'CheckoutOneEmailObserver' not found in /home/izom2012/public_html/157/includes/autoload_func.php on line 44.

> Any advice?
Just the obvious :smile: ... did you copy the file /includes/classes/observers/CheckoutOneEmailObserver.php from the OPC distribution's zip-file?
2 Nov 2020, 8:27 PM
#1828
stellarweb avatar

stellarweb

Zen Follower

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

Re: One-Page Checkout [Support Thread]

lat9:

Just the obvious :smile: ... did you copy the file /includes/classes/observers/CheckoutOneEmailObserver.php from the OPC distribution's zip-file?

I am a numbnut and you are wonderful!!!! Thanks!!!!

3 Nov 2020, 10:29 PM
#1829
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

Just wanted to give a huge shout out :thumbsup: to @lat9 for this plugin. Did an upgrade to 1.5.7a, uploaded the plugin files, set the configuration and it worked. No merging of files, no nothing. Just dropped it in. Wow, that felt good!!

3 Nov 2020, 11:17 PM
#1830
jeff_mash avatar

jeff_mash

Totally Zenned

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

Re: One-Page Checkout [Support Thread]

I agree, Cindy (aka Lat9) is the best. She's one of the most prolific contributors to ZenCart and she's always gone above and beyond to support her plugins. Thanks Cindy!!

4 Nov 2020, 1:58 PM
#1831
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

Thanks for those votes of confidence!

6 Nov 2020, 6:48 PM
#1832
jeff_mash avatar

jeff_mash

Totally Zenned

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

Re: One-Page Checkout [Support Thread]

Cindy - Wondering your thoughts on this, and what it might be. Had a customer say that when trying to purchase a virtual product, it wouldn't let him because it was asking him for a shipping address. Strange, right? I mean, I logged into his account, and I was able to get to the Paypal screen without seeing that error.

However, I did find THIS in the error log file which might coincide with the time he tried to make his purchase:

[06-Nov-2020 06:03:13 America/Los_Angeles] Request URI: /store/ajax.php?act=ajaxOnePageCheckout&method=updateShipping, IP address: 68.110.91.69
#1  trigger_error() called at [/home/domain/public_html/store/includes/classes/OnePageCheckout.php:1348]
#2  OnePageCheckout->inputPreCheck() called at [/home/domain/public_html/store/includes/classes/OnePageCheckout.php:903]
#3  OnePageCheckout->validateBilltoSendto() called at [/home/domain/public_html/store/includes/classes/ajax/zcAjaxOnePageCheckout.php:61]
#4  zcAjaxOnePageCheckout->updateShipping() called at [/home/domain/public_html/store/ajax.php:85]
--> PHP Fatal error: Invalid request, tempAddressValues not set. in /home/domain/public_html/store/includes/classes/OnePageCheckout.php on line 1348.

Can you tell by looking at that if it's a user-error, or if it's something that we need to investigate further from a software standpoint?

6 Nov 2020, 8:09 PM
#1833
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

Jeff, I'm pretty sure you've got my direct email address. If so, please send me the full contents of that OPC log for inspection.

If you don't, send me a PM so I can send you that email address.

6 Nov 2020, 8:27 PM
#1834
jeff_mash avatar

jeff_mash

Totally Zenned

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

Re: One-Page Checkout [Support Thread]

I have it.

But the customer ended up placing the order the second time, so maybe it was something on their side. Either way, when I saw the initial error, we didn't have any OPC log because we keep that set to FALSE by default. If it happens again, I will add the customer to the Debug List, turn on the log, and then send you the files if it's repeated. Thanks for the quick respon

6 Nov 2020, 8:42 PM
#1835
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

OK. I'll note that those error-logs "usually" indicate some kind of script-kiddie going directly to an AJAX call without the actual OPC initialization having been performed.

Let me know if you find otherwise!

8 Nov 2020, 5:45 PM
#1836
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: One-Page Checkout [Support Thread]

Am I missing something, or does the 'Apply' button for gift certificates do nothing when this plugin is used?

Obviously people can still apply Certificates by adding the value and trying to continue forward - in which case they will be returned to checkout one with an appropriate message.

Just checking.

9 Nov 2020, 10:45 AM
#1837
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

niccol:

Am I missing something, or does the 'Apply' button for gift certificates do nothing when this plugin is used?

Obviously people can still apply Certificates by adding the value and trying to continue forward - in which case they will be returned to checkout one with an appropriate message.

Just checking.
What do you expect the "Apply" button to do when no value was entered?

9 Nov 2020, 11:48 AM
#1838
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: One-Page Checkout [Support Thread]

:-) That is my question. I am seeing an apply button and I don't know what it should do.

I will put the html that I am seeing at the bottom. So, perhaps there is some error in my installation as the relevant span does not have a class.

I don't understand what "<span class=""> Apply </span>" is meant to do. It shows on the page but seems to have no purpose and my client is saying 'the apply button is broken'. Is there javascript that I am not seeing? I can see in console.log that submitFunction is checking the values.

So, it is a genuine question because I do not understand what that 'Apply' is meant to do.

<fieldset>
	<legend>Gift Certificates</legend>
	<p>To....</p>
	<p>If you are ...</p>            
	<div class="gvBal larger">Apply Amount: 
		<input type="text" size="6" onkeyup="submitFunction()" name="cot_gv" value="0.00" onfocus="if (this.value == '0.00') this.value = '';">
		<br>Available balance: 61.10
	</div>
	<label class="inputLabel" for="disc-ot_gv">Redemption Code</label>
	
	<input type="text" name="gv_redeem_code" id="disc-ot_gv" onkeyup="submitFunction(0,0)">            
	
	<div class="buttonRow forward">
	<span class=""> Apply </span></div>
	<div class="clearBoth"></div>
	
</fieldset>
9 Nov 2020, 12:09 PM
#1839
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

You enter the amount you want to apply to the order and click the "Apply" button.

9 Nov 2020, 12:36 PM
#1840
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: One-Page Checkout [Support Thread]

Thanks again.

When I do that, nothing happens because 'Apply' is still just a span.

I have a balance, which shows. I type a digit. Console shows submitFunction firing but nothing else happens.

So, what I am asking, I guess, is if there is js that is not working correctly on my installation. In which case I can track that down. Or if there is something else that I do not understand.

submitFunction, 0 arguments:               jquery.checkout_one.min.js?1604577430:5 
submitFunction, on exit submitter=null	   jquery.checkout_one.min.js?1604577430:5