Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
General questions about Magento 2, not specific to a minor version. Use this tag to distinguish from Magento 1. If you have issues with a specific version, please use the appropriate 'Magento-2.x' tag instead. Functionalities between Magento 2 minor versions might differ.
0
votes
Fastest way to check if product exists?
The quickest way to check if a product exists in Magento 2 is to use the built-in product repository. The product repository provides methods for loading, saving, and deleting products. To check if a …
0
votes
How to get shareable file link of downloadable product?
To get shareable file links for downloadable products in Magento 2, you can follow these steps:
Login to your Magento 2 admin panel.
Go to Catalog > Products and select the downloadable product you
w …
0
votes
Magento 2: How can I hide the customer custom attribute from backend customer create and edi...
Create a Plugin for Customer Form Block:
Magento\Customer\Block\Adminhtml\Edit\Form
<type name="Magento\Customer\Block\Adminhtml\Edit\Form">
<plugin name="hide_custom_attribute" type="YourVend …
0
votes
2
answers
445
views
Error: Class "Zend_Locale_Data_Translation" not found in magento 2.4.6
I have recently upgrade magento version from 2.4.0 to 2.4.6 with. When i open configuration at time getting this error.
0
votes
magento 2 get allowed countries list by store code?
In Magento 2, you can use the \Magento\Directory\Model\Country model and the \Magento\Store\Model\StoreManager class to get the list of allowed countries by store code. Here is an example of how you c …
1
vote
2
answers
228
views
How to restrict payment method by ip address in Magento 2?
i want to restrict payment method show by ip restriction, only allowed ip will show some payment method.
0
votes
How to restrict payment method by ip address in Magento 2?
app/code/[vendor]/[module]/etc/frontend/event.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/eve …
0
votes
Magento 2 get Allowed Countries by store config value?
For this you can refer my answer as mention below link.
https://magento.stackexchange.com/questions/363605/magento-2-get-allowed-countries-list-by-store-code/363608#363608
Let me know if you have any …
0
votes
How to add translate in file master.html in pagebuilder in magento 2
Follow these steps to add translation functionality to the master.html file in Magento 2 Page Builder:
Create a language file for your theme first. To accomplish this,
create a new directory in
app/d …
0
votes
Magento 2 Order collection filter by product set id
You can try below code if works for you.
$collection = $this->_orderCollectionFactory->create()->addAttributeToSelect('*');
$collection->getSelect()
->join(array('order_item' => 'sales_order_item' …
0
votes
How to get email template content using template id in magento 2?
You can try below code.
di.xml
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<preference for="Ma …
0
votes
0
answers
71
views
Area code not set error in magento 2
I have created one custom command. That command is used when i need to generate some specific file. When i run setup:upgrade command then i give me error like "Area code not set".
Below is code exampl …
0
votes
1
answer
62
views
Magento 2: The newly added column does not appear in the product export csv file
When we export Magento products, in the CSV there is one column related_skus. I have added one column with the same name, accessories_skus. But when I export to the staging server on the live server, …
0
votes
Magento 2: The newly added column does not appear in the product export csv file
I have found solutions for this, need to stop existing consumer queue fron cli below is command to stop/kill queue.
[15/03 14:52] darshan (Guest)
As per the above screenshot, you need to execute all …
0
votes
Does Magento 2.4.6 requires MSI modules compulsory?
after upgrading to 2.4.6 please verify all below MSI module is disable if any one of them is enable then it will throw error.
Magento_Inventory
Magento_InventoryAdminUi
Magento_InventoryAdvancedChecko …