|
1 2 3 4 5 6 7 8 |
function defaults() {global $xpdoc;
$formato = $xpdoc->get_instance('formato');$formato->load( array( 'default' => true ));$this->color = 'color';
$this->formato_ID = $formato->ID;
$this->get_attr('formato_ID')->label = $formato->formato;
$this->total = $formato->precio;
$this->precio_formato = $formato->precio;
$this->cantidad = 1;$this->precio_retoque = 0;
} |
[/crayon]




