Posts Tagged ‘VIRTUEMART’

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 😉

Advertisements

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="http://www.youtube.com/VIDEO PATH"></param><param  name="allowFullScreen" value="true"></param><param  name="allowScriptAccess" value="always"></param><embed src="http://www.youtube.com/VIDEO PATH"  type="application/x-shockwave-flash" allowfullscreen="true"  allowScriptAccess="always" width="445"  height="364"></embed></object>
</div>

You should replace http://www.youtube.com/VIDEO 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.

The Add to cart button is actually a gif file.
It is located at:
YOUR_JOOMLA_FOLDER/templates/YOUR_DEFAULT_TEMPLATE/images/button-addtocart.gif
Replace YOUR_JOOMLA_FOLDER and YOUR_DEFAULT_TEMPLATE with the corresponding values for your web site installation.
Replace this gif file with one designed by you and reload the web site. The new Add to cart button will be visualized in your online shop.
You can also change the label of the button from the following file:

administrator/components/com_virtuemart/languages/common/USED_LANGUAGE.php

Replace USED_LANGUAGE with the corresponding language file name (for example english.php).

Look for the following line and enter the preferred value:

‘PHPSHOP_CART_ADD_TO’ => ‘Add to Cart’,