Showing posts with label сайт. Show all posts
Showing posts with label сайт. Show all posts

2013-11-14

Передача параметров в дочерний template

Передать параметр в template можно так:
$this->getChild('quickgalleryview')->setData("productId", $_product->getId());
echo $this->getChildHtml('quickgalleryview');

Или если template вызывается несколько раз:
echo $this->getChildHtml("quickgalleryview", false)

Использовать переданный параметр так:
$this->getData("productId")