VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: grtrustme on September 20, 2011, 23:25:14 PM

Title: [fixed]1.9.8.RC2G The products in the shopping cart have wrong links
Post by: grtrustme on September 20, 2011, 23:25:14 PM
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.
Title: Re: 1.9.8.RC2G The products in the shopping cart have wrong links
Post by: grtrustme on September 24, 2011, 01:34:16 AM
Fixed!
Title: Re: 1.9.8.RC2G The products in the shopping cart have wrong links
Post by: Milbo on September 26, 2011, 19:43:19 PM
Thanks, great work.
Title: Re: 1.9.8.RC2G The products in the shopping cart have wrong links
Post by: Studio 42 on September 26, 2011, 20:16:12 PM
YEs fixed :)