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

1
vote
1answer
18 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
18 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
15 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
24 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
19 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
28 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
29 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
46 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
33 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
24 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
52 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
41 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
42 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
36 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
16 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
23 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
38 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 update quantity product by name. Only update by sku or name . Look my form <3 My form My controller public function execute() { $data =...
0
votes
0answers
30 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
42 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 ...
1
vote
1answer
38 views

Advance reporting is not working for Magento 2

Advanced reporting is not working for Magento 2. I have followed all the steps as per the Magento guideline. But the advance reporting is still not working.
0
votes
0answers
23 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\...
1
vote
0answers
22 views

Magento 2.2.5 product redirects to other category

I'm having a strange situation. When i select a product in my webshop, the category and breadcrumps are from a different category. Yes, the product is also available in this category, but i don't want ...
1
vote
0answers
26 views

Could not establish FTP connection, invalid host or port in magento 2.2.5

i include the use \Magento\Framework\Filesystem\Io\Ftp; at the top nd connct the ftp as $connection = $this->ftp->open( array( 'host' => '00....
1
vote
1answer
15 views

customise the invoice save option

I want to allow the invoice save action once the order is in processing state for this i have to add some logics inside the Magento\Sales\Controller\Adminhtml\Order\Invoice save file. please advice me
1
vote
0answers
17 views

Delete Product Custom Option value if it is null in magento 2

I wish to delete the custom options value of a product if it is null without deleting the option. Please provide me a solution to delete it without affecting the option
0
votes
0answers
19 views

While importing custom options for products throws exception in magneto 2

While importing custom options throws following error in Magento2.2.5 Undefined offset: 6405 in /var/www/html/xx/vendor/magento/module-catalog-import-export/Model/Import/Product/Option.php on ...
1
vote
1answer
25 views

While import product custom options throws error in magento 2

While trying to import custom options for product throws the below error. Please provide me a solution SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '4953' for key '...
0
votes
1answer
27 views

While opening PDP page throws exception in magento 2

I have imported product options in magento 2 But It throws following error, Please provide me a solution 1 exception(s): Exception #0 (Exception): Warning: Invalid argument supplied for foreach() ...
-2
votes
1answer
26 views

Remove the custom patch in magento 2.2.5

I want to remove the custom patch applied to the cloud.
1
vote
2answers
47 views

Create Attribute Set based on Default and create Product Attributes in Product Details Group by InstallData.php

I wish to do the following during a module install; Create a new Attribute Set based upon the Default Attribute Set Create multiple new Product Attributes that are assigned into the Product Details ...
1
vote
0answers
29 views

Magento2.2.5 amazon_sales_order table does not exist?

I recently upgrated a magento from 2.2.3 to 2.2.5 and now when people place an order I am seeing errors in the system.log that seem to state that there is a table related to amazon_sales_order that ...
1
vote
1answer
40 views

Magento2.2.5 How to access Magento Log file for Web API?

we use the Magento api to update our warehouse system when we recieve orders and then update magento again with inventory updates from our warehouse system. However we recently had an order that gave ...
1
vote
0answers
24 views

Magento 2 : SMTP email not received in LIVE site but working in localhost

Am using this extension for SMTP email- https://www.mageplaza.com/magento-2-smtp/ .This extension work perfectly in my localhost but live site its not working and no email are received for forget ...
0
votes
0answers
31 views

Magento2: how to add/remove a form field using javascript

I have created a custom form in admin in which I need to show buttons such as "Add more" and "Remove". The scenario is exact that which is discussed here: https://stackoverflow.com/questions/...
1
vote
1answer
101 views

Multiselect category dropdown on admin form

I have created custom CRUD on new database table. I just wanted to save comma separated categories in a field. I have this code for multiselect categories: $fieldset->addField( 'categories', ...
0
votes
1answer
21 views

Render Column for Widget Grid Column (Sales Order Select Customer Grid )

I need to render email address for all customer while creating new order from admin. Adding renderer class for other grids is simple, But how to add renderer class when creating column using Magento\...
0
votes
0answers
35 views

Magento 2.2.5 - 2.2.7 excesive cron logging in system.log

Magento 2.2.5 brings excesive logging to system.log which can grow up to 100 - 150 MB in 1 month. This will obviously be a problem for many shops. There is an official response to this on github (...
0
votes
1answer
44 views

Unable to load the collection in DataProvider by matching values in array

I am trying to fetch Collection of specific ids by using filters in my custom DataProvider public function getData() { $id =$this->request->getParam('id');//returns 5 $answerids=$...
0
votes
0answers
19 views

Magento 2, adding price value 1,000 convert and save as 1.00, issue

https://github.com/magento/magento2/issues/13851 In the above issue, in Magento 2 they did that on every price field, but they don't do that if Magento prefilled those values. For example, if we can ...
0
votes
3answers
46 views

Magento 2.2.5, Is possible to restrict place order based on the customer group?

In Magento 2.2.5, I need to restrict place order for some customers who assigned to certain group. Is any possibility to restrict place order based on the customer group?
1
vote
0answers
18 views

In Magento 2.2.5, logo is not changing in custom mail

In Magento 2.2.5, I am adding some custom mail functionality. It is triggering with the content. But the mail logo is not changed. Here is mail template content. Changed mail logo in Admin panel - ...
2
votes
1answer
23 views

Use Product Descriptions from “All Stores Views instead of Default Store View”

I'm relatively new to Magento, I'm on version 2.2.5 . The product descriptions on my site are correct under the "All Stores Views" however those descriptions aren't being applied to the "Default Store ...
0
votes
1answer
15 views

In Magento 2.2.5, custom login link is showing login even customers logged In

In Magento 2.2.5, I have used the custom phtml file in app/design/frontend/vendor/theme/Magento_Theme/templates/html/topmenu.phtml to add the customer header links with following code. But it is ...
0
votes
0answers
29 views

Captcha not showing but still giving incorrect captcha validation error although it's showing on default magento pages forget password

I enabled the captcha from store configuration for all of login, create account, contact us pages but still not showing on those pages although it gives error Captcha incorrect validation However, ...
0
votes
0answers
7 views

Restrict regions on Shipping Address checkout

Does Magento have any way to select which regions show and what not on region_id dropdown? But only on Checkout's Shipping Address dropdown, on My Account Edit/Add Address and Billing Address I want ...
0
votes
1answer
33 views

Magento 2 multiple websites. Do i need to set “Add the store code to the base URL” to yes

Following documentation in admin panel I've added second website. On each website (default and new) I have exactly one unique store and for each store I have exactly one unique view. Like below ...
0
votes
0answers
31 views

Magento 2 keeps adding category path to product url in multistore

I have a little problem in Magento 2 Multistores... My URL rwewrites keeps adding category paths to products urls even when config settings "Use category path for product URLS" is set to "no".. I ...
0
votes
0answers
33 views

Auto select first color swatches image in product page

I am currently using this code for auto selecting the first swatch option _init: function () { if (_.isEmpty(this.options.jsonConfig.images)) { this.options....
1
vote
1answer
39 views

User agent exceptions override product and CMS pages rules

I am trying to implement this dynamic grid/ to add multiple records it is working fine but I am getting this "User agent exceptions override product and CMS pages rules." all over it any idea how to ...