Questions tagged [magento2.2.6]

It should be used for questions about Magento 2.2.6

Filter by
Sorted by
Tagged with
1
vote
2answers
285 views

Magento2.2.6 Admin Session Timeout Not Working

Something is wrong with the admin session timeout in Magento2.2.6. I have everything set to 1 day however it's all ignored. I get logged out if I'm inactive for 15 minutes. I have vendor/magento/...
4
votes
1answer
157 views

Multistore, multiple languages: optimal SEO versus user friendliness

I have read these threads, but they don’t seem to answer my confusion: How to create Multiple Store with different domain in Magento http://www.ecommercegorilla.com/how-to-set-up-multiple-store-...
2
votes
1answer
53 views

Script is not calling on Homepage Banner slider

https://www.depoto.com/ is my website. I have used the weltpixel banner slider extension. When i refresh the website, The banner slider is not working properly.
2
votes
0answers
34 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
1answer
49 views

How can I add an attribute to related products?

I would like to Add the sku to the related products. I am in the template Magento_Catalog/templates/product/list/items.phtml. This is what it looks like now- <?php /** * Copyright © Magento, Inc. ...
0
votes
1answer
34 views

Expose feed file in /pub

I dare say this is a newbie question but I've not found anyone else asking it. I am going through a steep learning curve having just taken over a site running magento 2.2.6 on magestack on nginx (...
3
votes
1answer
22 views

Is there a standard way to make add a config on theme scope?

To solve a problem in an FOSS extension I need to introduce a configuration settings with the scope "theme". Is there a standard way do to such? I was thinking about extended in the theme.xml but ...
1
vote
2answers
44 views

Getting Error while calling a block `$_product->$_call()`

Fatal error: Uncaught Error: Method name must be a string in D:\xampp-7.1.23\htdocs\indiahicks\app\design\frontend\Mgs\ethan\Magento_Catalog\templates\product\view\form.phtml:19 <?php $...
3
votes
0answers
59 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 ...
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="...
1
vote
0answers
16 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.
1
vote
0answers
45 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.
1
vote
0answers
27 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
72 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 ...
2
votes
1answer
221 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
16 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
37 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
71 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
49 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
1answer
68 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
63 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
34 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
44 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
31 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
115 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
151 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
188 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
1answer
16 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
65 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 ...
5
votes
1answer
557 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. I tried to reproduce with n98-magerun2 dev:console $i = $di->create('\Magento\Framework\Image',...
0
votes
2answers
77 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
20 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 ...
3
votes
1answer
183 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
85 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
48 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
174 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-...
0
votes
1answer
203 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
19 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
110 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 ...
3
votes
1answer
136 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
30 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
155 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
128 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::...
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 ...
0
votes
0answers
26 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
54 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
0answers
45 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
17 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
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 = ...
0
votes
0answers
23 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.