Example #1
0
 public function commit()
 {
     $object = $this->object;
     $object->total_original_price = $this->originalPrice;
     $object->total_price = $this->actualPrice;
     $object->total_amount = $this->totalAmount;
     $object->domain_id = $this->domain ? $this->domain->getId() : false;
     $object->order_discount_id = $this->discount ? $this->discount->getId() : false;
     $object->http_referer = urldecode(getSession("http_referer"));
     $object->http_target = urldecode(getSession("http_target"));
     $this->applyItems();
     parent::commit();
 }
 /**
  * Применить внесенные изменения
  */
 public function commit()
 {
     $object = $this->object;
     $object->item_price = $this->price;
     $object->item_total_original_price = $this->totalOriginalPrice;
     $object->item_total_price = $this->totalActualPrice;
     $object->item_amount = $this->amount;
     $object->item_discount_id = $this->discount ? $this->discount->getId() : false;
     $object->item_link = $this->itemElement;
     parent::commit();
 }