Jump to content

New field from cart into order


Recommended Posts

Hello

 

I just made a new field in cart table. The customer give some extra information durring shopping process (on my module hooked up to extracarrier (i make input field here) and carrierupdate (i save the data into object cart here, the data are saved into database)

 

The customer continues ordering, choose payment method, confirm order.

And the value of new field from cart isn't in new order. I create a column in database (orders), i override the order class with:

class Order extends OrderCore
{
   public		 $position;
   public function getFields()
   {
    $fields = parent::getFields();
    $this->fieldsRequired[] = 'position';
    $fields['position'] = pSQL($this->position);
    return $fields;
   }
}

but still have no new field value in order.

Link to comment
Share on other sites

×
×
  • Create New...