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.
3
votes
2
answers
3k
views
How to reload the quote or cart in Magento 2
I am working on ajax cart.
When i update the cart qty, I am trying to reload the quote but its not loading properly
$this->cart->getQuote()->getShippingAddress()->collectShippingRates()->save();
$th …
1
vote
1
answer
3k
views
DOB Validation with three fields in magento2
I need to change the "date of birth" field from date picker to three fields with validation.
How to do it?
0
votes
2
answers
1k
views
Magento 2 : How to Add Dynamic CSS Url
I need to add custom css in head dynamically, where css url is dynamic.
I can add using below code but page will get cache, I need to add css dynamically each page re-fresh, css url will be also cha …
0
votes
Magento 2 setup:di:compile not work
Use below code after if condition
if (!isset(self::NAMESPACE_TOKENS[$this->tokens[$index][0]])) {
echo $this->getFileContents();
17
votes
3
answers
35k
views
How to Add Custom fields to Checkout page in Magento2
I need to add two custom fields in each shipping and payment steps of checkout page in Magento 2 and also data should be saved in needed tables
how to do it in Magento 2
6
votes
Accepted
How to enable Full Text search in admin grid of magento2
TO make full text search or keyword search of admin grid
you need to make or add index of the table
$connection->addIndex(
'testtable', // table name
'title', // index name
[
…
5
votes
6
answers
16k
views
How to enable Full Text search in admin grid of magento2
I created admin grid using UI component when I try to search from full test search or keyword search I am not getting correct search data
can any one help me on this
rest all thing are working filters …
131
votes
Accepted
How to add fee to order totals in Magento 2
follow below steps it will help you, in my module, I just added fee column
this will add one row in cart total called fee and also side bar in the checkout page
and also it added fee amount to total …
32
votes
How to Add Custom fields to Checkout page in Magento2
Today I am going to explain how to add custom fields to all steps of checkout page and save it after order is placed
and also how to use posted data after placing order
1st fields delivery_date :- whe …
52
votes
8
answers
45k
views
How to Override Core Block, Model and controller in Magento2
I'm stuck in overriding core model Blocks and Controllers in Magento 2.
Can any one help on this?
Let's take list toolbar as example where I need to add a new sort option called sort by most popular. …
3
votes
4
answers
7k
views
JS and CSS merged Issue in magento2
I tried below step to merge and minify js and css
bin/magento setup:upgrade
bin/magento indexer:reindex
bin/magento deploy:mode:set production -s
php bin/magento setup:di:compile-m …
5
votes
Accepted
How to include 3rd party library in Magento 2 (like php xlsx library)
below is the steps to create custom lib
in this i will take PHpexcel lib
download the lib https://github.com/PHPOffice/PHPExcel/tree/1.8/Classes
keep the folder in lib/internal
open PHPExcel.php a …
5
votes
2
answers
9k
views
How to add new steps or tab to checkout page in Magento2
How to add new tab or step in checkout page of magento2, that i need one more step in checkout page how to do it …
1
vote
Magento 2: Use a model with a dynamic name
I hope the code below will help you:
public function __construct(
\Magento\Framework\ObjectManagerInterface $objectManager
) {
$this->objectManager = $objectManager;
}
public function getMod …
0
votes
Magento 2: Use a model with a dynamic name
Finally I got the answer for how to call class from in DI.
It can be done by using factory in DI and in reader use create() it will be something like this:
<type name="Magento\Catalog\Model\Layer\Re …