Hi, I think Itemid must be added to JS popup link buttons
On line 125 and 126, links misses the Itemid parameter
$this->json->msg = '<a class="continue" href="' . $continue_link . '" >' . JText::_('COM_VIRTUEMART_CONTINUE_SHOPPING') . '</a>';
$this->json->msg .= '<a class="showcart floatright" href="' . JRoute::_("index.php?option=com_virtuemart&view=cart") . '">' . JText::_('COM_VIRTUEMART_CART_SHOW_MODAL') . '</a>';
Tryed to get Itemid like this
$Itemid = &JSite::getMenu()->getActive()->id;
But I can't find the item id, because $Itemid gets empty ¿?
Thanks in advise.
This should give you an ItemId string to add to the end of the URL if one is returned.
//Find VM2 Itemid from Joomla.
$db = &JFactory::getDbo();
$qry = "SELECT `id` FROM #__menu WHERE `link` LIKE \"%com_virtuemart%\" AND `client_id` =0 ";
$db->setQuery($qry);
$db->query();
$modules = $db->loadResult();
$ItemIdString = "";
if ($modules) {
$ItemIdString = "&Itemid=".$modules;
}
Hope this helps.
Thank you!