Page 1 of 1

add to cart buttons don't work

Posted: Thu Oct 13, 2011 2:52 pm
by cache173
Hi,

The add to cart buttons don't work unless I go into one of product and click on add to cart. It works. Then the front page add to cart would work. Does any one know what went wrong? I didn't mod any pages except change the date format. Got simple credit card module and youtube module.

Chris

Re: add to cart buttons don't work

Posted: Thu Oct 13, 2011 3:22 pm
by grgr
This seems to normally be when the config file says http ://yourdomain... and the browser address is http ://www.youdomain...

Re: add to cart buttons don't work

Posted: Mon Oct 17, 2011 4:32 pm
by xsobakax
hello,

I have the same problem. Button "add to cart" doesn't work just on product's page.

I understand that I have problem in "product.tpl" page, but have no idea how to fix it. ???
For example page with product : http://www.owlstore.ru/base-london-ae84
Add to cart = "В корзину" (orange button).

It's awful cause nobody can buy anything from store (
I tried to solve this problem on other forums - no effects.

Re: add to cart buttons don't work

Posted: Mon Oct 17, 2011 11:54 pm
by grgr
You need to add

//--></script>

Directly after:

/*End added*/
}
}
});
});

Bit of a guess though....

Re: add to cart buttons don't work

Posted: Tue Oct 18, 2011 12:46 am
by xsobakax
big thanks to you!
the problem really was in this piece of code...
+100!

Re: add to cart buttons don't work

Posted: Tue Nov 29, 2011 3:57 am
by cutemonster
Hi, I have exactly the same problem. Can you please point me where I should put the code? which file is that?

thanks!

Re: add to cart buttons don't work

Posted: Tue Nov 29, 2011 5:32 am
by grgr
xsobakax had edited the template hence needing the code.

The problem of the add to cart button not working on the home page seems to normally be when the config file says http://yourdomain... and the browser address is http://www.youdomain...

You need to change your config files or force your hosting to either www or non-wwww

Re: add to cart buttons don't work

Posted: Tue Jan 17, 2012 10:17 am
by Wallimann
I am following this thread with great interest.
I am having the same issue.
When adding a product to the cart from the homepage it works with www.guitarplayback.com
However guitarplayback.com does not allow the add to cart to work.

I am a bit confused as to what needs to be done to fix this though... :-/

Help!

Re: add to cart buttons don't work

Posted: Thu Feb 09, 2012 1:59 pm
by Saile
can someone please explain properly how to fix this ?

Re: add to cart buttons don't work

Posted: Sat Feb 11, 2012 6:31 pm
by sylvesterng
Found a solution... 301 Redirect yourdomain.com to http://www.yourdomain.com.

Change "yourdomain" to your site url. and add into .htaccess
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^yourdomain\.com$ [NC]
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=301,L]


edit config.php:
// HTTP
define('HTTP_SERVER', 'http://www.yourdomain.com/');
define('HTTP_IMAGE', 'http://www.yourdomain.com/image/');
define('HTTP_ADMIN', 'http://www.yourdomain.com/admin/');

// HTTPS
define('HTTPS_SERVER', 'https://www.yourdomain.com/');
define('HTTPS_IMAGE', 'https://www.yourdomain.com/image/');



edit admin/config.php:
// HTTP
define('HTTP_SERVER', 'http://www.yourdomain.com/admin/');
define('HTTP_CATALOG', 'http://www.yourdomain.com/');
define('HTTP_IMAGE', 'http://www.yourdomain.com/image/');

// HTTPS
define('HTTPS_SERVER', 'https://www.yourdomain.com/admin/');
define('HTTPS_IMAGE', 'https://www.yourdomain.com/image/');


Hope this helps... :)

Re: add to cart buttons don't work

Posted: Fri Mar 16, 2012 1:22 am
by fpuyo
honestly, I've proved these solutions, but it continues without working.

which file do i have to edit with:

//--></script>
Directly after:

/*End added*/
}
}
});
});

in addition, i've proved the other solution and it doesnt' work

Thanks!

Re: add to cart buttons don't work

Posted: Mon Mar 19, 2012 4:45 pm
by grgr
fpuyo wrote:honestly, I've proved these solutions, but it continues without working.

which file do i have to edit with:

//--></script>
Directly after:

/*End added*/
}
}
});
});

in addition, i've proved the other solution and it doesnt' work

Thanks!
You don't, that was specifically for the original poster.

Re: add to cart buttons don't work

Posted: Thu Jun 27, 2013 4:46 pm
by gokhan_rdm
There is same issue me too. But my site is in localhost and I'm using bossthemes(go-market). I added my product.tpl file. Please can you help me this topic?

Re: add to cart buttons don't work

Posted: Tue Aug 27, 2013 1:11 am
by efishop
Just navigate to your Cpanel account and under Redirects section make a permanent redirect from www.yoursite.com to yoursite.com!

Re: add to cart buttons don't work

Posted: Fri Jun 05, 2015 7:00 pm
by sohoz
Add to Cart button not working after 301 redirect sohozlife.com to http://www.sohozlife.com
Please help to fix this issue :(

The .htaccess code is:

Code: Select all

# SEO URL Settings
RewriteEngine On
RewriteCond %{HTTP_HOST} ^sohozlife.com [NC]
RewriteRule ^(.*)$ http://www.sohozlife.com/$1 [L,R=301,NC]