How to show unlimited number of products in Magento latest collection page

August 2nd, 2010

Hi there,

A major confusion while working with Magento was representing more than 5 latest products in latest collection page. And in my case client need only latest collection page. In fact he wants to show all his products in latest collection page.

Latest collection page compares Product new From date and to date values and shows the products. By default the page will show only 5 products. So how to overcome this problem!! Hope you know how to setup a latest collection page. A small addition on that code can override the default settings of Magento.

{{block type=”catalog/product_new” name=”home.catalog.product.new” template=”catalog/product/new.phtml”}}

As you know we use this block code to create latest collection page. By default it shows only five products, but we want to show ten

{{block type=”catalog/product_new” name=”home.catalog.product.new” template=”catalog/product/new.phtml” _productsCount=”10″}}

This is how we can show 10 products on the latest collection page. Only addtion to code is ‘_productsCount=”10″ ‘. So how can we show unlimited number of products on same page, simple ‘_productsCount=”0″ ‘. See the easiness and scalability of Magento. Enjoy!

How to use curvycorners in Magento themes

June 14th, 2010

Rounded edges or curvy corners are always a trendy style in web designing.  Early stages we used images to make the edges rounded, later it replace with css or javascript alternatives. Among all the easiest method is curvycorners.js. Just include this javascript file and some 4-5 lines of code, your job is done. You can find examples and usage guide in curvycorners.net.

I am not going to explain much about curvy corners here, you just go to the above mentioned website and explore yourself more on that. Here i am going to explain how to use this with a magento theme. If  you are new to  use a custom javascript with magento theme this post will benefit for you too.

Read the rest of this entry »

Object oriented PHP programming: An introduction

May 28th, 2010

Object oriented php programming.

By the reign of PHP 5 oops concept worked well in a server scripting language. OOPS or Object oriented programming is a very easy method of coding. If you are still not aware of OOPS concepts, just google it and collect some knowledge.

I assume you have good knowledge of OOPS concepts and you want to implement those concepts to your PHP code to make perfect output. I shall give you a small introduction to practical object oriented php coding. Read the rest of this entry »

Face detection using PHP.

August 13th, 2009

Hai,

Wht do u feel …nice title…its possible guys thanks to Par Maurice Svay le vendredi for a successful script. I tested it many times with many jpgs of various sizes …and gave me amazing result. Script uses GD so gd library should be loaded on your PHP server. Wht…stop sentence and give me the code????…ya coming …just go straight to Svay through this link and grab it.

http://svay.com/blog/index/post/2009/06/19/Face-detection-in-pure-PHP-(without-OpenCV)
:)

Enjoy

Get Adobe Flash playerPlugin by wpburn.com wordpress themes
Graphic Design Blogs - BlogCatalog Blog Directory