17 votes

Could not find a matching version of package magento/product-community-edition

These 2 things worked for me I needed to add the repository reference to my composer.json because it wasn't there "repositories": [ { "type": "composer", "url": "...
S-Thomas 's user avatar
13 votes
Accepted

Magento 2.2.6 How to add TAB structure in admin UI component form

I found my problem, i used argument item <item name="template" xsi:type="string">templates/form/collapsible</item> it is used to display for collapsible structure. After remove this line ...
Chirag Patel's user avatar
  • 6,126
12 votes

Magento 2.2.6 Configurable Product How to Show Old Price and Special Price?

Found solution Here Copy final_price.phtml from Vendor/magento/module-configurable-product/view/base/templates/product/price/final_price.phtml to Vendor/theme/Magento_ConfigurableProduct/templates/...
Ronak Rathod's user avatar
  • 6,322
12 votes

Magento2.2 - - Failed to read session data

Adding an answer for posterity as this was already correctly resolved in the comments by Anthony. When using Redis to store the session data, the Warning: session_start(): Failed to read session data ...
Marina Gociu's user avatar
  • 1,261
11 votes
Accepted

How can i use event before add to cart ? if it exists at all - Magento2

Yes, there is an event(checkout_cart_product_add_before) before adding the product into the cart but from the Magento 2.3.X please check this link for Magento 2.3.x But you are using Magento 2.2.6 ...
Keyur Shah's user avatar
10 votes
Accepted

Magento 2.2.6 Cannot create a symlink for... after Update

I found a solution in the app/etc/di.xml file I have changed the following <virtualType name="developerMaterialization" type="Magento\Framework\App\View\Asset\MaterializationStrategy\Factory"> ...
Arno Vande Cappelle's user avatar
9 votes
Accepted

Some very few images are rendered with inverted colors by Magento

This could be down to the image being in the CMYK colour space, Imagick can have issues when working with these images as it is unable to convert to RGB properly. You can either upload a ...
MageIdiot's user avatar
  • 138
8 votes
Accepted

Magento 2.2.6 - Attribute with ID "Manufacturer" does not exist

I ran into this problem as well. Possibly due to a module we installed, the attribute was created and deleted. What ended up working to run the upgrade, was to create the attribute in the database. ...
Boris Thertus's user avatar
8 votes

Deleting values from `_cl` tables

Main question: It's ok to delete these so long as you have other means to update the products not yet processed i.e. assuming you're going to manually ('update on save') or programmatically update ...
JohnHughes1984's user avatar
8 votes

Magento2.2 - - Failed to read session data

This issue can fixed by increase max_concurrency. It will relate to your traffic and server conditions. In my case i'm able to solved this problem by increase max_concurrency from 6 to 24 This is ...
Yustian's user avatar
  • 143
7 votes
Accepted

Magento 2.2.5 to 2.2.6 upgrade error

We user varnish and redis cache on our server and had this same error. This is the procedure we followed for a successful upgrade. composer require magento/product-community-edition 2.2.6 --no-update ...
hpz937's user avatar
  • 116
7 votes
Accepted

Disk space issue with Advanced Reporting after update from 2.2.3 to 2.2.6

I checked this issue again, seems like I was not the only one facing this. Problem seems to be fixed with this commit: https://github.com/magento/magento2/commit/...
David's user avatar
  • 392
7 votes

PHP Fatal error: Cannot redeclare __() (previously declared in /vendor/magento/framework/Phrase/__.php:15) in /app/functions.php on line 23

This is original content of app/functions.php file: <?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ /** * Create value-object \Magento\...
Adrian's user avatar
  • 366
7 votes
Accepted

Deleting values from `_cl` tables

The risk is minimal. You can restore all the data /consistency by the run of full indexation
KAndy's user avatar
  • 20.8k
7 votes
Accepted

Breadcrumbs not showing the home and category names

In app/design/frontend/VendorTheme/ThemeName/Magento_Catalog/layout/catalog_product_view.xml <?xml version="1.0"?> <page> <body> <referenceBlock name="...
Mahi M's user avatar
  • 2,540
6 votes
Accepted

How to add the MAGE_INDEXER_THREADS_COUNT environment variable to env.php?

You can try adding like 'MAGE_INDEXER_THREADS_COUNT'=>3 then the env.php will look something like following return [ 'backend' => [ 'frontName' => 'magento226administrator' ],...
Anshu Mishra's user avatar
  • 8,960
6 votes

Magento 2 Override Product Canonical Url

I was trying to do the exactly same thing but I did it with another approach with Plugin. as you can see prepareAndRender method is public and it's calling the private method preparePageMetadata ...
Miroslav Petroff's user avatar
6 votes

Unable to unserialize value? On customer edit?

I also came accross this error today, for me i discovered it was the Ebizmarts_MailChimp module that was causing the issue, you can disable the module entirely which corrected the issue or what i ...
Dominic Knight's user avatar
6 votes

Magento2: Need To change Purchase Order Payment Code

It would be great if you can create a custom payment method like a Purchase order rather than change payment method code. I have explained all the steps for creating a new offline custom payment ...
Kuntal Dalal's user avatar
6 votes
Accepted

Magento 2 : how to use TinyMCE v4 in Magento 2.2.6?

Have you seen this https://github.com/pavelleonidov/magento2-tinymce4 This should work. Only for Magento 2.1 and 2.2
Dominic Pixie's user avatar
5 votes
Accepted

How to add custom css file in magento2.2.6?

You need to follow the below steps: Step 1: Create default_head_blocks.xml like below: app/design/frontend/[vendor]/[theme]/Magento_Theme/layout/default_head_blocks.xml Step 2: Andd create local....
Sukumar Gorai's user avatar
5 votes

How to add custom css file in magento2.2.6?

You have to add it in your current theme like this: app/design/frontend/{Yourtheme}/{name}/Magento_Theme/layout/default_head_blocks.xml <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
PЯINCƎ's user avatar
  • 11.7k
5 votes
Accepted

How to remove the cart link from homepage of magento 2?

You can do in your custom theme or in the custom module. Following code is from my custom module. app/code/Anshu/Custom/view/frontend/layout/cms_index_index.xml <?xml version="1.0"?> <page ...
Anshu Mishra's user avatar
  • 8,960
5 votes

Magento 2.2.6 How to add TAB structure in admin UI component form

When you start using tabs in your admin panel the form changes. Until now I have not found an out of the box solution but it appears that the tab is setting a field where Magento looks for data. This ...
Dennis van der Graaf's user avatar
5 votes
Accepted

M2 - Check if product has custom options

Try to use $isHasOptions = $product->getTypeInstance()->hasOptions($product);
Tuyen Nguyen's user avatar
  • 1,312
5 votes

How to increase/decrease space in thumbnail images on Product Page (catalog-product-view) Magento

Well I set in the the app/design/frontend/vendor/theme/etc/view.xml and easy you can set thumbmargin like this <?xml version="1.0"?> <view xmlns:xsi="http://www.w3.org/2001/...
MIGUEL ANGEL RAMIREZ MEDEL's user avatar
5 votes

Custom section data not rendering on page load

A section will only be loaded after a controller action is called. For example you can display a Free Shipping Notification when a customers adds a product to their Shopping Cart. If you want to ...
Mr. Lewis's user avatar
  • 1,931
5 votes

Custom section data not rendering on page load

This worked for me: define([ 'Magento_Customer/js/customer-data' ], function ($, customerData) { 'use strict'; var sections = ['cart'];//replace cart with your custom section name if you ...
groy's user avatar
  • 351
5 votes
Accepted

How to use session data in view (phtml) magento 2

Use a ViewModel to get session data into a view. https://www.yireo.com/blog/2017-08-12-viewmodels-in-magento-2 In your layout file: <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/...
djfordz's user avatar
  • 342
5 votes

How to display order summary sidebar in shipping step of checkout page in magento 2?

UPDATED ANSWER As @badwi noted, the old answer started creating an error. Here is the new way to do it using magento best practices. This is tested as working in M2.3.6. I'm creating these files in my ...
Cypher909's user avatar
  • 308

Only top scored, non community-wiki answers of a minimum length are eligible