Magento themes and extensions

Magento : Login/Logout Code in Header

Posted on April 30th, 2013 | Posted by admin

Magento : Login/Logout Code in Header

<?php if (! Mage::getSingleton('customer/session')->isLoggedIn()): ?>
<a href="<?php echo Mage::helper('customer')->getLoginUrl(); ?>"><?php echo $this->__('Login') ?></a>
<?php else: ?>
<a href="<?php echo Mage::helper('customer')->getLogoutUrl(); ?>"><?php echo $this->__('Logout') ?></a>
<?php endif; ?>

Magento – Get Category URL from Category Id

Posted on April 29th, 2013 | Posted by admin

Magento - Get Category URL from Category Id



Posted on April 28th, 2013 | Posted by admin

There are many ways to mass update product attributes in Magento, each well suited to a different purpose. Magento’s built-in mass product attribute updater is great if you want to modify a selection of products or the new attribute value is the same for all products you want to edit. Alternatively, if you wish to alter the attributes in more dynamic ways, updating them programmatic ally via PHP is probably a better way.. The downside to both of these methods is speed, with each product update taking a few seconds to complete. While this time can be dramatically reduced by disabling indexing, the wait can still be too long for a store with a massive catalog. A more efficient way to update product attributes is to write direct SQL queries. As an example, I will show you how to mass update product pricing for all products, products from a certain store and products that use a certain attribute set.

Why would I want to mass update price?

When I was first asked to do this I asked myself the same question, however, the reason is quite simple. In Magento, shipping costs aren’t usually displayed to the user until they enter their delivery address. While this makes sense, the customer usually enters their delivery address during the checkout process, meaning a lot of customers weren’t aware of this extra cost. During a study of one site, I found that almost 30% of customers were leaving the store during checkout and that this bounce rate could almost definitely be attributes to the shipping cost.

Setting Category-Specific Filter Labels in Layered Navigation

Posted on April 25th, 2013 | Posted by admin

Starting from version of SEO Layered Navigation Plus extension, you can easily set category-specific filter labels. Here is how:

  1. Open category in which you’d like to change filter label.
  2. Go to “Custom Design” tab.
  3. In “Custom Layout Update” field, add: 
    <reference name=”mana.catalog.above_products.nav“>
    <action method=”setCategoryLabel“><value>More Electronics</value></action>
  4. Instead of above_products.nav, you may use leftnav or rightnav (to specify in which layered navigation you intend to do the change).
  5. Instead of Category, you may write Color, Price, etc (take attribute code, like some_attribute_name and remove underscores and capitalize first letters, like SomeAttributeName).
  6. Save category.

how to place a block in a magento cms page sidebar

Posted on April 23rd, 2013 | Posted by admin

Magento Go allows site owners to place a block in the sidebar. If the Magento theme supports sidebars on both sides, just like the default theme, then you can place the content block in either of the two sidebars. By slightly tweaking the codes, you can position the block and control its position in relation to other blocks in the sidebar.

  • Log in to your Magento store backend after entering the correct credentials
  • From the Admin Panel, select CMS > Pages > Manage Content
  • Click to open your desired CMS page
Page 1 of 612345»...Last »