Example #1
0
 /**
  * Get line attributes
  *
  * @param integer              $index  Line index
  * @param \XLite\Model\AEntity $entity Line entity OPTIONAL
  *
  * @return array
  */
 protected function getLineAttributes($index, \XLite\Model\AEntity $entity = null)
 {
     $result = parent::getLineAttributes($index, $entity);
     if ($entity) {
         $result['data-clear-price'] = $entity->getDisplayPrice();
     }
     return $result;
 }