Investigating VirtueMart 2.0 – part I

Recently I have started investigating VirtueMart 2.0.6.  Below I recorded various issues that I have found along the way. Hopefully someone else (possibly myself down the line) will find these useful.

Configuring “Safe Path”

Create directory /home/test1/vmfiles:

mkdir /home/test1/vmfiles

Go to Configuration->Templates, enter the path:


and press Save button.

If “Safe Path” is not specified VirtueMart 2 will show the following message:

Warning, the Safe Path is empty, for safety reasons it is very important to create a folder in a path not accessible by an URL, create also a folder invoices in it to store your sensible data secure. Our suggested path is for your system /home/test1/vmfiles

This “Safe Path” is used somehow for working with “files for sale”:


Preventing “Sales price without tax” from been shown in category browse page and product detail page

By default VirtueMart 2 shows “Sales price without tax”:


to hide it uncheck the checkboxes checkboxes at the right side of “Salesprice without tax” on Configuration->Pricing page:


Setting the number of product to display per page

Go to Configuration->Shopfront and enter desired number:


VirtueMart 1.1 used Global Joomla setting “Default List Limit” for that purpose, also unlike VirtueMart 2 “Show the product navigation” checkbox is enabled in VirtueMart 1.1 by default.

Hiding “Average customer rating”


Go to Configuration->Shopfront and set “Show rating” to None:


Extending the length of the short description in the category browse page

Default view limits short description to 40 symbols, and there is no an option to change it in VirtueMart 2.0.6.

“40” hardcoded in components/com_virtuemart/views/category/tmpl/default.php:

<?php echo shopFunctionsF::limitStringByWord($product->product_s_desc, 40, '...') ?>

I changed it to 400 and looks like everything works fine.

4 Responses to Investigating VirtueMart 2.0 – part I

  1. Francisco Barcenas Cruz says:

    I’ve done the safe path thing. But cannot get the “for sale” option to show under media files to save my life. Is there a configuration setting to enable digital products like in vm1?

    1. dmitriano says:

      What exact version of VirtueMart 2 are you using?

  2. You could definitely see your skills in the paintings you write. The sector hopes for more passionate writers like you who aren’t afraid to mention how they believe. Always follow your heart.

  3. This is what exactly I was searching, the information was overall very useful for me, thanks a lot.This is a nice post in an interesting line of content.Thanks for sharing this article, great way of bring such topic to discussion.

Leave a Reply

Your email address will not be published. Required fields are marked *