Zen Cart Logo
Forums / All Other Contributions/Addons / Column Grid / Single Listing Template Alternative

Column Grid / Single Listing Template Alternative

Views: 7,311

Results 1 to 20 of 75
7 Jan 2012, 2:34 PM
#1
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Column Grid / Single Listing Template Alternative

I re-worked the Single Listing Template mod for Zen 1.5

Part of this was just because I struggled to make the further adaptations I needed on that existing code. I just wanted it to work the way that I needed and it is no criticism of SLT in the slightest.

Mine is called SNAF because I tried to arrange the letters 'S' 'N' 'A' and 'F' (specials, featured, all, new) and this arrangement made me laugh.

What it does:
-- adds column grid functionality
-- installs nicely in 1.5.0
-- let's the user choose to use product_listing format rather than default format for specials, new, featured, and all listing from settings in admin
-- adds a dropdown filter to product_listing in column view so the listing can be sorted according to criteria such as price. Display of this is set in admin for each listing individually
-- let's the user choose to include salemaker items in specials or not
-- adds the ability to use get parameters on the specials page to filter by category so that it is easy to create specials pages for a specific category

What it doesn't do :
-- play well with previous versions without modifying the sql statements. basically it auto-installs the sql stuff to suit the structure needed in 1.5. Re-working it for previous versions would be possible but let's move forward.
-- do anything at all with the center boxes like SLT does. It just works with the main listing pages

SNAF unashamedly does the things that I need it to do. But if anybody would like to try it on 1.5 and attempt to break it and spot my typos and errors I would love that. Please let me know how you get on.

16 Jan 2012, 6:28 PM
#2
windsurfer avatar

windsurfer

Zen Follower

Join Date:
Jun 2011
Posts:
185
Plugin Contributions:
0

Re: Column Grid / Single Listing Template Alternative

Just installed in V1.5 and seems to be working great :)

29 Jan 2012, 10:35 PM
#3
bn17311 avatar

bn17311

Zen Follower

Join Date:
Apr 2010
Posts:
319
Plugin Contributions:
0

Re: Column Grid / Single Listing Template Alternative

also installed on test site and working with no problems

bn

30 Jan 2012, 8:36 AM
#4
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Column Grid / Single Listing Template Alternative

Thanks Guys!

30 Jan 2012, 9:24 AM
#5
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Column Grid / Single Listing Template Alternative

Thanks Guys!

Much appreciated.

31 Jan 2012, 10:49 AM
#6
dw08gm avatar

dw08gm

Totally Zenned

Join Date:
Sep 2008
Location:
DownUnder, overlooking South Pole.
Posts:
1,017
Plugin Contributions:
2

Re: Column Grid / Single Listing Template Alternative

SNAF is such a good name for a thread that it is a pity you snafu'd it to
Column Grid / Single Listing Template Alternative. :P

Looking forward to checking it out.

Is it comaptible with 139h?

Cheers

31 Jan 2012, 12:04 PM
#7
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Column Grid / Single Listing Template Alternative

:smile: I love SNAF as a name. maybe I will start another thread. just wanted people to actually find it!

Well, I don't think it doesn't work with 1.3.9 but it is set up for 1.5.

1.5 does things a little differently in the admin area. Most people are wrestling with this in the other direction at the moment. Converting mods to work with 1.5 can be problematic! This may be the first request ever to go in the other direction.

making this work with 1.3 is not so hard. If you want me to do that just ask sweetly and I will do it when I find a moment. Just needs a quick alteration to the init_include and a new box file.

Nick

31 Jan 2012, 2:53 PM
#8
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,616
Plugin Contributions:
0

Re: Column Grid / Single Listing Template Alternative

Please add your new modification to the Free Add Ons section. Thanks.

31 Jan 2012, 5:14 PM
#9
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Column Grid / Single Listing Template Alternative

@dw

try the attached version if you are on 1.3.9. It comes with very little testing but I have put it up on one test site and it seems to work.

Obviously make sure that you are backed up first.

@Kim

Will do but just wanted to see if it got any adverse feedback first.

1 Feb 2012, 9:34 AM
#10
dw08gm avatar

dw08gm

Totally Zenned

Join Date:
Sep 2008
Location:
DownUnder, overlooking South Pole.
Posts:
1,017
Plugin Contributions:
2

Re: Column Grid / Single Listing Template Alternative

Thanks. Cheers! Much appreciated.

I am stuck with 139h until all of the mods I use have been updated to 150. The reason why I do not use IH3 is because IH3 fouls a little animated gif that I use for a category image. It would be great if the gif worked with your mod.

1 Feb 2012, 9:54 AM
#11
dw08gm avatar

dw08gm

Totally Zenned

Join Date:
Sep 2008
Location:
DownUnder, overlooking South Pole.
Posts:
1,017
Plugin Contributions:
2

Re: Column Grid / Single Listing Template Alternative

dw08gm:

The reason why I do not use IH3 is because IH3 fouls a little animated gif that I use for a category image. It would be great if the gif worked with your mod.

Whoops! Got my wires crossed.

Please ignore the above comment as it refers to your Image Scaling mod.

Apologies for any inconvenience.

1 Feb 2012, 10:07 AM
#12
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Column Grid / Single Listing Template Alternative

No problem :smile:

But if you do try this one on 1.3.9 I'd be interested to know.

However, with the Image Scaler. Yes, it should handle gifs soon. But to be honest I am not sure how that will deal with animated gifs.

That one will probably stay 1.5 only. Although I may rethink that at some point. Right now there is just too much to do to get it working for people to think about 1.3.9 :blink:

1 Feb 2012, 10:35 AM
#13
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: Column Grid / Single Listing Template Alternative

Hi.
i just downloaded the zip file in your first post and looks like missing tons of files ?
no admin no template files.

1 Feb 2012, 10:39 AM
#14
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: Column Grid / Single Listing Template Alternative

can you also make this module so that visitor can change the view from column to gird and vis versa ? thats the feature i think is on everyones wish list . :D

1 Feb 2012, 10:57 AM
#15
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Column Grid / Single Listing Template Alternative

@tony

which version the 1.5 or the 1.3.9 is missing the files?

yeah, could probably change the display format for the user. that wouldn't be a huge issue.

1 Feb 2012, 11:02 AM
#16
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Column Grid / Single Listing Template Alternative

File list from the read me:

======================

Files included in this module are:

***admin/includes/auto_loaders/config.snaf.php
***admin/includes/init_includes/snaf.php
***admin/includes/languages/english/extra_definitions/snaf.php

includes/index_filters/default_filter.php
includes/modules/***Custom/product_listing.php
includes/modules/pages/featured_products/header_php.php
includes/modules/pages/products_all/header_php.php
includes/modules/pages/products_new/header_php.php
includes/modules/pages/specials/main_template_vars.php
includes/templates/***Custom/templates/tpl_featured_products_default.php
includes/templates/***Custom/templates/tpl_products_all.php
includes/templates/***Custom/templates/tpl_products_new_default.php
includes/templates/***Custom/templates/tpl_specials_default.php
includes/templates/***Custom/templates/tpl_snaf_display_order.php

***admin/includes/auto_loaders/config.snaf.php will be deleted from the server the first time an admin page is accessed after install.

It can be noted that all the parts marked with *** need to be altered before upload.

====================

When I download the zip file I see all of those in the installation_files directory of the zip. If you are seeing something else then let me know.

That is for the 1.5 version. Checking the 1.3.9 now.

1 Feb 2012, 11:05 AM
#17
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Column Grid / Single Listing Template Alternative

Likewise the 1.3.9 version seems complete.

1 Feb 2012, 11:49 PM
#18
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: Column Grid / Single Listing Template Alternative

Im sure im missing something over here ..

files and folders i got as follow.

installation files.> includes

index_filters >default_filter.php
modules > pages >
-- featured_products > header_php.php
--products_all > header_php.php
--products_new > header_php.php
--specials> main_template_vars.php
templates > empty

1 Feb 2012, 11:57 PM
#19
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Column Grid / Single Listing Template Alternative

Sounds as what you are missing is some files!

I don't know what else to suggest. I have downloaded both versions three times at this point and when I unzip them I get what I should get.

If you PM me a email address I will send you an uncompressed version. 1.3 or 1.5?

2 Feb 2012, 12:24 PM
#20
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Column Grid / Single Listing Template Alternative

As Kim requested, this has now been submitted to the free software addons section.

A new thread has been started (named the way you wanted dw ) has been created at:

http://www.zen-cart.com/forum/showthread.php?p=1100305