Author Topic: ADD to Cart Button doesn't work with http://www  (Read 3669 times)

Dokho

  • Beginner
  • *
  • Posts: 17
ADD to Cart Button doesn't work with http://www
« 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?

JtouchMobile.com

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 96
  • Mobile Solutions for VirtueMart 2
    • JtouchMobile.com
Re: ADD to Cart Button doesn't work with http://www
« Reply #1 on: December 23, 2011, 04:13:09 am »
Your website url, please?
Author of Jtouch - Mobile solution for Joomla & VirtueMart
http://www.jtouchmobile.com

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4336
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: ADD to Cart Button doesn't work with http://www
« Reply #2 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 ?

Dokho

  • Beginner
  • *
  • Posts: 17
Re: ADD to Cart Button doesn't work with http://www
« Reply #3 on: December 26, 2011, 16:04:52 pm »
Hi guys, thanks for answer me, I'm using vm 2.0, lasted version.

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27744
  • Always on vacation
    • Jenkin Hill Internet
Re: ADD to Cart Button doesn't work with http://www
« Reply #4 on: December 26, 2011, 17:06:26 pm »
But what is the url???
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

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

Currently using VM 3.8.2 10325 on Joomla 3.9.18 PHP 7.3.18

Dokho

  • Beginner
  • *
  • Posts: 17
Re: ADD to Cart Button doesn't work with http://www
« Reply #5 on: December 26, 2011, 21:17:34 pm »
Hey Everybody !

My url : www.anything4tablets.com

THanks !

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10406
  • VirtueMart Version: 3+
Re: ADD to Cart Button doesn't work with http://www
« Reply #6 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
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

nflmerch

  • Jr. Member
  • **
  • Posts: 114
Re: ADD to Cart Button doesn't work with http://www
« Reply #7 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.

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10406
  • VirtueMart Version: 3+
Re: ADD to Cart Button doesn't work with http://www
« Reply #8 on: December 27, 2011, 20:27:00 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?
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

nflmerch

  • Jr. Member
  • **
  • Posts: 114
Re: ADD to Cart Button doesn't work with http://www
« Reply #9 on: December 27, 2011, 23:29:55 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

  • Beginner
  • *
  • Posts: 1
Re: ADD to Cart Button doesn't work with http://www
« Reply #10 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?

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10406
  • VirtueMart Version: 3+
Re: ADD to Cart Button doesn't work with http://www
« Reply #11 on: February 21, 2012, 12:03:30 pm »


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


^
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

riverhawk

  • Beginner
  • *
  • Posts: 16
Re: ADD to Cart Button doesn't work with http://www
« Reply #12 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]