You may have come across this problem. When you add the availability information in the backend for a product, in the frontened the availability image will be displayed with a phrase “Usually ships in” which you may not need.
Let’s see how to solve this. (I’m using Virtuemart 1.9 package. For older versions also similar method may apply).
This is what you get normally.
Now let’s try to remove this “Usually ships in” phrase.
Find the “english.php” file in “/administrator/components/com_virtuemart/languages/common/” folder.
Then find “Usually ships in” phrase there. Around line 362 you’ll find the line
{code} ‘PHPSHOP_DELIVERY_TIME’ => ‘Usually ships in’, {/code}
Replace it with
{code} ‘PHPSHOP_DELIVERY_TIME’ => ”, {/code}
Now save and check the flypage in the frontend. You’ll get something like this.
Now you’ll see that the “Usually Ships in” phrase is removed. But a colon is seen there. Let’s try to remove it.
Find “availability.tpl.php” file in the “components/com_virtuemart/themes/default/templates/common/” folder. (here “default” is your virtuemart theme’s name if you are using one other than the default)
There search for “PHPSHOP_DELIVERY_TIME” ( Think you understand why we are searching for this phrase.)
In around line 36 you’ll see this line
{code} _(‘PHPSHOP_DELIVERY_TIME’) ?>: {/code}
There remove the colon “:”. So the new line must be
{code} _(‘PHPSHOP_DELIVERY_TIME’) ?>{/code}
See the frontend. You are done.
You’ll get something like this now 🙂
3 Comments
behrouz · August 12, 2011 at 5:38 pm
thanks. but at the beginning, where should I find the folder in order to correct it? where is it in virtuemart?
thanks again
Sanjaya · August 12, 2011 at 6:06 pm
joomla_root/administrator/components/com_virtuemart
and
joomla_root/components/com_virtuemart/languages/
panait · October 24, 2012 at 4:44 am
Hi,
Your post has been extremely helpful. If possible, I would like to ask you how to add the availability gif to “browse_3.php”.
I added the php code (echo $product_availability), but I don’t get the image displayed. Instead, I get the text “on-order.gif”.
I believe that virtuemart can’t locate the gif file and outputs the name of the file.
Do you have any idea how I can fix this? Thanx!