コード例 #1
0
 /**
  * Return select input for price type
  *
  * @param string $extraParams
  * @return string
  */
 public function getPriceTypeSelectHtml($extraParams = '')
 {
     $this->getChildBlock('option_price_type')->setData('id', 'product_option_<%- data.id %>_select_<%- data.select_id %>_price_type')->setName('product[options][<%- data.id %>][values][<%- data.select_id %>][price_type]');
     return parent::getPriceTypeSelectHtml($extraParams);
 }
コード例 #2
0
ファイル: Select.php プロジェクト: aiesh/magento2
 /**
  * Return select input for price type
  *
  * @param string $extraParams
  * @return string
  */
 public function getPriceTypeSelectHtml($extraParams = '')
 {
     $this->getChildBlock('option_price_type')->setData('id', 'product_option_${id}_select_${select_id}_price_type')->setName('product[options][${id}][values][${select_id}][price_type]')->setExtraParams($extraParams);
     return parent::getPriceTypeSelectHtml();
 }