Skip to content

magento man

Admin Edit Page tab add button

I create Admin Edit Page tab for customer use this tuturial https://www.rakeshjesadiya.com/create-tab-in-admin-customer-edit-page-in-magento-2/ How to add button ‘edit’ to populate my table from as admin i use template <div class=”fieldset-wrapper customer-information”> <div class=”fieldset-wrapper-title”> <span class=”title”><?php /* @escapeNotVerified */ echo __(‘Information for… Read More »Admin Edit Page tab add button

How to overwrite MagentoTaxModelCalculationAbstractAggregateCalculator?

I was facing an issue in tax calculation after discount for that i need to do code change from //TODO: handle originalDiscountAmount $taxableAmount = max($rowTotalInclTax – $discountAmount, 0); $rowTaxAfterDiscount = $this->calculationTool->calcTaxAmount( $taxableAmount, $rate, true, false ); $rowTaxAfterDiscount = $this->roundAmount( $rowTaxAfterDiscount,… Read More »How to overwrite MagentoTaxModelCalculationAbstractAggregateCalculator?

Where to add business logic for phtml template files that reside under modules in design dir?

I have a template file that resides under app/design/frontend//theme/Magento_Sales/templates/order/email_invoice_totals.phtml As I understand, the business logic should not reside in those template files. Below is, I have the code for that phtml file. <?php use MagentoFrameworkEscaper; use MagentoSalesBlockOrderTotals; /** @var Totals… Read More »Where to add business logic for phtml template files that reside under modules in design dir?