Ok - I have searched the forums and tried the various things I could find (check config and htaccess files, tried disabling extensions one at a time, etc.)
If you click add to cart, it adds to cart but it doesn’t scroll up the page or reload the add to cart button. It just says loading.
I have an extension that does it for the category/search page, but I can’t do it for the product page.
Opencart 2.3.0.2
Cloudflare
Nitropack
https://www.stevestonmarine.com/icom-ic ... marine-vhf
Any suggestions?
Attachments
Screen Shot 2023-04-10 at 15.54.09.png (113.12 KiB) Viewed 4978 times
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
https://www.youtube.com/watch?v=zXIxDoCRc84
If it’s the comment in the code that’s me trying to troubleshoot as per a forum suggestion, I’ll change that back. Is there anything else that made it stand out as having an extension?
1. Disable nitropack and cloudflare
2. Refresh all cache including server and browser
3. Disable all extensions
4. Disable Theme
5. Make a small change in the css.
6. Refresh all cache including server and browser.
If you can see the css has made a change continue and test if has fixed the issue.
If yes, reinstall the extensions one by one.
If no, check your developer tools for issues and maybe post when someone can check without all the nitropack errors ?
and which post suggested to comment it out?
This is the code, just read it, ignore the words you do not understand
Code: Select all
beforeSend: function() {
$('#button-cart').button('loading');
},
complete: function() {
$('#button-cart').button('reset');
},
... ..
if (json['success']) {
$('.breadcrumb').after('<div class="alert alert-success">' + json['success'] + '<button type="button" class="close" data-dismiss="alert">×</button></div>');
$('#cart > button').html('<span id="cart-total"><i class="fa fa-shopping-cart"></i> ' + json['total'] + '</span>');
$('html, body').animate({ scrollTop: 0 }, 'slow');
$('#cart > ul').load('index.php?route=common/cart/info ul li');
}
},
complete - reset - so that is not working
if success - alert success - that is working
then it is no longer working .. so somewhere after the alert success and before the scrollTop ..
and the error that comes up when you press the add to cart button
Code: Select all
Uncaught ReferenceError: gkdEctTrack is not defined
at eval (eval at globalEval (nitro-min-jquery-2.1.1.min.js:2), <anonymous>:1:1)
at eval (<anonymous>)
at Function.globalEval (nitro-min-jquery-2.1.1.min.js:2)
at n.fn.init.domManip (nitro-min-jquery-2.1.1.min.js:3)
at n.fn.init.after (nitro-min-jquery-2.1.1.min.js:3)
at Object.success (102aa476-e18c-41ce-9870-eaa12c88c939:1)
at j (nitro-min-jquery-2.1.1.min.js:2)
at Object.fireWith [as resolveWith] (nitro-min-jquery-2.1.1.min.js:2)
at x (nitro-min-jquery-2.1.1.min.js:4)
at XMLHttpRequest.<anonymous> (nitro-min-jquery-2.1.1.min.js:4)
Code: Select all
gkdEctTrack('add', 112922, 'Add to Cart')
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
https://www.youtube.com/watch?v=zXIxDoCRc84
Most likely yours is caused by a different issue. Please be so kind to provide some details, such as OC version, website URL, extensions uses, etc, see forum rules.
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
Code: Select all
Uncaught ReferenceError: gkdEctTrack is not defined
at eval (eval at globalEval (2319249432cs_debug_wp.js:20:2536), <anonymous>:1:1)
at eval (<anonymous>)
at Function.globalEval (2319249432cs_debug_wp.js:20:2536)
at n.fn.init.domManip (2319249432cs_debug_wp.js:21:17163)
at n.fn.init.append (2319249432cs_debug_wp.js:21:14846)
at window.show_notification (637264646cs_debug_wp.js:760:46)
at Object.success (637264646cs_debug_wp.js:380:7)
at j (2319249432cs_debug_wp.js:20:26860)
at Object.fireWith [as resolveWith] (2319249432cs_debug_wp.js:20:27673)
at x (2319249432cs_debug_wp.js:22:11120)
Code: Select all
gkdEctTrack('add_to_cart', 113270, 'Add to Cart')
add to cart has problem and if refresh is shows at basket and refresh the number in basket
https://inde.gr
opencart 3.0.3.2
journal 3.0.46
opencart lightning 4.33
php 7.3.33
run with nginx only
plesk
almalinux 8
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
2nd can you suggest me any theme I buy this because is the most popular...
Attachments
Screenshot_20230910_025542_Samsung Internet.jpg (463.52 KiB) Viewed 2912 times
Screenshot_20230910_025158_Chrome.jpg (624.87 KiB) Viewed 2913 times
View all extensions | Request custom work | Pricing | Contact Me
Users browsing this forum: No registered users and 3 guests