VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: Dokho on December 23, 2011, 03:30:20 AM

Title: ADD to Cart Button doesn't work with http://www
Post by: Dokho on December 23, 2011, 03:30:20 AM
The add to cart button doesn't work when you have http://www.servername.com configurated. 

If you put off the http://www., the add to cart button works fine.

We need to fix it. Can anybody help us with this?
Title: Re: ADD to Cart Button doesn't work with http://www
Post by: JtouchMobile.com on December 23, 2011, 04:13:09 AM
Your website url, please?
Title: Re: ADD to Cart Button doesn't work with http://www
Post by: Studio 42 on December 23, 2011, 06:50:26 AM
Hi Dohko,

i know this problem appear in vm1.1.

Are you sure your post is for Virtuemart 2.0 ?
Title: Re: ADD to Cart Button doesn't work with http://www
Post by: Dokho on December 26, 2011, 16:04:52 PM
Hi guys, thanks for answer me, I'm using vm 2.0, lasted version.
Title: Re: ADD to Cart Button doesn't work with http://www
Post by: jenkinhill on December 26, 2011, 17:06:26 PM
But what is the url???
Title: Re: ADD to Cart Button doesn't work with http://www
Post by: Dokho on December 26, 2011, 21:17:34 PM
Hey Everybody !

My url : www.anything4tablets.com

THanks !
Title: Re: ADD to Cart Button doesn't work with http://www
Post by: PRO on December 26, 2011, 21:52:35 PM
Dokho, when you download configuration.php

do you have something for var_live site?


you need to choose either www or non-www and redirect to the other
Title: Re: ADD to Cart Button doesn't work with http://www
Post by: nflmerch on December 27, 2011, 20:23:23 PM
I think I might have the same problem:
http://forum.virtuemart.net/index.php?topic=95283.0

I tried changing the $live_site variable in configuration.php but nothing seems to work.
Title: Re: ADD to Cart Button doesn't work with http://www
Post by: PRO on December 27, 2011, 20:27:00 PM
Quote from: nflmerch on December 27, 2011, 20:23:23 PM
I think I might have the same problem:
http://forum.virtuemart.net/index.php?topic=95283.0

I tried changing the $live_site variable in configuration.php but nothing seems to work.

do you have a joomla menu link to the default layout?
Title: Re: ADD to Cart Button doesn't work with http://www
Post by: nflmerch on December 27, 2011, 23:29:55 PM
Quote from: BanquetTables.pro on December 27, 2011, 20:27:00 PM
do you have a joomla menu link to the default layout?

Wow thank you, you're right.   I swear I had made a menu link to the default layout a long time ago, but it wasn't there anymore.

What would I do without this forum and BanquetTables.pro?!
Title: Re: ADD to Cart Button doesn't work with http://www
Post by: bills2paynow on February 21, 2012, 09:12:35 AM
I have the same problem. My website url is scriprint.com
Add to cart is working when i have it set as http://scriprint.com
How do i set it to http://www.scriprint.com without
losing the functionalities of my cart?
Title: Re: ADD to Cart Button doesn't work with http://www
Post by: PRO on February 21, 2012, 12:03:30 PM
Quote from: BanquetTables.pro on December 27, 2011, 20:27:00 PM


do you have a joomla menu link to the default layout?


^
Title: Re: ADD to Cart Button doesn't work with http://www
Post by: riverhawk on February 21, 2012, 14:04:30 PM
I had the same problem too. Make sure your VM settings(control panel->shop->vendor) are using "www.yoursite.com". Then check your site's global configuration is also using "www.". I actually had to FTP the configuration.php file and change it manually and re-upload it. After to ensure your visitors are on "www." you have to modify the .htaccess file and add these lines so they get redirected:

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