Multiple Base Prices in Magento: Updated

Share
Posted on May 22nd, 2013 | Posted by admin

It is possible to have multiple base prices in Magento but you need to set up different websites:

Step 1. In Magento product price scope can be kept either global or per website, so you can have only one base price currency for a website. To set the Catalog Price Scope to website log into the Admin and go to System – > Configuration -> Catalog -> Price

Step 2. Set up multiple websites in Configuration > Manage Stores (you will need to creat a website/view and store for your new shop)

Step 3. Set the pricing for each one in Configuration > {switch store} > Currency Set up

Magento: Moving Cart from Sidebar to Header

Share
Posted on May 21st, 2013 | Posted by admin

In this Magento tutorial we will demonstrate how to move the mini-cart that resides in the right column of a fresh Magento install into the header section. This can be a popular request as the header section of a e-commerce store is a great place to include the cart especially if you are using a one column template on important pages like the homepage.

1) Now open layout\page.xml from within your theme folder and look for the following lines of code:

1 <block type="page/html_header" name="header" as="header">

and add the following line before before the closing </block> tag:

Create a ‘Show All’ link on product links

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

Magento by default now has the ability from the admin area to create a ‘show all’ link via the Products per Page on Grid Allowed Values section of the catalog area. This by default is great, it works fine and should be a great asset to your product listing pages. But you may run into a client who just wants to have a ‘view all‘ link and nothing else which by default is not in Magento just yet; so we have to come up with a solution to this. And the solution is as follows:

First thing to do is to navigate to /app/design/frontend/theme/default/template/page/html/pager.phtml, once you have opened the page add this code to were you want your ‘view all‘ link to be placed.

1
<br>&lt;a href="&lt;?php echo $this-&gt;getLimitUrl('all')?&gt;" title="&lt;?php echo $this-&gt;__('View All Products') ?&gt;"&gt;<br><br>&lt;?php echo $this-&gt;__('View All') ?&gt;<br>&lt;/a&gt;<br>

This segment of code generates our link with ‘limit’ parameter set to ‘all’. Now when we click on it, it will give us a full category listing.

Magento: How To Add The Target To Grid Url Actions

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

Magento, on administration side, has the concept of “grid”, a table with ability to filter, order, page a collection of data. For example the product list is a grid.

A grid is usually initialized on block implementation that “prepares columns” and when I needed to change the columns of a grid I overloaded the block implementation with a class of mine extending the original one.

The latest modification I made on Magento was on product list tab present on category detail. I found incredibly stupid in Magento the absence of a category filter on product management panel and an edit action on product list on category detail.

Since the simpler thing was to add an action to that table I overrided the

Adminhtml/Block/Catalog/Category/Tab/Product.php

Quick Tip: Override Magento Meta data in XML files

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

In this quick tip I’ll teach you how to override the meta data using Magento’s XML layout files. You’ll be able to adjust any meta tag in the head with ease. For the changes I’m teaching you to make I recommend you add them to your local.xml file which you may need to create within your theme if it doesn’t already exist (app/design/frontend/[package]/[theme]/layout/local.xml)

Overriding Robots Meta Tag:

<customer_account_login>
  <reference name="head">
    <action method="setRobots">
      <value>NOINDEX, NOFOLLOW</value>
      <name>robots</name>
    </action>
  </reference>
</customer_account_login>

Overriding the Page Title:

Page 1 of 1812345»10...Last »