charmarsh
Ecommerce Template Expert
USA
989 Posts |
Posted - 09/14/2026 : 09:37:30
Add to cart buttons not working.
|
dbdave
ECT Moderator
USA
10772 Posts |
Posted - 09/14/2026 : 09:55:00
Did you recently update? Most often this is simply the ectcart.js file have not been updated, or is not connected to your pages.
Thanks, David
|
charmarsh
Ecommerce Template Expert
USA
989 Posts |
Posted - 09/14/2026 : 09:55:24
no. nothing new.
|
charmarsh
Ecommerce Template Expert
USA
989 Posts |
Posted - 09/14/2026 : 09:57:55
no did not make any changes recently
Edited by - charmarsh on 09/14/2026 09:59:55
|
dbdave
ECT Moderator
USA
10772 Posts |
Posted - 09/14/2026 : 10:54:24
I checked the site in your profile and it worked for me.. Is this a different site? Thanks, David
|
charmarsh
Ecommerce Template Expert
USA
989 Posts |
Posted - 09/14/2026 : 11:01:10
Yes, it is: www.theairbeddoctor.com
Thank you
|
charmarsh
Ecommerce Template Expert
USA
989 Posts |
Posted - 09/14/2026 : 11:19:13
it looks to me like the css file is linked. can you take a look and see what else may be the issue please?
|
dbdave
ECT Moderator
USA
10772 Posts |
Posted - 09/14/2026 : 11:23:50
Just an FYI - You can see javascript errors on the page, by hitting that button and hit F12 (or right click > inspect) to view the browsers console. You have the following error - Uncaught ReferenceError: gtag is not defined
Go to your admin Main Settings > Google reCaptcha + Analytics 4 and check what you have set there. Make sure it's for this site - remove the credentials if they are for another site. That should fix it.
David
|
charmarsh
Ecommerce Template Expert
USA
989 Posts |
Posted - 09/14/2026 : 11:27:58
Thanks Dave, i removed the site tag and all is working now. yay.
I still need to put in a tag for our adwords tracking.
Edited by - charmarsh on 09/14/2026 11:30:34
|
dbdave
ECT Moderator
USA
10772 Posts |
Posted - 09/14/2026 : 15:36:38
Check the tag to be sure it's for that website, and correct, and try to renter it after that. David
|
charmarsh
Ecommerce Template Expert
USA
989 Posts |
Posted - 09/15/2026 : 10:30:19
I did get a new G-tag to enter. But Why does Google keep insisting on telling us to add Google Tag Manager code to our web pages? I thought that was taken care of through the Google Site Tag area in our admin?
|
dbdave
ECT Moderator
USA
10772 Posts |
Posted - 09/15/2026 : 14:31:14
Most folks do not have it integrated I suppose... Is the add to cart working after adding it back in?
Thanks, David
|
charmarsh
Ecommerce Template Expert
USA
989 Posts |
Posted - 09/16/2026 : 09:04:52
No.
|
dbdave
ECT Moderator
USA
10772 Posts |
Posted - 09/16/2026 : 11:06:51
|
charmarsh
Ecommerce Template Expert
USA
989 Posts |
Posted - 09/17/2026 : 12:47:27
I'm sorry Dave. I'm confused.
1. Do you mean incectstyle.php has to be included in the pages?
2. When I read your link it reads that a longer script needs to be included.
3. And Google send me a whole other script to be added to the pages.
I thought the whole idea of the built-in Gtag in the Admin was to make it easy to just add the Gtag account code there.
4. Lastly, if I add the code in the pages, would I still need to add the gtag in the admin settings?
|
dbdave
ECT Moderator
USA
10772 Posts |
Posted - 09/17/2026 : 12:58:06
Just like all the other includes in your pages, you just need to include incectstyle.php in the top of all your pages. That it it other than entering your gtag id in the admin. Thanks, David
|
charmarsh
Ecommerce Template Expert
USA
989 Posts |
Posted - 09/17/2026 : 13:00:25
Ah, I get it now. I will try it.
|
charmarsh
Ecommerce Template Expert
USA
989 Posts |
Posted - 09/18/2026 : 10:10:34
Well, I updated www.advancedbedding.com and the add to cart buttons work, but now my buttons and options do not fit within the product columns. all out of whack.
(I removed the include and uploaded all the files again so the layout is back to normal but the add to cart buttons dont work again so I had to remove the tracking code from the admin while waiting for your reply.)
Edited by - charmarsh on 09/18/2026 10:41:59
|
Phil
ECT Moderator
United Kingdom
7853 Posts |
Posted - 09/19/2026 : 11:36:52
|
charmarsh
Ecommerce Template Expert
USA
989 Posts |
Posted - 09/20/2026 : 10:54:54
Yes and I tried a couple of different browsers. This is my test page: https://www.advancedbedding.com/rv-flannel.php
|
dbdave
ECT Moderator
USA
10772 Posts |
Posted - 09/20/2026 : 11:40:01
Hi, looking at the source of the page, you are calling an old version of the ectcart.css file twice. You are calling some css files after the closing head tag and that may be coming from the incectstyle.php being called after the closing head tag - if so, it should be moved up. Your ectcart.js file is from 2025, but the ectcart.css (2 files being called) are both from 2023 and that suggests you updated the site, but not the css file.
You stores custom css file should come AFTER the ectcart.css file so it takes precedence.
Fix these issues and I expect the site would look better, but honestly, I could use a modern makeover.
Thanks, David
Edited by - dbdave on 09/20/2026 11:44:54
|
| |