Saturday 23 August 2014

ALL SOLUTION FOR MAGENTO

Eros theme of zoop http://learn2programming.blogspot.in/2015/02/eros-magento-theme-on-zoopmobile.html .

---------------------------

make whole background black

magento\skin\frontend\fed\default\css\bootstrp.css

 body {

  /*font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;*/

   font-family: 'Ubuntu', Tahoma, sans-serif;

  font-size: 12px;

  line-height: 1.428571429;

  color: #585858;

  background-color: #000000;
}

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

show the product on home page in magento

Home Page

{{block type="customblocks/customblock" alias="root" template="customblocks/customblock.phtml"}}
{{block type="catalog/product_list" name="home.catalog.product.list" alias="products_homepage" template="catalog/product/list.phtml"}}


set store name general >>store name

 ------------------------------------------------

how to show currency symbol in magento

system>>manage currency>>symbols 

below 2 step is very important


  \magento\app\design\frontend\jm_trex\default

is same as

app/design/frontend/<package name>jm_trex/<theme name>default

------------------------------------------

 USE MAGENTO CONNECT FOR THEME AND PLUGIN.

How to Set up Free magento Banner Slider extension in a magento store


How to download and install

1. Download
Official source 
(Compatible with Magento version 1.4 – 1.7)
2. Install
  1. Go to System/Cache Management ->Choose Enable and Submit
  2. Use FTP client to upload or copy all folders in the zip package to your Magento site root folder.
  3. Log in Magento administration panel , refresh cache
  4. Go to System/ Magento Extensions/ License keys, put your license key
  5. Log out admin panel and log in again
  6. Go to front-end and try to process

 

  http://tutorialmagento.com/top-5-affordable-magento-hosting

 http://tutorialmagento.com/magento-tutorial-for-developer/page/2

 ------------------------------------------------

how to install new theme in magento

1...after you see “Theme successfully installed” message go to System->Configuration->Design->Themes and provide the theme name in Default field (which will change your default theme to this new theme) and click “Save Config” button at the top right corner of your screen.





magento-system-design-configuration

OR
  • After Refresh the page Click Return to admin button (page top)
  • Here to Check new magento theme is installed or not
Go to system->Design
Here Click Add Design Change Button as seen below
Here to select Custom Design Tab in DropDown list Select your installed new theme Example:f002(magento Classic theme) and Click Save Button



2.... A Magento theme revolves around different columns in your theme layout. In case your store home page doesn’t load properly and shows weird design then go to CMS->Manage Pages. You will notice that there are two different layouts for the home page (may be more depending upon how many themes you have tried in the past). Based on your new theme layout disable all the other home page layouts. You can easily disable/enable the layouts by clicking “Enabled” or “Disabled” links provided in the status field.
magento-cms-manage-pages

 



You can do as followed:
1. Locate the root directory where your Magento is installed. Search for “errors” directory.
2. Change the filename of local.xml.sample to local.xml
3. Reload the page where it shows error message, you will see a full list of error message – The purpose of rename local.xml is to allow the full error message to be shown.
4. Now, locate magento_directory/lib/Zend/Cache/Backend/File.php and look for:
Replace it with:
And save the file.
5. Now, go to Magento root directory and create a new directory with the name “tmp”.6. Refresh the error page and see if the issue solved.




---------------------------------------------------------------------------------------------

Q. ADD PRODUCT ON HOME PAGE


Index

New products

Go to “CMS - Manage Pages” and select “Home Page” from the list of pages.
Use this code snippet to show products labeled as “new” on your front page:
  1. {{block type="catalog/product_new" name="home.catalog.product.new" alias="product_homepage" template="catalog/product/new.phtml"}}
(Note that you must have some new products in your catalogue for anything to show when you do this. In this context new doesn’t mean that you’ve recently added them; only products explicitly marked as new using ‘Set Product as New from Date’ and ‘Set Product as New to Date’ options in the ‘General’ product information page in the admin tool will be shown.)

All Products

Go to “CMS - Manage Pages” and select “Home Page” from the list of pages.
Use this code snippet to show all products in your catalog on your front page:
  1. {{block type="catalog/product_list" name="home.catalog.product.list" alias="products_homepage" template="catalog/product/list.phtml"}}

All Products from one Category

Go to “CMS - Manage Pages” and select “Home Page” from the list of pages.
Use this code snippet to show one category on your front page:
  1. {{block type="catalog/product_list" name="home.catalog.product.list" alias="products_homepage" category_id="4" template="catalog/product/list.phtml"}}
The category ID can be found when you go to “manage category” and then select the category you want. The ID is written in the header.
Examples are outdated, dosent work in magento 1.4.1

Layout Update XML for magento 1.4

Because in 1.4 version Layout update is different than in 1.3 version, you can use this example:
  1. <reference name="content">
  2.     <block type="catalog/product_list" name="featured" template="catalog/product/list.phtml">
  3.         <action method="setCategoryId"><category_id>[category id here]</category_id></action>
  4.     </block>
  5. </reference>
    --------------------------------------------

    Q.Call to a member function getSortedChildren()


    In Magento 1.9, I encounter the below error while showing products on homepage
    You can go through this blog post to resolve the above error and show products on homepage.
    The new RWD design has two child blocks for the product list.
    And in the template itself there are no checks to see if these are present before they are attempted to be loaded and used.
    A good idea is to use a different template that is a copy of the main template but with the following edits:
    You can first call your block in CMS Homepage like below:
    Now in your catalog/product/list.phtml find
    and replace with
    Find below code
    This code is in 2 PLACES
    and replace with this in 2 PLACES
    The name.after occurs twice in the template but the after appears just one.
    ---------------------------------------------------------
    Q.Service Temporarily Unavailable
    
    The server is temporarily unable to service your request due to maintenance downtime
    or capacity problems. Please try again later.
     
    ANS.  Check if there is a file called maintenance.flag in your magento root. If so Delete it.
    When Magento is performing certain tasks it temporarily creates this file. Magento checks for its existence and if it's there will send users to the page you described.
     
    -----------------------------------------------------
    To be able to useFeatured Product criteria of Type of product display, you need to create a new attribute named “featured”.
    Go to Catalog > Attributes > Manage Attributes > Add New Attribute with parameter as below.
    After creating the attribute, add the attribute to the default feature set by going to Catalog >> Attributes >> Manage Attributes Sets >> select Product group to go to “Edit attribute set for Product group”.
    Drag and drop attribute to attribute group that you want.
    Go to Catalog >> Manage Products >> select product >> set “Featured Product = yes”.
    Front-end Appearance
    You can follow the above mentioned steps to configure featured attribute for other products.
    On Module Configuration page, set Mode = Featured Product so that products that has featured attribute will be displayed on the product slider.
    To display this module on front page, go to CMS >> Manage page >> select page that you want to display this module on e.g. Homepage.
    Push HTML code onto Content parameter according to below syntax:
    {{block type=”joomlart_jmcategorylist/list” name=”home.jmcategorylist.list”}}
    Let’s see how it works on front-page:
     ---------------------------------------------------------------
    AAVIK KUMAR's






      
    how to change Check / Money order to cash on delivery or other payment system in magento

    The following payment methods do not require the use of a third-party service provider or gateway.
    • Cash On Delivery Payment
      The Cash On Delivery payment method, also called "collect on delivery," or COD, lets customers pay for their purchases upon delivery.
    • Check / Money Order
      Magento Go allows you to accept payments by check and money order. By default, the Check / Money Order payment method is enabled.
    • Zero Subtotal Checkout
      The Zero Subtotal Checkout payment method can be used only if the shopping cart subtotal equals zero. Such a situation may occur if, for example, a discount covers the entire price of an item and the customer selects free shipping. This payment method is visible only for orders created from the Admin panel.
    • Bank Transfer Payment
      The Bank Transfer Payment method lets customers pay for purchases by making a direct bank transfer to your merchant bank account.
    • Purchase Order
      The Purchase Order payment method lets commercial buyers make purchases from your Magento Go store by purchase order rather than cash or credit.

    Payment Service Providers

    On your Dashboard, go to System --> Configuration

    Magento Payment Gateways System -Configuration
    Scroll the mouse down and look on the left navigation menu, you will see "Sales" menu. Look down, you see "Payment Methods" and "Payment Services" right? Click on Payment Methods.
    Magento Payment Gateways System -Payment Method Section
    The first User Interface of Magestore appears like this:

     

    The following services direct your customer to their own payment page, which is outside of your Magento Go store. When the payment is complete, the customer returns to your store.

    Worldwide

    • PayPal Express Checkout
      PayPal Express displays the "Check out with PayPal" button, to let customers complete the purchase through PayPal.
    • 3D Secure Credit Card Validation
      3D Secure Credit Card Validation provides an additional layer of protection against fraudulent charges and chargebacks for sales. The service is available only for eligible payment gateways, and must be enabled by the administrator of your Magento Go store.

    South Asia

    • CCAvenue
      CCAvenue is the largest and most popular online payment gateway solution serving India and South Asia. With more than 5,000 websites relying on their services, they are a clear leader of online transactions in the region.

    To enable cash on delivery payment method:

    1. From the Admin panel, select System > Configuration.
    2. From the Configuration panel on the left, under Sales, select the Payment Methods tab.
    3. Click to expand the Cash on Delivery section. Then, do the following:
      1. To activate this payment method, set Enabled to Yes.
      2. In the Title field, enter an appropriate title to identify this payment method during the checkout process of your Magento Go store.
      3. Set New Order Status to Pending so that new generated orders are appropriately defined as Pending in their status until they are processed completely.
      4. In the Payment from Applicable Countries field, select the countries where this payment method can be used:
        • All Allowed Countries: Customers from all countries in the default countries list can use this payment method.
          NOTE: To define which countries are listed by default, modify the Allowed Countries field in System > Configuration > General > Countries Options.
        • Specific Countries: Customers from only those countries selected in the Payment from Specific Countries list can use this payment method. (The list appears when you select this option.)
      5. In the Instructions field, you enter any specific instructions for customers to follow with regards to the cash on delivery payment.
      6. In the Minimum Order Total and Maximum Order Total fields, specify the minimum and maximum order totals that qualify for this payment method. If an order exactly matches the minimum or maximum total, it qualifies for this payment method.
      7. To set the position of Cash on Delivery in the list of payment methods that is displayed during checkout, enter a numeric value in the Sort Order field. Enter 0 for the top of the sort order list, 1 for the second highest in the list, and so on.
    4. When finished, click Save Config.



    Cash On Delivery activated Admin Only ( Not Frontend enabled ) - Magento?

     http://phpmysqltalk.com/category/magento

    ----------------------------------

    I got the solution to show the currency symbol of product price:
    Currency Code :

    ?
    1
    <?php echo $currency_code = Mage::app()->getStore()->getCurrentCurrencyCode(); ?>
    Currency Symbol :
    ?
    1
    <?php echo Mage::app()->getLocale()->currency(Mage::app()->getStore()->getCurrentCurrencyCode())->getSymbol(); ?>

Saturday 16 August 2014

how to retrieve data of ckeditor from database

In our last tutorial of how to get data of ckeditor ckeditor text input insert into database full source code
this is part one which explain how to store ckeditor's text into database.We are PHP and MYSQL.

cktext table file for database ckeditor This is for database 

 

 explanation of how to retrieve saved data of ckeditor from database

only change in add.php file

<?php
include("mysql.php");

if(isset($_POST["button2"]))
{
$sql="INSERT INTO cktext (papername,email,subject,section,description,upload,uploadtext)
VALUES
('$_POST[textfield]','$_POST[te]','$_POST[select]','$_POST[select2]',
'$_POST[textarea]','$_POST[fileField]','$_POST[editor1]')";

if (!mysql_query($sql,$con))
  {
  die('Error: ' . mysql_error());
  }
  else
  {
echo "Question paper uploaded Successfully</br> YOUR TEXT IS";
$data = mysql_query("SELECT * FROM cktext") or die(mysql_error()); Print "<table border cellpadding=3>";

while($row = mysql_fetch_array( $data ))
 {
 Print "<tr>"; Print "<th>Name:</th> <td>".$row['papername'] . "</td> ";

 Print "<th>Blog:</th> <td>".$row['uploadtext'] . " </td></tr>";


echo "--------------------------------<br>";
echo "EMAIL ID :{$row['email']}  <br> ".
         "description : {$row['description']} <br> ".
         "upload : {$row['upload']} <br> ".
         "--------------------------------<br>";

 } // end of while
 
Print "</table>";
 
}//else

 }//first if isset


?>

-------------------------------------------THE END-----------------------------

 } // end of while
 
Print "</table>";   <<<<<< END OF TABLE AFTER WHILE CLOSING
  

 

You can print BLOG in new line

while($row = mysql_fetch_array( $data ))
 {
 Print "<tr>"; Print "<th>Name:</th> <td>".$row['papername'] . "</td></tr>";

Print "<tr>"; Print "<th>Blog:</th> <td>".$row['uploadtext'] . " </td></tr>";

Thursday 17 July 2014

ckeditor text input insert into database full source code

 AAVIK KUMAR PRODUCTION






This tutorial will teach how "CkEditor text input" get stored in mysql or other database.Here is full code for CkEditor textarea input insert or stored  into database.


http://www.elated.com/articles/adding-wysiwyg-editor-to-your-site/

HERE IS THE SCRIPT :-
ckeditor_file_structure how to add ckeditor in website

1.button2 is submit button.
2.qpaper is table name.
3.uploadtext >>>>>$_POST[editor1]
4.<textarea class="ckeditor" cols="20" id="editor1" name="editor1" rows="10"></textarea>

THIS IS THE CODE FOR UPLOADING TEXTAREA FIELD of ckeditor
---------------------------------------------------------------------
    <script type="text/javascript" src="editor/ckeditor.js"></script>
    <script src="editor/_samples/sample.js" type="text/javascript"></script>
    <link href="editor/_samples/sample.css" rel="stylesheet" type="text/css" />
<?php
include("mysql.php");
if(isset($_POST["button2"]))
{
$sql="INSERT INTO qpaper (papername,subject,section,description,upload,uploadtext)
VALUES
('$_POST[textfield]','$_POST[select]','$_POST[select2]',
'$_POST[textarea]','$_POST[fileField]','$_POST[editor1]')";

if (!mysql_query($sql,$con))
  {
  die('Error: ' . mysql_error());
  }
  else
  {
echo "Question paper uploaded Successfully";
  }

}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Question Paper page</title>
</head>

<body>
<form id="form1" name="form1"  method="post" action="Qpaper.php">
<table width="958" height="372">
  <tr>
    <td width="69">Paper Name:</td>
    <td width="608"><input name="textfield" type="text" id="textfield" size="40" /></td>
  </tr>
  <tr>
    <td>Section:</td>
    <td><select name="select" id="select">
    </select></td>
  </tr>
  <tr>
    <td>Subject:</td>
    <td><select name="select2" id="select2">
    </select></td>
  </tr>
  <tr>
    <td height="53">Description</td>
    <td><textarea name="textarea" id="textarea" cols="45" rows="3"></textarea></td>
  </tr>
  <tr>
    <td>Upload</td>
    <td>
      <label for="fileField"></label>
      <input name="fileField" type="file" id="fileField" size="40" />
    </td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>
      <label for="textarea2"></label>
      <textarea class="ckeditor" cols="20" id="editor1" name="editor1" rows="10"></textarea>
</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>
      <input type="submit" name="button2" id="button2" value="Upload Question Paper" />
    </td>
  </tr>
</table></form>
</body>
</html>


--------------------------------------------------------------------------------
 2nd example
--------------------------------------------------------------------------------
 Three files home.php,add.php,mysql.php

cktext table file for database ckeditor

home.php


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
  <title>Test Page </title >
  <meta http-equiv="content-type" content="text/html; charset=utf-8"/ >
  <script type="text/javascript" src="ckeditor/ckeditor.js"></script>
</head>
<body>

<form id="form1" name="form1" method="post" action="add.php">
<table width="958" height="372">
  <tr>
    <td width="69">Name:</td>
    <td width="608"><input name="textfield" type="text" id="textfield" size="40" /></td>
  </tr>


<tr>
    <td width="69">Email:</td>
    <td width="608"><input name="te" type="text" id="te" size="40" /></td>
  </tr>


  <tr>
    <td>Section:</td>
    <td><select name="select" id="select">
    </select></td>
  </tr>
  <tr>
    <td>Subject:</td>
    <td><select name="select2" id="select2">
    </select></td>
  </tr>
  <tr>
    <td height="53">Description</td>
    <td><textarea name="textarea" id="textarea" cols="45" rows="3"></textarea></td>
  </tr>
  <tr>
    <td>Upload</td>
    <td>
      <label for="fileField"></label>
      <input name="fileField" type="file" id="fileField" size="40" />
    </td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>
      <label for="textarea2"></label>
      <textarea class="ckeditor" cols="20" id="editor1" name="editor1" rows="10"></textarea>
</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>
      <input type="submit" name="button2" id="button2" value="Upload" />
    </td>
  </tr>
</table>

</form>
</body>
</html>


add.php




<?php
include("mysql.php");

if(isset($_POST["button2"]))
{
$sql="INSERT INTO cktext (papername,subject,section,description,upload,uploadtext)
VALUES
('$_POST[textfield]','$_POST[select]','$_POST[select2]',
'$_POST[textarea]','$_POST[fileField]','$_POST[editor1]')";

if (!mysql_query($sql,$con))
  {
  die('Error: ' . mysql_error());
  }
  else
  {
echo "Question paper uploaded Successfully</br> YOUR TEXT IS";
}//else

 }//first if isset
?>


mysql.php

<?php
$con = mysql_connect("localhost","root","");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }

mysql_select_db("ckeditor",$con);
?>


DOWNLOAD FULL SOURCE CODE

Monday 30 June 2014

youtube embed code iframe not working in html for my website

SOLUTION of  youtube embed code not working in website
  
      Embed code of youtube comes with two options
1. iframe code
2.old embed code
     
      recently i started facing problem whenever i put youtube embed code it shows blank space only.

HERE IS THE SOLUTION


  • 1.FIRST CHECK THE "SRC=" that must starts with HTTP or in some case HTTPS

like eg.
<iframe width="420" height="315" src="//www.youtube.com/embed/Vcu_wT5uu0s" frameborder="0" allowfullscreen></iframe>

look at this iframe code in "src=" there is no HTTP

correct form of this code is:

<iframe width="420" height="315" src="http://www.youtube.com/embed/Vcu_wT5uu0s" frameborder="0" allowfullscreen></iframe>


  • 2. JUST REMOVE THE frameborder="0" allowfullscreen in iframe code

some browser might not support frameborder="0" allowfullscreen



so,correct manner of the code is:



<iframe width="420" height="315" src="http://www.youtube.com/embed/Vcu_wT5uu0s"></iframe>



or you can also try this

<embed width="420" height="345"
src="http://www.youtube.com/embed/Vcu_wT5uu0s"
type="application/x-shockwave-flash">



FULL HTML CODE WILL BE LIKE THIS

<!DOCTYPE html>
<html>
<body>

<iframe width="600" height="345"
src="http://www.youtube.com/embed/Vcu_wT5uu0s">
</iframe>

</body>
</html>
-----------------------------------------------
 last but not the least DON'T jump between html and text code while uploading it may corrupt your code.

YOU CAN CHANGE HEIGHT AND WIDTH AS PER YOUR REQUIREMENT


Sunday 29 June 2014

css code example for menu design in easy step

Best navigation menu design with full code.

DOWNLOAD ALL THE CODE FROM http://cssmenumaker.com/blog/6-exceptional-menu-bar-navigation-designs

HTML
<div id='cssmenu'>
<ul>
   <li class='active'><a href='index.html'><span>Home</span></a></li>
   <li><a href='#'><span>Products</span></a></li>
   <li><a href='#'><span>About</span></a></li>
   <li class='last'><a href='#'><span>Contact</span></a></li>
</ul>
</div>

CSS
 @import url(http://fonts.googleapis.com/css?family=Capriola);
/* Let's import the lovely google font, please keep this line at the top of your stylesheet */
/* Menu CSS */#cssmenu,
#cssmenu ul,
#cssmenu ul li,
#cssmenu ul li a {
  padding: 0;
  margin: 0;
  line-height: 1;
  font-family: 'Capriola', sans-serif;
}
#cssmenu:before,
#cssmenu:after,
#cssmenu > ul:before,
#cssmenu > ul:after {
  content: '';
  display: table;
}
#cssmenu:after,
#cssmenu > ul:after {
  clear: both;
}
#cssmenu {
  zoom: 1;
  height: 69px;
  background: url(bottom-bg.png) repeat-x center bottom;
  border-radius: 2px;
  width: auto;
}
#cssmenu ul {
  background: url(nav-bg.png) repeat-x 0px 4px;
  height: 69px;
}
#cssmenu ul li {
  float: left;
  list-style: none;
}
#cssmenu ul li a {
  display: block;
  height: 37px;
  padding: 22px 30px 0;
  margin: 4px 2px 0;
  border-radius: 2px 2px 0 0;
  text-decoration: none;
  font-size: 15px;
  color: white;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.75);
  font-weight: 400;
  opacity: .9;
}
#cssmenu ul li:first-child a {
  margin: 4px 2px 0 0;
}
#cssmenu ul li a:hover,
#cssmenu ul li.active a {
  background: url(color.png) center bottom;
  display: block;
  height: 37px;
  margin-top: 0px;
  padding-top: 26px;
  color: #004f7c;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.55);
  opacity: 1;
}


IMAGE Source

1. http://cssmenumaker.com/sites/default/files/menu/146/nav-bg.png
2. http://cssmenumaker.com/sites/default/files/menu/146/bottom-bg.png 
3. http://cssmenumaker.com/sites/default/files/menu/146/color.png
---------------------------------------------------------

TUTORIAL For CSS3 Mega Drop-Down Menu

code--for-a-responsive-navigation-menu 

Sunday 22 June 2014

Aavik Kumar's Technical ,Business and Fictions Book

 

  visit http://www.coin1service.com/ for $ 1 DIGITAL SERVICES 

coin1service provide digital products in $1.

 


Data Structures and Algorithms Programs by Aavik Kumar

Kindle edition on amazon epub format

Amazon.in: Aavik Kumar: Kindle Store




DSA on GOOGLE BOOK WITH SAMPLE
Data Structures and Algorithms Programs - Books on Google Play






Confessions On Facebook 

By aavik kumar

Confessions On Facebook by aavik kumar (eBook) - Lulu