Skip to main content
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
Results tagged with
Search options not deleted user 85846

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
1 answer
2k views

How to remove cache images if they not in used in magento 2?

i need to create new script if the image not present in real folder and not in used than delete from cache folder example Cach folder image pub/media/catalog/product/cache/2a584e14ed2061ee0dac7db2e5 …
0 votes
2 answers
532 views

How can i hide specific shipping method for specific customer group in magento 2

i want to make one custom module in that i set customer group and shipping method than that particulate customer group hide that shipping method can any one help me how can i do that.
0 votes
3 answers
38 views

While install magento sample data throw error of data patch Magento 2?

I install the magento sample data in magento 2.4.7 and getting this kind of error Error:: Unable to apply data patch Magento\CatalogSampleData\Setup\Patch\Data\InstallCatalogSampleData for module Mag …
0 votes
1 answer
42 views

How can I convert this script that compatible with Hyva thme in Magento 2?

I need to convert this given script that compatible with hyva theme require( [ 'Magento_Checkout/js/model/cart/cache', 'Magento_Checkout/js/model/cart/totals-processor/default', …
1 vote
Accepted

How can I convert this script that compatible with Hyva thme in Magento 2?

Step 1: Alpine.js Setup Hyvä theme typically encourages using Alpine.js for frontend interactions. You’ll need to integrate this script within an Alpine.js component or directly within the page if you …
Jay Parmar's user avatar
0 votes
1 answer
1k views

How to resolve Varnish Server Caching Issue in Magento 2?

in my setup, I need to clear varnish caching at the server at all time even I make small changes then also need to clear the varnish cache at the server side so can anyone help me with this?
0 votes

magento2.4.7 wysiwyg media images not showing on fronted

This is caused by wrong file permission. So try to execute the following commands: sudo find . -type f -exec chmod 664 {} \; sudo find . -type d -exec chmod 775 {} \; sudo find var pub/static pub/me …
PY Yick's user avatar
  • 2,705
4 votes
7 answers
5k views

Which class replace for "Zend_Validate" in Magento 2.4.6?

I have one function that uses the "Zend_Validate" Now I upgraded my Magento version to 2.4.6 and I got an error like.. https://prnt.sc/z3i-VQY7VFvp with class replace my code is if (!\Zend_Validate:: …
8 votes
Accepted

Which class replace for "Zend_Validate" in Magento 2.4.6?

Here I mention some other Zend classes which Replace with laminas 1). \Zend_Http_Client::POST will be \Laminas\Http\Request::METHOD_POST and 2). \Zend_Http_Client::GET will be \Laminas\Http\Request::M …
Jay Parmar's user avatar
0 votes

Zend replacement for Magento 2.4.6

You can replace with Magento\Framework\Filter\FilterInput. Like: $inputFilter = new \Magento\Framework\Filter\FilterInput( ['date_from' => $this->dateFilter, 'date_to' => $this->dateFilter], …
Jay Parmar's user avatar
1 vote
0 answers
64 views

How to remove default entity_id sorting in magento 2?

I need to remove the default entity_id sorting from category product collection and add position sorting. here i try using the below method > $cp = $category->getProductCollection()->addAttributeToSel …
0 votes
0 answers
21 views

The css file goes 404 on fresh magento installation in centos 7 Magento 2?

I install new fresh magneto on my centos 7 recently the home page run success fully but the all css paths goes 404 in core config i also set the base secure and unsecure url for pub static and pub m …
4 votes
1 answer
133 views

Critical Error of : file_exists(): open_basedir restriction in effect.in my Magento 2?

Here I explained the issue in detail: : file_exists(): open_basedir restriction in effect. File(/autoload.php) is not within the allowed path(s): (/var/www/:/tmp/) in /var/www/mywebsite.com/public_ht …
2 votes
2 answers
118 views

color picker in configuration Mismatched anonymous define() module in Magento 2

when I add color picker to admin system configuration i got this kind of error can any one know about how can I rsolve it.
2 votes
1 answer
112 views

how to make country dropdown with search box in magento 2

How can i add search input on country drop dawn field in magento i need to add the search input like show in below screenshoot

1
2 3 4 5
8
15 30 50 per page