Author Topic: Change default product field values?  (Read 2673 times)


  • Beginner
  • *
  • Posts: 21
Change default product field values?
« on: June 03, 2008, 09:08:07 am »
I want to change a few default fields for adding products.  For instance, currently under Product Dimensions and Weight, Unit is set to piece by default.  I want it to be blank by default.  How can I do this?  Thanks.


  • Jr. Member
  • **
  • Posts: 325
  • Knowledge weighs Nothing!
Re: Change default product field values?
« Reply #1 on: July 09, 2008, 19:37:45 pm »
Ok, I've seen this question in a couple of places, but I place the answer here.  :D

In VM 1.1.0, in the 'www-root/administrator/component/com_virtuemart' you have following:

   In row 159 you'll find:

Code: [Select]
$default["product_weight_uom"] = $VM_LANG->_('PHPSHOP_PRODUCT_FORM_WEIGHT_UOM_DEFAULT');
$default["product_lwh_uom"] = $VM_LANG->_('PHPSHOP_PRODUCT_FORM_DIMENSION_UOM_DEFAULT');
$default["product_unit"] = $VM_LANG->_('PHPSHOP_PRODUCT_FORM_UNIT_DEFAULT');

As you see this points to the language files of VM found at:

/languages/product/english.php  (this is for 'lwh_uom' and 'weight_uom')

/languages/common/english.php   (this is for the 'product_unit')

Editing the language files default value of these fields to anything you need.
Don't forget to backup the files before changing...  ;)

Akerman - Web & Design agency. Speshitpillt in e-shop, ecommerce and marketing. - Swedish Antique & Used Books & Art Shop.
http://AkermansCove - Personal Portfolio
Ubuntu LAMP / Joomla 1.5.22 / VM 1.1.6 / JoomFish Contributor / Developer / Designer