Skip to content

magento man

Custom Attribute on order confirmation email in Magento 2.4.5

I’m trying to publish the custom attribute “flash_sale” (dropdown) on order confirmations. I’ve changed the file: vendor/magento/module-sales/view/frontend/templates/email/items/order/default.phtml and inserted the additional line: <p style=”color: #aaaaaa;”><?= /* @escapeNotVerified */ __(‘Flash Sale’) ?>: <?= $block>escapeHtml($block->getflash_sale()) ?></p> with the result: <td class=”item-info<?php if… Read More »Custom Attribute on order confirmation email in Magento 2.4.5

Magneto 2 form style

We have problem with Fonts. General Text is samall and Form biger. How WE can changes that, whithout big Frontend. Best in content> Pages

What is the use of event_prefix and cache_tag variable magento 2 model file

When i am looking into magneto model files i find <?php namespace MageplazaHelloWorldModel; class Post extends MagentoFrameworkModelAbstractModel implements MagentoFrameworkDataObjectIdentityInterface { const CACHE_TAG = ‘mageplaza_helloworld_post’; protected $_cacheTag = ‘mageplaza_helloworld_post’; protected $_eventPrefix = ‘mageplaza_helloworld_post’; protected function _construct() { $this->_init(‘MageplazaHelloWorldModelResourceModelPost’); } public function… Read More »What is the use of event_prefix and cache_tag variable magento 2 model file

PHP Warning: require(/vendor/composer/../magento/project-enterprise-edition/app/etc/NonComposerComponentRegistration.php): Failed to open stream

I am working on an upgrade project from Magento 2.3.2.p2 EE to 2.4.4 EE. After the composer update was done successfully I found the below error while run php bin/magento commands, can anyone help me on the same. I have… Read More »PHP Warning: require(/vendor/composer/../magento/project-enterprise-edition/app/etc/NonComposerComponentRegistration.php): Failed to open stream

get value from API

I have module create and i can get value from API but i’m failing to use Math.ceil to calculate to get correct interest based on product price. here my code below Helpers file <?php namespace VendorModuleHelper; class Data extends MagentoFrameworkAppHelperAbstractHelper… Read More »get value from API