News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

[fixed]1.9.8.RC2G The products in the shopping cart have wrong links

Started by grtrustme, September 20, 2011, 23:25:14 PM

Previous topic - Next topic

grtrustme

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.


Milbo

Should I fix your bug, please support the VirtueMart project and become a [url=http://extensions.virtuemart.net/support/virtuemart-supporter-membership-detail]member[/url]
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Studio 42

Free XML sitemap generator [url="http://shop.st42.fr/en/catalog/products/virtuemart-2-sitemap.htm"]http://shop.st42.fr/en/catalog/products/virtuemart-2-sitemap.htm[/url]  , Free Unused Image cleaner [url="http://shop.st42.fr/en/products/virtuemart-media-folder-clear.htm"]http://shop.st42.fr/en/products/virtuemart-media-folder-clear.htm[/url]
Language Switch in product & category [url="http://shop.st42.fr/en/categories-tools/multi-language-for-virtuemart.htm"]http://shop.st42.fr/en/categories-tools/multi-language-for-virtuemart.htm[/url]
More extentions [url="http://shop.st42.fr/en/"]http://shop.st42.fr/en/[/url]