Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace VendorModuleBlock;
- use MagentoCatalogModelProductFactory;
- use MagentoCatalogBlockProductAbstractProduct;
- use MagentoFrameworkViewElementTemplate;
- use MagentoCatalogApiProductRepositoryInterface;
- use MagentoCatalogModelProduct;
- class PromoteIcons extends MagentoCatalogBlockProductView {
- public function getSale() {
- return "HELLO SALE";
- }
- }
- ?>
- <block class="VendorModuleBlockPromoteIcons" name="sale" as="sale" template="Vendor_Module::product/view/onsale.phtml" before="product.info.media.image" />
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement