I want add variation dropdown instead of multiple div swatch option. I am not getting how to do in grid.phtml. Below is the code swatch option display <?= $block->getProductPriceHtml($_item, $type) ?> <div class="pro-weight"> <?php if ($_item->isSaleable()): ?> <?php $postParams = $block->getAddToCartPostParams($_item); ?> <?php echo $block->getProductDetailsHtml($_item); ?> <?php endif; ?> </div> […]
Magento
Can you please guide me on this issue please. After install elasticsearch install successfully But while try this url [ http://localhost:9200 ] Geeting this issue after run [ curl http://localhost:9200 ] Error: curl: (52) Empty reply from server elasticsearch.yml # ======================== Elasticsearch Configuration ========================= # # NOTE: Elasticsearch comes with […]
In magento-1.9 I would call $Products = Mage::getResourceModel('catalog/product_collection'); $products->setFlag('require_stock_items', true); And this would add the StockItem to every product in the collection. I can’t see how to do this in M2, if I instantiate a MagentoCatalogModelResourceModelProductCollectionFactory and call MagentoCatalogInventoryModelResourceModelStockStatus->addStockDataToCollection it will error out with "0": "You cannot define a correlation […]
I am practicing with the development of mageplaza modules. following the steps of the blog, but I don’t know if my InstallData.php is badly created, but nothing is loaded to the database. I have the module created on github https://github.com/GNUXDAR/magento2_code/tree/development <?php namespace ActecnologyHellorWorldSetup; use MagentoEavSetupEavSetup; use MagentoEavSetupEavSetupFactory; use MagentoFrameworkSetupInstallDataInterface; use […]
I am getting error on creating an shipment TypeError: Argument 2 passed to MagentoSalesModelOrderValidationShipOrder::MagentoSalesModelOrderValidation {closure}() must be an instance of MagentoSalesApiDataShipmentItemCreationInterface, instance of MagentoSalesModelOrderShipmentItem given in /vendor/magento/module- sales/Model/Order/Validation/ShipOrder.php:127 Here is how I am creating the shipment <?php namespace NavienCustomModel; class ShipmentManager { protected $_objectManager; protected $orderInterface; /** * @var MagentoSalesModelOrderShipmentTrackFactory […]
I tried to overwrite Magento_Catalog/js/catalog-add-to-cart.js only to extend the submitForm method as follows: app/code/Vendor/Module/view/frontend/requirejs-config.js /** * Copyright © Onectus, Inc. All rights reserved. * See COPYING.txt for license details. */ var config = { map: { '*': { productIframe: 'Vendor_Module/js/product-iframe', } }, config: { mixins: { 'Magento_Catalog/js/catalog-add-to-cart': { 'Vendor_Module/js/catalog-add-to-cart-mixin': true […]
I am working on a custom module in which I’ve implemented graphql. One of the key in response contains different fields. For example, in the below json response the dynamic_fields content will depend on item_type and will be different. "response" : { "items": { "item_id" : 1, "item_type" : "custom1" […]
i’ve made changes using di.xml file , related to module/sequnce.php . but that affects padding for both . I want invoice number like 1001 and order number like 10000001 . here i need different padding for both