How to get the parent menu id from the active menu id with the Joomla! 1.6 API

This can be done using the getActive() method from the JMenu class with the Application subpackage. Read More here Anywhere in your Joomla! code use the following codeline to get the parent IDfor the active id. $parentID = JSite::getMenu()->getActive()->tree[0];

March 25, 2018 · 1 min · 39 words · icarnaghan

How to redirect using the Joomla! 1.5 and 2.5 API

When developing a Joomla! Component or Module you can use the Joomla! API to redirect the user from one page to another Joomla! 1.5 Example global $mainframe; $link = 'http://yourlink'; $msg = 'message' $mainframe->redirect($link, $msg, $msgType='message'); Joomla! 2.5 Example $app = JFactory::getApplication(); $link = 'http://yourlink'; $msg = 'message' $app->redirect($link, $msg, $msgType='message',$moved=false); Take note that $msgType can be either message, notice or error The API page can be accessed here for Joomla! 1.5 and here for Joomla! 2.5

March 25, 2018 · 1 min · 77 words · icarnaghan

How to remove the Virtuemart icon in the Cart

Open the file components/com_virtuemart/themes/default/templates/common/minicart.tpl.php Comment out or remove lines 7-9 <a href="http://virtuemart.net/" target="_blank"> <img src="<?php echo $mm_action_url ?>components/com_virtuemart/shop_image/ps_image/menu_logo.gif" alt="VirtueMart" width="80" border="0" /></a> <br />

March 25, 2018 · 1 min · 24 words · icarnaghan

How to upgrade Joomla! 1.7.x to Joomla! 2.5 mannually

Backup your existing Joomla! 1.7.x installation and also your existing Joomla! 1.7.x database Download the 2.5.0 update package and not the installation package from here Extract the Update Package to your local machine and upload to your server overwriting existing files using FTP Now we need to delete some files and directories by opening the file administrator/components/com_admin/script.php from the Upgrade Package The files and folders are listed towards the end of file ...

March 25, 2018 · 2 min · 253 words · icarnaghan

How to use the Custom, stockable variants plugin in VirtueMart 2.0

This is a basic tutorial to help you get started. We will use a Basic Size and Colour selection per product, say if you had a clothing store you would want users to select a Size and Colour for a clothing item, with a different price and different stock levels, you would use the Custom, stockable variants plugin for VirtueMart 2.0 Steps Open the Administration Panel for VirtueMart 2.0 On the Left hand side under Products select Custom Fields** ...

March 25, 2018 · 3 min · 480 words · icarnaghan

Infinite loop detected in JError, how to solve

Recently I moved my Joomla! 1.7 website from one server to another, then I received this error Infinite loop detected in JError The solution to this was that my Database details were incorrect in the configuration.php file, after correcting it the site was up and running again

March 25, 2018 · 1 min · 47 words · icarnaghan

PDF button opening HTML page in popup when AceSEF has been enabled

When I installed the AceSEF component, and enabled it all of a sudden the PDF linksdid not work anymore, it opens a new window but instead of displaying the PDF version it displays the HTML version of the page, when I disabled the AceSEF component it works again. Luckily I managed to solve this problem. Please see the Answer Open the AceSEF configuration page and click on the URLs tab. ...

March 25, 2018 · 1 min · 97 words · icarnaghan

Refused to set unsafe header "Connection" when adding a product to cart in Virtuemart in Joomla! 1.5

Complete Error: Refused to set unsafe header “Connection” XMLHttpRequest cannot load http://www.yourdomain.com/index.php. Origin http://yourdomain.com is not allowed by Access-Control-Allow-Origin. This seems to happen whenever you access your domain via the domain url without the www record. So the Ajax calls that are made when adding a product to the cart seem to make calls to the www.yourdomain.com url and sees it as a different website. A simple workaround is to place the following in your .htaccess file ...

March 25, 2018 · 1 min · 97 words · icarnaghan

Removing the Add To Cart text in VirtueMart

Locate the following file /administrator/components/com_virtuemart/languages/common/english.php And replace 'PHPSHOP_CART_ADD_TO' => 'Add to Cart', with 'PHPSHOP_CART_ADD_TO' => '', And the text will disappear.

March 25, 2018 · 1 min · 21 words · icarnaghan

this.parentNode.elements is undefined when updating Quantities in Virtuemart

To solve this problem open the following file components/com_virtuemart/js/themes/default/templates/product_details/includes/quantity_box_general.tpl.php and in line 46 and 47 remove this code <input type="button" class="quantity_box_button quantity_box_button_up" onclick="var qty_el = this.parentNode.elements[\'quantity[]\']; var qty = qty_el.value; if( !isNaN( qty )) qty_el.value++;return false;" /> <input type="button" class="quantity_box_button quantity_box_button_down" onclick="var qty_el = this.parentNode.elements[\'quantity[]\']; var qty = qty_el.value; if( !isNaN( qty ) && qty > 0 ) qty_el.value--;return false;" /> and replace it with this code <input type="button" class="quantity_box_button quantity_box_button_up" onclick="var qty_el = document.getElementById(\'quantity'.$prod_id.'\'); var qty = qty_el.value; if( !isNaN( qty )) qty_el.value++;return false;" /> <input type="button" class="quantity_box_button quantity_box_button_down" onclick="var qty_el = document.getElementById(\'quantity'.$prod_id.'\'); var qty = qty_el.value; if( !isNaN( qty ) && qty > 0 ) qty_el.value--;return false;" />

March 25, 2018 · 1 min · 110 words · icarnaghan