HenryGale:
Amature tearing his hair out here.
I'm trying to get this working at www.skahfeestudios.com, and it's been throwing SQ-NONCE-FAILURE.
I've switched template back to classic and still getting the error. When I enter credit card information and click submit, console is showing:
ReferenceError: check_form is not defined index.php:197:19
>
> Clicking through to the line of code brings me to:
>
> ```
function doCollectsCardDataOnsite()
{
var str = $('form[name="checkout_payment"]').serializeArray();
zcJS.ajax({
url: "ajax.php?act=ajaxPayment&method=prepareConfirmation",
data: str
}).done(function( response ) {
$('#checkoutPayment').hide();
$('#navBreadCrumb').html(response.breadCrumbHtml);
$('#checkoutPayment').before(response.confirmationHtml);
$(document).attr('title', response.pageTitle);
});
}
$(document).ready(function(){
$('form[name="checkout_payment"]').submit(function() {
$('.paymentSubmit').attr('disabled', true);
formPassed = check_form();
I'm assuming this is tied to my failed attempts to implement One Page Checkout and Fast Easy Checkout (not at the same time). I guess I didn't revert a file back to its state prior to that failure. Any tips for me on how to track down the problem? Really hoping to get this working without a wipe and rebuild.
Thanks,
Scott
I'd investigate all changes you've made to:
- /includes/modules/payment/checkout_payment -- all files
- /includes/modules/payment/checkout_confirmation -- all files
- /includes/modules/payment/checkout (this directory was added by FEC, so should be gone if you removed FEC)
- /includes/templates/EACH_OF_THE_TEMPLATES/jscript -- all files, make sure only the files still needed are present, and match your ZC version
- /includes/templates/EACH_OF_THE_TEMPLATES/templates/tpl_checkout_payment_default.php
- /includes/templates/EACH_OF_THE_TEMPLATES/templates/tpl_checkout_confirmation_default.php
One of the best ways to identify possible culprits is to get 2 directories on your PC: one containing all your server's Zen Cart files, and one containing a fresh uncustomized copy of original Zen Cart files for that version of Zen Cart .... and then run a text-file-compare program to compare and identify all differences between the files, both in-file-alterations, and added/deleted files. Good tools for this are Beyond Compare by Scooter Software, and Araxis Merge, or the free WinMerge (see http://www.zen-cart.com/wiki/index.php/Useful_Tools )