Posts

Showing posts from March, 2016

Start Xampp automatically in Ubuntu

Step 1: Open terminal(ctrl+alt+t) and run following command.sudo gedit /etc/init.d/lampp Step 2: paste following code in open file#!/bin/bash /opt/lampp/lampp startStep 3: save and close the fileStep 4: run following command to make this script executablesudo chmod +x /etc/init.d/lamppStep 5: run following command to install init scripts to all runlevelsudo update-rc.d lampp defaults Step 6: restart the system

no input file specified - error in codeigniter (Solved)

Just add the ? sign after index.php in the .htaccess file :
RewriteEngine on RewriteBase/RewriteCond%{REQUEST_FILENAME}!-f RewriteCond%{REQUEST_FILENAME}!-d RewriteRule^(.*)$ index.php?/$1 [L]

Create product category and keyword search form in woocommerce

Add form in you theme template file header.php or any you are using

<form id="search_mini_form" action="<?php echo esc_url( home_url( '/' ) ); ?>" method="get">
  <?php
    //term_id name
    $args = array(
    'parent'    => 0
      );
     $terms = get_terms( 'product_cat',$args ); ?>

    <select name="category">
    <?php foreach($terms as $term){?>
      <option value="<?php echo $term->term_id;?>"><?php echo $term->name;?></option>
    <?php }?>
    </select>

  <div class="form-search">
    <label for="search">Search:</label>
    <span class="p-reletive">
      <input id="search" type="text" placeholder="Search" name="s" class="input-text"/>
      <span class="loading"></span>
      <span class="clear-bt">…