sumnima sumnima sumnima sumnima sumnima sumnima sumnima
Categories
blog magento

Move layered navigation block between product list toolbar and product list

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:

WswgV

 

vie : Matthias Zeis, stackexchange

Categories
blog magento RWD Theme

Say hello to SUMNIMA

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.

Categories
blog Elementary OS Linux Video Editor

Kdenlive – best open-source video editor

Kdenlive – a free and open-source video editor for GNU/Linux and FreeBSD

sudo add-apt-repository ppa:sunab/kdenlive-release
sudo apt-get update
sudo apt-get install kdenlive
Categories
blog Hosts

Editing Hosts File

very simple method and works if the site is blocked by counter method or if you know the IP address of the website (you want to unblock). Simply open /etc/hosts file and remove the entry for your favorite websites and flush the DNS cache to propagate the changes.

gksu gedit /etc/hosts

In other case if you know the IP address of target website, which blocked using some other mechanism such as ISP level or something else then add an entry (/etc/hosts) for that website along with the correct IP address. The second method seems to be logically correct – if a domain name is resolved at host level then the lookup process is terminated, so host level dns entry should bypass other DNS filtering e.g at ISP level. Therefore it is expected to work (but I have not tested yet, I’ll let you know if it works), give it a try it may work. But it may not work if the website’s IP address changes frequently – because in that case it would be difficult to update the etc/hosts file manually to reflect the new value of IP address.

Adding a DNS entry in etc/hosts file –

TARGET_IP_ADDRESS                     TARGET_WEBSITE_DOMAIN_NAME

Then execute the following command – (to flush DNS cache)

sudo apt-get install nscd
sudo /etc/init.d/nscd restart

 

Categories
blog Elementary OS Linux teamviewer

teamviewer ubuntu

sudo dpkg --add-architecture i386

sudo apt-get update

wget http://www.teamviewer.com/download/teamviewer_linux.deb

sudo dpkg -i teamviewer_linux.deb

sudo apt-get install -f
Categories
blog magento

Magento Weekness

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.

Categories
blog iOS Album iPhone Photography

It’s raining so I’m out for rain. 

              

 

Categories
blog vespa

huge disappointment vespan nepal

huge disappointment…. malaysia, vietnam assemble vespa! I was hoping GOOD not 2012 old malaysia version.

Categories
bigcommerce blog

bigcommerce fancybox iframe

$(".iframe").fancybox({
    'overlayShow': false,
    'frameWidth': 500, // set the width
    'frameHeight': 500, // set the height
    'type': 'iframe', // tell the script to create an iframe
});
Categories
blog domains

new domains with sitecake

http://rawi.ooo/
http://gumness.com/

Categories
blog Design Elementary OS gtk+ Linux Theme

Elementry OS Theme Design – Day 1

3 hrs found just some css that really matter to me.

gtk.css

@define-color colorPrimary #fff;

 

gtk-widgets.css

/*******
* CSD *
******/

.titlebar {
background-image: linear-gradient(to bottom,
shade (@colorPrimary, 0.95),
shade (@colorPrimary, 0.95)
);
border-color: shade (@colorPrimary, 0.56);
border-radius: 4px 4px 0 0;
border-style: solid;
border-width: 0 0 1px;

text-shadow: 0 1px alpha (shade (@colorPrimary, 1.4), 0.40);
icon-shadow: 0 1px alpha (shade (@colorPrimary, 1.4), 0.40);

box-shadow: inset 0 0 0 1px alpha (shade (@colorPrimary, 1.4), 0.20),
inset 0 1px 0 0 alpha (shade (@colorPrimary, 1.4), 0.60);

padding: 0 3px;
}

.titlebar:backdrop {
background-image: linear-gradient(to bottom,
shade (@colorPrimary, 0.96),
shade (@colorPrimary, 0.96)
);
background-color: shade (@colorPrimary, 1.10);
border-color: shade (@colorPrimary, 0.64);

box-shadow: inset 0 0 0 1px alpha (shade (@colorPrimary, 1.4), 0.40);

-gtk-image-effect: dim;
}

Categories
blog js

Simple, All in one JS Plugins

http://formstone.it/

Categories
blog ecommerce extesion Fuck Off magento Stupid 3rd party extesion

beautify but ugly iwd one page checkout

without knowing iwd one  page checkout fact i was design checkout page.

my final design 🙁  and all waste. waste my 2 hours.

http://magento.stackexchange.com/questions/8460/hidden-values-in-an-extension-encode-decode-data-transaction 

 

download

 

 

Categories
blog cms sitecake

i m loving it – sitecake

1st live website with sitecakegumness.com & rawi.ooo

working on new theme for sitecake.

Categories
.htaccess blog

404 page with .htaccess

ErrorDocument 404 /index.html

Categories
blog iOS mobile

meta :)

<meta name="HandheldFriendly" content="true" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="apple-mobile-web-app-title" content="Phaser App">
<meta name="viewport" content="initial-scale=1 maximum-scale=1 user-scalable=0 minimal-ui" />
Categories
blog cookies js

coverpopjs.com

CoverPop.js is a lightweight lightbox’y modal plugin with cookie integration. Style agnostic and responsive friendly.

Usage

If you are trying to show up a lightbox popup to first time visitors that is easily styleable and has cookie integration, this is for you.

If you are trying to show a lightbox image when someone clicks on an internal link, this isn’t for you.

VIEW DEMO

 

Background

CoverPop is an extension of code that we frequently found ourselves using on political campaign websites for email signups with first time visitors. We needed something that was customizable to the point that we could use it how we wanted without it getting in the way.

Setup

HTML

#CoverPop-cover is used on the full window cover.

By default, a click on any element with .CoverPop-close will close the popup. CoverPop adds preventDefault()to elements with this class.

If you wish to continue with the default action, but also hide the popup, add .CoverPop-close-go. This is particularly useful for form submissions that are sent to another page.

12345678910111213141516171819
<body>
<!– your site’s markup –>
<!– start popup –>
<div id=CoverPop-cover class=splash>
<div class=CoverPop-content splash-center>
<!– the popup content (form, welcome message, etc.) –>
<a class=CoverPop-close href=#>or skip signup</a>
</div><!–end .splash-center –>
</div><!–end .splash –>
<!– end popup –>
<!– js, etc. –>
</body>

CSS

Include the plugin css file:

1
<link rel=stylesheet href=css/CoverPop.css>
view rawCoverPop.html hosted with ❤ by GitHub

JS

CoverPop does not use jQuery, so the only file that needs to be included is CoverPop.js.

Start CoverPop with the default settings:

1
CoverPop.start();
view rawCoverPop.js hosted with ❤ by GitHub

Options

CoverPop can be customized in numerous ways. Just pass an object to the start function with what you want to change. The start function is an alias for init.

NAME DEFAULT DETAILS TYPE
coverId “CoverPop-cover” set default cover (background) id string
expires 30 duration (in days) before it pops up again integer
closeClassNoDefault “CoverPop-close” close if someone clicks an element with this class and prevent default action string
closeClassDefault “CoverPop-close-go” close if someone clicks an element with this class and continue default action string
cookieName “CoverPop” to change the plugin cookie name string
onPopUpOpen function() {} on popup open / default is nothing function
onPopUpClose function() {} on popup close / default is nothing function
forceHash “splash” hash to append to url to force display of popup string
delayHash “go” hash to append to url to delay popup for 1 day string
closeOnEscape true close if the user clicks escape boolean
debug false toggle console.log statements for debugging boolean

Examples

Use a new cookie

Example use: You changed the popup, and want all new visitors to see the new one.

123
CoverPop.start({
cookieName: CoverPop-new
});

Hide popup to the visitor for a day

Example use: You are sending visitors to a page that already has a signup form, and don’t want them to see the popup.

1
http://www.example.com/#go

Force popup

Example use: You are sending visitors to a page and want visitors who have already been to the site to see the popup again.

1
http://www.example.com/#splash

Change time before cookie expires

Example use: You want visitors to see the popup every 7 days, instead of 30.

123
CoverPop.start({
expires: 7
});

Do something after the popup closes

Example use: You want to start a video after the popup is closed.

123456
CoverPop.start({
onPopUpClose: function() {
var player = document.getElementById(myVideo);
player.play();
}
});

Hide the popup when someone clicks submit on a form and continue

Example use: You want to close the popup and set the cookie when a visitor clicks submit on a form in the popup.

1
<input type=submit value=Submit class=CoverPop-close-go>

Browsers

IE8+

Source

CoverPop is modal splash page plugin that is easily styleable — Read More

Latest commit to the master branch on 12-21-2014

Download as zip

VIEW ON GITHUB

License

MIT.

Categories
blog OS X

Josefin+Sans:300,400

perfect  o for me 🙂 Josefin+Sans:300,400

Categories
blog font google font

best google web font for x icon

best thin X font for close font icon

href=’http://fonts.googleapis.com/css?family=Flamenco:300′

 

bestx

Categories
blog ecommerce Storefront WooCommerce

Remove Storefront Sidebar

add_action( ‘get_header’, ‘remove_storefront_sidebar’ );

function remove_storefront_sidebar() {
if ( is_product() ) {
remove_action( ‘storefront_sidebar’, ‘storefront_get_sidebar’, 10 );
}
}