Skip to main content

All Questions

2,556 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
9 votes
1 answer
3k views

setup:db:status still reports "Declarative Schema is not up to date" after update

Since an update to Magento 2.3 I am experiencing the following issue: bin/magento setup:db:status Declarative Schema is not up to date Run setup:upgrade to update your DB schema and data. Although ...
Fabian Schmengler's user avatar
8 votes
1 answer
2k views

"Interface Locale" admin language problem

In my admin page, the "Interface Locale" dropdown is not working. I already switched the default language to German, but is still shows English. The same with Chinese. How can I solve this problem?
Tien Zam's user avatar
7 votes
1 answer
2k views

Magento 2.3: Customer ID from Session Returning NULL with Cache Enabled

I'm calling the following helper but getCustomerId is returning NULL when I have cache enabled. If I disable all cache, then I can return the customer's ID. <?php namespace Company\Module\Helper; ...
AJK's user avatar
  • 751
7 votes
2 answers
706 views

Magento 2 Translate modules separately?

Is it possible to keep different translate files for different modules? I have a large file with all translation in: app/i18n/magento/sv_se/sv_SE.csv This doesn't work: app/i18n/"vendor_module"/...
ineluki's user avatar
  • 189
6 votes
0 answers
1k views

Declarative schema uses padding in 2.3, gone in 2.4, do we have to use it?

In a module we're developing we declare a new database table with a foreign key relationship to the sales_order table. We want to support Magento 2.3 and 2.4, so we use the declarative schema (...
CodeCaster's user avatar
6 votes
0 answers
1k views

Cron jobs are affected due to system upgrade error in magento 2. Did any one face this kind of issue?

Recently we upgraded to 2.3.3 to 2.3.5-p1. Most of of cron jobs are get affected with error message as "The job is terminated due to system upgrade" Even though I commented out update/cron....
seeni's user avatar
  • 1,247
6 votes
1 answer
2k views

How to create Dynamic rows in custom admin form?

I want to create a form field which has dynamic rows in that page. Also, I want to store the form data in database table. I already referred this link >> https://github.com/bbakalovGlobal/...
Biren Patel's user avatar
6 votes
1 answer
1k views

Is it possible to drastically reduce the number of JS files being served from Magento without merging/bundling?

Currently my almost-new Magento 2.3.1-based website with a lightly modified theme is sending 170 JavaScript files to the browser, just to serve the home page. To me, this is not remotely acceptable. ...
WackGet's user avatar
  • 1,198
6 votes
1 answer
4k views

Magento2.3 : Layered Navigation issue

When call block on custom view: $layer=$layout->createBlock('Magento\LayeredNavigation\Block\Navigation\Category'); Exception #0 (RuntimeException): Illegal state #0 /home/httpdocs/...
Phong Ngo's user avatar
5 votes
0 answers
994 views

Increase the success/exception message time span in Magento 2

When a product adds to the cart the success/exception message is hiding rapidly, So I just tried the below way to show/increase the period of the message. But it's not worked for me. I have modified ...
Bojjaiah's user avatar
  • 3,782
5 votes
0 answers
808 views

Getting Error "TypeError: Failed to fetch" While running graphql endpoint in ChromeiQL

I am running xampp server in my windows local. I setup magento 2.3.2 with sample data in it. When i try to run graphql in ChromeiQL , it throws error "TypeError: Failed to fetch". I have been using ...
Vaibhav Munjpara's user avatar
5 votes
0 answers
1k views

Salable quantity not updated after stock import in Magento 2.3

I have multiple websites and each website have single store and a single store view. Due to which I have multiple inventory tables created in database as inventory_stock_1 (view) inventory_stock_2 (...
Nausif's user avatar
  • 1,554
5 votes
0 answers
946 views

Magento 2.3 REST API, GETs being refused access while POST/PUTs are OK

I am using some Magento 2.3 REST calls, and I am finding that for certain calls (and it seems to be consistently GETs) Magento is returning an authentication error, while for others (which seem to be ...
Matthew's user avatar
  • 61
5 votes
1 answer
2k views

How to disable PayPal express payment method on one of the store

I got 2 variations of the store - EU and USA. I need to disable the PayPal Express method on the EU store, how can I do that? There no option to disable Payment on EU store: But avaliable on default ...
Ashen One's user avatar
  • 433
5 votes
0 answers
3k views

Magento 2 - The shipping method is missing. Select the shipping method and try again

I am trying to set the Shipping Method Programatically on place Order using Below code . But I am Getting Error For your Reference I am Using https://github.com/magestat/magento2-split-order/ Code ...
Sairaj Gadekar's user avatar
5 votes
0 answers
332 views

Magento2.3: Display Custom text on Shipping Address

I would like to add custom text whenever shipping country is Sweden, Ive created Magento_Checkout module in my custom theme and added a phtml file <div class="free-shipping-info" data-bind="...
paranoid kid's user avatar
5 votes
2 answers
845 views

Magento2.3 checkout page getting error

I used magento2.3 - when i go to checkout page this error comes below.please if anyone know regarding this reply me Error occurred during "shipping_address" processing. Error occurred during "...
Rv Singh's user avatar
  • 1,637
5 votes
1 answer
454 views

What does getItemHtml() function mean in Magento 2

What does this line basically mean in the code? <?php echo $this->getItemHtml($itemStartLv, true, $id); ?> I have searched for this but no clear explanations out there or maybe someone can ...
samair ali's user avatar
5 votes
0 answers
410 views

Magento2 PWA - make live?

Little confused on this PWA stuff. Everything I've seen shows the PWA URL to be localhost like PWADevServer ready at https://magento-venia.local.pwadev:8001: How do I make this live?
jstrez77's user avatar
  • 772
5 votes
0 answers
117 views

Uninstalling extension

Up to versions 2.2 (including it) you could uninstall modules installed via composer and when you did that the method uninstall from Setup/Uninstall.php will be executed. Basically this was the place ...
Marius's user avatar
  • 199k
5 votes
0 answers
342 views

Module version in composer.json

I'm running the static tests on one of my modules and on magento version 2.3 it reports an inconsistency: Version must not be specified in the root and package composer JSON files in Git Failed ...
Marius's user avatar
  • 199k
5 votes
0 answers
3k views

After upgrade to Magento 2.3 setup:upgrade fails with sample-data installed

I've updated two installations from 2.2.6 to 2.3.0 without any problems, but next one makes some trouble. PHP 7.1.23 2.2.6 with plain sample data (no edits made in backend here) Steps: removed ...
sv3n's user avatar
  • 11.7k
4 votes
2 answers
3k views

Elastic Search: Custom sorting options not working after enable elastic search

I'm trying to add custom sorting options like newest products,price high-to-low & price low-to-high in category page using plugin. After creating plugin it's working good in category page and ...
Raj's user avatar
  • 906
4 votes
1 answer
902 views

How to display product image in summary section in bundle product page in Magento 2?

we are using Magento V 2.3.5-p1 In default Magento when we select options on the bundle product page the selected option will be displayed in the summary section. By default, only the quantity and ...
R-IphoneDev's user avatar
4 votes
2 answers
1k views

Magento 2.3 adding column to inventory_source

I've added a new column to inventory_source successfully and it's working, here is the tutorial I've followed. The issue is the data saved to the database is not showed in the form, the field appear ...
Khaled Omara's user avatar
4 votes
2 answers
1k views

getCollection return null on custom model collection Magento 2.3.4

I'm creating a custom module to make a model by using mage2gen, I named this model critic: app/code/Vendor/Module/Model/Critic.php namespace Vendor\Module\Model; use Vendor\Module\Api\Data\...
jojo's user avatar
  • 49
4 votes
0 answers
242 views

Data migration Tool sales rule actions and condition serialized

I'm using Magento Data migration tool to migrate Magento 1.9.3 to Magento 2.3.4, everything went fine until I check the log error when I went to checkout page, I found out that in sales_rule table ...
jojo's user avatar
  • 49
4 votes
0 answers
495 views

Is it possible to disable Magento Message Queues

It seems that Magento 2.3 introduced the concept of message queues where certain jobs like bulk product updates, exports and some sales rule functionality is now processed asynchronously via these ...
Mark H's user avatar
  • 53
4 votes
1 answer
611 views

How to retain customer login after switching website in Magento 2.3?

I have a website switcher button on my Magento 2.3 site (not a store switcher). When a customer logs in on the website - abc.magento.com, I programmatically switch the website to pqr.magento.com, it ...
Nausif's user avatar
  • 1,554
4 votes
1 answer
2k views

Add a new column after one column into the table using db schema

I need to add a new column after one of the particular columns in the existing table using DB schema & checked this dev doc link, they didn't mention about the before or after column. Is there any ...
Mohamed Asar's user avatar
4 votes
0 answers
210 views

Execute code after all payment methods are rendered on checkout

I need to execute a code once all the payment methods are loaded (rendered) on the checkout (using the onepage solution). I can't find the way to achieve that. My final goal is to create a custom "...
Dim13i's user avatar
  • 141
4 votes
0 answers
596 views

Magento 2 GraphQl + Elasticsearch 6, GraphQl query products do not run pass by elasticsearch

I have a problem with query: { products( filter: { sku: { like: "24-WB%" } } ) { items { sku } } } Although using search engine is "...
Nguyễn Hoàng Tuấn's user avatar
4 votes
0 answers
186 views

Magento 2 : Receive half payment from customer

Can we receive payment in two parts like receive 50% amount once order placed and another 50% once order completed? Also, we need a partial invoice as well. Is anyone have any idea we can do it. ...
poojan sharma's user avatar
4 votes
0 answers
241 views

CCAvenue payment navigation back to Magento 2.3 on react native issue

I'm building Magento v2.3 project in react-native. Also, it has multiple stores. For payment gateway I'm using CCavenue using webview. Navigation to CCavenue is done perfectly, but while returning ...
Nausif's user avatar
  • 1,554
4 votes
0 answers
425 views

Magento 2.3 Result page blank if an item is found

I am trying to search for products on my Magento 2.3 site. When the result is empty (there are no products found) it just shows a page saying there are no products found. Perfect! But when there is a ...
Litsher - Nathan's user avatar
4 votes
0 answers
43 views

Where, why and how are we using Data Providers in Magento 2

Explain how to use Data Provider, situations and requirements. Tips and advices will be a plus.
Duddy Woody's user avatar
4 votes
1 answer
767 views

Getting placeholder image instead of swatch image. Magento2.3

I have some issues with swatch images. Clicking swatches in catalog list pages loads placeholder images instead of real product images. I noticed that request to get swatch images returns only small ...
zekia's user avatar
  • 660
4 votes
0 answers
132 views

POST product with REST API doesn't save manufacturer attribute

I'm able to save a product with a POST request to my REST API endpoint. Now I would like to save manufacture attribute,too. I prepare this json structure { "product": { "sku": "code", ...
Claudio Pomo's user avatar
4 votes
4 answers
7k views

Create custom grid in admin using ui component in magento 2

I have done all necessary changes to create a grid in admin but I can not see the grid in my menu. I can see only title of a page in the menu but after that its showing blank. Module — Demo/Offers/ ...
MaNeo's user avatar
  • 41
4 votes
2 answers
655 views

Stop composer replacing the .htacces file

When updating Magento 2 via Composer, the .htaccess file in the Magento root directory gets overwritten with the default repository version. Therefore losing my customisations, which I have to go in ...
Craig's user avatar
  • 2,660
4 votes
0 answers
1k views

magento2 creating custom search api using elastic search functionality but can not able to create instance

I am creating custom search API using elastic search functionality but can not able to create an instance of \Magento\Framework\Search\RequestInterface $requestInterface, it is giving an error like ...
Ashish Ramchandani's user avatar
4 votes
0 answers
739 views

Magento 2 Uncaught Error: Script error for: tinymce

Magento 2.3 version In admin pages,i am getting this error - Failed to load resource: the server responded with a status of 404 (Not Found) Uncaught Error: Script error for: tinymce http://...
sumeet bajaj's user avatar
  • 1,326
4 votes
0 answers
224 views

How to solve Magento 2.3 Setup Version Errors

When running the command n98-magerun2 sys:setup:compare-versions I'm receiving the following errors: +-------------------------------------+---------+---------+---------+--------+ | Setup ...
AJK's user avatar
  • 751
4 votes
0 answers
405 views

Magento2 : How to add row/pattern type of customer attribute

How to add a row/pattern type of custom customer attribute (dynamic rows). We have the below attribute in Magento 1, we need to achieve the same in Magento 2. I don't find any code reference for this,...
Bilal Usean's user avatar
  • 10.1k
4 votes
0 answers
117 views

Custom store view per customer group

I need a solution for showing a different store view to different customer group. For example: Store view 1 must be displayed to the Customer Group 1 and Store view 2 must be displayed to the ...
Matteo's user avatar
  • 41
4 votes
2 answers
2k views

How to Display Vertical mega menu in Magento 2?

I want to display a vertical menu instead of the default horizontal menu for category and subcategory
Harsh Jayswal's user avatar
4 votes
0 answers
2k views

How to get cartId of a guest-user in Magento 2.3?

I want to use external software (widget written in javascript attached to Magento) to add products to cart through API (POST request @ /rest/V1/guest-carts/{cartId}/items). For this, I need cartId ...
feyen01's user avatar
  • 165
4 votes
1 answer
1k views

Uncaught TypeError: Argument 1 passed to Magento\Catalog\Block\Product\ImageFactory::getRatio()

Fatal error: Uncaught TypeError: Argument 1 passed to Magento\Catalog\Block\Product\ImageFactory::getRatio() must be of the type integer, string given, called in /Users/mpxq2/Projects/server/...
Duddy Woody's user avatar
4 votes
0 answers
788 views

Undefined index: sales_shipment in l/vendor/magento/framework/Setup/Declaration/Schema/Db/SchemaBuilder.php

Trying to run bin/magento setup:upgrade on a Magento 2.3 site and I keep getting this error: Updating modules: Schema creation/updates: Notice: Undefined index: sales_shipment in /home/mcrosshutadmin/...
Denial Design's user avatar
4 votes
1 answer
967 views

Multi Store view - product name for each store

I'm using Magento 1.9.0.1 I have a store in English, I want to have the same store (same categories and products) just translated to Spanish. I used this tutorial to achive this: Ref. I created ...
Nir's user avatar
  • 335

1
2 3 4 5
52