magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

Why there is not add button in index.php/admin/admin/catalog_product_set/index

Open SunshineTech opened this issue 13 years ago • 3 comments

In the page of index.php/admin/admin/catalog_product_set/index, there is not add button.

SunshineTech avatar Jun 04 '13 13:06 SunshineTech

Ah, I found the reason that the code '$this->getNewButtonHtml()' in 'catalog/product/attribute/set/toolbar/main.phtml' is not execute. I modified it as '$this->getChildHtml('addButton')', then the add botton displayed.

SunshineTech avatar Jun 04 '13 13:06 SunshineTech

Oh, my God, the same issue exists in index.php/admin/admin/catalog_product_set/edit. I had to modified 'catalog/product/attribute/set/toolbar/add.phtml' as following:

getChildHtml('back_button') ?> getChildHtml('save_button') ?>
getChildHtml('setForm') ?>

the old code:

getBackButtonHtml() ?> getSaveButtonHtml() ?>
getFormHtml() ?>

Why $this in templete can't invoke the according block own method?

SunshineTech avatar Jun 04 '13 14:06 SunshineTech

Hi SunshineTech, We have fixed the issue, so now you can go ahead and add new product templates. Thanks for reporting the issue and keep on providing your feedback to us.

elenleonova avatar Dec 04 '13 13:12 elenleonova