I am struggling with selecting Tax Rates in Magento 2.4.4. There was a fantastic answer to this issue: How to select multiple tax-rate In Magento 2? Where the Console code lets us select ALL tax rates listed. However, I need to select only 20,000 of 40,000 tax rates. And I’d […]
Magento
Magento 2 Error Invalid Method Interceptor::loadByCustomer {“0″:”Mu00e9todo invu00e1lido VendorModuleModelSubscriberInterceptor::loadByCustomer”,”1″:”#1 VendorModuleObserverLogin->execute() called at [vendor/magento/framework/Event/Invoker/InvokerDefault.php:88]n#2 MagentoFrameworkEventInvokerInvokerDefault->_callObserverMethod() called at [vendor/magento/framework/Event/Invoker/InvokerDefault.php:74]n#3 MagentoFrameworkEventInvokerInvokerDefault->dispatch() Code: <?php namespace VendorModuleObserver; use MagentoCustomerModelSession; use MagentoFrameworkEventObserver; use MagentoFrameworkEventObserverInterface; use MagentoNewsletterModelSubscriber; use MagentoStoreModelStoreManagerInterface; class Login implements ObserverInterface { /** * @var Session */ private $session; /** * @var Subscriber */ private […]
I corrected the file permissions using this command (find . -type d -exec chmod 770 {} ; && find . -type f -exec chmod 660 {} ; && chmod u+x bin/magento), and after that pub folder is showing when I visit my website. Please see the screenshot for a better […]
root@vps-sssssss:/home/sssss/ssssssss# bin/magento setup:di:compile Compilation was started. Repositories code generation... 1/9 [===>------------------------] 11% 1 sec 119.0 MiBClass "MagentoElasticsearchElasticsearch5SearchAdapterMapper" not found#0 /home/sssssss/public_html/vendor/composer/ClassLoader.php(571): include() #1 /home/ssssssss/public_html/vendor/composer/ClassLoader.php(428): ComposerAutoloadincludeFile() After upgrade to Magento 2.4.5 CE setup:di:compile show error … Because not showing existing products … As can see – setup:di:compile looking for file wich is […]
A while ago I heard there is a Community Fork of Magento2 which will include a lot more bugfixes with faster releases. How can I start using it for my project?
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 = ?', […]
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 […]