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 [magento2.3]

Denotes questions related to Magento CE and EE 2.3.x

2
votes
1answer
18 views

How to Unset the shipping method from quote in magento 2?

I need to unset the shipping method if it was selected by the customer based on some condition. I tried $('#shipping_method').prop('checked', false); unchecking the radio button of that particular ...
0
votes
1answer
31 views

Magento 2.3.0 + elasticsearch 6.4.2

I'm trying to set up docker for magento 2.3.0 and elasticsearch 6.4.2 After containers are up i can connect to elasticsearch through browser and set up connection in magento 2 admin panel with ...
1
vote
1answer
34 views

Magento 2.3 - Fetching child/associated products of configurable product only returns In Stock products

In order to fetch all associated products of configurable product. I used this code $childProducts = $configurableproduct->getTypeInstance()->getUsedProducts($configurableproduct); It return ...
1
vote
0answers
38 views

How to call my custom countries dropdown list in magento2

I need to call my custom countries dropdown list in magento2 checkout page. how to replace the default to my custom dropdown. thanks in advance..
-1
votes
1answer
34 views

addFieldToFilter in magento2 returning same data everytime

addfieldtofilter in magento2 behaving weirdly I have code foreach($userIDs as $singleUserID) { $userid=$singleUserID['user_id']; var_dump($userid);//...
1
vote
1answer
36 views

Magento 2.3 Image upload field on CMS Page

I followed the steps from the following post (Magento 2 : Add Hero Image Upload Field on CMS page) to create an image upload field on the CMS page. I managed to create the field on the CMS page, as ...
2
votes
2answers
97 views

How to overwrite .php file of lib directory?

Any one tell me how i can overwrite this file in magento 2.3 Path: Magento2\lib\internal\Magento\Framework\Webapi\Rest\Response\Renderer\Json.php
0
votes
1answer
29 views

checkout_onepage_controller_success_action event save entry in custom table on order success in magento2

i have created event and observer checkout_onepage_controller_success_action now I want to save data in the custom table of order success when order is placed event.xml <?xml version="1.0"?> &...
1
vote
0answers
20 views

Magento 2 amazon pay not working as expected only on product page

Magento 2.3.0 I already set the configuration for Amazon seller and all working well except product page. Minicart button and product page button not working on the product page. But on another page ...
1
vote
0answers
18 views

Need only product and category data in data migration

I am doing Magento data migration from 1.9.2.4 to 2.3.1. I need only and only product, category and attribute data. I am using new and different theme in 2.3.1, Ultimo. I don't want any cutomer, ...
2
votes
1answer
38 views

Save Button Redirecting to Same Admin Form in Magento 2

I am working on a custom module in magneto 2. i am creating an admin form using UI Component, when i click on save button Page redirects to its self Vendor\Module\Block\Adminhtml\ProductSliders\...
0
votes
0answers
19 views

Can Virtual Products Have Swatches?

So we have created a configurable product which was two variants for different colours. These two colours have been created a virtual products. In the frontend, if I go to the configurable product I ...
0
votes
1answer
26 views

Magento 2.3 products not visible

After migrating data and products from Magento 1.9 I can see all my categories and products available in the backend. But not on the frontend. I've checked all options; Products are "enabled" ...
2
votes
1answer
34 views

Duplicate entry '1-Migration_Default' for key

I have faced following error while running data migration for 2nd time from 1.9.2.4 to 2.3.1 SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1-Migration_Default' for key '...
3
votes
2answers
55 views

Magento 2 - Customer/Token Rest API issue

Customer is signup through rest api in magento 2.3 successfully. after signup, I am unable to get customer's token through customer/token rest api. Api returns following error: Any help, experience ...
3
votes
1answer
40 views

Magento 2.3.0 How to add review form in custom module?

I would like to add a review form in my custom module front end page. On this page, I have displayed several selected products. I want to display a review form in front of each product each review ...
2
votes
0answers
19 views

Magento 2.3 - Paypal Credit Wont Go away from MiniCart

I 100% have Paypal Credit disabled in all sections of Configuration -> Payment methods. The only section enabled is Paypal Express Checkout, and "advertise PayPal Credit" is definteluy not filled in....
1
vote
1answer
31 views

Specialprice & finalprice returns no decimals

Magento 2 returns regular price differently from special and final price. Expected result: $product->getPrice(); // 89,95 $product->getPriceInfo()->getPrice('regular_price')->getAmount()-&...
2
votes
0answers
13 views

Magento 2 - sell product grouped by quantity

My client want sell their product by quantity for exemple : Flowers sell by 10qty = 10$,20qty = 15$,30qty = 22$ without the customer can edited the quantity salled. And he want to manage the ...
1
vote
0answers
33 views

504 gateway timeout while import customer address CSV In Magento2

http://website.com/admin/admin/import/validate/key/40cc16dabfa0d1fb09a6cb9e62433b9880e4f3f0e024eb1c517d832fa47c225d/?form_key=s235x0mqERyjXLqX 504 (Gateway Timeout) `validation.js:185 while ...
2
votes
0answers
21 views

when register in magento2 getting no entity

when I'm registering magento2 getting an error like Exception #0 (Magento\Framework\Exception\NoSuchEntityException): No such entity with email = prasad@value22.com, websiteId = 1 Exception #0 (...
2
votes
0answers
14 views

Show COD Payment Method as Disable in Checkout if product with Some attribute in the cart

I have to display COD payment method but as disabled in payment step if a product with Some attribute in the cart. Please help me.
1
vote
1answer
29 views

Magento 2: I need to run observer in crontab.xml. But it is not working

I am running observer in crontab.xml. This is not working. Here is my code <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
1
vote
1answer
24 views

I have show this type Order ID - Order Data - Order Status and I click on order id then redireck go to order details page in magento 2?

I have show this type Order ID - Order Data - Order Status and I click on order id then redirect go to order details page ? how to do this ? exmaple order id is 2 then I click on 2 then go to order ...
0
votes
1answer
19 views

Declarative schema approach to make customer's lastname optional

With pre-2.3 Magento versions we were able to write UpgradeData code and make customer's lastname optional as mentioned here: Magento 2 : How to make “lastname ” optional in customer registration form?...
0
votes
1answer
41 views

Data migration from 1.9.2.4 to 2.3.1 - Failure

Please Help me on this, I have migrate data from magento 1.9.2.4 to 2.3.1 There is a error like this :- Notice: Undefined offset: 19 in C:\xampp\htdocs\magento\vendor\magento\data- migration-...
3
votes
0answers
36 views

Multistore Images are not coming after Upgrade 2.2.6 to 2.3

I have multiple stores setup with more then 100K products and 500+ categories. So my issue is when I upgrade Magento 2.2.6 to 2.3 the product images are coming properly from main store but some ...
6
votes
2answers
100 views

Empty Collection :: CollectionFactory Approach and getCollection approach both give empty result

I have created a table in my database using db_schema.xml and then populated that table with sql insert commands directly in mysql workbench. My model code is <?php namespace Lmap\...
2
votes
2answers
40 views

addStoreFilter() is not working in Magento2.3

I need to filter the products by store. However, after many try for almost a day, I can't filter products by store. $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); ...
1
vote
0answers
21 views

Magento2 license per domain

I want to set license to my own extensions, mean that want to sell my extensions per domain license like https://landofcoder.com/ modules. what should i do?
1
vote
2answers
33 views

Get Product Id On Product Page

How can i get product id on product page without registry? Such as class registry is deprecated in magento 2.3
1
vote
0answers
21 views

Unable to know magento version installed

I have installed Magento 2.3 using composer, now in admin, I cannot see Magento version it show as below : Magento ver. No version set (parsed as 1.0.0) EVeI i tried running below command from ...
1
vote
0answers
18 views

what is the best way to copy live data to staging with most recent important data

I upgraded to 2.3.1 from 2.1.x copied the old site to new server and everything has been upgraded working!! I plan to change the DNS when ready. now i need to grab the most recent order and costumers ...
2
votes
1answer
43 views

How to get custom local storage value in magento2?

How to get custom local storage value in magento2? I need to get the custom local storage value in php file . How to do that Thanks.
2
votes
1answer
22 views

Disable email notification for specific customers

Please can any one help me on this, I would like to disable email notofication for customers, which have a flag non_email_customers set to true. I Have Try this way. i have created a plugin for: ...
2
votes
0answers
27 views

Magento 2.3.1 upgrade issue : Fatal error: Uncaught TypeError: Argument 1 passed to Zend_Mail_Transport_Abstract::send()

As I have upgraded the magento system version-2.2.3 to version 2.3.1. I am facing the following error during the customer registration registration from front-end. I am using Neklo SMTP mailer ...
1
vote
1answer
31 views

Showing email in “Shipping Address”

How do I add so the customer can see which email they have entered in "Shipping Address" in the checkout? Is it possible do it in the "Address Templates" (configuration->customers->customer ...
1
vote
1answer
31 views

Magento 2.3 : Mixin function is not rendering

I have a mixin which is extending functionality for validation purpose. See the code below define([ 'jquery', 'Magento_Ui/js/lib/validation/validator' ], function ($, validatorlib) { "use strict"; ...
6
votes
1answer
106 views

How to add class in ko template in magento2

I want to add class in ko template In js: define([ 'jquery', 'ko', 'uiComponent', 'underscore', 'mage/translate', 'mage/storage', '...
1
vote
3answers
51 views

Magento2: how to debug in sales_order_place_after event

registration.php <?php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::MODULE, 'Hafiz_Sms', __DIR__ ); etc/events....
0
votes
1answer
33 views

How to create Dependent Product Attributes

I have created 3 Product Attributes, I want to make Start Date and End Date attribute to depend on Enable Attribute. When i make Enable to Yes both the Date Attribute should be displayed how can i do ...
2
votes
1answer
46 views

Invalid argument supplied for foreach() Error in magento 2.3

I am getting this error on some Products on Magento 2.3 when I try to view them: 1 exception(s): Exception #0 (Exception): Warning: Invalid argument supplied for foreach() in /www/htdocs/...
2
votes
1answer
24 views

How to fix the related product issue in admin after migrated to magento 1 to magento 2.3

I am using Magento 2.3.0 I have migrated products from Magento 1 to Magento 2. I can see related products in product detail page in the front end and it is proper and also I can find related products ...
1
vote
0answers
15 views

'Migration Meta Information' is not updating when I edit product title/name in magento 2.3

Previous question title: same 'Migration Meta Information' is displaying for all product edit page in magento 2.3 Edited question title: 'Migration Meta Information' is not updating when I edit ...
0
votes
1answer
59 views

How to do image uploader in the custom form field in magento 2 backend

How to do image uploader in the custom form field in magento 2 backen _prepareForm() $fieldset->addField( 'proimage', 'image', [ 'title' =>...
1
vote
0answers
25 views

Magentp 2 Issue Observer Calling only One Time when Get Search Term Using Observer

I want to get the search term of current user. And according to that search term get products using custom query. My observer is calling only one time when Cache is enabled. Please provide me some ...
0
votes
0answers
22 views

How import image from csv only the first import job?

I have a problem when I import image in magento 2 from csv. After first import job, in the next add/update import (with same image name in csv)I find an added image for each import For example if I ...
1
vote
0answers
35 views

Generation Error for Source Class

I'm trying to compile etc. after recently upgrading to Magento 2.3.1. I use this command: $ php -dmemory_limit=-1 bin/magento setup:di:compile which returns this error: Source class "\Magento\...
0
votes
0answers
17 views

magento 2 admin system message twice

Just updated to 2.3.0 and after deploy in admin section i had the following bug: How can i solve this?
0
votes
1answer
19 views

Product attribute drop down value show according to it's parent drop down selection

I want to product attribute(attribute2) having input type select depend on other attribute's (attribute1)value on admin side. For example, Customer module state dropdown selection based on country. ...