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 40751

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.

4 votes

Magento2: how to get guest informations in checkout?

This is the solution, you can get guest and customer informations in checkout , inject Magento_Checkout/js/model/quote on your view method. define( [ 'jquery', 'Magento_Checkout/j …
Samir AFALLAH's user avatar
4 votes
1 answer
3k views

Magento2: how to get guest informations in checkout?

Please, how to get guest informations like email, address, phone ... in checkout?
Samir AFALLAH's user avatar
1 vote
2 answers
6k views

Magento 2: how to use sql queries on controller?

Please, how we can use sql queries on controller? i am using Magento 2 and this is my controller: <?php namespace Demo\Demo\Controller\Demo; class Demo extends \Magento\Framework\App\Action\Action …
Samir AFALLAH's user avatar
0 votes
1 answer
709 views

Magento2: Setup script doesn't work

Please, how can i resolve this problem? my setup script doesn't work when i enable my module using this command: php bin/magento module:enable Demo_Demo <?php namespace Demo\Demo\Setup; use M …
Samir AFALLAH's user avatar
4 votes
1 answer
2k views

Magento2: how to remove all cart's items from controller?

Please, how can i remove all cart's items from controller? namespace Demo\Demo\Controller\Demo; class Demo extends \Magento\Framework\App\Action\Action { public function execute() { …
Samir AFALLAH's user avatar
1 vote
4 answers
2k views

Magento 2: how can i clear cart using javascript?

Please, how can I clear cart using javascript on Magento 2?
Samir AFALLAH's user avatar
5 votes
4 answers
21k views

Magento 2: how to call checkout session in controller?

Please anyone tell me, how to call checkout session in module's controller? this method doesn't work for me <?php namespace Demo\Demo\Controller\Demo; class Demo extends \Magento\Framework\App\Ac …
Samir AFALLAH's user avatar
2 votes
5 answers
6k views

Magento2: How to get guest email address in checkout?

Please, how to get guest email address in checkout?
Samir AFALLAH's user avatar