Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [magento2.2.6]

It should be used for questions about Magento 2.2.6

1
vote
0answers
15 views

Multiple currency not working with custom price quote - Magento 2

I created quote with custom price from Magento admin, it works fine but it does not work multiple currency. e.g) I created quote to customer with custom price $10 (USD currency), when customer checks ...
1
vote
0answers
15 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="...
0
votes
0answers
11 views

When we migrated to Magento 2 we found that we were unable to edit configrable products price from Admin

When we migrated to Magento 2 we found that we were unable to edit configrable products from Admin. I want to be able to change the price. Please tell me how to fix it.
0
votes
0answers
10 views

How to show product custom attribute value on sales order view page under magento admin

How to show product custom attribute value on sales order view page under magento 2.2.6 admin.
0
votes
0answers
8 views

When I try to generate Fedex shipping label using magento version 2.2.6. The error is showing “Customs Clearance Detail is required.”

If I try to change file Carrier.php add 'CommercialInvoice' => ['Purpose' => "SOLD"], the error is showing like [08-Feb-2019 12:20:39 UTC] PHP Fatal error: Namespace declaration statement has to be ...
1
vote
0answers
10 views

Xdebug don't stop in the breakpoints

I try to debug my magento2 project with xdebug php 7.1 and nginx. I have differents breakpoints in app/code/Extension/Module and doesn't stop in any one. Just stop if I have the option "Break at the ...
1
vote
1answer
31 views

Error Enter Valid date at cart price rule and save it db, after adding time in date picker in Magento 2.2.6

<?xml version="1.0" encoding="UTF-8"?> <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd"> ...
1
vote
1answer
11 views

Invalid template file within custom template

I am trying to work out why related products arent being displayed on my frontend, and when I check the logs I am presented with the below. Any help would be great. Thanks [2019-02-14 13:56:02] main....
2
votes
0answers
12 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 ...
0
votes
1answer
35 views

How to override DatePicker of cart price rule and add time within it in, Magento 2.2.6

I want to save it in date field no another field and not a new item https://i.stack.imgur.com/0icp0.jpg Example of the outcome I am looking for
0
votes
0answers
19 views

Magento 2.2.6 - uploading PNG image displays warning

While uploading PNG image, it throws an error and the error log says "Warning: file_get_contents(): stream does not support seeking in /var/www/html/RootFolder/vendor/magento/framework/Image/...
3
votes
0answers
34 views

No index on the url_rewrite table

Is there any reason why there is no index on the entity_id column on the url_rewrite table? Or on entity_id and entity_type? The only index I see is on entity_id and store_id. I understand that that ...
3
votes
1answer
36 views

How to add Preference for Magento/Framework files?

I am using curl and it is working fine in local..but returning Invalid response line returned from server: HTTP/2 200 in live server. I referred this link How to add preference or plugin to ...
0
votes
1answer
18 views

my 2.2.6 magento checkout page do not display firstname,postcode,and telephone input field

My current version is magento 2.2.6 and i am facing a strange issue. My checkout page do not display firstname,postcode,and telephone input field on checkout page. whenever i try to place order ...
1
vote
2answers
38 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&...
0
votes
1answer
30 views

When hit the home page url, it shows contact us page as home page

I am facing a very unusual scenario for my web site. (https://zitomer.com) When we try to access homepage https://zitomer.com it displays contact us page as a homepage. What will be the issue? I am ...
0
votes
1answer
16 views

Magento v2.2.6: Proceed to Checkout displays a login popup even after logged in

A login popup window is displayed after clicking "Proceed to Checkout" button from cart instead of redirecting to checkout page.
2
votes
1answer
64 views

how to add a free product in Cart automatically when any other product added in cart in Magento 2

Add a free item in the cart. For example when anyone adds X product in the cart then Y automatic added if remove X then Y automatic remove. for doing this task I made an observer and an events.xml ...
1
vote
1answer
59 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 ...
0
votes
0answers
49 views

Magento - 2.2.6 : Unable to send mail error on not found page

I am working on Magento2.2.6 website. https://www.depoto.com/visakhapatnam When i tried to open not existed page on website. I am getting the unable to send mail error. 2 exception(s): Exception #0 ...
0
votes
1answer
12 views

Why observer->getEvent() gives the option to bring orders ids?

I don't understand why Magento gives the option to bring orders id's instead of just the recently order id, I'm developing a module and using this on the checkout_onepage_controller_success_action ...
0
votes
0answers
22 views

Not able to translate shipping method name

Magento 2.6 Enterprise Edition I am not able to translate the Shipping method names for different languages. It is coming from admin. If I change the Shipping method name for french or german it's ...
4
votes
1answer
402 views

Some very few images are rendered with inverted colors by Magento

We have the problem, that one image in the catalog is shown negatively in Magento below the gallery: Original I tried to reproduce with n98-magerun2 dev:console $i = $di->create('\Magento\...
0
votes
2answers
20 views

overriding Authentication popup is notworking

I am very new to magento 2 I have already extended module_customer where authentication-popup.html is located in that module only, as I want to extend only html file so I used app\design\frontend\Sm\...
1
vote
1answer
17 views

Deploying code via GitHub

Due to the security reasons, we want to deploy the changes in code with GitHub. I can see that we can only change the code via GitHub. Is it possible to change the admin configuration as well via ...
1
vote
1answer
28 views

Magento 2 State Option

Our client wants us to make the state field as an optional one in the Checkout. In order to do this, we have removed all the countries from the required state option and set to "Yes" for allowing to ...
0
votes
1answer
33 views

Solve warning “User Agent Exception override product and CMS pages rules”

I'm Trying to create a dynamic grid containing multiple fields using this code in my ui_component <fieldset name="multi_answer"> <settings> <collapsible>true</collapsible>...
0
votes
0answers
13 views

Product Price Not Showing in Admin Edit Product

Magento 2.2.6. Product Price attribute is not showing on the product edit page. The price attribute is in the attribute set. Attribute set is Migration_Default. But even if I create a new product ...
0
votes
2answers
22 views

Error while calling an API through ajax

I have added a code inside the script tag for an on-change function. But i am m getting error like this Server cannot understand Content-Type HTTP header media type application/x-www-form-...
-1
votes
0answers
23 views

Custom Price in storefront

Magento Version: EE 2.2.6 I have added a new button similar add to cart button in product description page. Once the customer clicks on that button, the product should be added to cart with custom ...
0
votes
1answer
21 views

Show Order Comments on Invoice

I'm trying to get the order comment history to show on the invoice PDF. My set up is as follows: di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
0
votes
0answers
17 views

Error on system log

I having a numerous errors like below on /var/system.log, Item (Magento\Catalog\Model\Category\Interceptor) with the same ID "1484" already exists. [] [] Item (Magento\Catalog\Model\Category\...
2
votes
1answer
25 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 ...
0
votes
0answers
13 views

Get Configurable Product options, Price And Add to cart Button On Related Product Section

How to get Configurable Products options, price on related products sections. Also, put add to cart button on each product. right now related products show only the price as low as but want to add ...
0
votes
1answer
12 views

Modifying user customer grid backend by default

We would like to modify the fields of the customer grid in the backend by default for all users. We know each user can change this themselves, but we need to implement this change for all users. We ...
1
vote
1answer
22 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?
0
votes
1answer
29 views

Magento 2: Add custom attributes and set final price 0 in an if statement under product/price/amount/default.phtml

I've searched for this answer, and no one seems to have answered it. Does anyone know how to handle this? Here is my current code: <?php $objectManager = \Magento\Framework\App\ObjectManager::...
-2
votes
0answers
39 views

how to add bootstrap to CMS in magento 2.3

How to add bootstrap .css and .js to make bootstrap templates work only in pages and blocks because its easy to find bootstrap template for contact blocks about us and even home page and not effect ...
1
vote
1answer
25 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 ...
0
votes
0answers
10 views

ConfigLoader\Compiled:load() performance issue in cron area

I have experiencing for a long time some performance issues related to ConfigLoader\Compiled:load() method that is called when Cron command is ran via bin/magento. Preconditions: Magento 2.2.6 ...
0
votes
1answer
17 views

Product Listing Images Are Not Displaying/Loading Correctly

Website is on Magento 2.2.6. As far as I remember, this issue was not present when we were on previous versions of Magento. Description of the issue: When clicking on a product listing, the ...
0
votes
1answer
50 views

Magento 2 : How to show sub categories on Static block?

How to show the sub categories on category pages ? We have number of categories and sub categories on our website. So, we want to show the products for last level categories only. For the all sub ...
0
votes
0answers
29 views

Add/Change product name to product link

I have a pop up on list page.In Pop up, I want to add product link to product view. I checked and product name is coming from: vendor/magento/module-theme/view/frontend/templates/html/title.phtml ...
0
votes
0answers
8 views

How to import CSV file programatically from another directory?

I am trying to import CSV file programmatically for orders. My files are located on another location of the same server... How to achieve this?
1
vote
1answer
168 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 = ...
0
votes
0answers
11 views

How can we retain the invoice number same as previous when we update order details in magento?

We have Magento 2.2.6 version and installed mageworx order edit extension on top of it. We are trying to implement the logic to retain invoice number even if we update the order details.
0
votes
1answer
47 views

How to confirm that the reindex is working or not?

We have added a new product in one of the categories on our site using the Magento admin panel. But the added product is not visible in the frontend. We have set the reindex mode to Update on save ...
2
votes
2answers
82 views

Swatches disappearing

In the table eav_attribute_option_swatch (the one that holds the swatch options for the attributes) I have about 6k records. Some are color codes, others are paths to images and most of them are null (...
0
votes
1answer
18 views

Set Link On Admin Menu Grid values in Magento 2

I want to add link in Custom Menu Grid values, so for achieving this I add a class in my layout file and in the class file i do this following <?php namespace Feedback\Addon\Ui\Component\Listing\...
0
votes
1answer
29 views

How Magento generates Product Images Cache?

We have uploaded the product images via Magento 2 admin-panel for our client site. For checking purpose, we have downloaded the image (which we have uploaded) from the front-end of the site. Upon ...