|
How To Remove This Category Is Currently Empty In The Joomla Virtuemart E-Commerce Browse Page |
|
Software -
Virtuemart
|
|
Sunday, 12 August 2007 |
|
If you're working with the e-commerce online store software solution Virtuemart, which is a popular and easy-to-use Joomla / Mambo content management (CMS) component, and you are looking to remove the text How To Remove "This Category Is Currently Empty" In product browse page, the process is relatively easy, but it is not as easy as going into the Joomla / Mambo or Virtuemart language file (english.php) and making modifications there. Since it is a variable database call from the "shop.browse.php" file in the "administrator/components/com_virtuemart/html/" directory (folder), you'll need to access the PHP file using file transfer protocol (FTP). First, as always, back up the original file. I always backup the file by downloading it onto my computer. I then rename it to "filename_ORIGINAL.php" and reupload it, never touching it again unless things get ugly but always leaving it there for reference and never deleting it. Now, download the working file, which is "shop.browse.php." Open it using your text editor, such as Macromedia Dreamweaver or Notepad. Now, perform a search (CTRL+F) for "echo _EMPTY_CATEGORY;" and replace it with "echo "";" for returning nothing if your parts category is empty. You can also have it return the words from the language file by replacing it with code such as "echo $VM_LANG->_PHPSHOP_PLEASE_SEL_ITEM;" or some other line of code that calls a line from the language file. Using this logic, you can also create your own field within the language file for this specific instance, which is the way this should be set within the code from the start. MEDIA TAGS: joomla virtuemart e-commerce online store category empty products browse page change category text change words |
|