Hi,
What I’ve done so far:
Added a field in oxorder table: depotnum
Reconstructed view in services/tools
Cleared tmp
sublcassed controllers/order.php and added this:
public function getOrderObject()
{
$oOrder = oxNew( 'oxorder' );
return $oOrder;
}
Added a block to order.tpl with the following:
[{$smarty.block.parent}]
[{assign var="oOrder" value=$oView->getOrderObject() }]
<input hidden name="lazyfield" value='[{ $oOrder->oxorder__depotnum->value }]' />
In the same module I also have a sublcass of oxorder where on _SetOrderStatus I’d like to read this value oxorder__depotnum->value, but it is emtpy string.
What might be wrong?
Thanks
Greg
EDIT: in the database the depotnum field has a default value of 0