make menu center align – horizontal align center menu or div

well, its just basic and not a big deal  to many of you out there. But some times this will come a bit handy just as I got it. I had to spend much time around a menu center align, which I was customizing a download theme. After so many trial and error, I just figured that its better to re-write the whole menu css. Thus I solved my problem.


well here my tip


<div id=”menu_center”>
<li><a href=”#”>Tab one</a></li>
<li><a href=”#” class=”active”>Tab two</a></li>
<li><a href=”#”>Tab three</a></li>
<li><a href=”#”>Tab four</a></li>
Centered Menu CSS
Below is the CSS used to center the tabs across the page. See below for an explanation of how this works.
#menu_center {
border-bottom:4px solid #000;
#menu_center ul {
#menu_center ul li {
#menu_center ul li a {
margin:0 0 0 1px;
padding:3px 10px;
#menu_center ul li a:hover {
#menu_center ul li,
#menu_center ul li {

Disable free shipping for purchase below certain amount – OpenCart

If you are OC developer or shop owner, some time you might need to disable that  “Choose shipping method” option and make it default with some thing. For example, if customer make a purchase below certain amount say 10$, you wont have to provide free shipping, you need to put the flat rate shipping, then obviously, you dont want to show that select option between other shipping methods. How to to do this in OpenCart. well here is the trick. The ideas to disable all other shipping methods once the purchase total amount is less that  triggering  amount for free-shipping.


1. open this file /your_OpenCartInstallation_DIRcatalog/model/flat.php

2. find the line         $method_data = array();

3. below that line paste this code

         if ($this->cart->getSubTotal() > $this->config->get(‘free_total’)) {
         $status = FALSE;



thats all.



OpenCart Add To Cart Issue on Home Page

Some times, this error gonna eat your brain for a long time. I recently got an error on my OpenCart website that, My Add to Cart function is not working on Home Pages that the website loads first time. Once I go inside to a product then I come back to home page, yeah, Add to Cart Function is working. First time, I thought it would be JS issue but no, I wasted much time on that assumption.

The real villain is your Domain Name.  In my case,  does not work with the Add to Cart Function on homage on Initial website loading. But it works with So I set my server redirection such as any kind of URL request should redirect to 

MAIL function with OpenCart

Sometimes , email function with OpenCart may not work. You would wonder what  went wrong. Here is a simple tip. Go to your Store Settings, then click on Mail tab, check the mail parameter  option.

input the parameter like this



please note that  ‘-F’ is  very important, and no spaces between, in front or after that.

Add To Cart Function on OpenCart to a Button

If you want to enable Add to Cart function on a button, you simply follow these.

Code for button below

 <input type=”button” value=”<?php echo ‘ADD TO CART’; ?>” onclick=”addTOCART(‘<?php echo $product['product_id']; ?>’);”  /> 

Code for JavaScript effect below

<script type=”text/javascript”>
function addTOCART(product_id, quantity) {
quantity = typeof(quantity) != ‘undefined’ ? quantity : 1;

url: ‘index.php?route=checkout/cart/add’,
type: ‘post’,
data: ‘product_id=’ + product_id + ‘&quantity=’ + quantity,
dataType: ‘json’,
success: function(json) {
$(‘.success, .warning, .attention, .information, .error’).remove();

if (json['redirect']) {
location = json['redirect'];

if (json['success']) {
$(‘#notification’).html(‘<div class=”success” style=”display: none;”>’ + json['success'] + ‘<img src=”catalog/view/theme/default/image/close.png” alt=”” class=”close” /></div>’);

try {
catch(err) {

$(‘html, body’).animate({ scrollTop: 0 }, ‘slow’);

$(“.heading”).animate({backgroundColor: “#FFFFFF”}, ‘slow’);

$(“.cart_arrow”).attr(“style”, “display: block;”);

$(“.heading”).animate({backgroundColor: “#585858″}, ‘slow’);


Making of an Eclipse with a Rubber Ball. !


1 2

ഒരുപക്ഷേ കണ്ടാൽ അങ്ങനെ തോന്നുമെങ്കിലും ഇവിടെ ഗ്രഹണം ചെയുന്നത് ഒരു റബ്ബർ ബോൾ ആണ് .കഴിഞ്ഞ ദിവസം ചെറായി ബീച്ചിൽ സൻസെറ്റിനെ സാക്ഷി നിർത്തി ഫ്രണ്ടിനെ മോഡൽ ആക്കി ഒരു പരീക്ഷണം! ചക്ക വീണ് ചത്ത മുയലിനെ പോലെ ദോണ്ടേ കിടക്കുന്നു ഒരു ഫോട്ടോ …
Some would say that it just a COINCIDENCE… But i call it… The Magical ‘Pause’ !!!
Camera: Casio Digital camera 10 Px
(Special thnks to the owner : Ponds Arun)
Iso: 64
Mode: Night Mode
Exposure Time: 1/800
Model: Vivek Krishnan

Original Post  <– here

Photographer :-  Anoob Stanly

Elementary OS – Login not working after wing panel customization / Connect Internet using command line / NetworkManager command line

If you are using elementary OS, some times, you may encounter this issue  such as  Login Screen wont succeed once you install wing panel slim or customize it.

This is because packages pantheon-shell, pantheon-xession  will be removed once you install wing panel slim. One way to fix this is to re-install pantheon-shell using apt-get via terminal / text-mode . Here is another work around need to be done, since there is no GUI, you will have to connect internet through text-mode. If you are using a DSL kind of all connected Internet, this wont be a problem, but if you are using a 3G internet USB gadget, it will be an issue, like me.

So, what to do ? well, there is a command line version of network-manager which is an excellent gui software for managing internet connection.

fire this command such as

#nmcli con

this will display available internet connection in the system with UUID

#nmcli con up uudi <idnumberhere>

this will connect to internet, then you can use apt-get for install the packages.. Voila..