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": "...
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 ...
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/...
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 ...
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">
...
10
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 ...
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 ...
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. ...
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 ...
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 ...
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
...
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/...
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\...
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
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="...
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'
],...
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 ...
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 ...
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
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....
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-...
5
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
...
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 ...
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 ...
5
votes
Accepted
M2 - Check if product has custom options
Try to use
$isHasOptions = $product->getTypeInstance()->hasOptions($product);
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/...
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 ...
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/...
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 ...
5
votes
Accepted
UPS shipping error
Having the exact same issue on 2.1.5 and 2.1.17. Our last UPS order came through April 15th at 9pm. With no configuration change, it stopped working on April 16th.
You can possibly fix it by ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
magento2.2.6 × 505magento2 × 191
magento2.2 × 40
product × 19
checkout × 17
upgrade × 14
orders × 12
error × 11
product-images × 11
magento2.3 × 9
database × 9
rest-api × 9
module × 8
javascript × 8
sales-order × 8
product-page × 8
admin × 7
attributes × 7
event-observer × 7
css × 7
payment-methods × 7
admin-panel × 7
category × 6
blocks × 6
magento-upgrade × 6