Author Topic: [fixed]1.9.8.RC2G The products in the shopping cart have wrong links  (Read 3209 times)

grtrustme

  • Beginner
  • *
  • Posts: 32
  • Perfection in your hands
I m using Ubuntu OS, Apache Web Server with mod_rewrite. I am also using SEO friendly urls without  index.php in my joomla 1.7.

I was adding products to my cart. When i went to see the contents of my cart and i clicked on a product, the link was wrong.
For example: instead of the link http://localhost/bestshop/test/powertools/nice-saw, the link was http://localhost/bestshop//bestshop/test/powertools/nice-saw

What i did was:
in the file /components/com_virtuemart/views/cart/tmpl/default_pricelist.php, about in line 150

i replaced the line
echo JHTML::link(JURI::root(true) .'/'.$prow->url, $prow->product_name).$prow->customfields;

with this line:
echo JHTML::link($prow->link, $prow->product_name) . $prow->customfields;

And the problem was fixed for me. You can see if this can be a permanent solution.

grtrustme

  • Beginner
  • *
  • Posts: 32
  • Perfection in your hands
Re: 1.9.8.RC2G The products in the shopping cart have wrong links
« Reply #1 on: September 24, 2011, 01:34:16 am »
Fixed!

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10040
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: 1.9.8.RC2G The products in the shopping cart have wrong links
« Reply #2 on: September 26, 2011, 19:43:19 pm »
Thanks, great work.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4336
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: 1.9.8.RC2G The products in the shopping cart have wrong links
« Reply #3 on: September 26, 2011, 20:16:12 pm »
YEs fixed :)