Component hacks

Fixed quantities in cart - VirtueMart 2.0
Fixed quantities in cart - VirtueMart 2.0
File Size:
8.65 kB
21 August 2012
108 x

This hack permits to restrict adding in the cart products in fixed quantity steps - so only 2 or multiples of 2 (4,6,8), and also to update the quantities in the cart using these steps.
Only one core file - the main virtuemart language file  - is modified, the other 4 files are template files... so it's on the edge... is not quite a core hack :)
How to install and use:
1. Edit the VM language file en-GB.com_virtuemart.ini found on /languages/en-GB folder by addintg the line found in the similarly named file in this package. Don't simply overwrite the original file!!! You must edit it.
Of course, if you use VirtueMart in other languages, you need to edit the respective language files too.
2. Unpack the files found in the package, and overwrite the files on your server with these. One of them is a CSS file, if you modified allready your template, or use a template different from the default one, you need to edit your original file accordingly.
The changes are easy to located, marked with comments.
3. Go to VirtueMart admin interface, and modify the value of minimum purchase amount to match your preferences. For example, if you want to sell vines in packs of 6 bottles, put 6 there.
The current version supports amounts from 1 to 14, for someone sligtly familiar with PHP/CEE is easu to extend to other values too!
4. Enjoy!

Powered by Phoca Download

Successful websites evolve. Even when that spiffy new site is up and drawing traffic, the job is not complete. There’s always website maintenance service work to be done for SEO, performance and security.

The reality of websites is that somebody needs to look after them on an ongoing basis.


Super joomla developper, efficient, fast and with a lot of knowledge. Will rehire

Nicolas Pellerin
Agence JCN
May 13, 2021

Joomla Security

Do you need a helping hand to keep your Joomla site in top shape?

You need someone to keep your site safe? If you want to know, what we can do for you, here is a short list:

  • We are performing a security audit - and we repeating this regularly
  • We are appliying all upgrades to the site as needed
  • We are adding our mix of security tools, settings and patches
  • We are setting up a backup procedure to ensure, that your data is safe
  • We are monitoring for uptime and unwanted activity
  • We are correcting any issues found
  • We are supporting all current and upcoming Joomla versions

Sit back and relax - we are doing the mundane work for you!

You only need to get your portion of Joomla Security Update today!



webGóbé, and are not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.

All downloadable items in these pages are zip files containing no malware, adware or any other potentially dangerous content. They are meant to be used as extensions of Joomla CMS, and don't install or modify anything on your computer. Special install/uninstall info - if is different from standard Joomla extension install/uninstall procedure - is contained in each package - and available in the download page prior you click on the Download button.

Joomla Registered Provider

Joomla Registered Provider - Extensions Development, Security Services, Tehnical Support

Sign In or Create Account