VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: syammax on June 26, 2013, 17:49:21 PM

Title: VM Add to Cart Button is not working properly Some times
Post by: syammax on June 26, 2013, 17:49:21 PM
Dear Sir

Add to Cart Button is not working properly some problem....

Some times it,s working....fine but major all times it's not working...?

Pls Explain the Status...?
Title: if url continues www. Add to cart button not working -without www add to cart ok
Post by: syammax on June 26, 2013, 21:16:36 PM
Dear Sir

Pls Replay me

if url start with www.eg.com  Add to cart button will not work


without www domain name , ( eg  abc.com ) it,s working well

Pls explain how to solve this issue ?


regards
Syam.c
Title: Re: VM Add to Cart Button is not working properly Some times
Post by: PRO on June 26, 2013, 21:34:17 PM
you have to be more specific??

when is it not working?

what version you using?

do you have a url to the problem?
Title: Re: VM Add to Cart Button is not working properly Some times
Post by: syammax on June 27, 2013, 05:39:49 AM
Hi

thanks for the response

Problem occurred when

you can check this online......web site is www.example.com

when url start with www. that time add to cart not responding.....if i am not putting url without  www eg ( example.com) it,s working fine

Domain start without www It,s Working Great...When Customer is putting www.website.com that's time add to cart not responding

how to solve this issue ? pls explain

I Am using the latest version of Vt 2.0.20b


Regards
Syam.c







Title: Re: VM Add to Cart Button is not working properly Some times
Post by: MaryB on June 28, 2013, 15:03:09 PM
I had the same problem with a site I was working on for a friend. I solved it by editing the .htaccess file.

In the root of your Joomla installation, there should be a file named "htaccess.txt". Line 42 of that file begins the section for custom redirects. Copy and paste the code below into that area, and change "domain.com" in both lines to your own domain name. Make sure you keep the slash before ".com" in the first line.

RewriteCond %{HTTP_HOST} !^domain\.com$
RewriteRule (.*) http://domain.com/$1 [R=301,L]

:o) Mary