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
How to make plugin not cacheable in magento 2
The best solution is use Ajax for get dynamically data.Another solution is Placeholder same as Hole punching in magento1.
Read article
http://devdocs.magento.com/guides/v2.2/extension-dev-guide/c …
2
votes
Accepted
How to get cart quote item id in magento 2?
For call observer checkout_cart_add_product_complete you need to create a module and create event.xml file in frontend area
etc/frontend/event.xml
<?xml version="1.0" encoding="UTF-8"?>
<config …
2
votes
Accepted
How to change position of Regular price and Special price in product detail page?
You can change position by overriding the file /var/www/html/magento2/vendor/magento/module-catalog/view/base/templates/product/price/final_price.phtml
<?php if ($block->hasSpecialPrice()): ? …
3
votes
Accepted
Calling system config value
Define construct function for pass the object manager as DI.
Define below code in your file in construct function
protected $_scopeConfig;
public function __construct(\Magento\Framework\App\Config\S …
0
votes
Change customer group based on custom checkbox magento 2?
You need to create observer for it.
**Step 1:** First create simple Module with necessary(mudule.xml and registration.php) files.
**Step 2:** create file etc/frontend/events.xml in your module.
<?x …
1
vote
Programatically add minimum order amount in magento2?
Default Magneto2 Minimum Order Amount should work fine
go to admin >> store >> configuration >> Sales >> Minimum order amount >> Yes and enter Minimum amount 50.
Check Below attached screenshots.
…
1
vote
1
answer
2k
views
Magento 2 File Permissions after Deploying live and in production mode?
What should be file permissions in Magento 2 after deploying website to live and website is in production mode.
I have read many forums and found that the file permissions of folders generated,var an …
0
votes
1
answer
608
views
Magento 2.3.4 how to Develop custom filter in left layered navigation?
I am developing a custom module to add the custom filter in left layered navigation,currently we have custom product collection and want to add the filter in layered navigation with three option:
1.Al …
0
votes
0
answers
130
views
Magento2 Use Prefence and Plugin both in single di.xml
For override two files in magento2 one using with prefence and other using plugin ,can we do this in single di.xml file
<?xml version="1.0"? …
0
votes
Mage::log() equivalent in Magento 2
First Create file mylog.log in path /var/log and then give writable permission after use below code
$writer = new \Zend\Log\Writer\Stream(BP . '/var/log/mylog.log');
$logger = new \Zend\Log\Lo …
0
votes
Magento 2: Set Product Attribute Dynamically
First you need to get price and after updating then try to set it.
e.g
public function updateWholeSalePrice($observer) {
$product = $observer->getEvent()->getProduct();
$_product->getPric …
0
votes
Magento 2: How to Disable System/Exception Log
In magento2 this option is not exist,the setting has been removed from admin area.while you can set by using some function.
For more info check link:
https://magento.stackexchange.com/a/110369 …
0
votes
0
answers
36
views
Marketing Conversion Tag
I need pass some data to script which I did in magento1 but not an idea in Magento2. …
0
votes
1
answer
131
views
Customer and order Item Data on Order Succes page
I am trying to getting order,customer and item details on order success page.
<?php
$orderid =$block->getOrderId();
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$order = $ …
1
vote
2
answers
871
views
Order Details On success page
I am trying to get Order detail on success page by making a custom module and in my block file code is
/**
* @var \Magento\Checkout\Model\Session
*/
protected $checkoutSession;
/**
* @var int
*/ …