Stack Exchange Network

Stack Exchange network consists of 175 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 [magento-2.2.5]

It should be used for questions about Magento 2.2.5

2
votes
1answer
78 views

Magento 2 - All products attributes updated after update from collection

I have got collection in $collecction from Magento\Catalog\Model\ResourceModel\Product\CollectionFactory with some certain conditions I am updating a custom attribute viewed_count in foreach loop ...
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:...
1
vote
0answers
7 views

City load According Country wise In magento2

I want to city load on the checkout page when customer Select Country / State then City load accordingly, So anyone has the best idea how to do this or any extension have like this, please suggest me!
1
vote
1answer
17 views

Invoice Increment ID Change

I am trying to change my Invoice increment ID through MYSQL table Current Invoice ID is 000000002, I want to start next invoice Id from 200000001 So want to add "2" at the start of invoice ID, When ...
0
votes
2answers
27 views

Magento2 : Get Category Ids from product import csv

product import csv containing category data which is given as below Default Category/Diagrams/Business,Default Category/Diagrams/Strategy,Default Category/Diagrams/Planning,Default Category/...
0
votes
1answer
21 views

Magento2: Add product to parent and child categories on import

I am trying to import products in Magento2.2.5 Products have many categories : e.g Default Category/A1/A2/A3, Default Category/B1/B2/B3 When i check the product configuration, the product only has A3 ...
0
votes
0answers
6 views

Deposit-calculation (Pfand) transfer to SAP not working correctly

We are adding an extra Product to the card with the deposit-price if someone orders something with deposit, the calculation in magento (ver. 2.2.5) works absolty fine, but in the transfer to SAP the ...
0
votes
0answers
15 views

products id in export sheet does not match with magento back end ids against their products name

i want to export my products from magento back end with products ids as when we export csv of products ids should be matched in csv and back end against their products name but when i export sheet and ...
0
votes
1answer
19 views

Simple Product is not associated with configurable product in magento 2.2.5?

I have Configurable product with 146 associated products.I want to add another associated product to configurable product.I am able to select the simple product but its not showing after save the ...
2
votes
0answers
13 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() ...
1
vote
0answers
12 views

Product attribute value visible in Catalog table but its field is empty in Edit Product form

I have a strange issue with Magento 2.2.5 where two of my product attributes have its values showing in the Catalog Table, but when you click into the product itself to edit, the field for that ...
2
votes
4answers
59 views

Add Bootstrap to magento 2.2.5

I have to add bootstrap 3 or 4 to my custom theme (magento 2.2.5) I tried this: How to use bootstrap in my custom theme and this Bootstrap in magento 2 theme but these ways don't work with magento 2.2....
1
vote
0answers
31 views

Magento 2.2.5 configurable product is not open in admin?

I have created configurable product which has almost 2000 products associated. I want to edit some attribute but it is not opening and showing an warning: Warning: DOMDocumentFragment::appendXML()...
1
vote
0answers
18 views

Get Conditions from Catalog price rule

I need to get Conditions of Product from Catalog Price Rule in my custom form. I went through core files to get it, but I was able to get Cart Price Rule Conditions by using <container name="...
-2
votes
1answer
44 views

Magento 2 : Issue on setup:di:compile

When I run the command php bin/magento setup:di:compile I am getting an error as below PHP Fatal error: Uncaught Error: Cannot instantiate interface Symfony\Component\Console\Output\...
2
votes
0answers
39 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?
0
votes
0answers
18 views

Product position in category magento 2.2.5

I've got problem when i want to set position in Catalog << Categories << Products in Category. For example i set the position item from 0 to 20 and save changes. After the changes are ...
0
votes
0answers
17 views

magento 2.2.5 alphabetical Layered navigation

In our magento 2.2.5 based website we want to display the layered navigation in alphabetical order. I found code online to do this but with no explanation on what to name the files or where to put the ...
0
votes
0answers
29 views

Element 'css': This element is not expected in magento2.2.5

1 exception(s): Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'css': This element is not expected. Line: 542 facing this issue in 2.2.5. My store is working fine but ...
2
votes
2answers
113 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="...
2
votes
0answers
39 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
0
votes
0answers
42 views

Error 500 on product detail page in Magento2

When I am trying to open product detail page I am getting error Http Error 500. Also, no log is generated to fetch any error. Everything else works fine except the product detail page. I did cache:...
9
votes
1answer
134 views

Magento 2 - Store disable issue in Multi stores website

I am working on multi store website, as far I know person should be able to disable store view / website if that is not a default store view / website. I want to disable some of the store views but ...
0
votes
0answers
10 views

custom updation in after payment selection the shipping price must have change in checkout sidebar of magento 2.2.5

below is the code from which i need to set the shipping Rate but no able to set shipping rate. setSelectedShippingRate: function (data) { var obj = getData(); obj....
0
votes
0answers
27 views

Magento2: unable to call catalog_product_view_type_downloadable.xml in magento2?

I have override the catalog_product_view_type_downloadable.xml in my module as MyVendor/Downloadable/view/frontend/layout/catalog_product_view_type_downloadable.xml But unable to call the changes ...
0
votes
2answers
108 views

Error when upgrading from magento 2.2.5 to magento 2.2.8

When upgrading Magento version 2.2.5 to version 2.2.8 it throws the following error Problem 1 - Can only install one of: temando/module-shipping-m2[1.3.10, 1.3.7]. - Can only install one of: temando/...
0
votes
1answer
49 views

Magento 2.2.5 - Javascript intermittent loading errors when FPC cache enabled

I have been debugging my Magento 2 build and I have found that when cache is enabled I see intermittent JS loading errors. If I disable the FPC cache the errors stop and the page works correctly (...
0
votes
2answers
64 views

Readiness Check Failure in Magento 2 [duplicate]

I am getting the below error on updating a marketplace extension in backend (System->Websetup Wizard->Extension Manager). Check Cron Scripts Cron script readiness check failed. Hide detail ...
0
votes
0answers
29 views

Magento Cloud: error in admin on copying custom options

Getting this error in admin pannel of Magento Cloud instance when copying custom option of one product to another via action. I Think It seems as some permission of generated and cache folders. Any ...
1
vote
1answer
69 views

Magento2 - Is it possible to get specific store url in cms block?

I am trying to get store URL or base URL for a specific store in cms block. I have tried {{store _store="1"}} Also, {{config path="web/secure/base_url"}} I wanted to know if this is going to work ...
1
vote
1answer
21 views

Magento2.2.5 : How to maintain a session value in product detail page to custom controller page?

I implemented some custom options in the product pdp page. i.e, i have to engrave the product in frontend(eg.pendant FRONT SIDE) as well as the backend(eg.pendant BACK SIDE) without refreshing the ...
3
votes
1answer
24 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 ...
0
votes
0answers
21 views

Error Class not found before deleting generated folder

I have created a preference to override a class but constantly getting error "Class not found" before deleting "generated" folder content: Error: Fatal error: Uncaught Error: Class 'Vendor\Module\...
1
vote
2answers
26 views

Magento2: Remove Sample field from Downloadable Information

I want to remove sample field from downloadable information as highlighted in image below: Can anyone give me solution. Thanks
2
votes
0answers
23 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
30 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 ...
1
vote
1answer
32 views

Magento 2.2.5 Emails are not receiving

I am using Magento 2.2.5. Order confirmation emails, Invoice emails and any of the custom emails are not receiving to the particular domain based email. Client has the server on go daddy VPS. Mails ...
1
vote
1answer
81 views

How to override protected _prepareLayout function in block in Magento 2?

I wanted to make changes in _prepareLayout() in block. Code is as follow: Block: Magento\Catalog\Block\Category\View protected function _prepareLayout() { parent::_prepareLayout(); $this-&...
2
votes
1answer
74 views

Category URL path is a 404 when using category name in URL path

My Magento store is setup with my product category titled 'Technology'. There are several subcategories that display static blocks only. The URL path to the subcategories should be /technology/...
1
vote
2answers
60 views

How to share product image and details in social media in Magento 2?

I want to share product image and details to social media in Magento 2 using addthistool. We have added http://s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5b30cd59923bb69c js in header part ...
2
votes
1answer
68 views

Disable flush image cache button in the backend in magento2

Go to Admin > System > Cache Management I want to disable flush image cache button in backend given Which is highlighted in bellow image for security purpose. Can anyone give me solution. Thanks.
0
votes
0answers
20 views

Product redirect urls are missing when a product is been updated from API

I have integrated the magento with another management system. When the product url key is been updated from there, system hits the API of magento to sync the changes but magento misses to create the ...
1
vote
0answers
53 views

How to redirect to 403 custom error page in magento2 from controller

I am trying to redirect to custom 403 error page. I have created plugin for controller as follow: etc\di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
2
votes
2answers
86 views

How to create custom route in magento2

I have used below code in di.xml <type name="Magento\Framework\App\RouterList"> <arguments> <argument name="routerList" xsi:type="array"> <item name="...
1
vote
1answer
65 views

How to create custom 403 error page in magento2

How can I create a custom error pages in my Magento 2 site. For example this pages: 500, 401, 403, and 404. I tried for create block: $layout = $this->_view->getLayout(); $block = $layout-&...
1
vote
0answers
20 views

How to create a customer attribute only for one store?

I can create a customer attribute using below script: <?php namespace Vendor\CustomerMobileNumber\Setup; use Magento\Framework\Setup\InstallDataInterface; use Magento\Framework\Setup\...
1
vote
0answers
34 views

Magento2.5 Related Products image url path incorrect after moving website

I recently moved a Magento 2.5 based website to a new server and now on the product detail page the related products the product images are not loading. Upon inspecting the image tag I see the url is ...
1
vote
2answers
46 views

How to save stock taking by name product - update quantity by name product

I wrote update quantity product by SKU, but I also want to update quantity product by name. Only update by SKU or name. Look my form <3 My form My controller public function execute() { $...
0
votes
0answers
63 views

Magento2 - Get store url for specific store in static cms block

I have multistore website in Magento2 Now how to get the above store-specific urls in static block by using the {{store url=""}} Right Now the above url fetches the current store url but i want ...
1
vote
1answer
78 views

Magento2 : module created but when trying to display the grid in admin getting the error as

I am new to magento and learning to create a module in magento. Fatal error: Method Magento\Ui\TemplateEngine\Xhtml\Result::__toString() must not throw an exception, caught TypeError: Argument ...