Re: One-Page Checkout [Support Thread]
There's the issue:
Code:
jQuery version: 1.4.2 index.php:259:13
One-Page Checkout requires a minimum of 1.8.0 (or was it 1.7.0?) ... anyway, 1.4.2 isn't going to cut it.
You'll need to review your store's files (do you use Zen Lightbox, by chance?) to see where that version of jQuery is being loaded, remove it and (in your template's html_header.php file) load a more recent version of jQuery (like 1.11.0) for the One-Page Checkout (or any other plugin that uses an AJAX interface) to operate properly. You can use the admin Tools->Developers Tool Kit and search for 1.4.2.
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
lat9
There's the issue:
Code:
jQuery version: 1.4.2 index.php:259:13
One-Page Checkout requires a minimum of 1.8.0 (or was it 1.7.0?) ... anyway, 1.4.2 isn't going to cut it.
You'll need to review your store's files (do you use Zen Lightbox, by chance?) to see where that version of jQuery is being loaded, remove it and (in your template's html_header.php file) load a more recent version of jQuery (like 1.11.0) for the One-Page Checkout (or any other plugin that uses an AJAX interface) to operate properly. You can use the admin Tools->Developers Tool Kit and search for
1.4.2.
Nothing comes up when I do a search for 1.4.2.
I am not using zen_lightbox but I am using zen_colorbox.
When I do a search for jquery, I am getting the following result:
Code:
C:/xampp/htdocs/store/includes/classes/zen_colorbox/autoload_default.php
Line #12 : jQuery(function($) {
C:/xampp/htdocs/store/includes/classes/zen_colorbox/jquery_colorbox.php
Line # 9 : * @version $Id: jquery_colorbox.php 2012-04-30 niestudio $
Line #11 : echo '<script type="text/javascript" src="' . $template->get_template_dir('.js', DIR_WS_TEMPLATE, $current_page_base, 'jscript') . '/jquery.colorbox-min.js"></script>';
C:/xampp/htdocs/store/includes/languages/english/html_includes/royal_fleur/define_gallery.php
Line # 11 : <script type="text/javascript" src="engine1/jquery.js"></script>
C:/xampp/htdocs/store/includes/languages/modules/pages/checkout_one/jscript_main.php
Line # 13 : return jQuery(":input[name=" + fields[0] + "]").val() + jQuery(":input[name=" + fields[1] + "]").val();
Line #134 : var str = jQuery('form[name="checkout_payment"]').serializeArray();
Line #140 : jQuery('#checkoutPayment').hide();
Line #141 : jQuery('#navBreadCrumb').html(response.breadCrumbHtml);
Line #142 : jQuery('#checkoutPayment').before(response.confirmationHtml);
Line #143 : jQuery(document).attr('title', response.pageTitle);
Line #144 : jQuery(document).scrollTop( 0 );
Line #148 : jQuery('form[name="checkout_payment"]')[0].submit();
Line #157 : if (jQuery('#'+paymentValue+'_collects_onsite').val()) {
Line #158 : if (jQuery('#pmt-'+paymentValue).is(':checked')) {
Line #169 : var str = jQuery('form[name="checkout_payment"]').serializeArray();
Line #176 : jQuery('#checkoutPayment').hide();
Line #177 : jQuery('#navBreadCrumb').html(response.breadCrumbHtml);
Line #178 : jQuery('#checkoutPayment').before(response.confirmationHtml);
Line #179 : jQuery(document).attr('title', response.pageTitle);
Line #180 : jQuery(document).scrollTop( 0 );
Line #188 : jQuery('#confirm-the-order').val( value );
Line #192 : jQuery(document).ready(function(){
Line #194 : if (jQuery( 'form[name="checkout_payment"]' ).length == 0) {
Line #198 : if (jQuery( '#orderTotalDivs' ).length == 0) {
Line #202 : if (jQuery( '#current-order-total' ).length == 0) {
Line #209 : if (jQuery( '#otshipping' ).length == 0) {
Line #221 : jQuery( '#checkoutOneShippingFlag' ).show();
Line #223 : zcLog2Console ( 'jQuery version: '+jQuery().jquery );
Line #231 : var scrollPos = jQuery( "#checkoutShippingMethod" ).offset().top;
Line #232 : jQuery(window).scrollTop( scrollPos );
Line #237 : var shippingSelected = jQuery( 'input[name=shipping]' );
Line #239 : shippingSelected = jQuery( 'input[name=shipping]:checked' );
Line #251 : // shipping-module has required inputs that should accompany the post, format the necessary jQuery to gather those inputs.
Line #260 : var <?php echo $variable_name; ?> = jQuery( "input[name=<?php echo $current_input_name; ?>]<?php echo ($selection_required) ? ':checked' : ''; ?>" ).val();
Line #296 : jQuery( '#orderTotalDivs' ).html(response.orderTotalHtml);
Line #299 : jQuery( '#otshipping, #otshipping+br' ).show ();
Line #303 : jQuery(location).attr( 'href', timeoutUrl );
Line #308 : jQuery( '#checkoutShippingMethod input[name=shipping]' ).prop( 'checked', false );
Line #309 : jQuery( '#checkoutShippingChoices' ).html( response.shippingHtml );
Line #310 : jQuery( '#checkoutShippingChoices' ).on( 'click', 'input[name=shipping]', function ( event ) {
Line #313 : jQuery( '#otshipping, #otshipping+br' ).hide ();
Line #330 : jQuery( '#confirm-order' ).attr( 'disabled', true );
Line #338 : jQuery( 'form[name="checkout_payment"]' ).unbind( 'submit' ).submit();
Line #341 : jQuery( '#confirm-order' ).attr('disabled', false);
Line #353 : jQuery( '#checkoutShippingMethod input[name=shipping]' ).click(function( event ) {
Line #357 : jQuery( 'form[name="checkout_payment"]' ).submit(function( event ) {
C:/xampp/htdocs/store/includes/languages/modules/pages/checkout_one_confirmation/jscript_main.php
Line #35 : // jQuery. This should happen **only if ** the active payment method doesn't require the confirmation page
Line #40 : jQuery(document).ready(function(){
Line #41 : jQuery('body', 'html').css({
Line #46 : jQuery('#navBreadCrumb, #bannerSix, #bannerOne, #checkoutOneConfirmationButtons').hide();
Line #47 : jQuery('#checkoutOneConfirmationLoading').show();
Line #48 : jQuery('form[name="checkout_confirmation"]').submit();
C:/xampp/htdocs/store/includes/languages/templates/royal_fleur/jscript/jscript_framework.php
Line # 16 : var deferred = jQuery.Deferred(function (d) {
Line # 24 : data: jQuery.extend(true,{
Line # 28 : settings = jQuery.extend(true, {}, defaults, options);
Line # 36 : var jqXHRSettings = jQuery.extend(true, {}, settings, {
Line # 50 : jQuery.ajax(jqXHRSettings);
Line # 93 : settings = jQuery.extend(true, {}, defaults, options);
C:/xampp/htdocs/store/includes/languages/templates/template_default/jscript/jscript_framework.php
Line # 16 : var deferred = jQuery.Deferred(function (d) {
Line # 24 : data: jQuery.extend(true,{
Line # 28 : settings = jQuery.extend(true, {}, defaults, options);
Line # 36 : var jqXHRSettings = jQuery.extend(true, {}, settings, {
Line # 50 : jQuery.ajax(jqXHRSettings);
Line # 93 : settings = jQuery.extend(true, {}, defaults, options);
C:/xampp/htdocs/store/includes/modules/pages/checkout_one/jscript_main.php
Line # 13 : return jQuery(":input[name=" + fields[0] + "]").val() + jQuery(":input[name=" + fields[1] + "]").val();
Line #134 : var str = jQuery('form[name="checkout_payment"]').serializeArray();
Line #140 : jQuery('#checkoutPayment').hide();
Line #141 : jQuery('#navBreadCrumb').html(response.breadCrumbHtml);
Line #142 : jQuery('#checkoutPayment').before(response.confirmationHtml);
Line #143 : jQuery(document).attr('title', response.pageTitle);
Line #144 : jQuery(document).scrollTop( 0 );
Line #148 : jQuery('form[name="checkout_payment"]')[0].submit();
Line #157 : if (jQuery('#'+paymentValue+'_collects_onsite').val()) {
Line #158 : if (jQuery('#pmt-'+paymentValue).is(':checked')) {
Line #169 : var str = jQuery('form[name="checkout_payment"]').serializeArray();
Line #176 : jQuery('#checkoutPayment').hide();
Line #177 : jQuery('#navBreadCrumb').html(response.breadCrumbHtml);
Line #178 : jQuery('#checkoutPayment').before(response.confirmationHtml);
Line #179 : jQuery(document).attr('title', response.pageTitle);
Line #180 : jQuery(document).scrollTop( 0 );
Line #188 : jQuery('#confirm-the-order').val( value );
Line #192 : jQuery(document).ready(function(){
Line #194 : if (jQuery( 'form[name="checkout_payment"]' ).length == 0) {
Line #198 : if (jQuery( '#orderTotalDivs' ).length == 0) {
Line #202 : if (jQuery( '#current-order-total' ).length == 0) {
Line #209 : if (jQuery( '#otshipping' ).length == 0) {
Line #221 : jQuery( '#checkoutOneShippingFlag' ).show();
Line #223 : zcLog2Console ( 'jQuery version: '+jQuery().jquery );
Line #231 : var scrollPos = jQuery( "#checkoutShippingMethod" ).offset().top;
Line #232 : jQuery(window).scrollTop( scrollPos );
Line #237 : var shippingSelected = jQuery( 'input[name=shipping]' );
Line #239 : shippingSelected = jQuery( 'input[name=shipping]:checked' );
Line #251 : // shipping-module has required inputs that should accompany the post, format the necessary jQuery to gather those inputs.
Line #260 : var <?php echo $variable_name; ?> = jQuery( "input[name=<?php echo $current_input_name; ?>]<?php echo ($selection_required) ? ':checked' : ''; ?>" ).val();
Line #296 : jQuery( '#orderTotalDivs' ).html(response.orderTotalHtml);
Line #299 : jQuery( '#otshipping, #otshipping+br' ).show ();
Line #303 : jQuery(location).attr( 'href', timeoutUrl );
Line #308 : jQuery( '#checkoutShippingMethod input[name=shipping]' ).prop( 'checked', false );
Line #309 : jQuery( '#checkoutShippingChoices' ).html( response.shippingHtml );
Line #310 : jQuery( '#checkoutShippingChoices' ).on( 'click', 'input[name=shipping]', function ( event ) {
Line #313 : jQuery( '#otshipping, #otshipping+br' ).hide ();
Line #330 : jQuery( '#confirm-order' ).attr( 'disabled', true );
Line #338 : jQuery( 'form[name="checkout_payment"]' ).unbind( 'submit' ).submit();
Line #341 : jQuery( '#confirm-order' ).attr('disabled', false);
Line #353 : jQuery( '#checkoutShippingMethod input[name=shipping]' ).click(function( event ) {
Line #357 : jQuery( 'form[name="checkout_payment"]' ).submit(function( event ) {
C:/xampp/htdocs/store/includes/modules/pages/checkout_one_confirmation/jscript_main.php
Line #35 : // jQuery. This should happen **only if ** the active payment method doesn't require the confirmation page
Line #40 : jQuery(document).ready(function(){
Line #41 : jQuery('body', 'html').css({
Line #46 : jQuery('#navBreadCrumb, #bannerSix, #bannerOne, #checkoutOneConfirmationButtons').hide();
Line #47 : jQuery('#checkoutOneConfirmationLoading').show();
Line #48 : jQuery('form[name="checkout_confirmation"]').submit();
C:/xampp/htdocs/store/includes/modules/pages/checkout_payment/jscript_payeezy.php
Line #186 : jQuery(function($) {
C:/xampp/htdocs/store/includes/modules/pages/document_general_info/jscript_zen_colorbox.php
Line #13 : require_once(DIR_FS_CATALOG . DIR_WS_CLASSES . 'zen_colorbox/jquery_colorbox.php');
C:/xampp/htdocs/store/includes/modules/pages/document_product_info/jscript_zen_colorbox.php
Line #13 : require_once(DIR_FS_CATALOG . DIR_WS_CLASSES . 'zen_colorbox/jquery_colorbox.php');
C:/xampp/htdocs/store/includes/modules/pages/page/jscript_zen_colorbox.php
Line #13 : require_once(DIR_FS_CATALOG . DIR_WS_CLASSES . 'zen_colorbox/jquery_colorbox.php');
Line #16 : jQuery(function($) {
C:/xampp/htdocs/store/includes/modules/pages/product_free_shipping_info/jscript_zen_colorbox.php
Line #13 : require_once(DIR_FS_CATALOG . DIR_WS_CLASSES . 'zen_colorbox/jquery_colorbox.php');
C:/xampp/htdocs/store/includes/modules/pages/product_info/jscript_zen_colorbox.php
Line #13 : require_once(DIR_FS_CATALOG . DIR_WS_CLASSES . 'zen_colorbox/jquery_colorbox.php');
C:/xampp/htdocs/store/includes/modules/pages/product_music_info/jscript_zen_colorbox.php
Line #13 : require_once(DIR_FS_CATALOG . DIR_WS_CLASSES . 'zen_colorbox/jquery_colorbox.php');
C:/xampp/htdocs/store/includes/modules/pages/product_reviews/jscript_zen_colorbox.php
Line #13 : require_once(DIR_FS_CATALOG . DIR_WS_CLASSES . 'zen_colorbox/jquery_colorbox.php');
C:/xampp/htdocs/store/includes/modules/pages/product_reviews_info/jscript_zen_colorbox.php
Line #13 : require_once(DIR_FS_CATALOG . DIR_WS_CLASSES . 'zen_colorbox/jquery_colorbox.php');
C:/xampp/htdocs/store/includes/modules/pages/product_reviews_write/jscript_zen_colorbox.php
Line #13 : require_once(DIR_FS_CATALOG . DIR_WS_CLASSES . 'zen_colorbox/jquery_colorbox.php');
C:/xampp/htdocs/store/includes/templates/responsive_classic/common/html_header.php
Line #134 : /** CDN for jQuery core **/
Line #137 : <script type="text/javascript">window.jQuery || document.write(unescape('%3Cscript type="text/javascript" src="//code.jquery.com/jquery-1.12.0.min.js"%3E%3C/script%3E'));</script>
Line #138 : <script type="text/javascript">window.jQuery || document.write(unescape('%3Cscript type="text/javascript" src="<?php echo $template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'jscript'); ?>/jquery.min.js"%3E%3C/script%3E'));</script>
Line #184 : $responsive_mobile = '<link rel="stylesheet" type="text/css" href="' . $template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css') . '/' . 'responsive_mobile.css' . '" /><link rel="stylesheet" type="text/css" href="' . $template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css') . '/' . 'jquery.mmenu.all.css' . '" />';
Line #185 : $responsive_tablet = '<link rel="stylesheet" type="text/css" href="' . $template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css') . '/' . 'responsive_tablet.css' . '" /><link rel="stylesheet" type="text/css" href="' . $template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css') . '/' . 'jquery.mmenu.all.css' . '" />';
C:/xampp/htdocs/store/includes/templates/responsive_classic/jscript/jscript_responsive_framework.php
Line #143 : }) (jQuery);
C:/xampp/htdocs/store/includes/templates/responsive_classic/template_info.php
Line #17 : $template_description = 'This HTML5 template is mobile friendly and uses contemporary Responsive CSS to allow sharing of a single template across multiple device types. It uses PHP Mobile Detect to serve up the optimized layout based on device. It allows the designer to implement device-specific php, jquery, javascript or ajax.';
C:/xampp/htdocs/store/includes/templates/responsive_classic/templates/tpl_modules_mobile_menu.php
Line #144 : <script src="<?php echo $template->get_template_dir('jquery.mmenu.min.all.js',DIR_WS_TEMPLATE, $current_page_base,'jscript') . '/jquery.mmenu.min.all.js' ?>" type="text/javascript"></script>
Line #145 : <script src="<?php echo $template->get_template_dir('jquery.mmenu.fixedelements.min.js',DIR_WS_TEMPLATE, $current_page_base,'jscript') . '/jquery.mmenu.fixedelements.min.js' ?>" type="text/javascript"></script>
C:/xampp/htdocs/store/includes/templates/royal_fleur/jscript/jscript_framework.php
Line # 16 : var deferred = jQuery.Deferred(function (d) {
Line # 24 : data: jQuery.extend(true,{
Line # 28 : settings = jQuery.extend(true, {}, defaults, options);
Line # 36 : var jqXHRSettings = jQuery.extend(true, {}, settings, {
Line # 50 : jQuery.ajax(jqXHRSettings);
Line # 93 : settings = jQuery.extend(true, {}, defaults, options);
C:/xampp/htdocs/store/includes/templates/royal_fleur/jscript/jscript_jquery.min.php
Line #2 : if (typeof jQuery == 'undefined') {
Line #3 : document.write(unescape("%3Cscript src='//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js' type='text/javascript'%3E%3C/script%3E"));
C:/xampp/htdocs/store/includes/templates/royal_fleur/templates/zx_slideshow.php
Line # 1 : <script language="javascript" type="text/javascript" src="<?php echo($template->get_template_dir('jquery.nivo.slider.pack.js',DIR_WS_TEMPLATE, $current_page_base,'jscript'). '/jquery.nivo.slider.pack.js'); ?>"></script>
Line # 4 : jQuery(window).load(function() {
Line # 5 : jQuery('#slider').nivoSlider({
C:/xampp/htdocs/store/includes/templates/template_default/common/html_header.php
Line #120 : /** CDN for jQuery core **/
Line #123 : <script type="text/javascript">window.jQuery || document.write(unescape('%3Cscript type="text/javascript" src="//code.jquery.com/jquery-1.12.0.min.js"%3E%3C/script%3E'));</script>
Line #124 : <script type="text/javascript">window.jQuery || document.write(unescape('%3Cscript type="text/javascript" src="<?php echo $template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'jscript'); ?>/jquery.min.js"%3E%3C/script%3E'));</script>
C:/xampp/htdocs/store/includes/templates/template_default/jscript/jscript_framework.php
Line # 16 : var deferred = jQuery.Deferred(function (d) {
Line # 24 : data: jQuery.extend(true,{
Line # 28 : settings = jQuery.extend(true, {}, defaults, options);
Line # 36 : var jqXHRSettings = jQuery.extend(true, {}, settings, {
Line # 50 : jQuery.ajax(jqXHRSettings);
Line # 93 : settings = jQuery.extend(true, {}, defaults, options);
C:\xampp\htdocs\store\royal/includes/ckeditor.php
Line #20 : <script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script>
Line #21 : <script>window.jQuery || document.write('<script src="includes/javascript/jquery-1.12.1.min.js"><\/script>');</script>
C:\xampp\htdocs\store\royal/includes/header.php
Line #198 : <!-- <script src="//ajax.googleapis.com/ajax/libs/jquery/1.12.1/jquery.min.js"></script> -->
Line #201 : <script src="includes/javascript/jquery-1.12.1.min.js"></script>
C:\xampp\htdocs\store\royal/product_sorter.php
Line # 60 : <link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
Line # 76 : <script src="//code.jquery.com/jquery-1.10.2.js"></script>
Line # 77 : <script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
C:\xampp\htdocs\store\royal/stats_inventory_report.php
Line #150 : <script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
Line #151 : <script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
And the only jquery I could find is in the template royal_fleur in the jquery/scripts file named jquery-1.7.1.min.js
I am getting really confused with this. I understand that it is not calling the right jquery but I cannot figure out what s calling it.
Re: One-Page Checkout [Support Thread]
@nicksab, is this site publically available? If so, you could PM the site's link to me.
If not, then my best guess on where the jQuery 1.4.2 is coming from is either the colorbox or nivo-slider javascript files.
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
lat9
@nicksab, is this site publically available? If so, you could PM the site's link to me.
If not, then my best guess on where the jQuery 1.4.2 is coming from is either the colorbox or nivo-slider javascript files.
You could also try using your admin's Tools->Developers Tool Kit to search for 1.4.2 in .js files (the default is to look only in .php files).
Re: One-Page Checkout [Support Thread]
I've just submitted v1.0.11 to the Zen Cart plugins. This version corrects the following issues (the numbers reflect an issue number on the plugin's GitHub repository):
#66: Correct checkout "loop" when "Free Shipping Over" is set
#67: Correct checkout "loop" when shipping is taxed.
#68: Force the page back-to-top when the payment-method "collectsCardDataOnsite".
#69: Correct interoperation with the Ceon Manual Card payment method.
Re: One-Page Checkout [Support Thread]
The details out of the way:
Fresh install of 1.5.5d. I have two plugins installed payeezy.js and the github version of COWOA.
For the record I love this plugin, my issues seems to be between COWOA, OPC, and Payeezy. With the above two installed, I can complete the order. But if I also have OPC installed it breaks the payeezy. Now according to Dr.Byte this is probably due to some .js issues. I would love to have all three plugins installed and playing nicely together. What is the best way to help the three developers?
Re: One-Page Checkout [Support Thread]
@tmpinsnty, see post #265 in this support thread for instructions regarding how to check your browser's console log. If you could copy that information and paste it (using the "CODE" tags, the big # in the menu bar when you're writing your response), I can certainly help.
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
lat9
I've just submitted v1.0.11 to the Zen Cart plugins. This version corrects the following issues (the numbers reflect an issue number on the plugin's GitHub repository):
#66: Correct checkout "loop" when "Free Shipping Over" is set
#67: Correct checkout "loop" when shipping is taxed.
#68: Force the page back-to-top when the payment-method "collectsCardDataOnsite".
#69: Correct interoperation with the Ceon Manual Card payment method.
v1.0.11 is now available for download ...
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
lat9
@tmpinsnty, see post #265 in this support thread for instructions regarding how to check your browser's console log. If you could copy that information and paste it (using the "CODE" tags, the big # in the menu bar when you're writing your response), I can certainly help.
@tmpinsnty, Did you copy the file /includes/modules/pages/checkout_payment/jscript_payeezy.php to /includes/modules/pages/checkout_one?
I've just downloaded the payment module and it looks like that might be the missing bit.
Re: One-Page Checkout [Support Thread]
Checkout Loop...
I have updated the files to 1.11 but my customers keep getting redirected back to checkout with the following alert:
Your order's details have changed. Please review the current values and re-submit.
Do you need details of my shipping settings?
One-page checkout is therefore currently "off" - and transactions now go through on traditional checkout system.