Skip to content

magento2.4

Auto Added by WPeMatico

magento setup:upgrade – JavaScript files broken

When I run the following commends, theme JavaScript file broken php bin/magento setup:upgrade php bin/magento cache:flush php bin/magento cache:clean Broken files (net::ERR_ABORTED 404 (Not Found)): /pub/static/version1697560192/frontend/Smartwave/porto/en_US/js/jquery.sticky.min.js /pub/static/version1697560192/frontend/Smartwave/porto/en_US/js/jquery.lazyload.js  pub/static/version1697560192/frontend/Smartwave/porto/en_US/StripeIntegration_Payments/js/stripe_payments_express.js Notes: Magento ver. 2.4.1 Application mode is default.

Magento2 getSelect Printing Query without any __string

I have no idea why my getSelect printing query without echo & __toString. public function loadOrdersCollection($orders): mixed { $pac_orders = array(); $orderCollection = $this->orderCollection->create()->addFieldToFilter(‘increment_id’, $orders, ‘in’); $paymentMethods = explode(‘,’, $this->getPaymentMethods()); /* join with payment table */ $joinQuery = $orderCollection->getSelect() ->join([“sales_order_payment”],… Read More »Magento2 getSelect Printing Query without any __string

Magento 2 Plugin not working for class MagentoQuoteModelCartDataCartItemFactory

Does anyone know how to create a plugin for the class MagentoQuoteModelCartDataCartItemFactory method public function create(array $data): CartItem? I have tried creating before, after, and around plugins but didn’t work. below is the reference code: di.xml: <type name=”MagentoQuoteModelCartDataCartItemFactory”> <plugin name=”custom_store_qty”… Read More »Magento 2 Plugin not working for class MagentoQuoteModelCartDataCartItemFactory