English (United Kingdom)Russian (CIS)
Do a convenient price changes in the VirtueMart2 in the list of goods
In the old version of VirtueMart was a useful function as editing of prices for goods directly from the product list in the admin panel store. It is not so now, and have to enter a product card. Besides that it's terribly inconvenient, it takes a lot of time, especially if you want to change the prices for many goods.

Fortunately, add this functionality to VM2 not very difficult. You need to make small changes only in two files:

Here we insert the reference to the price of the goods, clicking on which the call is made of the window to change the rates. You need to find the line
echo isset($product->product_price_display)? $product->product_price_display:JText::_('COM_VIRTUEMART_NO_PRICE_SET')

I have this line 150, and replace it with
 echo isset($product->product_price_display)? '<a href="javascript:void(0)" onclick="getBoxPrice(this,'

Now add the styles in the administrator/components/com_virtuemart/assets/css/admin.styles.css
.alertboxprice {
  left: 50%;
  margin-top: -100px;
  position: fixed;
  top: 50%;
  clip: rect(auto 150px auto 150px);
  width: 260px;
  margin-left: -130px;
  z-index: 10;
  border: 7px solid #F6F6F6;
#box1_close {
  background-color: #FF0000;
  border: 2px solid #FFFFFF;
  float: right;
  height: 12px;
  width: 12px;
#box1_iner {
  padding: 20px 20px 10px;
  box-shadow: 0 3px 5px #ccc;
  background-color: #FAF8F9;
  border-top: 1px solid #FFFFFF;
#box1_links  {
  margin: 30px auto;
#box1_links a  {
  margin: 10px;
  text-decoration: none;
  border: 1px solid #CCC;
  padding: 3px 10px;
  color: #666;
#box1_iner_text input {
  margin: 5px auto;

In General, these are all the changes necessary. It remains only to add two new files in the folder store.


Is a script that will transmit and process the information. Download files boxprice.php and lsd25.js below.