VirtueMart FAQ (39 Articles)

How to remove recently viewed products from the homepage in VirtueMart?

You can disable the visualization of the recently viewed products from your web site's front end by editing the VirtueMart configuration. Open your Joomla admin area and navigate to Components -> VirtueMart -> Admin -> Configuration -> Site -> Select the theme for your Shop . Click on the Configuration link and change the Number of recent products to Display? to 0 . Save the changes and reload your web site.…

How to disable ”Customer Checkout in a popup (GreyBox)” in VirtueMart?

The Customer Checkout in a popup (GreyBox) box seen during the checkout procedure can be disabled from the Joomla administrator area-> Components-> VirtueMart->Admin->Configuration->Site->Select the theme for your Shop->Configuration . If the above option is not present, there are two manual approaches. First, you can open the components/com_virtuemart/themes/YOUR_VIRTUEMART_THEME/theme.config.php file. Replace the YOUR_VIRTUEMART_THEME string with your actual VirtueMart theme name. Enter the following line: useGreyBoxOnCheckout=0 Alternatively, edit the administrator/components/com_virtuemart/classes/htmlTools.class.php file and put comment signs (#) in front of each line of the function loadGreybox( ) code: function loadGreybox( ) {         global $mosConfig_live_site, $vm_mainframe; #       if( !defined( '_GREYBOX_LOADED' )) { #           $vm_mainframe->addScriptDeclaration( 'var GB_ROOT_DIR = ''.$mosConfig_live_site .'/components/'. VM_COMPONENT_NAME .'/js/greybox/';', 'top' ); #           $vm_mainframe->addScript( $mosConfig_live_site .'/components/'. VM_COMPONENT_NAME .'/js/greybox/AJS.js' ); #           $vm_mainframe->addScript( $mosConfig_live_site .'/components/'. VM_COMPONENT_NAME .'/js/greybox/AJS_fx.js' ); #           $vm_mainframe->addScript( $mosConfig_live_site .'/components/'. VM_COMPONENT_NAME .'/js/greybox/gb_scripts.js' ); #           $vm_mainframe->addStyleSheet( $mosConfig_live_site .'/components/'. VM_COMPONENT_NAME .'/js/greybox/gb_styles.css' ); #           define ( '_GREYBOX_LOADED', '1' ); #       }     } …

How to resize thumbnails in VirtueMart?

You can enable the thumbnails resize functionality by editing the administrator/components/com_virtuemart/virtuemart.cfg.php file. Look for the following lines: define('PSHOP_IMG_RESIZE_ENABLE', ''); define('PSHOP_IMG_WIDTH', '90'); define('PSHOP_IMG_HEIGHT', '90'); Alter them per your needs. The resize functionality should be enabled in the following way: define('PSHOP_IMG_RESIZE_ENABLE', '1'); …

How to edit the Categories title in VirtueMart?

In order to alter the CATEGORIES head title edit the administrator/components/com_virtuemart/languages/common/english.php file and change the PHPSHOP_CATEGORIES definition. In a case you are using a different language pack complete the modifications in the corresponding German language file. The font size and the color of the CATEGORIES head title can be altered from the templates/YOUR_TEMPLATE/css/template_css.css file. Enter your modifications in the h4 definition: h4 {     font-size: 100%;     text-transform: uppercase; } For more details check the SiteGround's CSS tutorial: http://www.siteground.com/tutorials/cssbasics/ …

How to change the ”Recommend to a friend” message in VirtueMart?

The Recommend to a friend link in the products details pages can be enabled from the Joomla administrator area-> Components-> VirtueMart-> Admin-> Configuration-> Site-> Show the "Recommend to a friend" link? . The predefined e-mail message can be altered by editing the administrator/components/com_virtuemart/languages/common/english.php file. Look for the following variable: 'VM_RECOMMEND_MESSAGE' => 'Hello, I've found this great product on %s that might be of interest for you. You can find it here: %s Regards.', Set its value per your preferences.…

How to display VirtueMart products in the Joomla’s Front Page?

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.…

How to install a language pack in VirtueMart?

First you should install the chosen language pack for Joomla. You can find detailed instructions in our article on how to install a new language in Joomla 1.5 . Joomla language packs can be downloaded from the official repository . Then, upload the corresponding VirtueMart language pack files in: administrator/components/com_virtuemart/languages . VirtueMart language packs can be found at this URL . Change the Joomla's default language from the Joomla administrator area-> Extensions-> Language Manager . In this way VirtueMart will use the new language by default. Note that the language files for Joomla and VirtueMart should have the same names. Alternatively, in Joomla 1.5, the correct value for the backwardLang tag in the XML installer file of the language should be…

How to change the color of sections tables headers in VirtueMart?

The color of the sections tables headers like the Price , the Quantity/Update and the Subtotal text strings in the VirtueMart cart area can be changed from the templates/YOUR_TEMPLATE/css/template_css.css file. Replace YOUR_TEMPLATE with your actual script template. Search for the .sectiontableheader definition and include the following line in it: color: COLOR; Replace COLOR with the preferred color name or the corresponding HEX number. The definition will be similar to the following one: .sectiontableheader {     padding: 8px 5px;     border-top: 15px solid #FFFFFF;     background: #DDDDDD;     font-weight: bold;     font-size: 120%;     text-transform: uppercase;     color: green; } …

How to hide quantity box in VirtueMart?

The quantity box in the VirtueMart products' browse pages can be hidden through the Joomla administrator area->Components->VirtueMart->Products . Open the Display Options tab for the chosen product and change the Quantity option to Hide Quantity Box. In order to hide the quantity box in the Cart page open the administrator/components/com_virtuemart/html/basket.php file and change the following lines: <input type="text" title="'. $VM_LANG->_('PHPSHOP_CART_UPDATE') .'" class="inputbox" size="4" maxlength="4" name="quantity" value="'.$cart[$i]["quantity"].'" /> and <input type="text" name="update" title="'. $VM_LANG->_('PHPSHOP_CART_UPDATE') .'" src="'. VM_THEMEURL .'images/update_quantity_cart.png" alt="'. $VM_LANG->_('PHPSHOP_UPDATE') .'" align="middle" /> to: <input type="hidden" title="'. $VM_LANG->_('PHPSHOP_CART_UPDATE') .'" class="inputbox" size="4" maxlength="4" name="quantity" value="'.$cart[$i]["quantity"].'" /> and <input type="hidden" name="update" title="'. $VM_LANG->_('PHPSHOP_CART_UPDATE') .'" src="'. VM_THEMEURL .'images/update_quantity_cart.png" alt="'. $VM_LANG->_('PHPSHOP_UPDATE') .'" align="middle" /> …

How to install a new VirtueMart theme?

In order to install a new VirtueMart theme you should upload its folder including all the files in the components/com_virtuemart/themes directory. You can check our FTP tutorial for more details on how to upload files: http://www.siteground.com/tutorials/ftp/index.htm Then you should navigate to your Joomla administrator area-> Components-> VirtueMart-> Admin->Configuration->Site and pick the new theme from the Select the theme for your Shop drop down menu. Save the changes. Also, you can click on the Configuration link besides the drop down menu mentioned above and tune your theme.…

How to remove the Display # of Products section in VirtueMart

The "Display # of Products" area along with the corresponding drop-down menu can be removed by editing the components/com_virtuemart/themes/default/templates/browse/includes/browse_pagenav.tpl.php file. Delete the following lines: <?php     if( $show_limitbox ) { ?>         <br/><br/>         <form action="<?php echo $search_string ?>" method="post">             <?php echo $VM_LANG->_('PN_DISPLAY_NR') ?>&nbsp;&nbsp;             <?php $pagenav->writeLimitBox( $search_string ); ?>                         <noscript><input class="button" type="submit" value="<?php echo $VM_LANG->_('PHPSHOP_SUBMIT') ?>" /></noscript>                 </form>     <?php     }     $pagenav->writePagesCounter();     ?> Additionally, the default list value in the drop-down menu can be altered from the Joomla administrator area-> Site->Global Configuration->List Length .…

How to alter the Ask a question about this product string in VirtueMart

The Ask a question about this product string can be altered in the administrator/components/com_virtuemart/languages/shop/english.php file. Look for the following line and make the preferred modifications in it:   'VM_PRODUCT_ENQUIRY_LBL' => 'Ask a question about this product', The font size and the color of the above text string can be altered from the templates/YOUR_TEMPLATE/css/template_css.css file. Enter your modifications in the .button definition: .button {     padding: 2px;     border: 1px solid #C8C8C8;     color: #403C3A;     background: url(../images/but-bg.gif) repeat-x top #E6E6E6;     font-weight: bold; } For more details check the SiteGround's CSS tutorial: http://www.siteground.com/tutorials/cssbasics/ …

How to alter the Product Details string in VirtueMart

The Product Details string can be altered in the administrator/components/com_virtuemart/languages/shop/english.php file. Look for the following line and enter the preferred string:     'PHPSHOP_FLYPAGE_LBL' => 'Product Details', The corresponding css code can be altered in the templates/YOUR_TEMPLATE/css/template_css.css file. Look for the a definition: a {     color: #EE9600;     text-decoration: none; } For more details check the SiteGround's CSS tutorial: http://www.siteground.com/tutorials/cssbasics/ …

How to hide the Ask question about this product button from logged in VirtueMart users

In order to hide the Ask question about this product button from the logged in VirtueMart users, you should edit the components/com_virtuemart/themes/YOUR_THEME/templates/product_details/flypage.tpl.php file. In the above path replace the YOUR_THEME string with the actual VirtueMart theme name. Find the following line: <td colspan="2"><?php echo $ask_seller ?></td> and replace it with: <td colspan="2"><?php if ($_SESSION['auth']['user_id'] < 1) echo $ask_seller ?></td> This way the corresponding button will be visible only for non-registered users.…

How to hide the products price in VirtueMart

In order to hide the products' price open the components/com_virtuemart/themes/YOUR_THEME/templates/browse/browse_1.php file. Replace the YOUR_THEME string with your VirtueMart default theme name. Change the following lines: <div class="browsePriceContainer">             <?php echo $product_price  ?>         </div> with: <div class="browsePriceContainer">             <?php /*echo $product_price*/  ?>         </div> Alternatively, open the theme CSS file components/com_virtuemart/themes/YOUR_THEME/theme.css and change the color of the price item to white. The code will be as follows: .productPrice {    color: white;     font-weight:bold;     white-space: nowrap; } This way the price will have the same color as the background and it will not be visible for the web site users.…

How to insert YouTube video in the VirtueMart product description?

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: [crayon-58866cf8cfbc4731937358/] The new array will be: [crayon-58866cf8cfbd5089147361/] 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: [crayon-58866cf8cfbde372482031/] You should replace http://www.youtube.com/VIDEO PATH with your video file…

How to add more views for a product in VirtueMart?

In order to provide additional visualizations of your product you can add more images of it. Open your Joomla administrator area and navigate to Components->VirtueMart->Products . Add a new product or open an existing one. To upload additional views click on the Add Image/File link in the left menu. There you can add more images for a single product.…

How to hide the Add to Cart button for non-registered users in VirtueMart?

In order to hide the Add to Cart button for non-registered users edit the components/com_virtuemart/themes/YOUR_THEME/templates/product_details/flypage.tpl.php file. In the above path replace YOUR_THEME with your actual VirtueMart theme. Search for the following line:       <td colspan="2"><br /><?php echo $addtocart ?></td> and below add: <?php if ($_SESSION['auth']['user_id'] < 1) { ?> <style type="text/css" media="screen">    .addtocart_button, .inputboxquantity { display:none;} </style> <?php } ?> In this way the button will be visible only for registered users who have logged in your web site.…

How to edit the registration form layout in VirtueMart?

In order to change the registration form layout you should edit the components/com_virtuemart/themes/YOUR_THEME/theme.css file. In the above path replace YOUR_THEME with your actual VirtueMart theme. For example if you want to change the text alignment find the .formLabel definition and replace the following line: text-align:right; with text-align:left; You can also modify the other CSS settings. A good solution is to use a Mozilla Firefox addon like Firebug and inspect your web site elements. In this way it will be easier to define which files should be edited in order to complete your requirements.…

How to set maximum purchase value in VirtueMart?

The VirtueMart script allows you to set the minimum sum per a purchase. This can be done from the Joomla Administrator Area->Components->VirtueMart->Store->Edit Store . The field in the question is called Minimum purchase order value for your store . With some code modifications you can change the corresponding functionality to check the maximum purchase order value. In order to complete the modification open the administrator/components/com_virtuemart/html/basket.php file and change the following code: /* check if the minimum purchase order value has already been reached */     if( !defined( '_MIN_POV_REACHED' )) {         if (round($_SESSION['minimum_pov'], 2) > 0.00) {             if ($total_undiscounted >= $GLOBALS['CURRENCY']->convert( $_SESSION['minimum_pov'] )) {                 // OKAY!                 define ('_MIN_POV_REACHED', '1');             } to /* check if the max purchase order value has already been reached */     if( !defined( '_MIN_POV_REACHED' )) {         if (round($_SESSION['minimum_pov'], 2) > 0.00) {             if ($total_undiscounted <= $GLOBALS['CURRENCY']->convert( $_SESSION['minimum_pov'] )) {                 // OKAY!                 define ('_MIN_POV_REACHED', '1');             } You can also change the following messages in the administrator/components/com_virtuemart/languages/common/english.php file: 'PHPSHOP_CHECKOUT_ERR_MIN_POV' => 'Minimum purchase order value has not been reached yet.', 'PHPSHOP_CHECKOUT_ERR_MIN_POV2' => 'Our minimum purchase order value is:', 'PHPSHOP_STORE_FORM_MPOV' => 'Minimum purchase order value for your store', …