Post by seaturtle » Mon Apr 10, 2023 1:38 pm

Hi,
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?

Newbie

Posts

Joined
Fri Jul 23, 2021 12:41 pm

Post by ADD Creative » Mon Apr 10, 2023 9:48 pm

If you look in your web browser's developer tool you have JavaScript errors. Try not using Cloudflare and Nitropack to see if that makes a difference.

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by by mona » Mon Apr 10, 2023 11:00 pm

You also have, presumably an extension, on the cart on the product page, disable that and check again.

Attachments

Screen Shot 2023-04-10 at 15.54.09.png

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


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by seaturtle » Sun Apr 16, 2023 11:30 pm

I’ve tried disabling all extensions but then add them back if the problem doesn’t go away as the site is live. I’ve tried disabling nitropack and cloudflare too.

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?

Newbie

Posts

Joined
Fri Jul 23, 2021 12:41 pm

Post by by mona » Mon Apr 17, 2023 11:11 am

You may have done it this way but it is not clear.

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">&times;</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');
			}
		},
before send - loading - so that is working
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)
This is undefined ..

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


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by snowpoloi » Wed Sep 06, 2023 7:17 pm

i have the same problem do we have any solution? or to start over again>???

Newbie

Posts

Joined
Fri Mar 27, 2015 3:19 pm

Post by JNeuhoff » Wed Sep 06, 2023 11:41 pm

snowpoloi wrote:
Wed Sep 06, 2023 7:17 pm
i have the same problem do we have any solution? or to start over again>???
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


User avatar
Guru Member
Online

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by snowpoloi » Sun Sep 10, 2023 12:22 am

no is exact the same problem

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')
wishlist working
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

Newbie

Posts

Joined
Fri Mar 27, 2015 3:19 pm

Post by JNeuhoff » Sun Sep 10, 2023 3:59 am

Yours is quite a different OpenCart. While the Add to Cart works and I am unable to reproduce your error, you should still get a proper OpenCart theme to start with.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member
Online

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by snowpoloi » Sun Sep 10, 2023 7:50 am

What do you mean that you add to basket product and the basket number from 0 is going to 1 without refresh the page;;or without press show shopping cart;
Image

2nd can you suggest me any theme I buy this because is the most popular...

Attachments

Screenshot_20230910_025542_Samsung Internet.jpg

Screenshot_20230910_025542_Samsung Internet.jpg (463.52 KiB) Viewed 2912 times

Screenshot_20230910_025158_Chrome.jpg

Screenshot_20230910_025158_Chrome.jpg (624.87 KiB) Viewed 2913 times


Newbie

Posts

Joined
Fri Mar 27, 2015 3:19 pm

Post by ADD Creative » Sun Sep 10, 2023 4:55 pm

It looks like a issue with an extension that adds gkdEctTrack or your Journal theme. You would need to contact the developers.

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by SohBH » Sun Sep 10, 2023 5:00 pm

It is caused by page builder theme, so avoid those 'theme'.

View all extensions | Request custom work | Pricing | Contact Me


User avatar
Active Member

Posts

Joined
Mon Nov 02, 2020 12:01 am
Location - Malaysia

Post by snowpoloi » Sun Sep 10, 2023 6:12 pm

i try to disable the theme and still have the same error i disable all modules and still do the same. So there is no fix for that?

Newbie

Posts

Joined
Fri Mar 27, 2015 3:19 pm

Post by snowpoloi » Sun Sep 10, 2023 6:23 pm

ok i fix it was module conflict! about tag managers and seo and is working with disabled module!!!! thanks a lot!

Newbie

Posts

Joined
Fri Mar 27, 2015 3:19 pm
Who is online

Users browsing this forum: No registered users and 3 guests