Thứ Sáu, 16 tháng 6, 2017

Tạo biến mới cho product | Create new variable product in magento 2

Before you should create new variable product.
STORES  / Attributes / Product


And then: Create new Attributes.
At here you config  example:

Ok you was create Attribules product.

Continue if you want show Variable product everywhere in frontend.
Use code:



1
2
3
<?php 
    echo $this->helper('Magento\Catalog\Helper\Output')->productAttribute($block->getProduct(), $block->getProduct()->getshow_price(), 'show_price');
?>
if you have any question related, you can comment behind. Thanks

Không có nhận xét nào:

Đăng nhận xét

About me

Recent

recentposts

Random

randomposts