Skip to content

magento man

Magento 2 Newsletter Error Invalid Method Interceptor::loadByCustomer

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… Read More »Magento 2 Newsletter Error Invalid Method Interceptor::loadByCustomer

How not to use Object Manager?

i don’t want to use object manager how do i change my code? in the past i use method cart $cart but he deprecated <?php namespace CustomShippingMethodModelCarrier; use MagentoQuoteModelQuoteAddressRateRequest; use MagentoShippingModelCarrierAbstractCarrier; use MagentoShippingModelCarrierCarrierInterface; use MagentoFrameworkAppConfigScopeConfigInterface; use MagentoQuoteModelQuoteAddressRateResultErrorFactory; use PsrLogLoggerInterface; use… Read More »How not to use Object Manager?

Validate if render referenceBlock in checkout layout

I have tried validate if render referenceBlock in checkout layout, but it does not work. I added block VendorModuleBlockIndex in layout after referenceBlock Vendor/Module/view/frontend/layout/checkout_index_index.xml <referenceBlock name=”checkout.root”> <block class=”ElTiempoEfectyBlockIndex” name=”is_book”> <arguments> <argument name=”jsLayout” xsi:type=”array”> <item name=”components” xsi:type=”array”> <item name=”checkout” xsi:type=”array”> <item… Read More »Validate if render referenceBlock in checkout layout

After Magento upgrade to 2.4.5 setup:di:compile asks for wrong elasticserach file

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 …… Read More »After Magento upgrade to 2.4.5 setup:di:compile asks for wrong elasticserach file