Post by cache173 » Thu Oct 13, 2011 2:52 pm

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

Newbie

Posts

Joined
Tue Oct 11, 2011 8:04 am

Post by grgr » Thu Oct 13, 2011 3:22 pm

This seems to normally be when the config file says http ://yourdomain... and the browser address is http ://www.youdomain...

-
Image Image Image
VIEW ALL EXTENSIONS * EXTENSION SUPPORT * WEBSITE * CUSTOM REQUESTS


User avatar
Active Member

Posts

Joined
Mon Mar 28, 2011 4:08 pm
Location - UK

Post by xsobakax » Mon Oct 17, 2011 4:32 pm

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.

Newbie

Posts

Joined
Mon Oct 17, 2011 4:27 pm

Post by grgr » Mon Oct 17, 2011 11:54 pm

You need to add

//--></script>

Directly after:

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

Bit of a guess though....

-
Image Image Image
VIEW ALL EXTENSIONS * EXTENSION SUPPORT * WEBSITE * CUSTOM REQUESTS


User avatar
Active Member

Posts

Joined
Mon Mar 28, 2011 4:08 pm
Location - UK

Post by xsobakax » Tue Oct 18, 2011 12:46 am

big thanks to you!
the problem really was in this piece of code...
+100!

Newbie

Posts

Joined
Mon Oct 17, 2011 4:27 pm

Post by cutemonster » Tue Nov 29, 2011 3:57 am

Hi, I have exactly the same problem. Can you please point me where I should put the code? which file is that?

thanks!

Newbie

Posts

Joined
Tue Sep 06, 2011 2:39 am

Post by grgr » Tue Nov 29, 2011 5:32 am

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

-
Image Image Image
VIEW ALL EXTENSIONS * EXTENSION SUPPORT * WEBSITE * CUSTOM REQUESTS


User avatar
Active Member

Posts

Joined
Mon Mar 28, 2011 4:08 pm
Location - UK

Post by Wallimann » Tue Jan 17, 2012 10:17 am

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!

Guitar Backing Tracks and Video Lessons at http://www.guitarplayback.com


New member

Posts

Joined
Fri Oct 29, 2010 1:38 am
Location - Colorado

Post by Saile » Thu Feb 09, 2012 1:59 pm

can someone please explain properly how to fix this ?

Active Member

Posts

Joined
Thu Jan 19, 2012 8:19 am

Post by sylvesterng » Sat Feb 11, 2012 6:31 pm

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... :)

Newbie

Posts

Joined
Thu Jan 05, 2012 2:46 pm

Post by fpuyo » Fri Mar 16, 2012 1:22 am

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!

Newbie

Posts

Joined
Fri Jan 27, 2012 11:14 pm

Post by grgr » Mon Mar 19, 2012 4:45 pm

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.

-
Image Image Image
VIEW ALL EXTENSIONS * EXTENSION SUPPORT * WEBSITE * CUSTOM REQUESTS


User avatar
Active Member

Posts

Joined
Mon Mar 28, 2011 4:08 pm
Location - UK

Post by gokhan_rdm » Thu Jun 27, 2013 4:46 pm

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?

Attachments


Newbie

Posts

Joined
Fri Jun 14, 2013 9:15 pm

Post by efishop » Tue Aug 27, 2013 1:11 am

Just navigate to your Cpanel account and under Redirects section make a permanent redirect from www.yoursite.com to yoursite.com!

Newbie

Posts

Joined
Wed Nov 07, 2012 10:45 pm

Post by sohoz » Fri Jun 05, 2015 7:00 pm

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]

Newbie

Posts

Joined
Fri Jun 05, 2015 6:41 pm
Who is online

Users browsing this forum: Google [Bot] and 73 guests