Multiple price changes in the admin panel VirtueMart

In the old version of VirtueMart was such a useful feature, as editing the prices of goods directly from the product list in the backend store. Now it's gone, and need to go a card product. Besides the fact that it's terribly inconvenient, for it takes a long time, especially if you need to change the price of a large number of goods.

Fortunately, add this functionality to the VM2 is not very difficult. Need to make small changes only in two files:

1. administrator/components/com_virtuemart/views/product/tmpl/default.php

Here we put a link on the price of the goods, clicking on which will be placed the call window for price changes. To do this, find the line
echo isset($product->product_price_display)? $product->product_price_display:JText::_('COM_VIRTUEMART_NO_PRICE_SET')

in my version of the store is a line 150 and replace it with a
 echo isset($product->product_price_display)? '<a href="javascript:void(0)" onclick="getBoxPrice(this,'
2. Now add the styles to the file 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;
3. This is generally all the changes that need to be done. It remains only to add two new files in the folder store.


This is a script that will transmit and process the information. Download ZIP archive with files boxprice.php and boxprice.js can be lower.

Compatibility Joomla! 2.5 VM2
E-mail: *   
WebMoney R870RUB