Forums / Templates, Stylesheets, Page Layout / Add Product Details to listings on Home page

Add Product Details to listings on Home page

Locked

Views: 2,252

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
17 Mar 2008, 12:09 AM
#1
genone avatar

genone

New Zenner

Join Date:
Dec 2007
Posts:
8
Plugin Contributions:
0

Add Product Details to listings on Home page

Hi all,

I want to add the Product Details (description) to the product listings that displays on the home page.

That is to say I want the image, the title, the price and the description to display in the Featured, New, Upcoming etc. boxes on the home page.

AND

I want to truncate the amount of the description that is actually displayed.

Is this do-able via admin?

I've been looking... and have almost decided to just rewrite the queries but, it would be so much better if this was admin!

Thanks for your help!

17 Mar 2008, 6:20 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Add Product Details to listings on Home page

I think that there are 4 different displays - featured, new, all, product list.

There are several threads about converting all to a single display and if you find one of the group that satisfies your requirements then search for these threads and what it takes to accomplish this

Zen-Venom Get Bitten

17 Mar 2008, 11:10 AM
#3
genone avatar

genone

New Zenner

Join Date:
Dec 2007
Posts:
8
Plugin Contributions:
0

Re: Add Product Details to listings on Home page

kobra:

I think that there are 4 different displays - featured, new, all, product list.

There are several threads about converting all to a single display and if you find one of the group that satisfies your requirements then search for these threads and what it takes to accomplish this

Hi,

Yes, I have been searching (on and off all day yesterday) for a simple admin solution. Obviously I wasn't asking the right questions, because I didn't find anything and apparently I wasn't clear on what I wanted based on your response :frusty:

What I wanted to do was add a synopsis from the descriptions to all product listed on the home page, regardless of category. That is instead of just having the photo, linked title and price (Zen cart default) I wanted the photo, X amount of words from the description, linked title, and price.

I did finally give up after trying a plugin and wrote my own.

I always try to double check that what I am trying to do is or is not:

  1. Native to Zen
  2. Available in a tested plugin
    I am still not sure though. It would seem it should be native to turn on descriptions in the front page.

Okay! I am Auf!! :laugh:

Thanks

20 May 2008, 9:25 PM
#4
pglad avatar

pglad

Zen Follower

Join Date:
Jun 2007
Posts:
198
Plugin Contributions:
0

Re: Add Product Details to listings on Home page

GenOne:

What I wanted to do was add a synopsis from the descriptions to all product listed on the home page, regardless of category. That is instead of just having the photo, linked title and price (Zen cart default) I wanted the photo, X amount of words from the description, linked title, and price.

I did finally give up after trying a plugin and wrote my own.
I've been trying to do this too (think also quite a few others judging by some of the threads I've read). I've managed to find out how to do this for the featured products on the home page, but cannot figure out how to do the one I really want which is the 'new' products shown on the home page. Please could you let me know how you acheived this? :smile:

29 May 2008, 3:41 PM
#5
lplatz avatar

lplatz

New Zenner

Join Date:
Jan 2008
Posts:
28
Plugin Contributions:
0

Re: Add Product Details to listings on Home page

PGlad - given that you have figured out how to accomplish this with the Featured Products on the index page, would you mind sharing how. This would be greatly appreciated. thx :cheers:

29 May 2008, 3:52 PM
#7
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Add Product Details to listings on Home page

There are the "listings" and then there are the "centerboxes". The listings do all have the descriptions available, but the centerboxes are intended as capsule versions or teasers and have limited features.
Obviously some have developed ways to add more features to the centerboxes.

29 May 2008, 9:17 PM
#8
lplatz avatar

lplatz

New Zenner

Join Date:
Jan 2008
Posts:
28
Plugin Contributions:
0

Re: Add Product Details to listings on Home page

misty:

http://www.zen-cart.com/forum/showpost.php?p=287105&postcount=8
Example at url above

This did the trick. Do take NOTE for those who may follow this thread. When cutting / pasting into your featured_products.php page, check the $products_description code closely. There is an errant space in the code that needs to be removed for this to work.

I've used this in ZC V: 1.3.8a and it works great.

Use your CSS to modify the layout.

29 May 2008, 9:33 PM
#9
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Add Product Details to listings on Home page

lplatz:

This did the trick. Do take NOTE for those who may follow this thread. When cutting / pasting into your featured_products.php page, check the $products_description code closely. There is an errant space in the code that needs to be removed for this to work.

I've used this in ZC V: 1.3.8a and it works great.

Use your CSS to modify the layout.
Why not post the correct code, having removed errant space first..
:smile:

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

30 May 2008, 8:09 AM
#12
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Add Product Details to listings on Home page

gjh42:

That space happened because the code was posted without ```
[php] and [/php]

Excellent explanation, especially for new zencart users, who may have
little or no php knowledge. Thanks also for correcting coding at
<http://www.zen-cart.com/forum/showthread.php?t=38313>

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others