Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
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
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
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 user 51810

General questions about the Magento 2.2.x versions

0
votes
Create file and use this code : => From : vendor/magento/module-catalog/view/base/templates/product/price/amount/default.phtml => To : app/design/frontend/VendorName/ModuleName/Magento_Cata …
answered Jun 8 '18 by Rohan Hapani
3
votes
Just use this below code where you want to convert to array : /** * @var \Magento\Framework\Json\Helper\Data */ protected $jsonHelper; /** * [__construct description] * @param \Magento\Framework …
answered Apr 18 by Rohan Hapani
1
vote
You need to get value from current category data. Try this below code : protected $_categoryFactory; protected $_registry; public function __construct( .... \Magento\Framework\Registry $regi …
answered Jan 22 by Rohan Hapani
0
votes
The customer password has been removed from Magento 2 for security reasons. Adding it back in will make your store less secure.If you want to send the password to a customer on new account creation, t …
answered Apr 22 by Rohan Hapani
0
votes
You can use this below code : $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $storeManager = $objectManager->get('\Magento\Store\Model\StoreManagerInterface'); $store …
answered Mar 20 by Rohan Hapani
0
votes
Try to use this code : $.ajax({ url: BASE_URL + this.options.posturl, type: "POST", datatype: "json", data: { productId: productId …
answered Jun 23 '18 by Rohan Hapani
3
votes
Try to use this below code : /** * @var \Magento\Customer\Api\CustomerRepositoryInterface $customerRepositoryInterface * @var \Magento\Sales\Model\Order $order */ protected $_customerRepositoryIn …
answered Aug 3 '18 by Rohan Hapani
0
votes
Just add this below code in your Model file : /** * @var \Magento\Framework\Controller\Result\JsonFactory */ protected $jsonFactory; /** * [__construct description] * @param \Magento\Framework\C …
answered Apr 23 by Rohan Hapani
1
vote
You can remove attribute using below setup script : <?php namespace Namespace\Company\Setup; use Magento\Eav\Setup\EavSetup; use Magento\Eav\Setup\EavSetupFactory; use Magento\Framework\Setup\Insta …
answered Apr 17 '18 by Rohan Hapani
1
vote
Set your block in controller file : $resultPage->getLayout()->getBlock('customer_account_navigation'); After add this line in your controller : $resultPage->setHeader('Cache-Control', 'no-store, …
answered Jun 8 '18 by Rohan Hapani
1
vote
app/design/frontend/CustomName/customtheme/Magento_Theme/layout : <?xml version="1.0"?> <page layout="3columns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation …
answered Jan 8 '18 by Rohan Hapani
1
vote
Inject Magento\Framework\App\Cache\TypeListInterface and Magento\Framework\App\Cache\Frontend\Pool in your constructor public function __construct( Context $context, \Magento\Framework\App\Ca …
answered Jun 12 '18 by Rohan Hapani
2
votes
Create InstallData.php file at /app/code/VendorName/ModuleName/Setup/InstallData.php <?php namespace VendorName\ModuleName\Setup; use Magento\Cms\Model\BlockFactory; use Magento\Framework\Setup\Ins …
answered Oct 25 '18 by Rohan Hapani
0
votes
Try to use this below code : protected $_productCollectionFactory; protected $_product; public function __construct( ................. \Magento\Catalog\Model\ResourceModel\Product\Collectio …
answered Sep 27 '18 by Rohan Hapani
7
votes
4answers
I am working in magento 2.2.2 and when I save product It will display this error. Fatal error: Allowed memory size of 792723456 bytes exhausted (tried to allocate 184320 bytes) in /var/www/html/De …
asked Jan 18 '18 by Rohan Hapani

15 30 50 per page