Category: Magento
-
[SOLVED] Magento 2 Error: A technical problem with the server created an error. Try again to continue what you were doing. If the problem persists, try again later.
Sometimes debugging on Magento can be annoying, specially if something just arises out of the blue, not while you are actually writing a code. This is something that occurs on Magento admin panel. As of now, it can be one out of 3 reasons, let us discuss them: 1. Admin Password Try to change admin…
-
How to tweak Magento 2 for two letter search in fulltext mode
The problem: Magento 2 wont return any search results if the search token is 2 letters in length. Solution: Alter MySQL conf file. Edit my.cnf file on your server In CentOS, use command and add the following lines: Save using CTRL+x and then restart mysqld service. Now we need to regenerate the index in order…
-
Magento 2 : How to fix tablespace for table exists | base table or view already exists
Fixing General error: 1813 Tablespace for table xx Please DISCARD the tablespace before IMPORT and SQLSTATE[42S01]: Base table or view already exists Recently I encountered this error while upgrading an extension on Magento 2.2.2 The error was When I tried to fix the above error, I received: So here is how to fix it: Important…
-
Remove sku column from Magento 2 invoice and pdf
Edit the file/vendor/magento/module-sales/Model/Order/Pdf/Items/Invoice/DefaultInvoice.php Inside function draw(), remove/comment following code: To remove the SKU header in table header, edit the file/vendor/magento/module-sales/Model/Order/Pdf/Invoice.php and copy the file vendor/magento/module-sales/view/frontend/templates/email/items/order/default.phtmlto app/design/your/theme/Magento_Sales/templates/email/items/order/default.phtmland remove the code
-
Magento 2 how to show configurable options stock availability on product page
addtocart.phtml Another important file is Magento_ConfigurableProduct/web/js/configurable.js modified function _getSimpleProductId and added function _dofichoo
-
Magento 2 temporary fix for Alphabetical sorting of Configurable product options
Just re-write the file vendor/magento/module-configurable-product/Model/ConfigurableAttributeData.php
-
Show Available Stock quantity for each product in Magento 2
Reference: https://magento.stackexchange.com/a/97952/32283
-
How to update Magento community edition using CLI
if you receive any errors post installation, try this hard fix
-
How to shift category description below products in Magento 2
In your theme folder, add Folder Magento_Catalog/layout and in layout folder add file catalog_category_view.xml
-
How to add custom attributes in Magento 2 product CSV export
Core Method is to edit the file /vendor/magento/module-catalog-import-export/Model/Export/Product.php and Edit the variable $_exportMainAttrCodes Add your attributes in the array like “custom1″,”custom2”, etc and save the file. Next time you export the csv, you will see new columns in the file.