In Headless magento project, there is condition written by previous developers in javascript if there is a value assigned for attribute : is_outlet_available , than some text should display, otherwise text should not display in product view page products( filter: { is_outlet_available: { in: [$key] }, sku: { in: [$sku] […]
Magento
I have done some custom price calculation on product page using jQuery and I want to add the calculated price to the product during addtocart event. Any help would be appreciated.
In Magento 1.7, I added a column in the shipment grid displaying the total of the associated order for each shipment. To achieve this, in the Mage_Adminhtml_Block_Sales_Shipment_Grid file, I added the following code: protected function _prepareCollection() { $collection = Mage::getResourceModel($this->_getCollectionClass()); $collection->getSelect()->joinLeft( array('order' => $collection->getTable('sales/order')), 'order.entity_id = main_table.order_id', array() ); $collection->addExpressionFieldToSelect('importo', […]
I am trying to run an integration test on my local machine as follows: ../../../vendor/bin/phpunit --filter 'testInstallWithCodeBaseRollback' ../../../dev/tests/setup-integration/testsuite/Magento/Setup/DeclarativeInstallerTest.php But Always it is returning with the below error: PHP Fatal error: Uncaught Error: Class “MagentoTestFrameworkTestCaseSetupTestCase” not found in /opt/homebrew/var/www/pr/35174/dev/tests/setup-integration/testsuite/Magento/Setup/DeclarativeInstallerTest.php:22 Even though the SetupTestCase class is exists on this path. Any clue […]
So you’ve heard this one before I’m sure and I’ve tried to research how to resolve. This is the issue: For a number of products the Qty is greater than the Salable Quantity in my v2.4.6-p3 install. I have tried to undertake a number of checks: I have completed reservation […]
https://i.imgur.com/rW2R7qK.png I have created a Product Attribute rule as per the above image now set below the product attribute option for filter products in stock. https://i.imgur.com/m1i77Ps.png But when product collection is fetched display all products in stock as well as out of stock. How to filter product collection based on […]
https://i.imgur.com/VIPP7wA.png here we have created a custom catalog price rule for out of stock products, but it didn’t apply. You can get reference using the below image. I want to display the product price as 50 rupees when product is out of stock. https://i.imgur.com/JlcGwOl.png
we have a product attribute called min_sale_qty. It’s inside the advanced_inventory. We created a custom variable called min_sale_qty. No comment. Php Script: <?php class Gmsq { public function getMinSaleQtyAllowed($productSku): float { $objectManager = MagentoFrameworkAppObjectManager::getInstance(); $stockResolver = $objectManager->get('MagentoInventorySalesApiApiStockResolverInterface'); $storeManager = $objectManager->get('MagentoStoreModelStoreManagerInterface'); $getStockItemConfiguration = $objectManager->get('MagentoInventoryConfigurationApiApiGetStockItemConfigurationInterface'); $websiteCode = $storeManager->getWebsite()->getCode(); $stock = $stockResolver->execute('SalesChannelInterface::TYPE_WEBSITE', $websiteCode); […]
I have updated the magento version from 2.4.2 to 2.4.3 so when i checked the composer.lock file so it changed the all URLs for github. Please help me on this why this issue occuer.