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

Using one single listing template

Views: 90,801

Results 81 to 100 of 327
27 Nov 2008, 8:38 AM
#81
yellow1912 avatar

yellow1912

Totally Zenned

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

Using one single listing template

This package here IS for NEW 1.3.8a sites only, as it will overwrite several files. Anyhow, I hope it help someone who is setting up a new site, if you want to use this on your current site, you can check the file content and merge with your files.

Also, I do not intend to provide much support here, and I expect you to know your way around ZC when you make use of this, so I recommend you NOT to use this package if you are not familiar with php and zencart.

Several features:

  1. for index listing (new, special, features):
    you can choose to use 3 options (each of the above listing can use any of these 3 options)
    a. use the individual template (this is zen default)
    b. use a shared template for the index listing
    c. use the category product listing template

you will find these options in admin->configuration->index listing
2. for the specials, featured, products_all listing pages, they will all share the same template (the category product listing template). When I have time, I will consider adding switches in the admin to let you set the option just like the index listing above.

** Please find the package in my signature.**

PS: if you read the features and have no idea what I'm talking about, please do not consider using this package. This will save you (and me) all the headache.

7 Jan 2009, 11:13 AM
#82
dunk avatar

dunk

Zen Follower

Join Date:
Dec 2007
Location:
London
Posts:
184
Plugin Contributions:
0

Re: Using one single listing template

Hmm, I tried installing this on Zen Cart 1.3.8a. Looked ok at first but discovered a mysql error when trying to load the products_all and products_new listings pages.

Tried to remove/replace the package files and restored the database but now the categories products page is only partially loading and no products are appearing. Products_all and products_new are fine though.

7 Jan 2009, 11:19 AM
#83
dunk avatar

dunk

Zen Follower

Join Date:
Dec 2007
Location:
London
Posts:
184
Plugin Contributions:
0

Re: Using one single listing template

Sorted, obviously I didn't update product_listing.php

Still, I'm back to square one with this. Sorry I can't be a bit more specific on the mysql error. Kinda panicked and set about restoring files immediately as our site is going live in the next few days :wacko:

7 Jan 2009, 4:55 PM
#84
yellow1912 avatar

yellow1912

Totally Zenned

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

Re: Using one single listing template

You should try out on a test site first

9 Jan 2009, 7:50 AM
#85
rooisnor avatar

rooisnor

Zen Follower

Join Date:
Jul 2008
Posts:
192
Plugin Contributions:
0

Re: Using one single listing template

Thanks yellow for this thread... although I think I need more coffee before continuing...

I did as you say... but I'm a bit lost

How do I make the changes for Special Listings and New Product Listings... :blush:

Al my listings still looks different..

Sorry for this simple question but it's late at night!

(My Feature and New Product Listings look the same)

9 Jan 2009, 7:04 PM
#86
rooisnor avatar

rooisnor

Zen Follower

Join Date:
Jul 2008
Posts:
192
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? Basically you can do just the same for products_new and all other listings.
Now lets move on to the last bit.

...I tried to follow the changes you made but I'm getting stucked here...

10 Jan 2009, 10:54 AM
#87
rooisnor avatar

rooisnor

Zen Follower

Join Date:
Jul 2008
Posts:
192
Plugin Contributions:
0

Re: Using one single listing template

...any replies??? This is a Zen Cart failure... why do WE have to put up with this without an answer??

10 Jan 2009, 4:38 PM
#88
kobra avatar

kobra

Black Belt

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

Re: Using one single listing template

rooisnor:

This is a Zen Cart failure
This is 3rd party and has nothing to do with ZenCart

10 Jan 2009, 6:29 PM
#89
rooisnor avatar

rooisnor

Zen Follower

Join Date:
Jul 2008
Posts:
192
Plugin Contributions:
0

Re: Using one single listing template

kobra:

This is 3rd party and has nothing to do with ZenCart

Ok, can you direct me to the actual page in Admin where I can set all the products listing pages to ONE layout?...

Thanks...

10 Jan 2009, 6:41 PM
#90
kobra avatar

kobra

Black Belt

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

Re: Using one single listing template

Ok, can you direct me to the actual page in Admin where I can set all the products listing pages to ONE layout?...
I know this is a long thread but most every application has been covered.
If you have read it you would see that this is a file based change and not as simple as a switch in the admin.
One has to edit their files to adjust the displays for the pages that they want changed

10 Jan 2009, 7:28 PM
#91
rooisnor avatar

rooisnor

Zen Follower

Join Date:
Jul 2008
Posts:
192
Plugin Contributions:
0

Re: Using one single listing template

kobra:

I know this is a long thread but most every application has been covered.
If you have read it you would see that this is a file based change and not as simple as a switch in the admin.
One has to edit their files to adjust the displays for the pages that they want changed

Ok Kobra, back to my statement... it's a Zen Cart issue!

I checked this thread word for word and I can't get the 'minor changes' yellow mentioned to change all the other listings...

...sorry, I'm not a coder and only a web designer who has to work what you guys give us...

Is it possible to post the actual .php files which we have to change here in this thread WITH the 'minor changes' to get all the other listings to work as one? As far as I can see there are only two files to change and then some coding in the SAME two files?

10 Jan 2009, 8:22 PM
#92
kobra avatar

kobra

Black Belt

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

Re: Using one single listing template

...sorry, I'm not a coder and only a web designer who has to work what you guys give us...

Is it possible to post the actual .php files which we have to change here in this thread WITH the 'minor changes' to get all the other listings to work as one?
Then I would be doing your work that you are getting paid for, for you.
Why are you taking a comissioned job for something you can not deliver? If that is the case?
Besides the code is in that thread anyway and I am only one of many volunteers here
Ok Kobra, back to my statement... it's a Zen Cart issue!
I do not see your logic as it is 3rd party...
Kinda like making some modification to your auto engine supplied by GoFast Inc. and contending if it is not correct that it is GM or Ford's issue

10 Jan 2009, 8:38 PM
#93
rooisnor avatar

rooisnor

Zen Follower

Join Date:
Jul 2008
Posts:
192
Plugin Contributions:
0

Re: Using one single listing template

kobra:

Then I would be doing your work that you are getting paid for, for you.
Why are you taking a commissioned job for something you can not deliver? If that is the case?
Besides the code is in that thread anyway and I am only one of many volunteers here

I do not see your logic as it is 3rd party...
Kinda like making some modification to your auto engine supplied by Go Fast Inc. and contending if it is not correct that it is GM or Ford's issue

First of all, this particular site I have this problem with is NOT a paid job! I actually do graphic design...

Secondly, if Zen Cart had a feature in the Admin where you can set the pages as ONE layout it would've not been necessary for a '3rd party' to FIX the problem!

In other words, I bought a car which is NOT running and I have to get Go Fast Inc. to get it running! That's what this boils down to, Kobra... and I don't want to get involved in an argument about the issue... all I need is to get the issue fixed and unfortunately the explanation on how to do it is not clear...

10 Jan 2009, 9:24 PM
#94
kobra avatar

kobra

Black Belt

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

Re: Using one single listing template

In other words, I bought a car which is NOT running
Actually you got a car for "FREE" that does not have a sun roof and you want one.
The "FREE" car runs as designed for the many that accept it as it is
Secondly, if Zen Cart had a feature in the Admin where you can set the pages as ONE layout it would've not been necessary for a '3rd party' to FIX the problem!
And ZenCart does not portend to have EVERY feature that one may desire.
You say you don't want an arguement but you are throwing "BLAME" around like water and that anything you want needs to be addressed "PRONTO"
There is a "Commercial Help Wanted" forum topic where specific assistance can be asked for.

10 Jan 2009, 9:30 PM
#95
yellow1912 avatar

yellow1912

Totally Zenned

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

Re: Using one single listing template

Zen ver 2.0 will have exactly what you want.

Anyhow, it's free, do not ask for guarantee. People provide support and build stuffs in their free time, when they like it, and when they are asked nicely enough. I firmly believe that if you get anything for free, you don't have the right to whine about not getting enough. You have the RIGHT to to receive this free stuff anyway.

Whenever I ask for help on this forum, I know that I'm asking for a favor. And I will not whine about not getting help, it just happens from time to time. People can be busy, you can always try to ask again, nicely.

10 Jan 2009, 9:45 PM
#96
yellow1912 avatar

yellow1912

Totally Zenned

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

Re: Using one single listing template

BTW, the package has been posted in this thread, several pages ago. And someone also commented it has some minor bug, and suggested a patch to fix it.

11 Jan 2009, 5:53 PM
#97
rooisnor avatar

rooisnor

Zen Follower

Join Date:
Jul 2008
Posts:
192
Plugin Contributions:
0

Re: Using one single listing template

yellow1912:

Zen ver 2.0 will have exactly what you want.

Anyhow, it's free, do not ask for guarantee. People provide support and build stuffs in their free time, when they like it, and when they are asked nicely enough. I firmly believe that if you get anything for free, you don't have the right to whine about not getting enough. You have the RIGHT to to receive this free stuff anyway.

Whenever I ask for help on this forum, I know that I'm asking for a favor. And I will not whine about not getting help, it just happens from time to time. People can be busy, you can always try to ask again, nicely.

...yellow, as I've stated before, it's a great thread and thank you very much for trying to fix a 'common' problem with Zen Cart. What I'm trying to say is, and I'm not whining, is why there isn't only ONE layout to begin with? As far as I can see this is not a 'feature' but a layout problem.

Your idea to have ONE layout is crucial because if you choose not to use images (or even with images) the different layouts really doesn't look good!

I KNOW Zen Cart is FREE and I appreciate it... it also triggerd me into the website design field which I do as sideline hobby... and enjoy it.

I followed your instructions but it seems to me I can't find the 'minor changes' which probably are suppose to call the different layouts... help will be appreciated!

11 Jan 2009, 6:26 PM
#98
yellow1912 avatar

yellow1912

Totally Zenned

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

Re: Using one single listing template

yellow1912:

BTW, the package has been posted in this thread, several pages ago. And someone also commented it has some minor bug, and suggested a patch to fix it.
That should help you

11 Jan 2009, 7:02 PM
#99
rooisnor avatar

rooisnor

Zen Follower

Join Date:
Jul 2008
Posts:
192
Plugin Contributions:
0

Re: Using one single listing template

yellow1912:

That should help you
Thanks yellow... sorry, missed the quote! Will have a look and report back! :hug:

11 Jan 2009, 8:10 PM
#100
rooisnor avatar

rooisnor

Zen Follower

Join Date:
Jul 2008
Posts:
192
Plugin Contributions:
0

Re: Using one single listing template

I went to your link for the package you have... uploaded the files and I assume I had to run the install.sql?

As I did I get this error:

#1146 - Table 'artgang_zc2.configuration' doesn't exist

if I'm correct it seems not to read the zen.configuration table...

Maybe I did something wrong?