skip to Main Content

Magento 2 Email reward points customer name is not displaying

I am using the default Reward email template, which is following {{template config_path="design/email/header_template"}} <p class="greeting">{{trans "%name," name=$customer.getName()}}</p> <p> {{trans "You have %points_balance points that may be used in our store:" points_balance=$points_balance}} <a href="{{store url=""}}">{{var store.getFrontendName()}}</a>. </p> <p>{{trans '<a href="%unsubscription_url">Unsubscribe</a> from…

VIEW QUESTION

How to get newly created product id while using after plugin (Interceptor) in Magento 2

I have created interceptor for catalog product controller's save action <type name="MagentoCatalogControllerAdminhtmlProductSave"> <plugin name="ricky_catalog_save_product" type="RickyCatalogPluginProductSave" sortOrder="10" /> </type> My plugin class is below namespace RickyCatalogPluginProduct; class Save { public function afterExecute( MagentoCatalogControllerAdminhtmlProductSave $subject, $result) { $productId = $subject->productId; // This…

VIEW QUESTION

How command pool works? and How can we redirect to payment gateway? Magento 2

I'm integrating a payment gateway using gateway command pool. This is di.xml <virtualType name="AuthorizeCommand" type="MagentoPaymentGatewayCommandGatewayCommand"> <arguments> <argument name="requestBuilder" xsi:type="object">AuthorizationRequest</argument> <argument name="transferFactory" xsi:type="object">InternationalSampleGatewayHttpTransferFactory</argument> <argument name="client" xsi:type="object">InternationalSampleGatewayHttpClientClientMock</argument> </arguments> </virtualType> This is TransferFactory.php public function create(array $request) { return $this->transferBuilder ->setBody($request) ->setMethod('Curl::POST') ->setHeaders(['Content-Type'…

VIEW QUESTION
Back To Top
Search