Page 1 of 1

Pre-entered Data

PostPosted: Wed Oct 21, 2009 10:11 am
by sauden
Where would I go to put Pre-entered data into the item description field when adding a new product? All items will have a particular link that just needs a number to be edited manully and I'd like to have the auction manager just edit the number and not have to enter the whole url by hand each time a product is added.

Thanks!

PostPosted: Thu Oct 22, 2009 9:19 am
by shannah
You can set the default value for any field by adding a method to the products delegate class using the naming conventions

<fieldname>__default()

e.g.

If you wanted to set the default value of the minimum_bid field you would have something like

function minimum_bid__default(){
return 100;
}

PostPosted: Thu Oct 22, 2009 10:24 am
by sauden
awesome, thank you!