When on a product page in Magento, it can be a bit tricky to display the name of the category the product is in. Actually it’s not that hard, all you have to do is to follow these Magento tips.

The template file you’ll have to edit is this one catalog/product/view.phtml

and add the next code where you want to display the category

<?php $categories = $_product->getCategoryIds(); ?>
<?php foreach($categories as $k => $_category_id): ?>
<?php $_category = Mage::getModel('catalog/category')->load($_category_id) ?>
<a href="/<?php echo $_category->getUrl() ?>"><?php echo $_category->getName() ?></a>
<?php endforeach; ?>
Posted in eCommerce, Magento Commerce | Tagged , , , , | Leave a comment
OS Commerce is open source e-commerce store online management software. It can be accessed on any server that has PHP and MySQL installed in it. However, with the preamble of Magento, has become much easier to keep buying stocks online. You can transfer your data from OS Commerce on your website in Magento.

Magento is one of the shopping carts that use the most promising information such as IP / DB OS Commerce host, username and name of the database to create a profile. Everything else is in charge of Magento. The data supports Magento is the database default OS Commerce 2.2 RC2, including customers, orders, categories and products in several languages. There is an online service that helps you to transfer data from OS Commerce to Magento automatically. Magento offers a wealth of features that enable a website like anything else. Magento offers a number of advantages. First, that is superior to OS Commerce development because of the useful features that are easy to modify and have a strong community structure, good programming, and the frequency of updates of project code. The software is designed to be easy, so even if you have a store and say a security update comes out, you can update in just a few minutes, without going through a series of lines of code. It has many additional modules that people often request OS Commerce. We offer coupons, order editing, SEO URLs and Meta tags, reporting abandoned shopping cart, product comparisons, edit email messages, shipping estimator shopping cart without having to start session, and much more. There are many benefits of development, such as Magento, which requires no technical knowledge. All you need to configure and migrate are just few minutes. A large store may require a bit more. But anyway do sooner than expected. You pay for the information to migrate only. Live Help, and assisted migration of OS Commerce to Magento is available to save time, minimize risks and ensure data security. With the help of Cart2Cart can transfer all your categories, products, product images and information related to the product, customers, orders, taxes, currencies? Before upgrading, you need to know what you have made customizations to your website OS Commerce and compare it to the list of features of Magento to see if something has been missing in Magento. If there is something missing, should put in your quote request sent to your web developer. The main steps in the conversion of OS Commerce to Magento are changing the type of customization that need. However, it is imperative to note that once you turn on to Magento, customers do not have the same client logins. Magento developer can export the logins to hire from the users themselves they had in their shop OS Commerce. To migrate from OS Commerce to Magento, you need to hire a good Magento e-commerce service development. Hiring an experienced service provider that offers reliable and to develop their Magento store try to upgrade in a test server before switching to Magento.

From – http://www.mage-world.com/news/tips-for-migrating-from-os-commerce-to-magento59021.html

Posted in eCommerce, Magento Commerce | Tagged , , , , | Leave a comment

Tier pricing is great, but you don’t want to display every price to every customer. To show tiered pricing to logged in visitors only, go to: app/design/frontend/default/default/template/catalog/product/view/tierprices.phtml

On this file, add this PHP function

<?php if(Mage::getSingleton('customer/session')->isLoggedIn()): ?>

The above function should be added before the following piece of code

<?php if (count($_tierPrices) > 0): ?>

Then add this code at the end.

<?php endif; ?>
Posted in Content Management System, eCommerce, Magento Commerce | Tagged , , , , | Leave a comment

Having a Facebook button on your product is an easy way to take advantage of the power of Facebook. If a user clicks on it, he shares your page with all his friends.

To add this button, add the following code anywhere in this template file: app/design/frontend/theme/theme/template/catalog/product/view.phtml

<a name="fb_share" type="button"></a>
<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript">
</script>
<?php elseif($_share == 'facebook_like'): ?>
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like show_faces="true" width="450"></fb:like>
<?php endif; ?>
Posted in eCommerce, Magento Commerce | Tagged , , , , , , | Leave a comment

If you have recently upgraded your Magento website and tried to reindex your data, then you might be stuck at PRODUCT FLAT DATA reindexing. This problem is mainly due to the fact of too many attributes usage, etc.

In order to fix this,

- Edit
app/code/core/Mage/Catalog/Model/Resource/Product/Flat/Indexer.php

comment out this line :

1
//$adapter->quoteInto(’additional_table.is_used_for_promo_rules = ?’, 1),

inside function getAttributeCodes()

Another fix is here,

http://www.magentocommerce.com/boards/viewthread/261848/#t365431

Posted in eCommerce, Magento Commerce | Tagged , , , | Leave a comment

If you are using Easy Tabs Magento extension on your Magento website, then you might be facing an issue on IE9, where the tabs are not working.
So, here is the fix for it.

Goto frontend/default/default/template/easytabs/tabs.phtml and edit the file on a code editor :

Find this code :

01
02
03
04
05
06
07
08
09
10
11
12
13
showContent: function(a) {
   var li = $(a.parentNode), ul = $(li.parentNode);
   ul.select('li', 'ol').each(function(el){
     var contents = $(el.id+'_contents');
     if (el==li) {
       el.addClassName('active');
       contents.show();
     } else {
       el.removeClassName('active');
       contents.hide();
     }
   });
}

Replace it with :

01
02
03
04
05
06
07
08
09
10
11
12
13
showContent: function(a) {
    var li = $(a.parentNode), ul = $(li.parentNode);
    ul.select('li').each(function(el){
      var contents = $(el.id+'_contents');
      if (el==li) {
        el.addClassName('active');
        contents.show();
      } else {
        el.removeClassName('active');
        contents.hide();
      }
    });
  }
Posted in eCommerce, Magento Commerce | Tagged , | Leave a comment

Last week, while trying to upgrade a client site from 1.4.x to 1.6.x , I faced a weird issue, where the index management was getting stuck at Tag Aggregation Data. Here I what I did yo fix it :

1. Checked for InnoDB database collation.2
2. Verified the database with Database Repair Tool.
3. Then removed all the 4 tables related to TAGS , and dropped it. Then exported it from a clean 1.6 database and imported it. Cleaned the cache and reindexed then.
4. There is also a fix here, which worked for many, http://www.magentocommerce.com/boards/viewthread/264050/

Posted in eCommerce, Magento Commerce | Tagged , , , , , | Leave a comment

Magento has Google Optimizer tools built in and so it makes sense to use them.  Google Optimizer allows you to present different content options to your prospective customers and then tracks which version converts more.  On top of this Google Optimizer has built in probability formulae that understand when a result is a ‘confident result’ rather than a random occurrence.

To get a confident result you need to either have a test that is really obviously better or a decent number of transactions.  But as a rule of thumb if you are getting more than 10 transactions a day then you can benefit from using Google Optimizer.

Where to start?

If you have a lower number of transactions it makes sense to start optimizing on the pages that most people see.  This tends to be the home and checkout pages of the site. However we need not guess the best place to start when we have good data available to tell us exactly.

We can find the best place to start by looking at Google Analytics.  Google Analytics should be setup using Ecommerce mode and to be tracking conversions, which is a standard part of Magento as long as you have entered the Google ID in the Google API area of Magento’s configuration settings.

In Google Analytics go to ‘content’

Then top content

Then set the time line for Google Analytics to show a decent length of time.  I am using 6 months in my example – just use as much data as you have since the site has been stable and not changed.

On the top content screen find the right most column called $ index – the $ index is the average value for a page that a user visited before completing an Ecommerce transaction.  Ordering by the $ index will give you the most valuable pages on your site.  However you also need to click on ‘weighted sort’ to give you not only the most valuable pages but the most relevant valuable pages.  Without weighted sort you are only going to see the pages that randomly got high values because an odd buyer used them to make a big purchase.  By using weighted sort we can filter out these anomalies.

On the site I am looking at for this example this gives me the following pages

As you can see these are all checkout pages which are NOT part of the inbuilt Google Optimizer set of tools that Magento supplies.  Whilst I have personally run split tests here, its tricky and not something I can easily show you.  However you can optimise these pages by creating a ‘goal’ funnel and looking at the profile, but I want to cover that in another blog post.

So what I am going to do is to scroll through the list until I find one of the following pages that is built into Magento to Google Optimizer test

    • Product page
    • CMS page – (this could be a Google Adwords landing page and in many of my sites these are the best pages to test as they drive a significant proportion of my revenue)

In my example site the first page I find is not the home page as I would have expected but instead a product page.  It just goes to show how important it is to look at the stats before deciding where to test.

The product I can use to test is worth $102 and thus a decent sale for the site and must have a fair number of transactions to rank this highly.  So this is where I would start.

I am not going to go through how to actually setup the experiment as there are plenty of good blog tutorials available – just Google “Google Optimizer for Magento” – but I wanted to show you where to test first as this will actually allow you to make the most important changes to your site first.

Posted in Magento Commerce | Tagged , , , , , | Leave a comment

If you are looking to place new products or latest products on magento frontpage, then just place this on your homepage CMS or make a static block.

{{widget type=”catalog/product_widget_new” products_count=”5″ column_count=”5″ show_title=”true” show_addtolinks=”false” template=”catalog/product/widget/new/content/new_grid.phtml”}}

Posted in Magento Commerce | Tagged , , , , | Leave a comment
Posted in Uncategorized | Leave a comment