Questions tagged [magento-2.2.5]

It should be used for questions about Magento 2.2.5

344 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
0answers
62 views

Magento 2.2.5: Adding cart-attribute for cart-rules / conditions tab

I use a product attribute called "carton" which describes in how many carton a product is packed. I want to add a cart-rule which counts the amount of all cartons in the cart (accordingly the amount ...
4
votes
0answers
127 views

Magento 2 Enterprise : Get Coupon code Expiration Date

I am using Magento 2.2.5 Enterprise Edition.I created cart price rule from admin.Now I want to display coupon expiration date in front end but in enterprise edition start/end date is saving by ...
4
votes
0answers
236 views

No such entity with cartId = 0 on checkout page

Customer lost session occasionally on checkout page. After login when i go to checkout page it's shows me below error but after refresh 4 5 times customer session restore again but after refresh ...
4
votes
0answers
283 views

Magento 2.2.5 - Categories are not getting saved in the database

In my Magento 2.2.5 Store, When I try to edit the existing categories content and press the save button, the categories content stays the same, there is no change being reflected in the admin panel,...
4
votes
0answers
444 views

Undefined index: websites in ..module-config/App/Config/Type/System.php

After trying to update from 2.2.5 to 2.2.6 I ran into an error message that it could not write to one of my files and thus needing to do a rollback on some of my backups. For some reason, I cannot ...
4
votes
0answers
113 views

Getting error in extension manager, Check Component Dependency & 2 php errors

Trying to find solution from many days on google but nothing found helpful.
4
votes
0answers
58 views

Salesforce Magento integration

I'm implementing salesforce magento integration through REST API callout. I have successfully got the response from magento and saved it in salesforce database. But facing issue while using ...
4
votes
0answers
369 views

Magento 2 Checkout Error Uncaught TypeError: Cannot read property 'getCacheKey' of null

I have an issue on checkout page and we are getting below error on console. It looks like address object is not loaded correctly on quote object and we are getting different error each time. This ...
4
votes
1answer
46 views

URL Building Changes in Backend from 2.1.12 to 2.2.5

We are facing a regression during an Magento update from 2.1.12 to 2.2.5 which I want to understand better. Our code looks like this and is in a block on a tab of the backend order sales public ...
3
votes
0answers
31 views

Magento2.2.5 Luma child theme not using default_head_blocks.xml in child theme folder

I have a Magento 2.2.5 based multi-store view website. What we want to do is take the Luma theme and create a custom child theme from it. Each store view (we have 3) would use its own child theme of ...
3
votes
0answers
27 views

Magento 2 - All Products Page with filters and Pagination

I need to create a page where product collection from all categories or you can say from root level category (Default Category) generally it has id 2. I need to make sure that the page is look like ...
3
votes
0answers
18 views

Custom EAV Category Attribute is Returning a Different Value

I have a custom EAV attribute called thumbnail_link_text which is a category attribute. When I try to display it either on the frontend or backend using the default accessor like this, echo $category-...
3
votes
2answers
429 views

Magento2 : Cron run not working

Below given is crontab.xml <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Cron:etc/crontab.xsd"> <group id="...
3
votes
1answer
33 views

Notify me when this product is in stock on product listing page in magnento 2.2.5

I want to add "Notify me when this product is in stock" on product listing page in magento 2 . by default if product is out of stock this comes in the product detail page. but i want in the product ...
3
votes
1answer
33 views

How can we write the below code in magento 2.2.5?

How can we write the below code lines in Magento 2.2.5 controller and model? $order = Mage::getModel('sales/order') ->getCollection() ->addFieldToFilter('quote_id', $...
3
votes
0answers
510 views

Magento2 - Full page cache issue with multiple stores

I have multiple storeviews for my Magento2 website. It is working fine until Full Page cache enabled from Store -> Configuration -> Advanced -> System -> Full Page Cache -> Built-in ...
3
votes
1answer
49 views

Magento 2 Ajax Add to Cart for recently viewed products

I am struggling with enabling Ajax Add to cart option for recently viewed products. Currently, the page is reloaded while adding the product to cart. In place of that, I have to use AJAX add to cart ...
3
votes
2answers
50 views

How to add more than one frontname for same Module in Magento 2

We need a module to function differently and show different UI if its comes with different frontname i.e If Externalvendor/Module1 has routes like <router id="standard"> <...
3
votes
0answers
156 views

Magento 2 : Data binding in Payment Method Selection

I want to display a custom field in "cash on delivery" payment method. I have created a custom module for this. But the field displays in all payment methods. Here is my code html <div class="...
3
votes
0answers
50 views

Product's “Layout Update XML” code disappears from the site every 24 hours

I have some products with "Layout Update XML" Design updates (simple XML pointing to a template file; very basic and in the correct format). Every 24 hours after a cache flush, the code vanishes from ...
3
votes
0answers
461 views

uncaught typeerror cannot read property 'dialog' of undefined magento 2

I am getting this error on checkout page every time and checkout not working any idea how to solve it. uncaught type error cannot read property 'dialog' of undefined Magento 2
3
votes
2answers
78 views

custom option when product add to cart in magento 2.2.5

<?php namespace Ecomsolver\Measurement\Observer; use Magento\Framework\Event\ObserverInterface; use Magento\Framework\App\RequestInterface; class SetAdditionalOptions implements ...
3
votes
4answers
281 views

Magento 2.2.5 page and block module not displaying grid and button

I just installed Magento 2.2.5 but in admin > content > page the page grid and the button are not displaying. Even in the block the same issue happens, records grid and button is not displaying. ...
3
votes
0answers
295 views

Magento 2.2.5 Product attribute “use in search” RESETTING after index:reindex

UPDATE:: Today i discover that happen when the cron run index:reindex How can I fix? Today during configuring manufacturer attributes I found a bug or however an anomaly on Magento 2.2.5 I, ...
3
votes
0answers
58 views

Magento 2 Sizes showing in a wrong order for configurable products

I have just upgraded my Magento to 2.2.5 via composer. I realized that the Sizes from the dropdown on product page is displaying in a wrong order, see screenshot. But in Admin, under product ...
3
votes
0answers
309 views

Company Column on Sales Grids (Order, Invoice, Shipment, Credit Memo)

This is a continuation from my previous question: Billing and Shipping Company Column on Sales Order Grid I was able to place the Ship-to and Bill-to Company Columns on the 4 Sales Grids, but I am ...
2
votes
1answer
30 views

Magento 2.5 show out of stock products at the end of the catalog

I want to display out of stock products at the end of the category page of Magento 2.5. I add this code: vendor/magento/module-catalog/Block/Product/ListProduct.php $collection = $layer->...
2
votes
0answers
34 views

Thumbnails not appearing in either back or front end of store

Weird issue. I uploaded images to each of my products and until recently, the thumbnails appeared both on the back end and the front end of Products. However, lately, that has changed and now even ...
2
votes
1answer
22 views

Magento2: unable to override methods in Magento\Catalog\Model\ResourceModel\Product\Collection

I want to override the model class(Magento\Catalog\Model\ResourceModel\Product\Collection.php) Flow the below process to override the addUrlRewrite method but not working. di.xml <config xmlns:...
2
votes
0answers
15 views

Product page count and record count issue on listing page

Unable to change the record on listing page it shows static number for all listing page as shown in the image It display 10000 for all listing page using $this->_productCollection()->getSize() ...
2
votes
0answers
52 views

Magento2.2 product import using Magmi

Is Magmi import is compatible with Magento2.2? Is it compatible with grouped and simple products import? Where I can find the Latest version of Magmi?
2
votes
0answers
86 views

Magento2 : Admin Url 404 Error Found

When I am trying to access admin URL it gives 404 error page in magento2. Also, I tried to clean cache rm -rf var/cache/* but not working
2
votes
0answers
29 views

Permission issue when installing with nginx

I have installed different Magento sites using nginx. I have 5 sites, 4 of them use php7.1 and there's one that uses php7.0. I have created two different sites-availaible: And both of them have ...
2
votes
1answer
35 views

Magento2: How product per page option working?

Issue: Can any explain me regarding how the url is created on change of product per page option in magento2. You can check in image on change of limit the value is binded to url I want to know ...
2
votes
1answer
287 views

Magento 2 - read and write connection for custom query

I am using Magento 2.2.5 EE. I need to write some custom queries Select and Insert I know how to write custom query, its simple: Create new connection: $objectManager = \Magento\Framework\App\...
2
votes
1answer
299 views

How to translate shipping method titles

I need to change the text for a shipping method title. Currently we have Federal Express Express Saver I would like this to say Express Saver (3 Day Delivery) instead of Express Saver on the ...
2
votes
0answers
465 views

Magento 2.2.5 How to add google captcha to newsletter form without use any third party extension

There is so many extension available for Google Captcha implement to Magento 2 newsletter form or any other form. But i want to add Google Captcha from scratch, without using any third party ...
2
votes
0answers
136 views

Magento2: How can I set to a model in “specificcountry” on config.xml file?

I want to set default values with a model from declared class in system.xml. The result of the model is extracted from the database, from a custom table and the result looks like this: AF,AL,DE,BE,FR ...
2
votes
0answers
80 views

Magento 2: Setting theme ID is not is not working by using config:set

I found xpath design/theme/theme_id in vendor/magento/framework/View/DesignInterface.php:28. I'm trying to set new ID and there is an error: magento config:set design/theme/theme_id 7 The "design/...
2
votes
0answers
75 views

Element 'argument': The type definition is abstract and The state object to be removed is not the first in the list

I'm throwing this error on my /success/ page and it seems like such a generic error. It looks like further down the trace it's pointing to stuff like GoogleTagManager and other third-party modules ...
2
votes
0answers
373 views

Magento Cloud stuck on Building after Re-deploying environment

Recently I tried to add a domain from my Magento Cloud Dashboard. The Log throws me a error with SSL, but the real problem is that after that error it go next to "Re-deploying environment" and it has ...
2
votes
0answers
220 views

Magento 2 Filter admin grid collection by default

In Magento 2.2.5, I want to filter the custom grid using custom attribute. I followed this link. But it is not working. Is any alternate solution there.
2
votes
0answers
64 views

Magento 2 Region list not filter for default country on billing address for first time

There are many country region available in region list. The issue arises first-time page load on the billing address of checkout. Even default country has been set up the USA, All region list has been ...
2
votes
1answer
67 views

Magento 2.2.5 custom js not working when I call it from phtml file using uiComponent

I have created admin form using uiComponent. I have called phtml file using <htmlContent name="html_content"> in xml file. I tired to call custom.js using below code but its not working. <...
2
votes
1answer
102 views

Export custom option via REST interface

We have created a product with a custom option (free text field). The customer enters data, now this data should be exported via curl -X GET --header "Accept: application/xml" --header "Authorization:...
2
votes
0answers
294 views

Magento2 get url of all CMS pages using their identifiers

I am preparing one common array which returns the complete details of all CMS pages. In this array, I need to pass the URL of all cms pages. I do have an identifier of all pages. How can I get the URL ...
2
votes
1answer
186 views

Removing link from root category on topmenu

I am trying to make the topmenu root category not clickable using this method https://community.magento.com/t5/Magento-2-x-Programming/Remove-links-to-top-categories-in-menu/td-p/77072 but it ...
2
votes
0answers
27 views

Magento 2: How to remove Theme block in admin?

How to remove this block in back-end Categories > Design > Theme block New product > Schedule Design Update > New Theme block thank you!
2
votes
1answer
246 views

How to prevent cart empty after checkout payment failure in magento 2.2.5?

In Magento 2.2.5, after payment failure cart is going empty. I want to keep this, that if payment failed cart will not be empty, that will show last cart items. I'm using the PayUMoney Payment Method....
2
votes
0answers
28 views

After update from Magento 2.1 to 2.2.5, categories are not displayed because is_active is missing

After an update to 2.2.5 it turned out, that all categories are not shown anymore. Debugging the issue revealed, that $category->isActive() just is null. Debugging further showed that ...