Stack Exchange Network

Stack Exchange network consists of 174 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
Make your voice heard. Take the 2019 Developer Survey now

Questions tagged [magento-2.2.5]

It should be used for questions about Magento 2.2.5

0
votes
0answers
12 views

magento2 not loading custom css file that is in head.phtml on category page

My Magento2.2.5 has a custom css file that I have listed in the bottom of the head.phtml in my child theme. I list it there instead of in the default_head xml file because i need the css file to load ...
1
vote
0answers
83 views

Magento 2 need to Display the popup in checkout when product is orderedqty is greate than product qty or outofstock? [closed]

In magento 2 need to display the popup in checkout page when is orderedqty is greate than product qty or outofstock ? You can see in below image popup example.in this we have the two buttons and when ...
1
vote
1answer
122 views

Magento 2 pass multiple parameters in the admin grid action url

In Magento 2.2.5, I am sending the id in the url now, But, I want send multiple parameters in the admin grid action url. I created admin grid using layout Blocks. Not used ui component. How to ...
0
votes
0answers
8 views

Product custom brand attribute doesn't updated automatically after assigning product from brand extesnions

Please visit here to see my problem:- http://nimb.ws/JkrGdY http://nimb.ws/Qi6rBn http://nimb.ws/sb3M8p I've approximately 5k products so it's not possible to save individually, from the grid I ...
0
votes
0answers
27 views

magento 2.2.5 turn back to home when i change store view

i've an issue on magento 2.2.5. I've created two store view it/en, when I'm on product page and change store view from it to en and vice versa, I'm redirected to the home page. Someone can help me? ...
0
votes
1answer
110 views

Magento 2: How can i reload section payment Method in checkout page?

how can i reload Payment Method section in checkout page? I create a custom discount. when i set custom discount and apply, i need reload total section and payment section. I use this code: var ...
0
votes
1answer
28 views

How to get customer id using email-id without using objectManager in Magento 2.2.5

I have a customer-email on custom controller & want to get customer-id without using objectManager. how can I get? Currently, I'm getting using objectManger & here is the controller code:- ...
0
votes
1answer
60 views

Change the URL of save button in the admin grid

In Magento 2.2.5, How to change the URL of save button in the admin grid. Note: I am not creating grid through ui_component, I am creating grid using layout. Reference: Ref 1 Ref 2
0
votes
1answer
53 views

Magento 2-2.2.5 Installation problem

Magento2 2.2.5 installed in centos7 server version when installation successfully completed and use my ip in browser it loading but magento setup page is not opening. I have set up a server with Nginx,...
0
votes
2answers
31 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($) { $("...
0
votes
0answers
101 views

Magento 2 A customer website ID must be specified when using the website scope Error

I am getting this error while loading customer by mail A customer website ID must be specified when using the website scope. Here is my code: $objectManager = \Magento\Framework\App\ObjectManager::...
0
votes
0answers
43 views

In Magento 2.2.5 The Custom attributes values are not coming in Collection

In Magento 2.2.5, I am creating a Custom Product and Customer attributes. It is saving fine, but while retrieving, It is not coming in the Collection. Here is my Code. UpgradeData.php $eavSetup = $...
3
votes
2answers
165 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
1answer
28 views

Skip price rules for API-created orders

Our price rules are used for discounts. Some of our orders come in via the API. Our API orders must not have any discount applied. How can I achieve this? At the moment, price rules are applied to ...
0
votes
2answers
37 views

Magento 2.2.5 custom theme js errors

I created a custom child theme for luma and it works fine. But when I extend the layout for Magento_Theme I start getting all kinds of javascript errors which are random, sometimes they don't appear ...
2
votes
2answers
30 views

Hide block of text if there are no items to compare

I'd like to display/hide a block of text by wrapping in a PHP IF Statement. Value will be based on whether Comparable Products is not equal to "0" (or NULL?). I imagine I'd be looking at something ...
0
votes
0answers
22 views

How to make Single Product URL

Magento Version: EE 2.2.5 In my store product detail page is accessible using three urls: 1) https://www.domain-name.com/L1category/L2category/test-product 2) https://www.domain-name.com/test-...
1
vote
1answer
56 views

Get all guest & customer email id's in single collection Magento 2

I am trying to list all unique email id's (guest & customers) in admin grid to restrict specific email id to place order. For that, I got an id's from customer collection and order collection. ...
0
votes
0answers
23 views

How to add Qty Update for products in Order Summary (Magento 2)

I want to add Qty update in order summary on checkout page in magento 2 + Is there any solution for like this.
1
vote
0answers
30 views

Magento 2.2.5 | How to redirect page to payment gateway provider after clicking on place order, Custom Payment Gateway Module

I am new to Magento 2 Platform and this my first project, I have some basic knowledge about Magento. I am creating a custom payment method module and achieve the front end part means I can see the UI ...
0
votes
0answers
12 views

Create configuration for different types in shipping method magento 2

I have to integrate shipping methods in magento 2 which have different types of methods for domestic and international. International Postage Domestic Postage International Letter Domestic letter I ...
0
votes
1answer
67 views

Magento 2 Join Product Collection with Custom CollectionFactory

In Magento 2.2.5, I have Custom Model Collection (followed this tutorial). In that I want to add the Product Collection into this custom collection by default. How to achieve this.
0
votes
0answers
37 views

Admin form Save button is not working

In Magento 2, I have admin grid edit form. In that save button is not working. Here is my code: https://pastebin.com/6ADc9657 https://pastebin.com/VJiKnShj
0
votes
0answers
22 views

Magento Create from inside the admin grid edit form save

In magento 2, I want to create a form in the admin grid edit save action with another save button inside. How to achieve this. Reference:
0
votes
2answers
123 views

Filter admin grid based on the url parameter

In Magento 2.2.5, I have a custom agrid. It has edit option and url parameters. I need to create another grid in the edit page based on the url parameter. ie., I need to filter the custom grid based ...
0
votes
2answers
31 views

Magento 2 Get all attributes option in phtml

I have created an attribute with multiple options I have to get all option of in dropdown. Attribute created: country Options: India, USA, UK below is my code in phmtl file $objectManager = \...
0
votes
0answers
41 views

Magento 2: Possible useless method overriding detected

I try to override state with _afterLoad(), But I got the error messages from PHPCS phpcs: Generic.CodeAnalysis.UselessOverridingMethod.Found: Possible useless method overriding detected This is my ...
0
votes
1answer
16 views

Displaying custom attribute made add to cart and short descrption hide on product view page

I was trying to display a custom attribute to product view page and overwrote the base file with child theme but after that only the custom attribute is showing and rest has disappeared i.e add to ...
2
votes
0answers
60 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.
1
vote
1answer
33 views

How and where to add join query in magento 2 for UI components

I have referred this link Reference link Now where I have to place a code for join query multiple table for custom admin grid in magento 2 I have referred many links but got failed for ex. ...
1
vote
1answer
51 views

Magento 2: Add child div containing all items in columns

Below is my html struture of 2-column layout, <div class="columns"> <div class="column main"> ------ </div> <div class="sidebar sidebar-main"> -----...
2
votes
0answers
36 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
2answers
283 views

Magento 2.2.5 Fatal Error in Category and Search Page

It is a fatal error that happens when I open the search or try to open any category. I'm using magento 2.2.5 with apache 2.4 and php 7.1 Fatal error: Uncaught Error: Cannot instantiate interface ...
0
votes
0answers
78 views

Magento 2.2.5 customer login not working

Working on a new Magento2.2.5 install and when I test logging into the site as a customer the magento signin page just reloads with no error message shown. However in the admin panel I see my test ...
1
vote
1answer
43 views

Use datasource of admin grid in another grid

In Magento 2.2.5, I am using datasource in the grid and it is working fine. I want to use the same datasource in another grid with some filters. I am using vendorname_module_deal_listing_data_source ...
0
votes
0answers
28 views

Shipping and Billing address doesn't contain the First Name - Magento 2.2.5

Shipping and Billing address doesn't contain the First name This issue results in not allowing a registered customer to place an order if he tries to use some of the saved addresses.
0
votes
1answer
44 views

Validation of checkboxes in custom forms does not work

Check this below code. I have added one checkbox on newsletter footer subscribe.phtml. If we are custom add checkbox on this then form submit without form fill up. Site Link : http://kkmag2.dev-site....
0
votes
1answer
36 views

How to get the current category url (including the parameters?)

For instance when visiting pages like example.com/men?p=2 Already tried with getting the current category from the registry, but then i would get only the url of the category (so only example.com/men)...
2
votes
1answer
39 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. <...
0
votes
1answer
120 views

Product import through EXCEL file

I am working on magento v2.2.5, and need to upload excel .xlsx file. How to work with excel file like how will magento read excel file, then upload?
0
votes
1answer
24 views

Magento2 : Model LSD in Loop

I try to get list category with load(), but I got the error messages on code editor. phpcs: Ecg.Performance.Loop.ModelLSD: Model LSD method load() detected in loop This is my code : public function ...
2
votes
1answer
67 views

How to use store credit for a cart in magento 2 api

Magento version: EE 2.2.5 I have a customer with store credit. I created cart using rest/default/V1/customers/:customerId/carts And I added items to that cart using rest/default/V1/carts/:cartId/...
1
vote
0answers
59 views

Redirect Magento2 from subfolder to root folder

I am new to Magento. Successfully installed/implemented Magento 2.2.5. However, I installed Magento as subfolder in root. And my cart shows as mydomainname.com/Magento. I want to change it so public ...
0
votes
1answer
54 views

Magento 2 - Issue on override of Multishipping checkout model

With this question I want to go further and to exactly know if it's possible to override: vendor/magento/module-multishipping/Model/Checkout/Type/Multishipping.php so far I've experienced some ...
1
vote
0answers
16 views

how we can write wsdl.xml or wsi.xml in mageno 2.2.5?

In magento 1.9.3.9,we are added the new fields in wsdl.xml and wsi.xml. then that is looking like below image. How can i write the above code in magento 2.2.5?
0
votes
0answers
59 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?.
4
votes
1answer
25 views

M2: How to get Customer Cart Rules in My Account page

I want to filter cart rules list in my account page. I've list cart rules in My Account page "Dashboard". But I want to filter cart rules list by condition. I've configure the conditions in cart ...
3
votes
2answers
31 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', $...
1
vote
0answers
32 views

Override checkout_cart_index.xml (Magento_Checkout) for deactivating shipping-rates-validation-rules.js and shipping-rates-validator.js

What would be the best way to override checkout_cart_index.xml in order to deactivate only these two javascript files? Thanks for your collaborations <?xml version="1.0"?> <!-- /** * ...
2
votes
0answers
351 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 ...