Example #1
0
 /**
  * Retrieve html templates for different types of product custom options
  *
  * @return string
  */
 public function getTemplatesHtml()
 {
     $canEditPrice = $this->getCanEditPrice();
     $canReadPrice = $this->getCanReadPrice();
     $this->getChild('swatch_option_type')->setCanReadPrice($canReadPrice)->setCanEditPrice($canEditPrice);
     $templates = parent::getTemplatesHtml() . "\n" . $this->getChildHtml('swatch_option_type');
     return $templates;
 }