Archive for March, 2011

1) This will remove from the IMAGE Section only,

go to following path

“administrator\components\com_phocagallery\libraries\phocagallery\render\” , here you’ll see a file named ‘renderfront.php’…

Open this php file and search for this ‘getString()‘ function, there you’ll see something like this

function getString() {

} may be line number 550, change this to return ‘ ‘;

also in the same file function getDivs() line number 686 (at last) something like this

function getDivs(){

}, do same here like above return ‘ ‘; .

2) For category page go to /components/com_phocagallery/views/categories/view.html.php file ,

search for $tmpl[‘phoac’], make it’s value to ‘ ‘.

and in the /components/com_phocagallery/views/category/view.html.php search for $tmpl[‘lm’] and change value to ‘ ‘.

Sometime a lot of developer don’t find how to change the virtuemart cart image,it is so much easy just change the css code and upload your image.In below I discuss that step by step :

In com_virtuemart/themes/default/
you will see theme.css – the second entry is

.addtocart_button {
background: url( 'images/add-to-cart_blue.gif' ) no-repeat  center transparent;

Either change the image specified (there are others in the image directory) or define a colour.ENJOY 😉

When products are added to the cart there is a Notice pop-up box, which prompts whether to continue shopping or to navigate to the cart.

You can easily disable the checkout Notice pop-up box.

Navigate to your Joomla administrator area->Components->VirtueMart->Admin-> Configuration->Site.

Click on the Configuration link besides the Select the theme for your Shop drop-down menu.

There set the following values:

Customer Checkout in a popup (GreyBox)? No
Use Ajax to add, update or delete products from the cart? No

Save the changes and test the new functionality. Once you order an item you will be redirected to the cart page.

There is a filter in VirtueMart, which cuts the object and the embed html tags.

In order to embed YouTube video and other Flash files in your VirtueMart product description area you should remove the object and the embed items from the following array:

var $tagBlacklist = array('applet', 'body', 'bgsound', 'base',  'basefont', 'embed', 'frame', 'frameset', 'head', 'html', 'id',  'iframe', 'ilayer', 'layer', 'link', 'meta', 'name', 'object', 'script',  'style', 'title', 'xml');

The new array will be:

var $tagBlacklist = array('applet', 'body', 'bgsound', 'base',  'basefont', 'frame', 'frameset', 'head', 'html', 'id', 'iframe',  'ilayer', 'layer', 'link', 'meta', 'name', 'script', 'style', 'title',  'xml');

The modification should be completed in the administrator/components/com_virtuemart/classes/phpInputFilter/class.inputfilter.php file.

Then you can edit the product description html code and embed the video using similar lines:

<div align="center">
<object width="445" height="364"><param name="movie" value=" PATH"></param><param  name="allowFullScreen" value="true"></param><param  name="allowScriptAccess" value="always"></param><embed src=" PATH"  type="application/x-shockwave-flash" allowfullscreen="true"  allowScriptAccess="always" width="445"  height="364"></embed></object>

You should replace PATH with your video file URL.

In order to load the VirtueMart products’ browse page as the main one for your Joomla web site you should change the Home page type.

Complete this from your Joomla administrator area->Menus->Main Menu. Edit the Home page and change its type to VirtueMart. Then save the changes and check the result.