Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 HELP!! AFTER UPGRADE ADD TO CART NOT WORKING!
Previous Page
Author « Topic »
Page: of 2

Vince
Administrator

42479 Posts

Posted - 10/04/2022 :  02:46:57  
Hi Charmarsh
This should work with both PHP and ASP and if you let me know what the errors are then it would help in solving them. But if you don't use the incectstyle.php page then you need to add the gtag function manually as in the instructions.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

charmarsh
Ecommerce Template Expert

USA
933 Posts

Pre-sales questions only
(More Details...)

Posted - 10/04/2022 :  09:41:10  
Per David: I believe you have a different javascript error - I see it in the console.

Uncaught ReferenceError: gtag is not defined

I added the code to the admin, and then none of the Add to Cart Buttons worked, plus the login and logout button was frozen too.

I dont know what you mean by "But if you don't use the incectstyle.php page". Do you mean the style sheet? Will that change the look of my current website design?

I did not add anything to the head sections of my store pages. www.manageyourweight.com

What is the simplest way to make this work?

charmarsh
Ecommerce Template Expert

USA
933 Posts

Pre-sales questions only
(More Details...)

Posted - 10/04/2022 :  10:49:02  
I just discovered that the mobile version of my site is still having the same issues with the add to cart buttons not working and the login logout buttons not working!

Vince
Administrator

42479 Posts

Posted - 10/06/2022 :  02:34:02  
Hi Charmarsh
I cannot connect to your website and I replied to your email about this but from another email you wrote to me I don't think you are getting my emails either. I did a "tracert" on your domain and the trace seems to get to the liquidweb servers before timing out so maybe you have some kind of blocking by IP location as I'm non-US

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

Vince
Administrator

42479 Posts

Posted - 10/06/2022 :  03:01:21  
Scratch that, my emails are getting through at least and I've sent some information that should help your host.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

charmarsh
Ecommerce Template Expert

USA
933 Posts

Pre-sales questions only
(More Details...)

Posted - 10/06/2022 :  09:02:20  
The Android phones seem to function OK.

With some additional testing, the Apple phones seem to be operating ok now too.

Not sure what changed. But any behind the scenes help is greatly appreciated!


charmarsh
Ecommerce Template Expert

USA
933 Posts

Pre-sales questions only
(More Details...)

Posted - 10/06/2022 :  09:10:50  
Whew!
Anyway, I do want to set up the Google G4 tracking again but want to avoid the chaos.
What do I have to do to get this set up properly?

Vince
Administrator

42479 Posts

Posted - 10/07/2022 :  02:01:56  

copcars
Starting Member

USA
29 Posts

Posted - 11/22/2022 :  18:27:48  
When I added my Google Analytics Global Site Tag to the Admin Main Settings section, my Add to Cart buttons also stopped working.

I decided to manually add the tag codes to each of my pages.

Just wanted you to be aware that this problem still exists.

I'm glad I found charmarsh's post.

Thanks

Eric Payne

Vince
Administrator

42479 Posts

Posted - 11/22/2022 :  23:59:03  
Hi Eric
quote:
I decided to manually add the tag codes to each of my pages.
You will need to add the tag codes to each page unless you are using the incectstyle.php include file. And if you are using the incectstyle.php include then the tags will only be included automatically if the incectstyle.php script is included after the incfunctions.php script. Could that have been the issue?

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

charmarsh
Ecommerce Template Expert

USA
933 Posts

Pre-sales questions only
(More Details...)

Posted - 11/23/2022 :  08:27:06  
Eric,

Even for an "Ecommerce Templates Expert" like me, this was very complicated. After adding the code manually to the templates/pages, I still had to contact Google to complete the setup as it still wasn't working. Working now until Google changes things again.

copcars
Starting Member

USA
29 Posts

Posted - 11/23/2022 :  08:43:36  
Hi Vince...when the Global Site Tag is added to the Admin Main Setting, that means you're using the incectstyle.php file, right? When I added my Global Site Tag and hit submit, all of my add to cart buttons stopped working. When I removed the Global Site Tag from the Admin Main Setting, the add to cart buttons started working again. Do I need to do something manually regarding the incectstyle.php script?

charmarsh...thanks for the response. I am getting a large volume of calls from Google about them wanting me to switch to GA4. I finally made the switch last week and then all of these coding problems popped up. I'm waiting to hear back from them so they can evaluate things. Please post if you get things resolved on your site.

Thanks

Eric Payne

dbdave
ECT Moderator

USA
10289 Posts

Posted - 11/23/2022 :  09:04:07  
Hello, in Vince's reply, where he wrote
quote:
You will need to add the tag codes to each page unless you are using the incectstyle.php include file.


What this means is you must add that to your pages.

So at the top of your pages, you have something like this

include "vsadmin/db_conn_open.php";
include "vsadmin/inc/languagefile.php";
include "vsadmin/includes.php";
include "vsadmin/inc/incfunctions.php";
include "vsadmin/inc/metainfo.php";

You would want to add the incectstyle.php call to that list. But as Vince mentions, after the incfunctions.php script
So you want something like this

include "vsadmin/db_conn_open.php";
include "vsadmin/inc/languagefile.php";
include "vsadmin/includes.php";
include "vsadmin/inc/incfunctions.php";
include "vsadmin/inc/incectstyle.php";
include "vsadmin/inc/metainfo.php";

That should do the trick.
Thanks,
David

copcars
Starting Member

USA
29 Posts

Posted - 11/23/2022 :  09:12:55  
Ahh, I understand now...thanks David!

Eric Payne
Page: of 2 « Topic »  
Previous Page
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000