Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
saftek
We have resolved the email problem by making all emails html. BUT: we have the following problems. We have merged all pages into existing pages.
1) calendar isn't showing up on the checkout page.
2) /yourtemplate/templates/tpl_checkout_confirmation_default.php - line 187 - this bit of code
---- . (is_array($payment_modules->modules) ? $payment_modules->process_form_params() : '') ----
breaks the final checkout page and results in error
-----Fatal error: Call to undefined method payment::process_form_params() in /home/saftek/public_html/shop/includes/templates/custom/templates/tpl_checkout_confirmation_default.php on line 187 ----
Any clues on where to go from here would be appreciated.
Yeah, that undefined method is something that was anticipated to make it into ZC 1.5.5; however, was pushed out to ZC 1.6.0 which wasn't "realized" until well after the plugin was released. That line can be restored to what is provided in a default ZC store as provided by the likes of includes/templates/template_default/templates/tpl_checkout_confirmation_default.php. It was incorporated to provide support for paypal InContext. The alternative would be to add an applicable function to includes/classes/payment.php like shown in the v1.6.0 version of the same file. Or like pretty much any of the functions in that file.
Re: Order Delivery Date Support Thread
Thanks. That clears #2... I had already stripped that bit of code from the page... actually left it as it was prior.
Still haven't figured out #1 - why the calendar doesn't show up ... can manually input a date at the moment, but no calendar to pick from. Since this worked last week, before updating 155e and 251... it has to be in this new code someplace.
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
saftek
Thanks. That clears #2... I had already stripped that bit of code from the page... actually left it as it was prior.
Still haven't figured out #1 - why the calendar doesn't show up ... can manually input a date at the moment, but no calendar to pick from. Since this worked last week, before updating 155e and 251... it has to be in this new code someplace.
Being javascript/jquery, my first recommendation is to verify html validation, next is to identify what jquery is loaded as seen at the proposed point of execution? I'd step in more if I was at a computer, but not too much of that diagnostics can be done from my mobile (easily).
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
mc12345678
Being javascript/jquery, my first recommendation is to verify html validation, next is to identify what jquery is loaded as seen at the proposed point of execution? I'd step in more if I was at a computer, but not too much of that diagnostics can be done from my mobile (easily).
I appreciate your patience and assistance. Not seeing any html related errors. jquery -1.12.0min.js loading, looks like the appropriate jscripts are loading... jscript_b-calendar, mootools etc.
Via console I see : TypeError: B.getTag is not a function in the calendar JS.
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
saftek
I appreciate your patience and assistance. Not seeing any html related errors. jquery -1.12.0min.js loading, looks like the appropriate jscripts are loading... jscript_b-calendar, mootools etc.
Via console I see : TypeError: B.getTag is not a function in the calendar JS.
So this is aggravating. The jscript_b-calendar.js file is not the same that I have on my functional ZC 1.5.5 site that also has jquery 1.12.0. The "new" file is a year younger and is written differently to not have the B.getTag command and other code.
I'm going to get this up on github and then try to package for re-release...
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
mc12345678
So this is aggravating. The jscript_b-calendar.js file is not the same that I have on my functional ZC 1.5.5 site that also has jquery 1.12.0. The "new" file is a year younger and is written differently to not have the B.getTag command and other code.
I'm going to get this up on github and then try to package for re-release...
LOL... computer programs are a perfect home for gremlins!
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
saftek
LOL... computer programs are a perfect home for gremlins!
The change is shown here: https://github.com/mc12345678/order-...314d690af32add
I haven't uploaded the other changes I discussed earlier, yet. That commit is the one that was supposed to be with this plugin's distribution. The thing that primarily made/allowed it to work with ZC 1.5.5...
Re: Order Delivery Date Support Thread
copied the code provided. Still not seeing the calendar and getting the following error in the console...
TypeError: el.addEvent is not a function jscript_b-calendar.js:451:4
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
saftek
copied the code provided. Still not seeing the calendar and getting the following error in the console...
TypeError: el.addEvent is not a function jscript_b-calendar.js:451:4
recopied the file... no errors from b-calendar file now. But am working out the following errors...
TypeError: MooTools.upgradeLog is not a function[Learn More] jscript_a-mootools.js:360:37475
<anonymous> /includes/modules/pages/checkout_shipping/jscript_a-mootools.js:360:37475
presto /includes/modules/pages/checkout_shipping/jscript_a-mootools.js:27:464
Browser.detect /includes/modules/pages/checkout_shipping/jscript_b-calendar.js:15:5235
<anonymous> /includes/modules/pages/checkout_shipping/jscript_b-calendar.js:15:5360
#2
ReferenceError: Calendar is not defined[Learn More] index.php:152:42
<anonymous> /index.php:152:42
f /includes/modules/pages/checkout_shipping/jscript_a-mootools.js:57:68
create/< /includes/modules/pages/checkout_shipping/jscript_a-mootools.js:58:39
fireEvent/ /includes/modules/pages/checkout_shipping/jscript_a-mootools.js:186:113
forEach self-hosted:269:13
fireEvent /includes/modules/pages/checkout_shipping/jscript_a-mootools.js:186:86
b /includes/modules/pages/checkout_shipping/jscript_a-mootools.js:264:1
d /includes/modules/pages/checkout_shipping/jscript_a-mootools.js:180:54
Re: Order Delivery Date Support Thread
Quote:
Originally Posted by
saftek
recopied the file... no errors from b-calendar file now. But am working out the following errors...
TypeError: MooTools.upgradeLog is not a function[Learn More] jscript_a-mootools.js:360:37475
<anonymous> /includes/modules/pages/checkout_shipping/jscript_a-mootools.js:360:37475
presto /includes/modules/pages/checkout_shipping/jscript_a-mootools.js:27:464
Browser.detect /includes/modules/pages/checkout_shipping/jscript_b-calendar.js:15:5235
<anonymous> /includes/modules/pages/checkout_shipping/jscript_b-calendar.js:15:5360
#2
ReferenceError: Calendar is not defined[Learn More] index.php:152:42
<anonymous> /index.php:152:42
f /includes/modules/pages/checkout_shipping/jscript_a-mootools.js:57:68
create/< /includes/modules/pages/checkout_shipping/jscript_a-mootools.js:58:39
fireEvent/ /includes/modules/pages/checkout_shipping/jscript_a-mootools.js:186:113
forEach self-hosted:269:13
fireEvent /includes/modules/pages/checkout_shipping/jscript_a-mootools.js:186:86
b /includes/modules/pages/checkout_shipping/jscript_a-mootools.js:264:1
d /includes/modules/pages/checkout_shipping/jscript_a-mootools.js:180:54
replaced the mootools.js with the one from github, cleared error #1. still have #2