Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

magento 2 block called as child pass product variable

protected $product;

public function setProduct($_product){
    $this->product = $_product;
}

public function getProduct(){
    return $this->product;
}
Source by magento.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #magento #block #called #child #pass #product #variable
ADD COMMENT
Topic
Name
8+5 =