zennedOut
- Join Date:
- Nov 2005
- Location:
- los angeles
- Posts:
- 2,974
- Plugin Contributions:
- 8
Post #1821 by carlwhat
lat9:
Nice one, @carlwhat! I'm guessing that that statement applies to constant definitions, too, since they're not variables.
:thumbsup:
zennedOut
lat9:
Nice one, @carlwhat! I'm guessing that that statement applies to constant definitions, too, since they're not variables.
:thumbsup:
Administrator
carlwhat:
:thumbsup:
I'll update OPC's readme to reflect that minimum PHP 5.5 requirement.
Totally Zenned
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.
Jim
Wheaton Website Services
Totally Zenned
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.
Jim
Wheaton Website Services
Sensei
(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)
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Zen Follower
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?
Judy Gunderson, 406-880-4330
Administrator
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?
Zen Follower
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!!!!
Judy Gunderson, 406-880-4330
Totally Zenned
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!!
Jim
Wheaton Website Services
Totally Zenned
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!!
Administrator
Totally Zenned
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?
Administrator
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.
Totally Zenned
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
Administrator
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!
Totally Zenned
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.
Nick
iszent.com
Administrator
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?
Totally Zenned
:-) 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>
Nick
iszent.com
Administrator
You enter the amount you want to apply to the order and click the "Apply" button.
Totally Zenned
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
Nick
iszent.com
Tell staff why this post should be reviewed.