Zen Cart Logo
Forums / All Other Contributions/Addons / Using one single listing template

Using one single listing template

Views: 90,805

Results 61 to 80 of 327
29 Jul 2008, 3:22 PM
#61
jikey avatar

jikey

New Zenner

Join Date:
Jan 2007
Posts:
59
Plugin Contributions:
0

Using one single listing template

hi,
thxq for the sharing.

i hav tried mod it and it's work easly but

i found out the featured_products and special the code are diff from the normal listing.

so if i use the same way or same code the featured product n special page doesn't work as featured product or special product it just normal listing page only

perphas some guide me to have it done ...

online korean jewelry store...
www.myasper.com

14 Aug 2008, 10:22 PM
#62
soaknfused avatar

soaknfused

New Zenner

Join Date:
Aug 2008
Posts:
5
Plugin Contributions:
0

Re: Using one single listing template

I am trying to do basically the opposite of this. I am very very new to Zencart but have a customer who we are making a site for.

All is well for the most part. The only remaining request that he has would be to make the category view look like the products all, products new etc.

Is there a simple way to swap out the instructions from this tutorial to do this or is is very different? Willing to learn, just not overly excited about the folder structure of Zencart.

TIA
(confuzzled Zencard n00b)

15 Aug 2008, 6:41 AM
#63
kobra avatar

kobra

Black Belt

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

Re: Using one single listing template

soaknfused:

make the category view look like the products all, products new etc.
What are you calling "category view"??

A direct link to the page in question removes terminology issues

Zen-Venom Get Bitten

16 Aug 2008, 5:48 AM
#65
kobra avatar

kobra

Black Belt

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

Re: Using one single listing template

That is the "product listing" view you want changed to look like the new products layout...

There are instructions in this thread to do this but maybe from different page to another page but the basics are the same

Zen-Venom Get Bitten

20 Aug 2008, 4:40 PM
#66
berserker avatar

berserker

Totally Zenned

Join Date:
May 2006
Posts:
712
Plugin Contributions:
0

Re: Using one single listing template

Hello,

Im thinking of doing this but just wondering if this has been sorted out for the 4.0 release? Because if so, i'll be more than happy to wait.

All the best...

21 Aug 2008, 9:06 PM
#67
soaknfused avatar

soaknfused

New Zenner

Join Date:
Aug 2008
Posts:
5
Plugin Contributions:
0

Re: Using one single listing template

OK, got most of it sorted... only part eluding me so far is keeping the listings as they should be such as only showing new products in the new product listing and only showing featured, specials etc in their respective listings.. any input would be appreciated

28 Aug 2008, 11:42 PM
#68
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Using one single listing template

If you follow the instruction closely, the result should be like that

Also, I have succeeded in making the index listing use the same template (and possibly use the product_listing template as well), so yeah, even less time for it now.

I'll post the instruction when I have the time.

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

22 Sep 2008, 9:17 PM
#69
justmark avatar

justmark

New Zenner

Join Date:
Aug 2008
Location:
Canada
Posts:
46
Plugin Contributions:
0

Re: Using one single listing template

yellow1912:

If you follow the instruction closely, the result should be like that

HI YELLOW!

THIS IS GREAT! THE IDEA! ESPECIALLY WHEN YOU GET A TEMPLATE THAT IS NOT CONVENTIONAL.
I didn't try it yet... so, now I'll be starting and I will read the instructions very carefully. I read the entire tread and now I feel confident to do it. Me and PHP are so parallel that even the infinite it seems close.

In maxim 30 minutes I'll tell you [and show you] what I've done.
Until then... this is how it looks:

justMARK
**mainMAG.NET** - The place where you get magnetized!
ZenCart 1.3.7.1 - for now...

22 Sep 2008, 9:21 PM
#70
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Using one single listing template

Let me tell you one thing Mark:

Your problem will not be sorted out that easily. I'm kidding, it's easy but it's a little different.

You see, Zen uses different template files for product listing , new, all, ... pages

And it ALSO uses different template files for product new, special,... on the index page. _

So yeah, that's how things are.

I actually coded a module that pull all these listing together into 1 single template only, I just haven't got the time to publish it yet. Will see if I can do it soon this week.

Regards

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

22 Sep 2008, 9:44 PM
#71
justmark avatar

justmark

New Zenner

Join Date:
Aug 2008
Location:
Canada
Posts:
46
Plugin Contributions:
0

Re: Using one single listing template

Hi Yellow!

So, I tried but I didn't see any diference. I think is because the template is already uniform in listing products...
So, I can't do anything to make all my listings to look like the new products?
I was thinking to try and copy some of the style of the new product into the product listing, but I don't know what files and to guess... it takes a long time.
What do you think?
Also I would like to put the category description on my produyt info page... and again... I don't know how I can do that.

Can you help me?

Thank you!

justMARK
**mainMAG.NET** - The place where you get magnetized!
ZenCart 1.3.7.1 - for now...

1 Oct 2008, 8:27 AM
#72
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Using one single listing template

This process is to make all the product all etc look like the product listing, and it is only for the listing "pages", not the ones in the index page.
Please re read my post above to see the reason why

Regards

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

9 Oct 2008, 8:20 AM
#73
gary777 avatar

gary777

New Zenner

Join Date:
Oct 2008
Location:
Midwest USA
Posts:
71
Plugin Contributions:
0

Re: Using one single listing template

Hello Yellow and DrByte,

Guys I just want to say that I really appreciate the mods that you have put up and all of the help you give to the folks in the forum. ( Once I'm done with my mods and get this puppy up and cooking you'll definitely see a donation from me!)

So on to my question... I struggled as to where exactly to post this question and decided this was probably as good a place as any where to post it, please correct me if there is a better place.

I have been experimenting with an override for product_listing.php and tpl_modules_product_listing.php, I was able to get close to what I wanted then discovered DrBytes Column Layout Grid for Product Listing and it accomplished the same things as my hand coded mods but went on to add the buttons to the admin panel (nice mod by the way!)

But I really need the names of the product data to show up as it does in the final Product listing page (div Category Icon? Not sure if this is the right file, it is related to the "productMainImage" div javascript call)

Here is a screen shot: (Sorry but I can't give out a link, it's on a secure intranet server with no domain name to point to.)

As you can see all of the information is underneath the image, not to the side, this is how the customer wants every product listing page accessed through the navbar to look, the only pages he wants to show up in grids are the featured, all and new products page.

I installed the "Column Layout Grid for Product Listing" mod and it works great (I set columns: to 1, the tabular version jams everything into a table structure and it's can't be styled this way!) except that it doesn't show the product lc_text names next to the values.

I.E. "Column Layout Grid for Product Listing" shows the following:
SKU-C2
Chrome Dome Motorcycle Products
$150.00

I need it to show as in the screen shot like this:
The "Original" Chrome Skull
$150.00
Product Description blah blah blah....

* Model: SKU-C2
* Shipping Weight: 10lbs
* 998 Units in Stock
* Manufactured by: Chrome Dome Motorcycle Products

Initially I thought that maybe the Single Listing Template may do the trick but will that also apply to the all, featured and new listing pages? And does anyone have a suggestion for a mod that will do what I need?

A simple solution may be to add additional code to tpl_columnar_display.php to insert the names before the values but I'm not sure where to go from here (the truth is my brain is full, I've learned a lot about the template system today but I'm beat now!) If someone can help me with this I'll gladly make my mods available for use by others.

Thanks in advance,

Gary777

9 Oct 2008, 10:23 PM
#74
kobra avatar

kobra

Black Belt

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

Re: Using one single listing template

From what your pic looks to be then this is what is termed "productlisting" and as you have found and I suspect installed the column/grid module what is left is to define this as one column for display(versus 2 or 3) and this is in the admin > config > product listing ...BUT only if you have the module installed....

Then you may have to adjust the image size to be displayed
admin > config > images > image product listing > height & width and have an image availavble to suit

Zen-Venom Get Bitten

9 Oct 2008, 10:51 PM
#75
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Using one single listing template

Did you know that you can set the display order? for example: name first then image then description....

I dont remember the exact place, but check configuration->product listing> Gary777:

Hello Yellow and DrByte,

Guys I just want to say that I really appreciate the mods that you have put up and all of the help you give to the folks in the forum. ( Once I'm done with my mods and get this puppy up and cooking you'll definitely see a donation from me!)

So on to my question... I struggled as to where exactly to post this question and decided this was probably as good a place as any where to post it, please correct me if there is a better place.

I have been experimenting with an override for product_listing.php and tpl_modules_product_listing.php, I was able to get close to what I wanted then discovered DrBytes Column Layout Grid for Product Listing and it accomplished the same things as my hand coded mods but went on to add the buttons to the admin panel (nice mod by the way!)

But I really need the names of the product data to show up as it does in the final Product listing page (div Category Icon? Not sure if this is the right file, it is related to the "productMainImage" div javascript call)

Here is a screen shot: (Sorry but I can't give out a link, it's on a secure intranet server with no domain name to point to.)

As you can see all of the information is underneath the image, not to the side, this is how the customer wants every product listing page accessed through the navbar to look, the only pages he wants to show up in grids are the featured, all and new products page.

I installed the "Column Layout Grid for Product Listing" mod and it works great (I set columns: to 1, the tabular version jams everything into a table structure and it's can't be styled this way!) except that it doesn't show the product lc_text names next to the values.

I.E. "Column Layout Grid for Product Listing" shows the following:
SKU-C2
Chrome Dome Motorcycle Products
$150.00

I need it to show as in the screen shot like this:
The "Original" Chrome Skull
$150.00
Product Description blah blah blah....

* Model: SKU-C2
* Shipping Weight: 10lbs
* 998 Units in Stock
* Manufactured by: Chrome Dome Motorcycle Products

Initially I thought that maybe the Single Listing Template may do the trick but will that also apply to the all, featured and new listing pages? And does anyone have a suggestion for a mod that will do what I need?

A simple solution may be to add additional code to tpl_columnar_display.php to insert the names before the values but I'm not sure where to go from here (the truth is my brain is full, I've learned a lot about the template system today but I'm beat now!) If someone can help me with this I'll gladly make my mods available for use by others.

Thanks in advance,

Gary777

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

9 Oct 2008, 10:55 PM
#76
kobra avatar

kobra

Black Belt

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

Re: Using one single listing template

My Opps!!!

Re-looking at this if you do as you are stating you will end up with 2 identical pages

productlisting
product info

What I think you want is to by pass the product listing pages altogether???

Zen-Venom Get Bitten

12 Oct 2008, 12:55 AM
#77
westerlind avatar

westerlind

New Zenner

Join Date:
Sep 2007
Location:
Sweden / Gothenburg
Posts:
9
Plugin Contributions:
0

Re: Using one single listing template

:oops:
Hi!
Thanks for the "all product listing" contribution!
Even though I have read this whole thing, i can not figure out the code to put into the products_new/header_php.php?

I would be glad to apply this column layout to the "new product listing".

Thanks in advance!!!!!
Best regards,

Pär Westerlind

Thank you in advance!

Best regards,

Pär Westerlind

13 Oct 2008, 12:17 AM
#78
zranno avatar

zranno

New Zenner

Join Date:
Apr 2008
Posts:
9
Plugin Contributions:
0

Re: Using one single listing template

Notice how I keep the all listing query, but just change from $products_all_query_raw to $listing_sql, and then some minor changes to make it work?

Not to look a gift horse in the mouth, but it would be nice to know what those "minor changes" are. As with everything with Zen Cart, "The devil is in the details.":frusty:

Okay, enough whining. Has anyone got this to work with Specials in v1.3.8? I noticed the file header_php.php has had some code moved to main_template_vars.php. Also, the query doen't work when copied verbatum into the new variable $listing_sql.:no:

13 Oct 2008, 11:52 PM
#79
gary777 avatar

gary777

New Zenner

Join Date:
Oct 2008
Location:
Midwest USA
Posts:
71
Plugin Contributions:
0

Re: Using one single listing template

Hi Kobra & Yellow,

Sorry, I forgot to subscribe to this thread and just now noticed you had replied...

Kobra - As you surmised I figured out that setting it to 1 does what I want it to for the sub-cat listing page, that is all good.

Yellow - Yep, I know I can change the sort orders etc... the problem is that some of the details of the product aren't showing up at the sub-cat level... This is hard to explain in print but here is a chart...

Horn Covers (Top Category)
Skulls (Sub Category)
Chrome 1xx COLOR="Green"[/COLOR]
Chrome 2xx COLOR="Green"[/COLOR]
Chrome 3xx COLOR="Green" [/COLOR]

When you click on any of the product level menu items it shows just that one product and all of it's details, that is what the first screen shot shows... All of the details are listing in a nice clean vertical order under the product description.

However when you click on the "Skulls" sub category menu item (blue level of the menu) it shows the second screen shot, the product details show no title and the weight, qty in stock and shipping weight are not showing up, nor are titles for each of the product detail lines...

I need to add more detail to the sub-cat listing so it matches the actual product level listing, in fact the only difference I want between the cub-cat listing and the single product listing is that the sub-cat listing shows x number of products (as set in admin) and the single product listing only shows the selected product.

Does this make any more sense? Any ideas...

Thanks!

Gary777

19 Oct 2008, 8:01 PM
#80
gary777 avatar

gary777

New Zenner

Join Date:
Oct 2008
Location:
Midwest USA
Posts:
71
Plugin Contributions:
0

Re: Using one single listing template

kobra:

My Opps!!!

Re-looking at this if you do as you are stating you will end up with 2 identical pages

productlisting
product info

What I think you want is to by pass the product listing pages altogether???

Hi Kobra,

I don't know if your still watching this thread but I missed your comment from above...

This is exactly what I want to do but in reverse! I want the listing page to show exactly what tpl_product_info shows, the only difference is that the productlisting will still show x number of products per page as set in Admin

I have been digging through the code on and off for days and I am stumped as to where the product properties (weight, mfg, price, model etc) are being inserted into the productlisting page, the values are there but there are no titles preceding the values...

I am using DrBytes columnar mod which calls tpl_columnar_display.php in tpl_modules_product_listing.php

Apparently a "for" loop is recursively parsing through the db and inserting the product property values, I just need to preface those values with the field "name" value.

Again, instead of showing
XYZ-001
10 Lbs
$199.00

I want it to show
Model: XYZ-001
Weight: 10 lbs
Price: $199.00

Any ideas?

Gary777