Magento Themes and Magento Extensions

How to Display New Products in Magento with Pagination?

Share
Posted on March 27th, 2013 | Posted by admin

Displaying new products to a specific category in any Magento site , with pagination and a CMS page is really very complicated. The default functionality that Magento offers for latest products doesn’t just work. However, below is documented the method that will let you add new products to a Magento CMS page along with pulling up new products for any category you select, or for the entire site. Whether you are looking to include new products to your CMS page by category or for the whole site, it all depends upon you.

How to add new products with built-in Magento Tools?

Displaying or adding a list of new products in Magento through a default block is made possible without any coding issues or changes to Magento itself. This code allows you to roll out a roster of new products on the CMS page of your liking.

How to display new products in Magento with Pagination?

Magento: Display Currency Switcher in Header

Share
Posted on December 25th, 2012 | Posted by admin

Magento: Display Currency Switcher in Header

dd the following XML in layout/directory.xml between <default> and </default>

<reference name=”header”>
<block type=”directory/currency” name=”top.currency”  template=”directory/currency.phtml”/>
</reference>

Add following code in header.phtml

<?php echo $this->getChildHtml(‘top.currency’) ?>

Magento – Display the SKU on a Product Page

Share
Posted on December 10th, 2012 | Posted by admin

Magento’s default theme doesn’t display the SKU on the product page. This is a pretty easy modification to get this working properly.

In whichever theme you’re using, in the file template/catalog/product/view.phtml, add the line:

<?php echo $this->htmlEscape($_product->getSku()) ?>

Here’s a few lines of my view.phtml to give you some context:

Magento: Display More Than 5 New Products

Share
Posted on December 5th, 2012 | Posted by admin

Sometimes we have to display more new products than default number. The default count of new products in Magento is fixed only 5. But you can display more than 5 new products without modifying Magento core files. You can use below code for setting new product count according to your requirement.

  1. {{block type=“catalog/product_new” name=“home.catalog.product.new”
  2. alias=“product_homepage” template=“catalog/product/new.phtml”
  3. _productsCount=“20″}}

The “_productsCount” determine how many new products will be displayed. Here I have set 20 product but you can change this according to your requirement.

Display multiple image for particular product

Share
Posted on October 13th, 2012 | Posted by admin

I’ve seen some solutions out there that modify core code, some that just take a file and move it to your /app/code/local/ retaining the same directory structure, so as to just override the file. I don’t recommend either of these methods (especially the first), as with a true module you are setting up a much better environment over time for this to last. And a module allows you to ONLY override the methods you need to modify, instead of entire classes. Plus, you can easily disable the module right in the admin (Admin >> System >> Configuration >> Advanced).

Be sure you replace all of the “YOURSTUFF” with your name or company name.

I have only tested this with 1.3.2.4
Step 1:

Create the file: /app/etc/modules/YOURSTUFF_ImportMultipleImages.xml. This file tells Magento that you have this module and where it is located.

true
local

Page 1 of 3123»