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
 Add To Cart button stopped working
Author « Topic »  

markaricnewsom
Advanced Member

USA
223 Posts

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

Posted - 01/14/2020 :  05:32:47  
I updated my Divi theme and it broke the cart. I remember this happening last time and it was because the update overwrote the header file. I cut and pasted the working header code before applying the update. When I pasted it, it looked like everything was fine, except now the Add to cart button doesn't work. Any ideas?

Mark Newsom
Web Consultant
P.O. Box 852
Kimberling City, MO 65686

markaricnewsom
Advanced Member

USA
223 Posts

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

Posted - 01/14/2020 :  06:35:02  
This is the header file I am using:

<?php
<snip>

Mark Newsom
Web Consultant
P.O. Box 852
Kimberling City, MO 65686

Vince
Administrator

42430 Posts

Posted - 01/14/2020 :  06:42:16  
Hi Mark
Under this line...

<link href="/css/ectcart.css" rel="stylesheet">

...add this line...

<script type="text/javascript" src="/js/ectcart.js"></script>

and that should sort this out.

Vince

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

markaricnewsom
Advanced Member

USA
223 Posts

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

Posted - 01/14/2020 :  07:02:57  
Thanks, that worked. Now if I could only figure out how that line mysteriously disappeared in the first place.

Mark Newsom
Web Consultant
P.O. Box 852
Kimberling City, MO 65686

Phil
ECT Moderator

United Kingdom
7609 Posts

Posted - 01/14/2020 :  07:31:51  
Hi Mark,
If you were on an earlier version that didn't have that js script that line would not have been added



* Database Migrations and Conversions*
* ASP to PHP Cart Conversions*

*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

Mike McPherson
Starting Member

USA
1 Posts

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

Posted - 01/21/2020 :  21:13:50  
I had the same problem. Added script and all is well
<script type="text/javascript" src="/js/ectcart.js"></script>
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000