New answers tagged

0

I have found that solution. The solution is some 3rd party module database table not defined properly AUTO INCREMENT & PRIMARY KEY. In my case module is SMTP Mageplaza & Magefan Magento 2 Blog. when upgrading the Magento version that time database is not saved properly. I have checked to disable one-by-one module & check them & got the error. ...


0

You can get the quantity of an item in the customer's cart by this method $items = $this->cart->getItems(); foreach ($items as $item) { ......... $product = $item->getProduct(); $qty = $item->getQty() ......... }


0

kindly check your elastic search connectivity on 9200 port using this command from ssh curl localhost:9200 it causes due to elastic search unavailability, if above command giving connectivity error so install elastic search on your server. https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-elasticsearch-on-ubuntu-18-04


0

I have the same issue. Workaround is to decode product names before sending to Rest API: var product_name_encoded = product_name.replace(/[\u00A0-\u9999<>\&]/g, function(i) { return '&#'+i.charCodeAt(0)+';'; });


0

Actually you pass the category ids array in addCategoriesFilter(['in' => $cat_ids]) that's why the error occur. Just Replace my code with yours: $cat_ids = "3,4"; $collection->addAttributeToSelect('*')->addAttributeToSort('position', 'ASC')->addCategoriesFilter(['in' => $cat_ids])->addAttributeToFilter('sku', array('1709529','...


0

I almost feel it is spammy, but just to mention: A free way of implementing WebP is here: https://www.yireo.com/software/magento-extensions/webp2 https://marketplace.magento.com/magecomp-magento-2-webp-image-support.html


0

Magento 2.4.x switches to using Elasticsearch as management of category pages. Try reindexing all the indexes. bin/magento indexer:reset bin/magento indexer:reindex Make sure your Elasticsearch is connected before you do this. Also check if you had any overrides for Catalog page filters. Many people used MySQL sorting to sort the pages - this no longer ...


0

Special price should be lesser than the actual cost of the product because a special price is a discounted price of the product according to several criteria, such as quality, quantity, the time frame of purchase, and type of customer. Now make changes accordingly and run the below command in Magento 2.4 root directory php bin/magento indexer:reindex php ...


0

Click Here to add MAGMI into your module -> https://magento.stackexchange.com/a/351175 Enable Product Deleter plugin. Using CSV "sku","magmi:delete" "sku1","1" "sku2","1" Using Code $importData = []; $configProduct = new \Magmi_ProductImport_DataPump('productimport'); $importData['...


0

Click Here to add MAGMI into your module -> https://magento.stackexchange.com/a/351175 Enable Product Deleter plugin. Using CSV "sku","magmi:delete" "sku1","1" "sku2","1" Using Code $importData = []; $configProduct = new \Magmi_ProductImport_DataPump('productimport'); $importData['...


0

Click Here to add MAGMI into your module -> https://magento.stackexchange.com/a/351175 Enable Product Deleter plugin. Using CSV "sku","magmi:delete" "sku1","1" "sku2","1" Using Code $importData = []; $configProduct = new \Magmi_ProductImport_DataPump('productimport'); $importData['...


1

You added a Price You added a Cost You added a Special price If you havent added a price it would probably go to 0? Could you check?


Top 50 recent answers are included