What worked for me was simply moving each tab in the order I wanted.
<move element="product.info.description" destination="product.info.details" />
<move element="reviews.tab" destination="product.info.details" />
<move element="product.custom.tab" destination="product.info.details" />
Hope this helps!
The problem that I just stumbled across was that this "footer before" block does not follow Magento's naming conventions. I tried referencing it by "footer_before" which did not work, I had to use "footer.before" according to RWD's page.xml:
<block type="page/html" name="foo" after="-" template="template.phtml" /...
create a plugin to check the product status "afterGetStatus" method for class \Magento\Catalog\Model\Product, if the product status is disabled, then create a custom 404 page and forward the controller to that. Find below the code to do that, I have checked it and it is working.
Most likely the $paymentInfoBlock class extends
Mage_Core_Block_Template and not Mage_Adminhtml_Block_Template.
Specifically to your extension, replacing
$blockType = 'core/template';
$blockType = 'adminhtml/template'; should do the trick.
Doesn't matter either you are clearing cache from admin console or from command line. It will clear all the active cache. Cache:flush will remove both "Active" and "Inactive" cache. The only difference is, when you remove the cache from command line, you need to set the permission back.
Can you show me what are you trying to update in "default_head_blocks....
If you use custom theme means follow the below steps
1. Open the 'theme' table and update the type=0 for the particular custom theme.
2. php bin/magento setup:static-content:deploy -f
3. php bin/magento c:f
Finally we got the solution.
Please Check Below Step :-
Go to your Magento store root folder.
You need open the contact_index_index.xml file to edit.
The file is stored under the app\design\frontendMgs\child_theme_name\Magento_Contact\layout folder.
Add This Code In contact_index_index.xml
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:...
@here you find a list of containers still it is difficult to locate right one but i know you can manage to find the right one.
or as above some one provides a free module link to find container or block in magento , i tried it but still it is some how useful in respoect to wandering ...
Your custom container should be under product.info
<block class="Magento\Catalog\Block\Product\View" name="product.info" template="Magento_Catalog::product/view/form.phtml" ...>
BY default product.info.form.options coming at underproduct.info so, you no need to custom option section.
Your code is correct:
<referenceBlock name="product.info.sku" remove="true" />
You don't need to change your composer.json or delete the static folders or change permissions or run the static content deployment.
You just have to clear the cache bin/magento cache:clean and see the changes. If it doesn't work you can try:
Check the browser cache (it'...
Just add below code to catalog_product_view.xml file for the simple and configurable product:
For Simple Product
<block class="Magento\Wishlist\Block\Catalog\Product\View\AddTo\Wishlist" name="view.addto.wishlist" template="Magento_Catalog::product/view/addto/wishlist.phtml" />
To set a default grid value of 48 products for one category, you have to set
"Products per Page on Grid Allowed Values" configuration in Store > Configuration > Catalog >Catalog > Store Front > Products per Page on Grid Allowed Values add 48.
You will have to then move to catalog > categories (select the category in which you have to set default grid value ...
You can enable a template path hints for admin
System > Configuration > Developer > Debug
Select Yes to Template Path hints and Add Block names to hints
You can get the controller from the Url.
Hope it Helps.
Mage/Adminhtml module is responsible for backend functionality. Here you can find Controller & block related to each module in backend.
For Customer block, you can refer in Mage/Adminhtml/Block/Customer/.
For Backend layout & template, you can check on below two paths:
There's an issue with default_head_blocks.xml if the theme type is set to virtual. Check the type field in the theme table. If it's set to 1, try setting it to 0. Then clear the cache and reload the page. See if that does the trick.
See also: https://github.com/magento/magento2/issues/4330
I've found a solution pretty simple.
$block = $result->getLayout()->setData(['test'=> 'Content here'])->getBlock('category.description');
Then my blank.phtml:
<?php print_r($this->getData()) ?>
It prints: Array ( [test] => Content here [module_name] =&...
To override the layout file in module simple
To add a list of new products on the home page of your website you can follow the below instructions
Go to the following location
Admin (backend) > Content > Elements > Widgets
Click on the Add Widgets.
In Settings section select Type => Catalog new Product List & select your theme & press to continue.
In Storefront Properties ...
If you want it can be done via admin :
Create a Cms Block , and as a content , inser a widget :
Add widget type : Catalog Product List
Set Number of Products to Display: (usually is used 4 )
Tempate : Products Grid Template
For your request to be the New Products : You can either use a
condition to set up a category for the new products.
Or you dont wont ...
I guess that you want a new product collection depends created_atfield.
So, you have to create a block class at your module and at that block class, you have to create a product collection and sort by DESCENDING created_at ORDER.
I have create a block class at here depends on the structure of Magento\Catalog\Block\Product\NewProduct and that block class ...
You can pass arguments in M2
Setting a value of css_class in the [app/code/Magento/Theme/view/frontend/layout/default.xml] layout file:
<argument name="css_class" xsi:type="string">header links</argument>
This is a tricky one, I got a similar case and found a solution, using the _initSelect in the collection and changing the index in the xml. Just follow the steps and you will be fine!
First you need to add a preference for the collection and overwrite _initSelect():
<preference for="Magento\GiftCardAccount\Model\ResourceModel\Giftcardaccount\Collection" ...