In magento 2 there is email_template table where email templates are stored. How can I delete a record from this table? Below is what I tried but it did not work. #[NoReturn] public function deleteTemplate(int $templateId): void { $connection = $this->resourceConnection->getConnection(); $tableName = $connection->getTableName(self::EMAIL_TEMPLATE_TABLE); $whereConditions = [ $connection->quoteInto('template_id = ?', […]
Magento2
I want to customize invoice pdf, add number of the line and the price for 1 unit without tax and tax value for the unit and the last line cost of delivery. How to customization of the invoice pdf? like this invoice
In which cases we should use ‘virtual elements’ and ‘data-bind’ ? For example, this code using virtual elements: <div class="custom-configs"> <h2><!-- ko i18n: 'Custom Settings' --><!-- /ko --></h2> <!-- ko foreach: { data: customSettings, as: 'customSetting' } --> <div> <!-- ko i18n: 'Setting' --><!-- /ko --> <!-- ko text: $index() […]
International phone plugin : link I added in my requirejsconfig.js var config = { map: { '*': { customDisplayCheckout: 'Amasty_CheckoutCore/js/custom', }, paths: { "intlTelInput": 'Amasty_CheckoutCore/js/intlTelInput', "intlTelInputUtils": 'Amasty_CheckoutCore/js/utils' }, shim: { 'intlTelInput': { 'deps':['jquery', 'knockout'] } } } }; I also added files in specific folders, files loads (I can see […]
I’m trying to import the short description with Postman. No matter how i try I always get an error. I’m using following URL /rest/english/V1/products/ The shop has to different view_codes english and german. Can someone send me a postman sample? Im trying with following body: { "product": { "sku": "VBP_008", […]
I have updated Composer to 2.4.4 as a prerequisite to updating Magento to 2.4.5, however now I’m getting errors in SSH when trying to run any other command and HTTP on a page execution: SSH: In AutoloadGenerator.php line 1351: require(/home/---/web/---/public_html/vendor/magento/composer-root-update-plugin/registration.php): failed to open stream: No such file or directory HTTP: […]
im using magento 2.4.4-p3 community and when i add to cart a product the product does not add, also im not able to login from frontend as a customer. i dont have any errors logs or javascript errors. it looks like is something related to the session. if i go […]
In the mini cart default, a special price will show if a product has a special price (calculated price). I need to show both prices regular price and special price in mini cart. Please suggest me a solution if anyone has one.
In my custom_table have custom_field (type varchar)- but I only insert the number on that field. My problem is when I filter custom_field by range in the admin grid, the query is select `main_table`.* from `custom_table` as `main_table` where (custom_field >= '0') and (custom_field <= '40') It will sort by […]