Skip to main content
Share Your Experience: Take the 2024 Developer Survey
32 votes
Accepted

Ajax add to cart button in product detail page magento 2

You have to just override addtocart.phtml file app/design/frontend/Packagename/themename/Magento_Catalog/templates/product/view/addtocart.phtml Replace "bindSubmit": false to "bindSubmit": true &...
Rakesh Jesadiya's user avatar
19 votes

Magento 2 CE: Front controller reached 100 router match iterations Issue

You created an infinite loop: you request a URL starting with "test" your router sets module, controller and action to "moduletest", "test", and "test" you forward, using this request (the URL is ...
Fabian Schmengler's user avatar
15 votes
Accepted

How to tell whether Magento 2 site is EE or CE

You can get this information for any Magento2 install from Magento's official endpoint, by opening this URL in your browser: http://www.example.com/magento_version That will give data like: Magento/2....
Ryan Hoerr's user avatar
  • 12.3k
14 votes

How to override footer template in a custom theme

The configuration of the footer can be seen in this file: vendor/magento/module-theme/view/frontend/layout/default.xml I was able to modify the footer declaration by creating my own default.xml file ...
Ryre's user avatar
  • 1,147
13 votes
Accepted

How to get Newsletter form shown in footer block?

I'm not 100% sure what you mean by 'get', I thought you meant add it but as it's already there in the blank and Luma theme and the previous answer is pretty much correct I presume you want to move it ...
Ben Crook's user avatar
  • 15.7k
11 votes

How to download magento

Wondering why nobody mentioned https://github.com/OpenMage/magento-mirror
Tim Bezhashvyly's user avatar
11 votes
Accepted

How to access configuration variables in magento checkout's javascript?

Create a di.xml [Vendor]/[Module]/etc/frontend/di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:...
Sohel Rana's user avatar
  • 35.9k
11 votes

Using URL subfolders for multi-language Store Views in Magento 2

I ended up in using the below solution. I saw it is a quite common configuration for multi-language Magento websites. This solution provides a default language with a redirect from "normal" url (urls ...
Andrea's user avatar
  • 1,849
11 votes
Accepted

Magento 2 - Programmatically Check Magento Version (CE / EE)

You have to inject \Magento\Framework\App\ProductMetadataInterface into your constructor. protected $productMetadata; public function __construct( ... \Magento\Framework\App\...
Bartłomiej Szubert's user avatar
10 votes

Magento 2 CE: Front controller reached 100 router match iterations Issue

If your code is perfect and you still get an error, Then you have to check your sortOrder of router plugin class in di.xml. As magento official say : https://devdocs.magento.com/guides/v2.3/extension-...
Himanshu's user avatar
  • 1,761
9 votes

How to install magento extension from .zip file?

Follow bellow steps: Step 1 : Extract the ZIP-file locally and inspect the contents Let's say we have an example ZIP-file called AR_Example.zip which contains a module name Example. The first step ...
Abdul's user avatar
  • 9,701
9 votes

Magento 2 CE: Front controller reached 100 router match iterations Issue

I know it's late to answer but it would be helpful for others. In magento 2.1.10, the standard router sortOrder has been changed to 30, making the custom router (which sortOrder is 22) forward ...
Tuan nguyen's user avatar
7 votes

How to migrate from Enterprise edition to Community Edition?

The Yanted guide is okay but forgets some steps. There are items in tables that contain wrong references and you should remove those. These are config data, permissions data, scheduled cronjobs, ...
Peter Jaap Blaakmeer's user avatar
7 votes

Magento 2: Change Text On Checkout Page

To Change label, You need to copy following file to your theme folder. <magento root>/vendor/magento/module-checkout/view/frontend/web/js/view/shipping.js Now copy this file to following. &...
Salma Saiyad's user avatar
  • 1,224
6 votes
Accepted

How to override footer template in a custom theme

I found out what was my problem. Firstly I enabled the template path hints mode as described here: http://devdocs.magento.com/guides/v2.0/frontend-dev-guide/themes/debug-theme.html Thanks to path ...
Andrea's user avatar
  • 1,849
6 votes

how to reindex magento 2 in wamp server windows8

Try This. open cmd and run it as administrator. C:\wamp\bin\php\php5.5.12>php.exe C:\wamp\www\Magento\www\bin\magento indexer:reindex hope this will help you.
HiMs's user avatar
  • 119
6 votes

Session lock after using Cm_RedisSession

I appear to have mostly eliminated our problems. However, I never actually determined the exact cause. After upgrading the the latest version of Cm_RedisSession the logging indicated that 95% of the ...
Craig Harris's user avatar
6 votes
Accepted

Magento 2: How to show/hide payment method on basis of amount

app/code/Vendor/Module/etc/di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:...
Ashish Jagnani's user avatar
6 votes

Magento 2 CE and ElasticSearch integration

Yes, you can. Here is step-by-step manual: https://github.com/Smile-SA/elasticsuite/wiki
Kyrylo Romantsov's user avatar
6 votes
Accepted

Upgrade from 2.4.2 to 2.4.3 - I don't know how to resolve these dependencies

In composer.json try to change version of 'magento2-functional-testing-framework': from magento/magento2-functional-testing-framework": "3.1.0 to magento/magento2-functional-testing-...
deryk901's user avatar
5 votes

how to reindex magento 2 in wamp server windows8

if you are using windows then run this command in cmd C:\wamp\bin\php\php5.5.12>php.exe C:\wamp\www\Magento\www\bin\magento indexer:reindex and if you want to reindex only one indexer then write ...
MaYaNk's user avatar
  • 1,730
5 votes
Accepted

Magento Community version

You can use the latest version of Magento 1.9.x because there are a lot of extensions available for this version. You can also use the latest version of Magento 2.x but there are not as many ...
Chirag Prajapati's user avatar
5 votes
Accepted

Login mandatory for using my store

For this you can redirect your customer (not logged in ) to login page. you can achieve this by event observer. Follow below steps to create custom module Create File with name Namespace_Module.xml ...
Piyush's user avatar
  • 5,904
5 votes
Accepted

Magento2 - Customize Order Numbers - Overriding: Magento\SalesSequence\Model\Sequence

I finally realized that the class Magento\SalesSequence\Model\ResourceModel\Meta is responsible for setting the active_profile to the meta object used by the Magento\SalesSequence\Model\Sequence class ...
ElGatito's user avatar
  • 890
5 votes
Accepted

Magento2 reindexing CE vs EE

None. They use the same processes in Magento 2.
Ryan Hoerr's user avatar
  • 12.3k
5 votes
Accepted

Magento 2 CE and ElasticSearch integration

Magento 2 Open Source (CE) does not provide integration with elasticsearch by default. We have following options: Create your own Custom extension (Can be explained separately) Use following Free ...
mshakeel's user avatar
  • 528
5 votes
Accepted

Magento 2.2 : New features for Community Edition

The below is all for Magento Open Source, formerly known as Magento Community Release notes for 2.2 and other versions can be found in the Magento Devdocs Here is the highlights excerpt from the ...
seb's user avatar
  • 3,572
4 votes

Magento 2 (CE) not displaying the Checkout page

If you are using wamp server on windows localhost then, you can try this: C:\wamp\bin\php\php5.5.12>php.exe C:\wamp\www\\bin\magento setup:static-content:deploy in your CLI.
MaYaNk's user avatar
  • 1,730
4 votes
Accepted

How to get the substring before & after a seperator?

Use below code (Tested & Working): $str = "Chains-23x10 5R 12"; // Pass Product name here $strArr = explode("-", $str); //print_r($strArr); if(count($strArr) == 2){ echo $strArr[0]; echo ...
Anil Suthar's user avatar
  • 4,731
4 votes
Accepted

Customer stuck in an endless loop

looks like there are a lot more call of the particular methods which changes the trigger_recollect flag. The final solution was to pass the Quote through all methods. The Problem was the result of two ...
Pawel's user avatar
  • 1,096

Only top scored, non community-wiki answers of a minimum length are eligible