News:

Support the VirtueMart project and become a member

Main Menu

ADD to Cart Button doesn't work with http://www

Started by Dokho, December 23, 2011, 03:30:20 AM

Previous topic - Next topic

Dokho

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?

JtouchMobile.com

Author of Jtouch - Mobile solution for Joomla & VirtueMart
http://www.jtouchmobile.com

Studio 42

Hi Dohko,

i know this problem appear in vm1.1.

Are you sure your post is for Virtuemart 2.0 ?

Dokho

Hi guys, thanks for answer me, I'm using vm 2.0, lasted version.

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum


PRO

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

nflmerch

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.

PRO

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?

nflmerch

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?!

bills2paynow

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?

PRO


riverhawk

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]