Anand Ontigeri
  • Member for 6 years, 1 month
  • Last seen more than 1 year ago
Magento 2 Installation Issue: 404 error while trying to load admin page
18 votes

Css and js will created at run time in pub/static folder In first time,if css and js missing then run below command if you are using windows: php bin\magento setup:static-content:deploy if using ...

View answer
Magento2 InstallSchema Error 1215
Accepted answer
12 votes

data type for the child column must match the parent column exactly. check data type in table store store_id (type is smallint) and your store_id is INTEGER.

View answer
how to display product image in sales/order/view/ page
Accepted answer
5 votes

Finally we got, how to get product image. $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $product2 = $objectManager->get('Magento\Catalog\Model\ProductFactory'); $product =...

View answer
Is it possible to use a plugin for a Framework class?
Accepted answer
5 votes

in etc/area/di.xml update this things, it will work. <type name="\Magento\Framework\DB\Helper\Mysql\Fulltext"> <plugin name="QuickSearch-plugin" type="Vendor\ExtendedQuickSearch\Plugin\...

View answer
Magento2 which table to store data like configurable product
2 votes

1) in Magento 2 "catalog_product_relation", "catalog_product_super_link", "catalog_product_super_attribute_label" and catalog_product_super_attribute_pricing will store the information about the ...

View answer
Getting error while refreshing page in magento 2.3
Accepted answer
1 votes

execute command "rm -rf generated/* var/view_preprocessed/*" and refresh the page.

View answer
How to filter category collection?
1 votes

the class Magento\Catalog\Model\Category is not a collection change your class to: Magento\Catalog\Model\ResourceModel\Category\CollectionFactory` the solution as follows. public function ...

View answer
How to override protected _prepareLayout function in block in Magento 2?
1 votes

you can not override protected methods in Magento 2, only the public method can be overridden using plugin or preference. there is no way to override protected and private method in Magento 2.

View answer
How to implement Plugin concept in magento2
1 votes

_aftercheckrRequest method is protected and we cannot use plugin. We can use Plugins only for public and non-static methods. For example we have one public function :public function test(); and plugin:...

View answer
Invalid template file error in Magento 2
1 votes

place your size_guide.phtml in your module i.e {code}/{vendor}/{module}/view/frontend/templates/product/view/size_guide.phtml it worked for me.

View answer
How to add custom validation for admin form in Magento 2?
0 votes

check this answer, Magento 2 - Form Validation

View answer
Magento 2 filter not working on custom customer attribute
0 votes

First, you need to delete the attribute from the system and try the below code: I think the problem with options and is_used_in_grid if you want to see this field in the grid is_used_in_grid should ...

View answer
Magento2 : How to show country and state dropdown field in customer account information section in admin?
0 votes

try this Answer custom customer attributes are not shown at checkout register in Magento 2 just edit 'input' => 'select', in your custom file

View answer
Set Coupen for specific Products. Magento 2
0 votes

use Magento\SalesRule\Model\Data\Rule class and function setProductIds() which will accept param type array but function setProductIds() inside Magento\SalesRule\Model\Rule accecpt only string not ...

View answer
{{variable}} not working in product description
0 votes

try this replace media url="wysiwyg/my_image_large.png" with media url='wysiwyg/my_image_large.png' or media url="wysiwyg/my_image_large.png" with media url=wysiwyg/my_image_large.png inside img ...

View answer
Magento 2: Problem creating search request with REST API : V1/customers/search
0 votes

You have to mention at-least one searchCriteria because search Criteria is required field (for example:- /rest/V1/customers/search?searchCriteria[sortOrders][][direction]=ASC).

View answer
Owl Carousel Magento 2 not Fully Responsive
0 votes

you have to specify the range and number of item inside the carousel try below code in your custom js it will work fine. rewindNav : false, pagination : false, items : 4,//greater than 992 ...

View answer
Magento 2 - extension hello world template .phtml not executing
0 votes

layout is not loading in your module so change your code ie. pass one more parameter $pageFactory. public function __construct( \Magento\Framework\App\Action\Context $context, \...

View answer
Magento Admin 404 and Front End bare
0 votes

Css and js will created at run time in pub/static folder In first time page will look like broken reload the page Even css and js error is showing or missing then run below command (I recommend run ...

View answer
Magento 2 problem on xampp
0 votes

your "mag2" database is corrupted, i think some tables are not installed properly or you made some changes in innodb setting, i also faced this problem but i created new DB and installed new.

View answer
Magento 2 - can't register custom module
0 votes

once you created your module you need to deploy, run following command \bin\magento setup:static-content:deploy OR open app/etc folder add 'my_module' => 1 in config.xml, and clear the cache.

View answer
How to fix One or more indexers are invalid. Make sure your Magento cron job is running?
0 votes

C:\xampp\php>php C:\xampp\htdocs\magento2\bin\magento indexer:reindex run this command ... (magento2 is project name)

View answer
forbiden | You don't have permission to access /pub/static
-1 votes

probably you had deleted folders and files inside pub/static so you are getting permission issue use following command chmod -R 775 pub/static/ and also please check which user you are using.

View answer
Magento 2: 2 databases, only one with table_prefix
-1 votes

replace 'table_prefix' => 'abc_' with 'table_prefix' => '' in env.php

View answer