Skip to content

magento man

when we remove the simple product from configurable product how we can compare the before save and after save child product ids

when we remove any simple product from configurable product that time how we can get remove product ids,i am try with “catalogue_product_save_after” “catalogue_product_save_before” but this thing is not working it will give me same data before product delete data, if… Read More »when we remove the simple product from configurable product how we can compare the before save and after save child product ids

Is it possible to use Price AdjustmentInterface with Cache Context?

I know how Price Adjustment through the AdjustmentInterface (e.g. 10% off prices) work. (MagentoFrameworkPricingAdjustment) (docs: https://developer.adobe.com/commerce/php/development/components/price-adjustments/) I know how to add a Cache Context so a a new context is created to cache for. (MagentoFrameworkAppHttpContext) Question: Is it possible to… Read More »Is it possible to use Price AdjustmentInterface with Cache Context?

how to get quote item of the current quote?

how to get quote item of the current quote? i have already get the quote i’ll share some code . $quote = $this->quoteFactory->create()->load(13); //echo “<pre>”;print_r($collection->getData()); $shippingAddress = $quote->getShippingAddress(); //form data $firstname = $quote->getCustomerFirstname(); $lastname = $quote->getCustomerLastname(); $mail = $quote->getcustomer_email(); //shipping… Read More »how to get quote item of the current quote?