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

0
votes
2answers
372 views

Customer Session not working on full page cache in magento2

This is my code below $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $customerSession = $objectManager-create('Magento\Customer\Model\Session'); if ($customerSession-&...
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 ...
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
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.
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
2answers
191 views

How to give condition in xml file for showing different block in different pages

How to give condition in xml file for showing different block in different pages. Like I place a block name "Footer Block" in default xml file, and I want different footer for different pages. &...
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.
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 ...
0
votes
0answers
14 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 ...
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/...
0
votes
2answers
70 views

magento 2 add custom fields to checkout form below shipping address form

i have added custom fields (GST Refund ) to my checkout form but they are showing above "shipping new address form" Screenshot below I want to show it below address fields something like below code ...
0
votes
1answer
88 views

How to Hide/Show Customer attribute based on customer group in Admin panel Magento 2?

How to Hide/Show Customer attribute when the customer group is switched from general to the wholesale group?.
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-&...
1
vote
0answers
72 views

Home page content full screen

I am working on Magento 2.2.5, where I put an home page. The html of the home page is using bootstrap 4, to make it responsive an full width. What works well when seeing that html in isolation. ...
1
vote
2answers
90 views

How to create custom API for company and customer creation in Magento 2

I want to create a company/company admin-user in Magento 2 (as what it does from the front-end/back-end panel) via a single API call. Right now am doing with two API calls First is creating a ...
1
vote
1answer
706 views

I am getting error of page_cache is not writable in magento 2.2.5 in linux os

I am trying to add a grid in admin side. I am getting this error Fatal error: Uncaught Zend_Cache_Exception: cache_dir "/opt/lampp/htdocs/magento2.2.5/var/page_cache" is not writable in /opt/lampp/...
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-...
1
vote
1answer
35 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-&...
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
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 ...
0
votes
3answers
722 views

How to install a free theme on Magento 2.2.5 on XAMPP local host

I have installed the latest version of Magento2.2.5 without sample data using XAMPP. Now I am trying to install a free third party theme from Venus themes. I have copied the app folder from the free ...
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
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
179 views

Magento 2.2.5: How Search In Category Product Work?

I'm doing "Banner Sliders" module in magento 2.2.5, so i'm using module-catalog as example to do that. You can see that in Admin page->Catalog->Category->Products In Category and you will see ...
1
vote
1answer
38 views

Specific view for specific category in Magento 2 [closed]

How to create specific view(list/grid) for specific category. In Magento the default will be applied to all the categories, but need specific view for one category.
2
votes
1answer
345 views

Failed Check Component Dependency 2.2.5

How do I get Fix this Error? Check Component Dependency We found conflicting component dependencies. Hide detail Command "update" failed: Loading composer repositories with package information [...
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
2answers
42 views

Inline call of jQuery tabs doesn't work

Here's my problem. I have a tabs block which load perfectly when I put this script in phtml require([ 'jquery', 'jquery/ui' ], function($) { $("...
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....
-2
votes
2answers
46 views

Class Factory doesn't exists

I am after this course https://www.mage-world.com/blog/grid-and-form-in-magento-2-admin-panel-part-1.html but my magento version is 2.2.5 so its a little bit different. i create NewsFactory auto by ...
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
0
votes
0answers
20 views

Unable to get custom customer Address attribute value to customer grid

I've created custom customer address attribute through admin panel. Attribute value is inserting in customer_address_entity_int table. I'm able to see custom attribute in grid options but attribute ...
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 ...
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 '...
1
vote
1answer
1k views

Magento 2.2.5 : Add custom field in product attribute add form

Go to : Store -> Attributes -> Product -> Edit attribute I want to add custom dropdown as like Used in Product Listing dropdown. I added it. But, It's display in Properties tab instead of ...
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() ...
0
votes
1answer
80 views

bulk product images uploading fails

I am trying to bulk upload images for products I am getting the following error: imported resource (image) could not be downloaded from external resource due to timeout or access permissions in ...
-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.
5
votes
2answers
367 views

How to add new item (product) into existing order programmatically in Magento 2

I have created one virtual product in my Magento2 website. Now, I want to add it programmatically to the existing customer orders on some occasions with its custom price and name. Can someone please ...
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 ...