Questions tagged [magento2.2.6]

It should be used for questions about Magento 2.2.6

Filter by
Sorted by
Tagged with
1
vote
1answer
341 views

Magento 2 - Getting user role

I would like to get the Role of the user logged in. I'm trying to use the \vendor\magento\module-user\Model\User.php class, but all results give me null or empty. I'm trying to use \vendor\magento\...
1
vote
2answers
1k views

Magento 2 - get user email ID

I'm using Magento 2.2.6, How can I get the email ID of logged in user to show in header. Thanks.
3
votes
2answers
923 views

Magento 2.2.6 Catalog Search indexer process unknown error - Notice: Undefined offset: 53

I'm currently using Magento 2.2.6. I've recently encountered the following error while trying to reindex the catalogsearch_fulltext: Notice: Undefined offset: 53 in vendor/magento/module-catalog-...
3
votes
4answers
750 views

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

I am trying to create a TAB in admin UI component form in my custom module, TAB is showing but page is loading continuously, please see attached screen-shoot. Here is my code. Namespace/...
1
vote
1answer
244 views

Correct way of adding images programmatically?

I have the following problem, right now my program uploads the images and does it good, however when i go to the edit product page, the following are empty or uncheked: Role Alt text Here is the ...
1
vote
1answer
274 views

magento 2.2.6 Indexer:reindex error

I get the following error when running the indexer:reindex command for Magento 2.2.6 SQLSTATE[42S02]: Base table or view not found: 1146 Table 'DB.catalog_category_product_index_store1_replica' doesn'...
1
vote
1answer
383 views

Getting error Call to a member function dispatch() on null in Block

This is the proper way of outputting something Fatal error: Uncaught Error: Call to a member function dispatch() on null in /opt/lampp/htdocs/learnm3/vendor/magento/framework/Model/ResourceModel/Db/...
0
votes
0answers
61 views

Magento 2: Cannot change less variables

I have a problem with a custom theme in Magento. I am trying to change some variables for less. But nothing that i change has any effect on the output css. I followed https://devdocs.magento.com/...
0
votes
1answer
93 views

Magento 2 Custom Tab Pass Variable Value To The Title

I created a custom tab and set it up by using layout instruction <referenceBlock name="product.info.details"> <block class="Magento\Catalog\Block\Product\View" name="custom.prod.tab2"...
1
vote
1answer
39 views

How is the order attached to newly created customer after checkout

Hey I hope this question isn't to broad but how is the order attached to a customer that is created after guest checkout? Background to my question: I want to attach a custom field to my customer. ...
0
votes
0answers
254 views

Admin URL showing 404 Not found in Magento2.2.6

I have installed fresh Magento2.2.6. When I open its admin URL using http://127.0.0.1/magento226/admin or http://127.0.0.1/magento226/index.php/admin, it is redirected to http://127....
0
votes
1answer
248 views

Email template subjects in foreign language become question marks when saved

I have created and email template with Russian content. After entering the details and saved the email template, email template subject showing like "???? ????????????? ?????? {{var store....
0
votes
1answer
96 views

how to fix console error in magento 2.2.6?

How to fix jquery console error in magento2.2.6? please check attached screenshot http://prntscr.com/ld1s8k.
0
votes
1answer
61 views

How to show product category on product page in magento2.2.6?

How to show product category on product page in magento2.2.6? i selected 2columns-left.xml layout template in category. http://magento-213836-648260.cloudwaysapps.com/shop.html i want to add sidebar ...
1
vote
1answer
214 views

Magento 2.2.6: How to add <div> on product listing page without override file?

I want to add custom div on product listing page under class="product-image-container" <span> without override product list.phtml & catalog_category_view.xml file. And i also want to ...
0
votes
1answer
101 views

Magento 2: de_DE language pack not applying to de_AT

I am new to the Magento world and certain things are a little bit complicated for me. For example I have language pack for german language (code de_DE) purchased and installed. However my shops ...
0
votes
1answer
25 views

Magento Search System Issue

I`m having a strange issue with catalog searching. Performing this simple search returns 35 products : catalogsearch/result/index/?q=bac However, when I refine it by category, I still receive the ...
0
votes
0answers
64 views

How can I clear SQLSTATE[23000]: Integrity constraint violation after migration?

I am trying to migrate data from Magento 1 to Magento 2.2.6 using Cart2Cart. Everything comes over but I get errors like the one below when I try to reindex. Category Products indexer process ...
0
votes
1answer
106 views

I am not able to reflect the contents added in html head of admin panel in view source code in magento 2

I have added few script tags in the following path of admin panel: content->design->configurations->our theme(edit)-> html head->scripts n style sheets. But it's not reflecting in view page source ...
4
votes
1answer
639 views

How to hide magento 2.2 messages after a time has passed?

I want to remove the success notification message with animation included, trying with below code with no success: define([ 'jquery', 'uiComponent', 'underscore', 'Magento_Customer/js/customer-data',...
2
votes
1answer
273 views

Upgrade to 2.2.6 missing static JS files

When I upgraded my Magento 2.2.2 to 2.2.6. I got one critical error in pub/static missing one file named trim-input.js "pub/static/version1540806968/frontend/{...}/{...}/pl_PL/mage/trim-input.js" ...
0
votes
1answer
65 views

Not able to edit search engine robots from admin

I am trying to edit search engine robots from content and theme configuration but no option to edit. I am trying to enable the same section for my theme. I am using v2.2.6 Is there any backend ...
0
votes
2answers
98 views

How we can add container for inner pages in magento 2.2.6

How we can add container for inner page template not in home page in magento 2.2.6?
1
vote
1answer
58 views

How to call product new.phtml in admin cms home page magento 2.2.6

How to call new.phtml file in the home page admin Magento 2.2.6 version? Please check my screenshot link here http://prntscr.com/lapiu7. And also check my theme default.xml code. <referenceBlock ...
0
votes
0answers
17 views

How to fix checkout onepage logo & black screen after display mini cart

I am using 2.2.6 Checkout onepage LOGO look like css:z-index:1 & black screen after display mini cart. How can i fix it? i have tried to edit vendor/magento/module-checkout/view/frontend/web/...
0
votes
1answer
98 views

Magento 2 - Set Cookie Expiry date using “setPublicCookie”

I am trying to set cookie based on the url params and I need to be able to assign an expiry date and the params value as well $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $...
1
vote
1answer
316 views

Magento 2.2.6 : Add custom field in product attribute add form - Is not render the database value on edit

I added a custom field inside my product attributes and it's render and save OK, but when I reload the attribute form, the value of my custom field is empty. If I enter to the form data inside the ...
0
votes
3answers
138 views

How to add blogs in magento 2.2.6?

How to add blogs in admin magento 2.2.6. because i can't see blog menu section in admin. please let me know.
4
votes
2answers
232 views

how to call navigation bar in magento 2.2.6

How to call navigation main menu in magento2.2? please let me know. I follow this code for our custom header in default.xml file. <referenceContainer name="header.container"> <block ...
0
votes
1answer
137 views

How to get product root category name or ID using product ID in magento 2.2.6?

I am working on magento 2.2.6 I am using file vendor/magento/module-catalog/Helper/Product/View.php In this, I am trying to get root category name or ID of product using product id in function ...
1
vote
0answers
27 views

When I add product from backend I got this

I am using Magento 2.2.6 When I add product from backend I got page like shown in below image. Is it any known issue in Magento 2.2.6 or any cache related issue?
3
votes
0answers
908 views

How to use cookie-free domains in magento 2

I have recently create gtmetrix report for my site, in that report I found Use cookie-free domains to 0 means nothing. My question is that how to use cookie free domain in magento 2.2.6
1
vote
1answer
660 views

How to create a custom CMS static block programmatically and have it be displayed on homepage?

I am able to create CMS Static Block from admin and display it on the homepage, but is there a way to do it programmatically so I can create custom widgets(basically custom HTML/CSS) and display it on ...
1
vote
0answers
21 views

Replace instant purchase message with popup (2.2)

I'm using a custom theme I wrote that derives from magento-blank and was wondering how I might go about replacing the instant purchase message at the top with a popup. Currently, on a mobile device, ...
0
votes
1answer
18 views

Revoke access to downloadable product after refund in 2.2

I was wondering if there's a built-in way to remove a customer's access to download links for a digital product after issuing a refund. I realize they could have downloaded the file within that time, ...
1
vote
6answers
2k views

Can't upload product placeholder images in Magento 2

I'm trying to replace the Magento placeholder image with a custom one. Everything I browse to select the file and hit Save, nothing gets saved. Is there an issue with this in v2.2.6? What can I do ...
1
vote
1answer
258 views

ResultInterface Error

we are noticing a strange behaviour on a CE 2.2.6 which we can't interpret. We didn't do any updates, it's possible that an OpCache/Redis flush let come up an error from an update before. Each time we ...
1
vote
1answer
89 views

Deleting a Magento 2 Sitemap

On our Magento 2 store we have a second sitemap we need to remove. Can someone advise how we do this please? Many thanks
4
votes
1answer
105 views

Unable to place order in Magento2.2.6 using REST API

When we are working on Magento2.2.4 on the same, i got the proper response order_id was created. But, coming to Magento2.2.6, i am getting the response like this We have checked the log files from ...
0
votes
1answer
431 views

sitemap.xml shows different base path when generate

I have generated the sitemap for my live instance. But after generating it it is showing staging url in xml sitemap. When I see my xml sitemap in the browser for live site, it shows the links with ...
1
vote
3answers
298 views

custom theme implement magento 2.2.6 issue

How to implement custom header, footer HTML design in our custom theme in Magento 2.2.6 version? Our theme structure: app/design/frontend/Cloudways/m2-theme/Magento_Theme
0
votes
2answers
31 views

Why does Magento have two open source releases?

Why is there a 2.1.15 and a 2.2.6? What is the differences between the code sets? Will I have to go to 2.2.X eventually? Is 2.2.6 experimental?
0
votes
2answers
269 views

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

I am trying to remove the cart link and icon from the homepage of Magento 2. But making any changes to default.xml of Magento_Theme is removing the cart icon from every page, as expected. Is there any ...
0
votes
1answer
117 views

How to add padding between two different elements magento 2

I am trying to separate two elements and create a bit of space between them. I want there to be a certain amount of space between the Logo and the navbar. Is it possible to do it using default.xml? ...
1
vote
1answer
366 views

Sign in link is not showing up in the header magento 2

I am trying to get the menu, logo and all the links in the header to appear in the same line. So far, I've managed to get the logo and menu in the same line, but for some reason, the sign-in link is ...
3
votes
0answers
189 views

Magento 2 category not work properly

Most of category issued are about product not showing. But I got a different issue here. After I'm trying to solve some problem with the Porto theme. Every category in my site start showing all the ...
0
votes
1answer
77 views

I am adding Widgets, Blocks and content from WYSIWYG editor from admin panel to a custom theme. Will the changes be saved?

As the question said, I have added Widgets like Catalog Products List and cms blocks using admin WYSIWYG editor. While adding them, I am always selecting the custom theme I have created. Are these ...
5
votes
2answers
591 views

After upgrade magento 2.2.4 to 2.2.6 web setup wizard not display

I have just upgrade magento 2.2.4 to 2.2.6 and noticed that web setup wizard not display. It was displayed in 2.2.4 found that already reported here https://github.com/magento/magento2/issues/7623 ...
0
votes
4answers
93 views

Overriding js file not working in Magento 2.

I am trying to override vendor/magento/module-catalog/view/frontend/web/js/catalog-add-to-cart.js to app/design/frontend/MyTheme/Package/Magento_Catalog/web/js/catalog-add-to-cart.js in order to ...
0
votes
0answers
74 views

Mageplaza Magento 2 brazil language pack is not working

composer require mageplaza/magento-2-portuguese-brazil-language-pack:dev-master php bin/magento setup:static-content:deploy pt_BR php bin/magento cache:flush I ran those commands language appear in ...