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

Virtuemart 2.0.2~4 and Joomla Menu - Joomla 2.5.4

Started by just.timonych, April 14, 2012, 11:07:35 AM

Previous topic - Next topic

just.timonych

System info:
MySQL - 5.1.61
PHP - 5.3.3
Apache - Apache/2.2.15(CentOS)

Joomla! 2.5.4 Stable

Problem:
If the product is assigned to Joomle Menu and has Jomls SEF the link becomes like this:
Quotesef.html?virtuemart_product_id=27&virtuemart_category_id=12

In Joomla Menu the link is ok and has right SEF
Quotesef.html

But in Virtuemart Modules and in Virtuemart Product Pages the link has this part
Quotevirtuemart_product_id=id&virtuemart_category_id=id

Category Page is also ok. The link has the form Joomla Menu SEF

just.timonych

#1
Have fix it.

In Virtuemart router
Quotecomponents/com_virtuemart/router.php
go to 132 string, where is the string
$query['Itemid'] = $jmenu['virtuemart_product_id'][$query['virtuemart_product_id']];
and after it past 2 strings:
unset($query['virtuemart_product_id']);
unset($query['virtuemart_category_id']);

before closing tag
Quote
} else