Jump to content

How to edit default value in weight on product


Recommended Posts

Dear everyone,

 

Since my product weight is always same (0.16 kg), i need to edit the defalut value of weight in creating new product. the default value is 0(zero) kg, i need to change it to 0.16 kg.

where should i edit it?

 

sorry for bad english.

 

Thanks

post-269619-0-30869200-1337538084_thumb.png

Edited by morfish (see edit history)
Link to comment
Share on other sites

  • 9 months later...
  • 4 months later...

Although a very old Topic, the original question was how to set a default value for a new product.

This can easily be done in the file /classes/product.php

open this file and search for 'weight' (CTRL-F/Command-F in browser)

 

you will find the code:

/** @var string Weight in default weight unit */

public $weight = 0;

 

change the 0 into the desired value to set the default value for a new product you make.

save file. Done. :-)

 

My $0.02,

pascal

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...