breastfed
Total Posts: 151
Joined: 2007-09-24
Münster - Germany
Hello DDman,
there is only “description” in the Database Sheets.
I tried the way you told me, but this is not right.
Hopefully there is Somebody who might help me.
@ daschenbrener:
go to the Homepage.php and set the “size” to the ammount you need.
The $i%5==0 in the phtml File is made for the visual stuff, to end the <tr> correct.
Regards to you.
daschenbrener
Total Posts: 7
Joined: 2008-08-04
Great Thanks for the pointer, I had chnage the one but forgot about the .php.
Much appreciated
David
mFdoom
Total Posts: 2
Joined: 2008-10-07
Poland
Hello,
How can I add “action method” when I’m using
{{block type = "catalog/product_new" name = "home.catalog.product.new" alias = "product_homepage" template = "catalog/product/new.phtml" }}
to display latest added products at the homepage?
The action method display custom products attribute:
< action method = "addAttribute" >< attribute > pcb </ attribute ></ action >
nikefido
Total Posts: 421
Joined: 2008-07-11
New Haven, CT
mFdoom - 07 October 2008 04:01 AM
Hello,
How can I add “action method” when I’m using
{{block type = "catalog/product_new" name = "home.catalog.product.new" alias = "product_homepage" template = "catalog/product/new.phtml" }}
to display latest added products at the homepage?
The action method display custom products attribute:
< action method = "addAttribute" >< attribute > pcb </ attribute ></ action >
You can add your
{{block type = "catalog/product_new" name = "home.catalog.product.new" alias = "product_homepage" template = "catalog/product/new.phtml" }}
via the layout update xml field in the CMS editing area. (in the design tab on the left)
it will become something like this:
Layout Update XML:
< reference name = "middle" > <!-- i forget if middle is correct off the top of my head --> < block type = "catalog/product_new" name = "home.catalog.product.new" alias = "product_homepage" template = "catalog/product/new.phtml" > < action method = "addAttribute" >< attribute > pcb </ attribute ></ action > </ block > </ reference >
Signature
@ My Magento Blog
- Handy tutorials on programming and designing Magento. A continual work in progress!
- Now with a new design, new hosting and a new domain! Check it out!
mFdoom
Total Posts: 2
Joined: 2008-10-07
Poland
Thanks nikefido!
It seems to work fine, because magento drop exception that cant find method “addAttribute”. Now i must change New.php.
breastfed
Total Posts: 151
Joined: 2007-09-24
Münster - Germany
Hello
i am looking for a solution to shuffle() the homepage Products.
In that Thread:
http://www.magentocommerce.com/boards/viewthread/3696/P45/#t66673
i describe the Error with the shuffle() Function.
Does Anybody know how to get rid of the Error and set up the “shuffle”.
Maybe i can define it like that:
Set attribute “home_page” for 5-10 Products and shuffle the Database Query, but only show 3 on the Homepage.
Would be great.
Need Help
Thank you
Gregg
Total Posts: 14
Joined: 2008-02-08
Am I the only one that can’t get grouped products to appear under the new product area? My simple products appear no problem, but not the grouped....Ive spent hours trying to find a solution...someone please help!
gregg
v1.1.6
stockardandassociates
Total Posts: 3
Joined: 2008-10-01
I have read through all of the threads about getting more than 5 new products to show.
I have 1.1.6 and I think the new.phtml file is different than what has been referenced.
Is there any way to show more than 5 new products in a grid style, without changing it over to divs and floats?
Raimon Esteve
Total Posts: 4
Joined: 2008-09-01
Update code post Dan_w, joined: 2008-01-04.
Work width Magento 1.1.6
Homepage.php (app/code/core/Mage/Catalog/Block/Product/)
Edit line : -> addAttributeToSelect (array( 'name' , 'price' , 'small_image' ), 'inner' ) Add param "short_description" -> addAttributeToSelect (array( 'name' , 'price' , 'small_image' , 'short_description' ), 'inner' )
homepage.phtml (app/design/frontend/[your package]/[your theme]/template/catalog/product/)
Edit line : <?php echo $this -> helper ( 'review/product' )-> getSummaryHtml ( $_product , 'short' ) ?> Change : <?php echo $_product -> getShortDescription (); ?> Edit line : <?php echo $this -> helper ( 'catalog/product' )-> getPriceHtml ( $_product ) ?> Change : <?php echo $this -> getPriceHtml ( $_product , true ) ?>
The attachment homepage.phtml: CSS Demo HomePage of Magento (with table, not div)
File Attachments
Signature
Zikzakmedia. Graphic design - CMS & ERP
cooee
Total Posts: 76
Joined: 2007-08-31
Aachen, Germany
Hello,
I’ve tried to integrate the “home_page_featured” products. I come across a very strange output in my browser screen. Unlike the method discussed earlier I put the code into /code/local rather than into the core directory and referenced it in my app/etc/local.xml. But I cannot imagine that this is the reason really. Any ideas?
Cheers,
cooee
Image Attachments
Click thumbnail to see full-size image
Signature
cooee eCommerce Blog
Leo27
Total Posts: 50
Joined: 2008-10-08
Hello cooee,
Well same here! Did all the steps, uploaded homepage.php and phtml but I’m getting the same as you did…
Did you solve it?
Best Regards
L. Nunes
Leo27
Total Posts: 50
Joined: 2008-10-08
Well, problem solved!!
Re-check what you’ve done because it works, realy don’t know what I did wrong before, but Ok…
Magento rules
Best Regards
L Nunes
mmamma
Total Posts: 37
Joined: 2008-03-10
Anybody have any idae to show grouped products. I have tested different solution but the method getProductCollection doesn ‘t return grouped products…