78
votes
Fatal error: Cannot instantiate interface
If you use redis, run:
redis-cli flushall
If you also use an environment like ansible (lxc - server), you'll need to do that command in container. Plus I did the following:
Clear var/generation (...
20
votes
Accepted
Magento 2 - How to move the product price block before addtocart button?
Go to below location
Magento_root/vendor/magento/module-catalog/view/frontend/templates/product/view
Copy file with Name addtocart.phtml & paste it to below location in your theme
...
8
votes
Fatal error: Cannot instantiate interface
Run following command and check.
rm -rf generated
rm -rf var/*
Worked for me.
7
votes
Accepted
Magento 2: How to override Luma Theme Home Page
When creating any new theme or module you need to define registration.php file at root of your module or theme folder.
Always use theme name in lowercase, Because Magento used this standard
for ...
7
votes
Accepted
how to use different template file for category magento 2
You need to create a xml file catalog_category_view_id_{{id}}.xml under your theme > Magento_Catalog > layout and change list file.
For detail :
http://sumankc.com/2016/12/10/different-template-for-...
6
votes
Accepted
How to add wrapper in checkout page in magento 2?
Order summary comes from
module-checkout/view/frontend/web/template/sidebar.html at checkout page.
You just need to change wrapper class here:
Magento_Ui/js/modal/modal':{
'type': 'custom',
...
6
votes
Accepted
Change page layout for products under specific category
Create a small module
Your config.xml should looks like
app/code/codePool/Package/Extension/etc/config.xml
<?xml version="1.0" encoding="UTF-8"?>
<config>
<modules>
&...
5
votes
how to use different template file for category magento 2
Created customlist.phtml from list.phtml or copied the code of list.phtml and create
Assign customlist.phtml in admin side (admin → category → Layout section)
<referenceContainer name="content"&...
4
votes
Widget "Design Package/Theme" field - How to update?
Update for Marius answer when you use Magento latest version (2.1.8)
There is no column package_theme in widget_instance table anymore.
To change design of widget instance (at your own risk)
update ...
4
votes
Accepted
Magento 2: Theme change field is missing in Design Tab
As of Magento 2.1.x they have moved themes into content=>design
4
votes
Design tab not Found Magento Admin
Design configuration after Magento 2.1.0 is found under Content > Design (Configuration), where you can find theme configuration for website/store/store view.
Clicking on the configuration of website ...
4
votes
Magento2: Template how to edit header
General Steps
Create a new theme (but it looks like you might already have a custom theme)
Find which Block the search bar is in
Move that Block to a different container using a layout update
Find ...
3
votes
Magento 2: How to move "Sign In" block in checkout below progress bar?
Create the file : app/design/frontend/<package>/<theme>/Magento_Checkout/web/template/onepage.html
And put this content inside :
<!--
/**
* Copyright © 2013-2017 Magento, Inc. All ...
3
votes
Fatal error: Cannot instantiate interface
Clear the cache
rm -rf var/cache
If redis enabled, clear redis db using command line:
$> redis-cli
$> flushall
3
votes
Accepted
Magento 2: How to move additional product attributes to Details tab?
First of all u need to create ur theme http://devdocs.magento.com/guides/v2.1/frontend-dev-guide/themes/theme-create.html
In your theme u have to override Magento Default files.
magento\app\design\...
3
votes
Magento 2: how to add a block in cart under cart summary?
We can use Widget: CONTENT > Widgets
1)Mini Cart:
In Layout Updates:
we can choose Display on > All Pages
choose Container > Mini-cart promotion
Result:
2)Checkout Cart page:
In Layout Updates:
...
3
votes
Magento design inconsistancy between sites
We need to see all your code to fix this for you, all I can see based on the live site is that the CSS is different.
I suspect either the CSS is different between the themes or the variable ...
3
votes
Accepted
Magento 2 How to remove a block from specific product
I tested it on the Magento CE 2.1.7 and the layout update works fine. I've added the layout for the custom product (by its id) app/code/Vendor/Module/view/frontend/layout/catalog_product_view_id_2049....
3
votes
Magento 2 - How to move the product price block before addtocart button?
To achieve this you may need to add your code in a separate layout file for the respective product type.
Try creating catalog_product_view_type_configurable.xml file for configurable product and then ...
3
votes
Magento 2 - How to move the product price block before addtocart button?
Follow Below given two instructions
1.Go to the below file
Magento_root/app/design/frontend/Package/theme/Magento_Catalog/layout/
Open/create file with name catalog_product_view.xml
Put below ...
2
votes
Fatal error: Cannot instantiate interface
In my case, I had to remove a module and I simply deleted the files of the module without following proper methods and then this error was on screen everywhere. After searching much on it, I ended up ...
2
votes
How to remove the Add to Cart button from Catalog pages in Magento 2?
You can always hide it via CSS but i will highly recommend to copy the app/code/Magento/Catalog/view/frontend/templates/product/list.phtml into YourVendor/YourTheme/Magento_Catalog/view/frontend/...
2
votes
Design Configuration page infinite loading
Have you tried executing this commands
rm -rf pub/static/adminhtml/* var/cache/* var/view_processed/*
var/page_cache/*;
php -f bin/magento setup:static-content:deploy -ft Magento/backend
it will ...
2
votes
get product category path
To get path from Root catalog
public function getCategoryPath($sku)
{
$product = Mage::getModel('catalog/product')->loadByAttribute('sku',$sku);
$pathArray = array();
$collection1 = $...
2
votes
Accepted
Magento 2: how to change the color of dots below product image gallery?
To override, copy lib/web/mage/gallery/gallery.less to your theme: theme_dir/web/mage/gallery/gallery.less. Make the desired changes in this file. Now recompile less files by removing contents of pub/...
2
votes
Accepted
Magento 2: how to make some JS elements expanded by default?
Copy the file magento_checkout/view/frontend/web/template/summary/cart-item.html to your theme here: theme_directory/Magento_Checkout/web/template/summary/cart-item.html. Modify line 8 like so:
<...
2
votes
Magento 2: Header & Footer Not Displaying in Email
<!--@vars {
"template config_path=\"design\/email\/footer_template\"":"Email Footer Template",
"template config_path=\"design\/email\/header_template\"":"Email Header Template"
} @-->
This will ...
2
votes
Accepted
where to put my theme in rwd package?
You have to add rwd in Current Package Name in admin Desing tab instead of default.
You have to add page.xml inside app/design/frontend/rwd/default/layout/page.xml.
You have to remove your custom ...
2
votes
How to add block into header before all elements (before logo, search, ...) via layout xml?
Before header there is another block called after_body_start that directly comes after body-tag.
<reference name="after_body_start">
<block type="company_name/module" name="page_header" ...
2
votes
Get all product images on product view page separately
Mage::helper('catalog/image') is a class. Think of it as a collection in Magento.
When you write
$mainImg = Mage::helper('catalog/image')->init($_product, 'small_image')->resize(163, 10);
$...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
design × 210magento2 × 81
theme × 48
magento-1.9 × 29
layout × 28
template × 25
css × 17
frontend × 14
product × 11
configuration × 8
rwd × 8
magento-2.1 × 7
magento2.3 × 6
magento-1.7 × 6
category × 6
magento-1 × 6
adminhtml × 6
magento-1.8 × 5
module × 5
admin × 5
custom × 5
html × 5
mobile × 5
package × 5
php × 4