Display product in list using widgets in magento - magento

I am working on magento home page and need display products on home page. I have used widgets to display products. I want to display product in list one by one but it shows in grid. Right now I am showing the products in list.
my code is :-
{{widget type="highlight/product_popular" title="special" products_count="3" template="highlight/product/grid.phtml" class_name="highlight-popular"}}
Using this code the product is shown in grid but actually I want to display it in list like:-
1. Product1
2. product2
Please, suggest how I can do this.

whatever you are putting in your grid.phtml - change it as suggested in
base/default/template/catalog/product/list.phtml as per list mode, code followed by it

Related

adding product listing on magento homepage with description

I need to show my new products on the home page as a list view. I have used a Magento widget, but it is not returning the description of the product. How can I fetch the whole details of the product in the home page as shown in the image below?
First find out(template hint) the file from where your widget is rendering products. It's located in app/design/frontend/<yourpackage>/<yourtheme>/template/catalog/product/widget/new/content/new_grid.phtml/new_list.phtml
Go look in that file, you will see how and what values are the widgets printing. So if you want description within the foreach loop you can get by printing $_product->getShortDescription() or $_product->getData('short_description')
Similarly to get other stuff like in list page, please take reference from template/catalog/product/list.phtml see how the other details are being printed and get those here on widget phtml file.

Display set of user chosen categories on magento home page

I am trying to display categories on magento home page. I know how to do it in a normal way using magento collections. I want to have it like a widget, if you insert a category link widget in static block or cms page, you can see the following:
{{widget type="catalog/category_widget_link" template="catalog/category/widget/link/link_block.phtml" id_path="category/3"}}
Now, here the id_path indicates which category to display. Can we modify it somehow to show a list of specified categories. For example like this: id_path = '3,4,5,6' so it will display all these specified categories. Can anybody guide me a way to do this? I don't know much about widget coding stuff in magento.
You can add as many as widgets inside the static block by selecting the widget as many as times you want.

Magento:- Add Grid in Admin Form

Iam generating a form in Magento Adminhtml.
I have two list boxes Category and SubCategory which are populated cascadingly.
Now after click or change event of subcategory list i want to display magento grid(grid with paging filtering) JUST below that subcategory list.
I dont know which block to use to show that grid.
Help appreciated.
-Thanks
Hemant
Try to look in Mage files , magento already using grid into form,
look in this file : core/Mage/Adminhtml/Block/Catalog/Category/Tap/Product.php
Product.php is a grid , to check the result from back-office, check catalog->manage categories then click on category products tab
There are many tutorials on creating a grid.
Maybe this one will help?
http://www.webspeaks.in/2010/08/create-admin-backend-module-in-magento.html

Magento - only show special price

I have a problem with the special price in grid mode product view.
I want the special prices to show the way the sold out items show, with a little image saying SALE, but without the normal prices showing.
http://www.tigerandelephant.com/index.php/t-shirts-1.html heres the link to the product page.
Thanks for your answers!
Have you tried checking getSpecialPrice on the product model? If it returns an empty don't apply your image and show the normal prices, if it has a value apply your special class/image to get the sale ribbon and don't show the normal prices.

Display specific products on a CMS page

Could someone help me with some code to display specific products on a Magento CMS page?
The idea being that I build a page that has multiple sections on it (sections meaning a heading, some intro text and a small handful of products) and the user can add a selection of the displayed products to their cart from this page.
Ideally, the products should be displayed in the grid format, and I should be able to display between 1 and 6 products in each section.
I am using Magento 1.4.0.1 currently.
Cheers!
Consider using a CMS Widget to do this for you.
Here is one: Product List Widget
It isn't free but there are others if you look around.

Resources