Questions tagged [magento2.2.6]

It should be used for questions about Magento 2.2.6

Filter by
Sorted by
Tagged with
2
votes
0answers
46 views

When I upload products with images using csv on magento 2.2.6. The error is showing

Imported resource (image) could not be downloaded from external resource due to timeout or access permissions. and error_log showing Stack trace: #0 /home/mindbsoul/public_html/staging/vendor/...
2
votes
0answers
25 views

Apply product offer when subtotal grater or equal 1000 only for specific date

I want to add new product offer when cart subtotal >= 1000 This offer valid only for every month between day 1 to 7 (1-m-yyyy to 7-m-yyyy). Therefore i used below event - <event name="...
2
votes
0answers
48 views

Mocked shared instance incomplete on second identical integration test

I'm writing an integration test on a plugin that changes the action of an existing form. The plugin calls a helper method that decides whether the url should be changed and returns the result. I ...
2
votes
1answer
178 views

Ui_component column visible doesn't work

In Magento 2.2.6, modifying customer listing to add custom columns, setting to set a default visibility is not being taken into account. It doest not matter if it is set to true or false. It does not ...
2
votes
0answers
59 views

Replacing string in checkout summary

We have managed to modify the " Talla" Field in order to remove the "(-)" part. What happens is once we go to next, once selected the address we want to send to, it reloads the page and the "(-)" ...
2
votes
2answers
1k views

Magento 2: Custom Customer Attributes Showing in Customer Grid but Not Admin Account

I'm currently on Magento 2.2.6 and I created a multiple select attribute as well as a yes/no attribute for customers in the admin page, however I'm not seeing them show up and not sure where I went ...
2
votes
0answers
35 views

Magento 2 - how to change the product name in a configurable product

We have allot of custom products that we sell witch means we need to be able to ad those custom products to shopping carts for our customers. Right now we are solving this with a configurable product ...
2
votes
2answers
572 views

Remove sticky behaviour of cart summary in Magento 2.2

i need to disable sticky behaviour from the cart summary block in checkout cart page, but can't figure out how to do it. I tried overriding js file /vendor/magento/theme-frontend-blank/...
2
votes
1answer
264 views

What are the rest api's for the Magento2 modules

We are working on Magento2.2.6 website. We are planning to build the mobile application. For this, we need the Rest api's for the following : Sort by options api Layer navigation Login with otp api'...
2
votes
1answer
168 views

Override empty.xml in a custom theme

I'm creating a new theme for a Magento 2.2.6 community edition and I need to wrap all the content inside a CSS class. To do so I had to change <main id="maincontent" class="page-main"> to &...
2
votes
1answer
292 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" ...
2
votes
1answer
740 views

How to have the changes made in .less file be reflected on the website?

I'm trying to make some style changes to a .less file in a custom module. But even after making and saving the changes to the .less file, those changes are not being reflected on the website. I'm ...
2
votes
0answers
112 views

ACL for custom config group - section disppeared?

I'v tried to add a new section to Store -> Config -> Catalog Section -> Catalog with custom ACL settings. I changed (default) adminrole permissions from "All" to "Custom" and left only the ...
2
votes
0answers
127 views

Magento 2 order update email message translation

Magento 2 order update email message text "order status" pending etc... translation doesn't work but other email message text content is translated correctly. I have translated every "order status" ...
2
votes
1answer
44 views

JS minification issue still pending

I have tried almost every single thing there were some errors in system.log file i have also removed that , gave so much time to solve this issue . i want to minify and merged js . i set developer ...
2
votes
1answer
46 views

How can I add the Slaask script to Magento 2?

I would like to add this script to my header- <script> !function(){var x=document.createElement("script");x.src="https://cdn.slaask.com/chat.js",x.type="text/javascript",x.async="true",x....
2
votes
2answers
611 views

XML site map is not generating for Magento 2.2.6

I have upgrade the Magento version to 2.2.6. Now i want to configure the sitemap for my site. I have followed the document but still it showing 404 page not found error.. is it magento 2.2.6 known ...
2
votes
0answers
153 views

Magento 2.2.6 Web Setup Wizard missing

I am running Magento 2.2.6 and just tried to purchase and install an extension from the Magento market place but when I goto the admin I don't have the web setup wizard to install extensions. Please ...
2
votes
1answer
392 views

Magento 2: Add specification tab to product page

At Magento 2 I had create attribute sets for every category. In attribute set I had a folder with some attributes (visible on frontend) I need to add all this attributes to a tab with name ...
1
vote
2answers
47 views

How to set cron job periodically in magento?

I have below cron job code. Currently, it is running for every 30 minutes. <job name="customer_details" instance="my_file_name" method="my_method"> <schedule>*/30 * * * *</schedule&...
1
vote
2answers
2k 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.
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
2answers
548 views

How to install and Configure Varnish in Magento 2?

How to configure varnish in magento 2? Selecting Varnish Cache in Stores Configuration is enough?
1
vote
2answers
2k views

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

Hello I am facing the issue after upgrade from 2.2.6 to 2.3.0 Can you suggest what is needed to be modified? file __.php : <?php declare(strict_types=1); function __() { $argc = ...
1
vote
3answers
108 views

Why does Magento 2 does not support store based price?

I need the price of product store wise, but by default Magento 2 not support that. Can anyone suggest me without extension solution, rather code based solution?
1
vote
2answers
407 views

M2 - Check if product has custom options

On the category page (in list.phtml) I need to check if a product has custom options. What is the best way to do that without abusing the objectmanager?
1
vote
1answer
40 views

How to put NOINDEX,FOLLOW to login and registration page Magento2.x

I am having trouble in putting meta robots in selective page. I wanted to Noindex and Follow on login and registration page only and rest of page will have Index and Follow. I have put <meta name="...
1
vote
3answers
209 views

What is the url of this routes.xml?

Here is the routes.xml file <?xml version="1.0"?> <!-- /** * Copyright © 2017 Magento. All rights reserved. * See COPYING.txt for license details. */ --> <config xmlns:xsi="http://www....
1
vote
1answer
197 views

Magento 2.2.6 undefined index on page config generator head file

Magento 2.2.6 Notice: Undefined index: src in /vendor/magento/framework/View/Page/Config/Generator/Head.php on line 126 any solution?
1
vote
1answer
876 views

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

i can access session data in my controller using \Magento\Framework\Session\SessionManagerInterface public function __construct( Context $context, PageFactory $resultPageFactory, ...
1
vote
2answers
61 views

what is user name means in upgradation of magento 2.2.4 to magento2.2.6?

what is user name means in upgradation of magento 2.2.4 to magento2.2.6 ? I want to upgrade magento 2.2.4 to magento 2.2.6. what is user name means in this upgradation. Please see the below pic.
1
vote
2answers
51 views

Unable to run commans in magento 2

I have tried to disable Magento_CatalogSearch in config.php. After edited config.php, While trying to run commands throws the following error. "Source class "\Magento\CatalogSearch\Model\...
1
vote
2answers
47 views

A status of 500 error occurs in Magento 2.2 production mode

Yesterday, I switched from developer mode to production mode. After changing the mode, I used the following command:. # /usr/local/php71/bin/php bin/magento deploy:mode:set production --skip-...
1
vote
1answer
38 views

How to change the Magento 2.2 Session location from Redis back to File

I use Magento 2.2. Changed session destination from file to Redis. Is there a command to save back to a file?
1
vote
3answers
53 views

how i can get order id and customer name in oberserver magento 2

I have used event <event name="checkout_onepage_controller_success_action"> when I use this code I am getting null $order $order = $observer->getEvent()->getOrder(); // im ...
1
vote
2answers
856 views

Magento2.2 - - Failed to read session data

If you open the front end with multiple tabs in the browser, the following error is output:. Exception #0 (Exception): Warning: session_start(): Failed to read session data: user (path: /var/opt/remi/...
1
vote
1answer
140 views

How to add custom column as link in sales order grid in magento 2

I wish to add a column as link in sales order grid. While clicking the link, I wish to perform some logic, I have reffered the below link for magento 1 which is based on layout grid add button inside ...
1
vote
2answers
271 views

How to give onclick event for admin grid action link

I have a custom admin grid for return items. For which I need to add a popup to add a comment for every action below I have written a js function for the modal popup. But I am unable to trigger ...
1
vote
1answer
702 views

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

I have used Magento 2.2.6 version.I have a one configurable product.I have added special price into the associate product.The Special Price is Display but old price is not display how to show them ? ...
1
vote
1answer
35 views

Magneto2 : What are the Tables effected when an order created

I am creating custom attributes and magento 2.2.6 and I just want the list of the tables effected after an order creates successfully.
1
vote
1answer
232 views

What is the use of Magento 2.2.6 product image cache?

I have some points regarding the Product Image Cache to discuss with you. I have created a product from the Magento admin panel. After creating the product, I have uploaded two of the product ...
1
vote
1answer
38 views

Cache aware display of “product is new” badge

This is a follow up of Magento2 : How to show New label in product list page If I understand the proposed solution correctly, the product will still be shown as new as long as the full page cache ...
1
vote
1answer
252 views

Ajax call issue in magento 2.2.6

My ajax call not working . It returns "A technical problem with the server created an error. Try again to continue what you were doing. If the problem persists, try again later." my ajax call code ...
1
vote
1answer
370 views

How to display custom customer attributes in Magento admin customer view

I have created customer custom attributes using install data, and I want to display this attributes in the Magento admin customer view/personnel information section, next to customer group, In this ...
1
vote
1answer
584 views

Magento 2: When use Flat Catalog Product it gives SQL error

When I am changed setting for Flat Catalog Product to Yes, it gives SQL error in magento 2. Stores >> Configuration >> Catalog >> Catalog Is this known bug in magento 2.2.6? I have done re-...
1
vote
1answer
926 views

How to add recaptcha v2 for multiple forms on single page?

I am trying to configure re captcha for contact us form and newsletter form. Both these form are on one page. Now I have to configure common recaptcha for these two form and when on submit captcha ...
1
vote
1answer
731 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
1answer
48 views

Magento 2.2.6 : Shipment creation using REST API

Unable to create shipment in Magento 2.2.6 I am using the following source code like this in postman https://test.com/rest/V1/shipment { "entity" : { "order_id" : 70, "items" : [{ "order_item_id" ...
1
vote
1answer
27 views

Filter in custom grid doesn't work normally. Magento2

When I filter twice, it works fine after the third time display only one product in each row. grid_record_grid_list.xml <?xml version="1.0" encoding="UTF-8"?> <!-- /** * Grid record ...
1
vote
2answers
469 views

Magento2: Adding custom attribute to category doesn't show store specific value

I have created a custom category attribute using the custom code from here, attribute created successfully and able to save the value. But I want to save store specific value in this custom attribute,...