Add to cart button not working after transferring domain
12 posts
• Page 1 of 1
Add to cart button not working after transferring domain
Hi,
I recently changed to a new host. I setup open cart on a temporary domain (IP address) and got everything working as it should, with all my extensions and custom theme.
I have now transferred my domain to my new host and now the "Add to Cart" button wont work on the product page.
I am running version 1.5.2.2.r990. I have run the upgrade script after installing the latest patch.
I dont understand how it can stop working after i now have a domain again. I have changed the config file to the new URL.
I have it with www. without www. i have no style on the page, with no buttons etc so nothing works.
I believe i had this problem before after upgrading to 1.5.2.1 on the old host but cant remember how i fixed it.
Any help is much appreciated.
Thanks,
Alex
I recently changed to a new host. I setup open cart on a temporary domain (IP address) and got everything working as it should, with all my extensions and custom theme.
I have now transferred my domain to my new host and now the "Add to Cart" button wont work on the product page.
I am running version 1.5.2.2.r990. I have run the upgrade script after installing the latest patch.
I dont understand how it can stop working after i now have a domain again. I have changed the config file to the new URL.
I have it with www. without www. i have no style on the page, with no buttons etc so nothing works.
I believe i had this problem before after upgrading to 1.5.2.1 on the old host but cant remember how i fixed it.
Any help is much appreciated.
Thanks,
Alex
- alexsmith2709
- Posts: 23
- Joined: Sat Jan 28, 2012 4:23 pm
Re: Add to cart button not working after transferring domain
This would occur if
1. there is a javascript issue (like a file referenced incorrectly causing jQuery not to load say). If you have firebug, that will tell you the issue
2. You're viewing your site on a non-www domain but your site is configured to use www (or vice versa)
Other than that, I can't think why it would not work
1. there is a javascript issue (like a file referenced incorrectly causing jQuery not to load say). If you have firebug, that will tell you the issue
2. You're viewing your site on a non-www domain but your site is configured to use www (or vice versa)
Other than that, I can't think why it would not work

Better Product SEO URL's - Perfectly structured product links
Better Category SEO URL's - Give subcategories the same SEO keyword
SEO URL's Route Editor - Fix all of your index.php links

-

JAY6390 - Posts: 4636
- Joined: Wed May 26, 2010 3:47 pm
- Location: United Kingdom
Re: Add to cart button not working after transferring domain
I dont know how to use firebug to find out.
What files do i need to look in to see the jquery references? Is it the header.tpl in the theme?
in my header i still have references to fancybox as im still using that to display the larger images when clicked on the product page. That is the only difference, other than the stylesheet locations.
I have a www. domain and my config file using www.
If someone would like to see my site i'll post the URL.
thanks
What files do i need to look in to see the jquery references? Is it the header.tpl in the theme?
in my header i still have references to fancybox as im still using that to display the larger images when clicked on the product page. That is the only difference, other than the stylesheet locations.
I have a www. domain and my config file using www.
If someone would like to see my site i'll post the URL.
thanks
- alexsmith2709
- Posts: 23
- Joined: Sat Jan 28, 2012 4:23 pm
Re: Add to cart button not working after transferring domain
sure post the url

Better Product SEO URL's - Perfectly structured product links
Better Category SEO URL's - Give subcategories the same SEO keyword
SEO URL's Route Editor - Fix all of your index.php links

-

JAY6390 - Posts: 4636
- Joined: Wed May 26, 2010 3:47 pm
- Location: United Kingdom
Re: Add to cart button not working after transferring domain
[code]www.purpleandblackalternative.co.uk/shop/[code]
- alexsmith2709
- Posts: 23
- Joined: Sat Jan 28, 2012 4:23 pm
Re: Add to cart button not working after transferring domain
By the looks of it you've updated/your theme is not the right version, and your url is posting to
So you need to sort the code in your product.tpl file to point to
checkout/cart/add
instead of
checkout/cart/update
- Code: Select all
"NetworkError: 404 Not Found - http://www.purpleandblackalternative.co.uk/shop/index.php?route=checkout/cart/update"
- Code: Select all
http://www.purpleandblackalternative.co.uk/shop/index.php?route=checkout/cart/add
So you need to sort the code in your product.tpl file to point to
checkout/cart/add
instead of
checkout/cart/update

Better Product SEO URL's - Perfectly structured product links
Better Category SEO URL's - Give subcategories the same SEO keyword
SEO URL's Route Editor - Fix all of your index.php links

-

JAY6390 - Posts: 4636
- Joined: Wed May 26, 2010 3:47 pm
- Location: United Kingdom
Re: Add to cart button not working after transferring domain
Thank you very much JAY6390.
Its now working. I had a feeling it would be something simple like that.
Its now working. I had a feeling it would be something simple like that.
- alexsmith2709
- Posts: 23
- Joined: Sat Jan 28, 2012 4:23 pm
Re: Add to cart button not working after transferring domain
Cool no problem 


Better Product SEO URL's - Perfectly structured product links
Better Category SEO URL's - Give subcategories the same SEO keyword
SEO URL's Route Editor - Fix all of your index.php links

-

JAY6390 - Posts: 4636
- Joined: Wed May 26, 2010 3:47 pm
- Location: United Kingdom
Re: Add to cart button not working after transferring domain
Hello,
I'm having the same problem and believe it might be the same kind of issue.
I installed Firebug and tried to troubleshoot without success.
Any help would be appreciated.
Martin
I'm having the same problem and believe it might be the same kind of issue.
I installed Firebug and tried to troubleshoot without success.
Any help would be appreciated.
Martin
- ncodage
- Posts: 6
- Joined: Thu May 24, 2012 2:24 pm
Re: Add to cart button not working after transferring domain
Hi Martin
Did you check the first two debugging questions I gave? Are you for example viewing your site on a non-www version yet your sites configured to have www ? (or vice versa)
Did you check the first two debugging questions I gave? Are you for example viewing your site on a non-www version yet your sites configured to have www ? (or vice versa)

Better Product SEO URL's - Perfectly structured product links
Better Category SEO URL's - Give subcategories the same SEO keyword
SEO URL's Route Editor - Fix all of your index.php links

-

JAY6390 - Posts: 4636
- Joined: Wed May 26, 2010 3:47 pm
- Location: United Kingdom
Re: Add to cart button not working after transferring domain
i have same issue
i have try to view on a non-www version and www version. it is same..
i have solved it....
for people who have same problem just edit url: 'index.php?route=checkout/cart/update', to url: 'index.php?route=checkout/cart/add', in catalog/view/theme/template/product
i have try to view on a non-www version and www version. it is same..
i have solved it....
for people who have same problem just edit url: 'index.php?route=checkout/cart/update', to url: 'index.php?route=checkout/cart/add', in catalog/view/theme/template/product
- khantisari
- Posts: 12
- Joined: Fri Jul 13, 2012 9:16 am
Re: Add to cart button not working after transferring domain
That will be a theme issue, as your theme won't be current for the opencart version

Better Product SEO URL's - Perfectly structured product links
Better Category SEO URL's - Give subcategories the same SEO keyword
SEO URL's Route Editor - Fix all of your index.php links

-

JAY6390 - Posts: 4636
- Joined: Wed May 26, 2010 3:47 pm
- Location: United Kingdom
12 posts
• Page 1 of 1
Who is online
Users browsing this forum: emadw, inventorgeorge, rph, RuudN, rwenve, studiodunn and 83 guests













