{"id":561,"date":"2010-10-14T17:45:58","date_gmt":"2010-10-14T15:45:58","guid":{"rendered":"http:\/\/www.kavdesign.net\/blog\/?p=561"},"modified":"2010-10-14T17:46:45","modified_gmt":"2010-10-14T15:46:45","slug":"how-to-remove-the-itemid-from-the-links-of-swmenupro-when-you-use-it-to-show-virtuemart-categories-or-products","status":"publish","type":"post","link":"https:\/\/www.kavdesign.net\/blog\/joomla\/how-to-remove-the-itemid-from-the-links-of-swmenupro-when-you-use-it-to-show-virtuemart-categories-or-products\/","title":{"rendered":"How to remove the Itemid from the links of swMenuPro when you use it to show Virtuemart categories or products?"},"content":{"rendered":"<p>A strange problem apeared for me when I use swMenuPro to show the Virtuemart products or categories. The problem is that when I click to an link from the menu I go to the category (or product), but the Itemid stays the same as from the previus page, but I needed to change the Itemid or the Virtuemart page.<br \/>\nTo do this go to yoursite.com\/modules\/mod_swmenupro\/functions.php and around line 237 and 253 there should be the link (on two places):<\/p>\n<pre>$url=\"index.php?option=com_virtuemart&amp;page=shop.product_details&amp;flypage=shop.flypage&amp;product_id=\".$result4-&gt;product_id.\"&amp;category_id=\" . $result4-&gt;category_id . \"&amp;manufacturer_id=\".$result4-&gt;vendor_id.\"&amp;Itemid=\".($Itemid).\"&amp;swid=\".($result4-&gt;product_id+100000);<\/pre>\n<p>So just remove the Itemid or put your value.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A strange problem apeared for me when I use swMenuPro to show the Virtuemart products or categories. The problem is that when I click to&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/www.kavdesign.net\/blog\/joomla\/how-to-remove-the-itemid-from-the-links-of-swmenupro-when-you-use-it-to-show-virtuemart-categories-or-products\/\">Continue reading<span class=\"screen-reader-text\">How to remove the Itemid from the links of swMenuPro when you use it to show Virtuemart categories or products?<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[29],"tags":[34,417,72,136,33],"class_list":["post-561","post","type-post","status-publish","format-standard","hentry","category-joomla","tag-itemid","tag-joomla","tag-menu","tag-swmenupro","tag-virtuemart","entry"],"_links":{"self":[{"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/posts\/561","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/comments?post=561"}],"version-history":[{"count":3,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/posts\/561\/revisions"}],"predecessor-version":[{"id":564,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/posts\/561\/revisions\/564"}],"wp:attachment":[{"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/media?parent=561"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/categories?post=561"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/tags?post=561"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}