У нас вы можете посмотреть бесплатно Getting bugged by a Magento plugin that’s triggered too often? | Knowledge Bite или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
You’re working on a Magento 2 project with a custom GraphQL-based frontend. During the checkout process, it's necessary to have some additional logic that happens when the qty changes or updates are made on the cart page. A plugin was added on Quote::save for that purpose, but, during testing, you notice that the plugin also runs during the shipping and payment steps, causing unintended side effects. ❓ What’s the best way to ensure the plugin doesn't get triggered on those additional steps? ℹ️ Getting bugged by a plugin that’s triggered too often? Make sure you are “plugging in” to the most specific class possible for the feature you’re looking to modify. Taking GraphQL for example, instead of a broad spectrum function like “Quote::save()”, try something specific like “UpdateCartItems::resolve()”. 🔔 Don’t forget to subscribe and hit the bell for more helpful information like this! --- What is SwiftOtter? We are an eCommerce agency. BORING. Worse than boring, every other agency is "out to get your business". We are different. We empower you to thrive (aka this channel). We share our thought process with you. We believe in you as the best eCommerce manager for your store. We are here to support you. What do we do? We build and optimize eCommerce websites. We are proficient with Modern/Composable websites. Our platforms of choice are Adobe Commerce, BigCommerce, and Shopify. If you sell online, let's chat. We can help you. Connect with Joseph: LinkedIn: / maxwelljoseph Twitter: / swiftotter_joe https://swiftotter.com / swift_otter / swiftotterinc