Author Topic: Why is this happening? Looks like a bug to me.  (Read 6750 times)

maz007

  • Beginner
  • *
  • Posts: 19
Why is this happening? Looks like a bug to me.
« on: May 06, 2008, 17:04:30 pm »
I have posted before but answers were related to SEF URLS. Now I have removed ALL contributions related to SEF and I STILL get the same problem.

With and without Joomla default SEF (I know its not compatable)
With and without sh404SEF
With and without SmartSEF

If you go to the site using the full URL INCLUDING www. then Virtuemart template seems to be DIFFERENT from the template it gets if you did not use the www.

Here is the example of virtuemart 1.1 with a fresh install of joomla! 1.5.3

Go to the site in 2 ways:
http://www.mysite.com   then
http://mysite.com

In either case go to 'shop' link in main menu. Note the prices of the Nice Saw.
'Special' Prices are marked out in red  for http://mysite.com/shop.html
and NOT in http://www.mysite.com/shop.html

The red/black prices show it is pulling different CSS. Worse, in a previous installation, even the buttons (add to cart etc) were way off to the right.

Also if you navigate from product to product using the links at the top of the product detail pages, note that there are 'arrow images' with the 'http://mysite.com' version and NO arrow images with the http://www.mysite.com (ie the text links are close together). Finally, Look at the blue box around the add to cart button, and in the other its a different format.

I THINK THIS IS DEFFINITELY a template/CSS issue within Virtuemart.

Its a real headache. NOTHING TO DO WITH the above SEF options as I originally thought. Anyone have any ideas. This is really frustrating.

(ps the above links are to the site using SmartSEF, but as I said, makes no diference if i replace it with sh404SEF OR WITHIOUT ANY SEF URLS!)

drfelch

  • Beginner
  • *
  • Posts: 23
Re: Why is this happening? Looks like a bug to me.
« Reply #1 on: May 06, 2008, 17:49:49 pm »
I found a similar(ish) issue.  My site sites on a local server (http://testserver) and I then added a dyndns service to point to it so a client could so it (http://testserver.dyndns.org).  HOWEVER, I see templating issues when I connect via the former.  If I change the live server URL params in the virtumart.cfg.php file it works fine with one OR the other.  Ideally, it should be independant I suppose...

aravot

  • Peter
  • Moderator
  • Sr. Member
  • *
  • Posts: 2874
    • VirtueMart Extensions
Re: Why is this happening? Looks like a bug to me.
« Reply #2 on: May 06, 2008, 21:03:23 pm »
You can add the following to your .htaccess file

Code: [Select]
# Rule for duplicate content removal : www.domain.com vs domain.com
RewriteCond %{HTTP_HOST} ^mydomain\.com [NC]
RewriteRule (.*) http://www.mydomain.com/$1 [R=301,L,NC]

What this will do is rewrite all page requests starting with mydomain.com to www .mydomain.com read more

maz007

  • Beginner
  • *
  • Posts: 19
Re: Why is this happening? Looks like a bug to me.
« Reply #3 on: May 07, 2008, 07:49:04 am »
Thank you so much for your help. This has solved a big headache for me.