/**
  * Pimcore: When save is called from Pimcore, check for changes of the OrderState
  *
  * @return int
  */
 public function save()
 {
     if (isset($_REQUEST['data']) && false) {
         try {
             $data = \Zend_Json::decode($_REQUEST['data']);
             if (isset($data['orderState'])) {
                 $orderStep = OrderState::getById($data['orderState']);
                 if ($orderStep instanceof OrderState) {
                     $orderStep->processStep($this);
                 }
             }
         } catch (\Exception $ex) {
             \Logger::error($ex);
         }
     }
     parent::save();
 }
 /**
  * Save Product
  *
  * @throws \Exception
  */
 public function save()
 {
     $currentGetInheritedValues = \Pimcore\Model\Object\AbstractObject::getGetInheritedValues();
     \Pimcore\Model\Object\AbstractObject::setGetInheritedValues(true);
     //Calculate Retail Price with Tax
     $retailPriceWithTax = $this->getRetailPrice() * (1 + $this->getTax());
     $this->setPrice($retailPriceWithTax);
     \Pimcore\Model\Object\AbstractObject::setGetInheritedValues($currentGetInheritedValues);
     parent::save();
 }