Call-back icon  Sales: Call 877.832.5289 (N America)|310.295.4144 (International)

Magento

eCommerce Software for Online Growth

Magento Forum

   
Page 12 of 12
ways to show products at the home page
 
breastfed
Sr. Member
 
Avatar
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.

 
Magento Community Magento Community
Magento Community
Magento Community
 
DDMAN
Sr. Member
 
Total Posts:  101
Joined:  2008-01-08
 

Look at this reply (POST #35) earlier in this thread http://www.magentocommerce.com/boards/viewthread/4454/P30/#t22515 P

The reference to short description in the array looks like short_description.

I’m not a php programmer so I’m sorry I can’t help any more

 
Magento Community Magento Community
Magento Community
Magento Community
 
daschenbrener
Jr. Member
 
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

 
Magento Community Magento Community
Magento Community
Magento Community
 
mFdoom
Jr. Member
 
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>

 
Magento Community Magento Community
Magento Community
Magento Community
 
nikefido
Guru
 
Avatar
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!

 
Magento Community Magento Community
Magento Community
Magento Community
 
mFdoom
Jr. Member
 
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.

 
Magento Community Magento Community
Magento Community
Magento Community
 
breastfed
Sr. Member
 
Avatar
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 wink

Thank you

 
Magento Community Magento Community
Magento Community
Magento Community
 
Gregg
Jr. Member
 
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

 
Magento Community Magento Community
Magento Community
Magento Community
 
stockardandassociates
Jr. Member
 
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?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Raimon Esteve
Jr. Member
 
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($_producttrue?>

The attachment homepage.phtml: CSS Demo HomePage of Magento (with table, not div)

File Attachments
homepage.phtml  (File Size: 2KB - Downloads: 52)
Homepage.php  (File Size: 3KB - Downloads: 40)
 Signature 

Zikzakmedia. Graphic design - CMS & ERP

 
Magento Community Magento Community
Magento Community
Magento Community
 
cooee
Sr. Member
 
Avatar
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
screener_featured_product_m.jpg
 Signature 

cooee eCommerce Blog

 
Magento Community Magento Community
Magento Community
Magento Community
 
Leo27
Member
 
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

 
Magento Community Magento Community
Magento Community
Magento Community
 
Leo27
Member
 
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 smile

Best Regards
L Nunes

 
Magento Community Magento Community
Magento Community
Magento Community
 
mmamma
Member
 
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…

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
Page 12 of 12
 
Sales: Call 877.832.5289 (North America) 310.295.4144 (International)
© Copyright 2008 Varien. Magento, eCommerce software, is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
52311 users|464 users currently online|105632 forum posts