https://t.co/8Mf2OszrZU #sumnima #lingerie & #bikini #magento #theme #RWD now with black layout. checkout demo – http://t.co/xaZg7JlUVy
— Rawi Rai (@officialstupid) May 8, 2015
https://t.co/8Mf2OszrZU #sumnima #lingerie & #bikini #magento #theme #RWD now with black layout. checkout demo – http://t.co/xaZg7JlUVy
— Rawi Rai (@officialstupid) May 8, 2015
The reason your layered navigation only shows up at the bottom or at the top of the page is that you add the block at the wrong block “level”.
You added the block to the block content
which only has two direct child blocks: category.products
and product.tooltip
. Therefore you only can add your block at the top, between these two blocks or at the bottom.
How to move the layered navigation between the product list toolbar and the product list
Add this code to your layout XML:
<?xml version="1.0"?>
<layout version="0.1.0">
<catalog_category_layered>
<reference name="left">
<action method="unsetChild"><alias>catalog.leftnav</alias></action>
</reference>
<reference name="product_list">
<action method="insert"><blockName>catalog.leftnav</blockName></action>
</reference>
</catalog_category_layered>
</layout>
This will move the layered navigation block from the left column to the content column without re-creating classes and the like. You can see I inserted the block as a child of the block product_list
.
If you call the page now you will see that the layered navigation isn’t displayed at all. That’s because opposed to the content
block, the product_list
block doesn’t output all child blocks by default. You have to echo the block yourself in the template file.
Copy app/design/frontend/base/default/template/catalog/product/list.phtml
(replace base/default with your base theme if you use another one as your starting point) to your theme and tell Magento to output the layered navigation directly after the first toolbar:
<?php if(!$_productCollection->count()): ?>
<p class="note-msg"><?php echo $this->__('There are no products matching the selection.') ?></p>
<?php else: ?>
<div class="category-products">
<?php echo $this->getToolbarHtml() ?>
<?php echo $this->getChildHtml('catalog.leftnav'); /* THIS IS THE NEW LINE */ ?>
<?php // List mode ?>
You will get something like this and can go on from here:
vie : Matthias Zeis, stackexchange
THE WORLD’S MOST ADVANCED MOBILE MAGENTO THEME
BEAUTIFUL & LIGHT DESKTOP, TABLATE & MOBILE RESPONSIVE THEME
Sumnima is the world’s most advanced mobile design for magento theme. sumnima isn’t simply a responsive magento theme — it’s better in every way. RWD, yet beautifully design for mobile. New sumnima more compact and all new design for mobile version no more tradition mobile design and pixels icon.
With a smooth Native Mobile Application base design that seamlessly meets the new Retina HD iPhone, iPad or Mac display. No more pixel icons, we design all new thin and flat icon for retina device.
magento is huge but still lack of a reliable programmer and better extension. just because of stupid, waste, quick view. customer moves to woocommerce or other platform like bigcommerce.
without knowing iwd one page checkout fact i was design checkout page.
my final design 🙁 and all waste. waste my 2 hours.
add_action( ‘get_header’, ‘remove_storefront_sidebar’ );
function remove_storefront_sidebar() {
if ( is_product() ) {
remove_action( ‘storefront_sidebar’, ‘storefront_get_sidebar’, 10 );
}
}
Vacancy – WooCommerce Developer – Contact me – rawi.rai@me.com