Hot answers tagged

10

I realized since it is not a component or block I cannot use the <move> or after= to move cart_items. So instead I used the sortOrder and set it to 0. That way it will always be before any other item in the summary block. Modified snippet from checkout_index_index.xml: <item name="sidebar" xsi:type="array"> <item name="children" xsi:type=...


8

There is a temporary solution for you, we need to override vendor/magento/module-checkout/view/frontend/web/js/view/payment/default.js because if we take a look at this file, we can see: /** * After place order callback */ afterPlaceOrder: function () { // Override this function and put after place order logic ...


7

The full list of options for the collapsible widget can be seen on the dev docs here. Finding the code Navigate to vendor/magento/module-checkout/view/frontend/web/template/summary/cart-items.html and look at line 8 (on 2.1.1 at least), it should look like so: <div class="block items-in-cart" data-bind="mageInit: {'collapsible':{'openedState': 'active'}...


6

The only solution It worked for me was xml update by removing catalog.leftnav e.g <referenceContainer name="content"> <referenceBlock name="catalog.leftnav" remove="true"/> </referenceContainer >


5

Change in Catalog -> Categories -> {Select the category}


4

your ajax action tag in config.xml should content like below <block type="checkout/cart_sidebar" name="cart_sidebar_ajax" as="cart_sidebar_ajax" template="checkout/cart/ajaxsidebar.phtml"> <action method="addItemRender"> <type>simple</type> <block>checkout/...


4

Magento is provide to move a block from layout using tag <remove name="blockname" /> As you said you want remove right content aea from the you can do this add below code in layout file <checkout_onepage_success> <reference name="root"> <remove name="right" /> </reference> </checkout_onepage_success> Alternative:...


4

This is issue is fixed with custom code in theme. We have tried some code changes in theme and rendered the MENU and with the help of CSS got the exact what i want.


4

Your XML file code should be: <referenceContainer name="sidebar.additional"> <block class="Magento\Cms\Block\Block" name="yourblockid"> <arguments> <argument name="block_id" xsi:type="string">yourblockid</argument> </arguments> </block> </referenceContainer>


4

Set your "Study Guides" category as no-anchor and set the anchor to subcategories of "Study Guides" which you want to display in the filter.


4

You need changes category page layout from 2columns right to 2columns left. open catalog_category_view.xml from app/design/{ThemeVendor}/{Themename}/Magento_Catalog/layout changes layout="2columns-right"to layout="2columns-right" Note that need to flush cache if it is not work then checked, admin the category layout, go to Products -> Categories -> ...


3

For this you need to add below code at your layout xml file like customer.xml or local.xml which located at app/design/frontend/YourPackage/YourTemplate/layout/ <customer_logged_out> <reference name="left"> <block type="customer/form_login" name="customer_form_mini_login" before="-" template="customer/form/mini.login.phtml"/> ...


3

Open this url once, you will get the solution. http://tejabhagavan.blogspot.in/2016/01/accordion-tabs-in-magento-for-layered.html Open a path as follows: app/design/frontend/default/{your folder}/template/catelog/layer/view.phtml Then open that that file & paste the following jquery script at the end of the page: <script>var $j= jQuery....


3

I think the problem you have is the name of the block you are trying to insert. In the Magento rwd theme in the cms.xml layout file the block with that name is remove from the layout: <remove name="left.permanent.callout"/> Try changing the name from left.permanent.callout to something else and it should work.


3

add this to one of your custom css files: .adminhtml-catalog-category-edit #page:left { width:300px; } .adminhtml-catalog-category-edit .div.main-col { margin-left:300px; } Adjust the width and the margin to fit your needs


3

Via layout XML (although this will remove the whole block including the container): <remove name="left" /> Programmatically: In your config.xml, listen to the event core_block_abstract_to_html_before (this will keep the container, but will remove all child blocks): <core_block_abstract_to_html_before> <observers> <...


3

You can just add below code to your theme default.xml file and remove sidebar wishlist and compare product block using xml. <referenceBlock name="wishlist_sidebar" remove="true"/> <referenceBlock name="catalog.compare.sidebar" remove="true"/> Remove cache and check.


3

To modify just the sort order setting for the cart items you can add this crazy tree to your theme's Magento_Checkout/layout/checkout_index_index.xml file: <referenceBlock name="checkout.root"> <arguments> <argument name="jsLayout" xsi:type="array"> <item name="components" xsi:type="array"> <...


3

Finally figured this one out, if anyone else has the same issue, here is my answer: <move element="category.description" destination="sidebar.main"/> <move element="catalog.leftnav" destination="sidebar.main" after="category.description" /> I add this to Layout Update XML on the category pages I want to change. Hope this helps anyone


3

Update your XML with below content and check <block class="Vendor\Module\Block\Testing" name="customer.session.data" template="Vendor_Module::Test.phtml" before="-" cacheable="false" /> Or Add this line after referenceContainer tag <move element="customer.session.data" destination="sidebar.main" before="-" /> Or <referenceContainer name="...


2

You can use the following code at the top : $category = Mage::getSingleton('catalog/layer')->getCurrentCategory(); if(!$category->getChildren()){ //$parentcat_id = $category->getParentCategory()->getId(); //$category = Mage::getSingleton('catalog/category')->load($parentcat_id); $category = $category->getParentCategory(); } $categories =...


2

See Remove Right side bar from continue shopping page In local.xml You could do <?xml version="1.0"?> <layout version="0.1.0"> <checkout_onepage_success> <reference name="root"> <action method="unsetChild"><name>right</name></action> </reference> </...


2

Upon thorough investigation, I found out that another custom module is already overriding the block. So what I did is to override the same block then extend the other module who extends it: <checkout> <rewrite> <cart_item_renderer>Test_Checkout_Block_Cart_Item_Renderer</cart_item_renderer> </rewrite> ...


2

If you go to Catalog -> Manage Categories and navigate to the categories you don't want shown (in this case tshirts, pants, skirts) and scroll all the way down on the General Information page to the bottom there is a dropdown box that will allow you to select whether or not the category is shown in the navigation.


2

The template that renders this html is app/design/frontend/{package}/{theme}/template/customer/account/navigation.phtml. If there is no such file in your theme copy it from app/design/frontend/base/default/template/customer/account/navigation.phtml and do your changes in the copy.


2

This is highly dependent on your theme. turn on the template path hints and see what template and what block render that section. then you will find the code.


2

Use in this way to your local.xml <reference name="left"> <block type="core/template" before="-" name="name_of_the_block" template="template_path"/> </reference> To display as the First block: before="-" To display as the last block: after="-" To display before any other block: before="block_name" To display after any other ...


2

try with direct block calling method <?php echo $this->getLayout() ->createBlock('checkout/cart_sidebar') ->setTemplate('checkout/cart/sidebar.phtml') ->toHtml(); ?>


2

I have one more alternative to perform this task. Please follow below steps: Go to you theme folder i.e app/design/frontend/your_package/your_theme/layout/page.xml Find the code given below: <block type="page/html_header" as="header"> And past the cart sidebar block shown below: <block name="header" as="header"> <block name="top....


2

You'd study your layout frontend files Check for <reference name="left"> tag, and play with before and after parameters to get your desired order


Only top voted, non community-wiki answers of a minimum length are eligible