Magento Themes and Magento Extensions

Magento – Category List Dropdown in Tree view (With Parent and child)

Share
Posted on May 8th, 2013 | Posted by admin

After Log Exercises With code finally I am able to build the tree view in magento with dropdown I search alot on this but nothing is there to build Category Tree Dropdown
Magento - Category List Dropdown in Tree view

here is the code by using you can create the Tree Structure in magento view

my .phtml file code is as belows

About Integrity constraint violation: 1062 Duplicate entry PROBLEM

Share
Posted on May 7th, 2013 | Posted by admin

I moved my one MAGENTO site from test side to the live side.

But when we did test for the website, we were trying to add some item to the shopping bag, but we got the message said:

Integrity constraint violation: 1062 Duplicate entry ’6′ for key 1

After some research, here is solution:

Go to PHPMyAdmin, find out all tables like Log_*,

Delete all the contents in Log_* except the Log_Summary_type one.

How To Append Additional Fields In Magento’s Default Contact Form?

Share
Posted on May 6th, 2013 | Posted by admin

Magento itself provides a lean Contact Us form which can be used by customers to contact the store owners. But, what if you want to take additional inputs from your user? Customizing Magento Contact Us form is one of the most common request any Magento developer recives. So, here is an easy way of appending/inserting more fields to customize Magento Contact form.

Step 1. Edit form.phtml file located atapp/design/frontend/default/YOUR_THEME/template/contacts/form.phtml. Suppose you want to add subject field after telephone. Then find the following lines of code

How To Setup Google Adwords Conversion Tracking On Magento

Share
Posted on May 5th, 2013 | Posted by admin

Setting up Google Adwords Conversion Tracking on your Magento store

1. Open this file:
/app/design/frontend/default/yourskinname/template/checkout/success.phtml

2. At the bottom of the file, insert this code:

1
2
3
4
    <?php
    $order_details = Mage::getModel(’sales/order’)->loadByIncrementId(Mage::getSingleton(‘checkout/session’)->getLastRealOrderId());
    $adwords_saleamt = $order_details->subtotal;
    ?>

3. Login to your Google Adwords account

Magento Display All The Categories In The Left Navigation Lists

Share
Posted on May 4th, 2013 | Posted by admin

In magento themes have the option to list out category list in the left navigation. But some of the themes are not available.

So, we need to create manually to list out the category lists in left nav bar.

1. We need to create left.phtml file in the following location

app\design\frontend\default\YOUR THEME\template\catalog\Navigation\

Then place the followiing code to list out the left navigation category lists like category and subcategory lists.

Page 5 of 6« First...«23456»