If this is your first visit, check our documentation. To post, register or login.
Forums / All Other Contributions/Addons / Using one single listing template

Using one single listing template

Started by yellow1912 on 31 Dec 2007, 11:21 PM · Views: 90,908

Results 201 to 220 of 327
2 Apr 2010, 11:57 AM
#201
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,880
Plugin Contributions:
7

Using one single listing template

  1. The Specials listing doesn't change no matter which option I select in admin. Is there a trick to this one?
    No trick. But the Specials listing does work differently to the others.
    Check all the files have uploaded correctly.
  2. Is there anyway to set the index listing to use the common template
    That should be option 2.
    Enable the Template Debugging and see which files are being used. Option 2 should have
    FUNCTION index_listing in \includes\functions\extra_functions\index_listing.php

shown above the listing with option 2.

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

3 Apr 2010, 2:24 AM
#202
tony_sar avatar

tony_sar

Totally Zenned

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

Re: Using one single listing template

what is the purpose of New Listing template , feature listing template special listing template in Index listing section . ? no matter what value i choose ( 1,2 or 3) nothing in store section changes . can not find more info as what they do . any insight ?

3 Apr 2010, 10:05 PM
#203
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,880
Plugin Contributions:
7

Re: Using one single listing template

bear with me, I am looking at this on a new shop install to check all is correct with the upload...

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

3 Apr 2010, 11:36 PM
#204
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,880
Plugin Contributions:
7

Re: Using one single listing template

:oops:ok, I admit it:
Incorrect files included in v1.7 upload:
catalog\includes\templates\YOUR_TEMPLATE\templates\tpl_modules_product_listing.php
catalog\includes\modules\YOUR_TEMPLATE\product_listing.php

I always have to do this stuff at stupid times so I make stupid mistakes, I have attached the correct files and an expanded readme as a temporary solution in case anything else surfaces that needs fixing prior to uploading a corrected version.

To check things are working, set different columns per row for each of the listings in
Admin - Index Listing - New/Featured/Specials Products Columns per row
and also for the Product Listing columns per Row
and enable the Template debugging option.
That should clarify things...

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

4 Apr 2010, 12:37 PM
#205
tony_sar avatar

tony_sar

Totally Zenned

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

Re: Using one single listing template

Thanks.
using winmerge , i can see a lot of difference with this new files and the one was added to original download , so i replaced original one with this two .
one problem i see is that , full product description is showing. I have all product description turned off , not only from each listing page , also from product listing .. ( set to 0 ) , still full description shows off.

Thansks.

5 Apr 2010, 10:40 AM
#206
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,880
Plugin Contributions:
7

Re: Using one single listing template

:censored:Dammit, all the kids were in bed, who can I blame??
The problem (apart from incompetence) is that I have the boilerplate text mod in my files and had to carefully unpick that for the upload, and then just as carefully upload the wrong file. I am surprised there was not a picture of a dinosaur in the zip file too.
Anyway I have gone through all the files and here is a replacement for the previous correction, it also includes a change to the specials_index.php file which corrects the problem hey_you had of the specials not working as advertised. The readme is updated too.

So to summarise, anyone who downloads v1.7 should overwrite with these files until all is well and I am confident enough to put 1.8 up.
thanks for your patience.
Steve
ps I am travelling for the next few days so will not be answer any posts.

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

6 Apr 2010, 12:15 AM
#207
tony_sar avatar

tony_sar

Totally Zenned

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

Re: Using one single listing template

Ok thanks :smile: things are working ok now .. maybe when you come back , and all rested , you let me know , what those template settings do , because , no matter what i change in admin , nothing really changes. but hey , all i wanted was column grid which i got it now :) .

6 Apr 2010, 6:14 AM
#208
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,880
Plugin Contributions:
7

Re: Using one single listing template

so if you put all three product listings on the index page and select different templates for each (1 ,2, 3) the listings are the same style?
If so, please switch on the template debug and post/pm me the screenshot(s)
Steve

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

6 Apr 2010, 6:35 PM
#209
captain_tycoon avatar

captain_tycoon

New Zenner

Join Date:
Dec 2009
Posts:
26
Plugin Contributions:
0

Re: Using one single listing template

Hi,

How do I change how the product listing results look? I need to know what file to edit so the changes are made on all the product listing pages :cry: I have already installed this mod.

Thanks

8 Apr 2010, 6:38 PM
#210
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,880
Plugin Contributions:
7

Re: Using one single listing template

well if all is working:blink:..and you enable the Template Debug option you will see the names of the files in use.

for example, if you have selected the display to be in rows you should see these lines above the listing:

\includes\templates\TEMPLATE\templates\tpl_modules_product_listing.php:about to require tpl_columnar.php or tpl_tabular.php
\includes\templates\TEMPLATE\common\tpl_tabular_display.php

or if you have selected the display in columns:

\includes\templates\TEMPLATE\templates\tpl_modules_product_listing.php:about to require tpl_columnar.php or tpl_tabular.php
\includes\templates\TEMPLATE\common\tpl_columnar_display.php

So, to change what information is displayed on the product listing page page you change the options in Admin-Configuration-Product Listing.

To change how it is displayed you will need to edit tpl_tabular_display.php or tpl_columnar_display.php to the format you want.

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

20 Apr 2010, 10:48 AM
#211
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Using one single listing template

Has anyone tested this mod on 1.3.9.a :lookaroun ?

Interested to read your experiences

Frank

NOTE: We are sorry that Frank is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

20 Apr 2010, 3:34 PM
#212
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,880
Plugin Contributions:
7

Re: Using one single listing template

I will be testing it in the next couple of days hopefully...

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

21 Apr 2010, 7:21 AM
#213
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,880
Plugin Contributions:
7

Re: Using one single listing template

v1.8 uploaded to contributions section today

  1. Checked for compatibility with Zen Cart 1.39:
    small edit to modules\YOUR_TEMPLATE\products.new.php that was already incorporated in mod files.
  2. Corrections to files included in v1.7 upload:
    catalog\includes\templates\YOUR_TEMPLATE\templates\tpl_modules_product_listing.php
    catalog\includes\modules\YOUR_TEMPLATE\product_listing.php
    catalog\includes\modules\YOUR_TEMPLATE\specials_index.php
  3. Included sql from grid layout mod to provide a complete install package.

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

25 Apr 2010, 2:32 PM
#214
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,880
Plugin Contributions:
7

Re: Using one single listing template

v1.8 now availlable in downloads

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

4 May 2010, 9:15 AM
#215
livache73 avatar

livache73

New Zenner

Join Date:
May 2010
Posts:
7
Plugin Contributions:
0

Re: Using one single listing template

Hello torvista,

Thank you for ur work man. I installed the last version but I have o little problem. I dont have background color any more in new products area. I tried to see with firebug whats the problem and it seems that this area is not css controled anymore.
Can u help me with this?
Thanks again.

This is a link to my page: https://www.lucru.hostxd.com

4 May 2010, 9:43 AM
#216
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,880
Plugin Contributions:
7

Re: Using one single listing template

Hi,
I have no access to FF until this evening but meanwhile,
I see you have the template debug on, and it shows
tpl_index_default.php

on the main page, but I dont see the filenames shown on the other pages. If you have not removed these debug statements then something is wrong with the install you have done.

Please leave on the debug, it helps a lot, speak later,
Steve

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

4 May 2010, 10:20 AM
#217
livache73 avatar

livache73

New Zenner

Join Date:
May 2010
Posts:
7
Plugin Contributions:
0

Re: Using one single listing template

Hello Steve,

You are right, I receive this error when I trie to patch sql in phpmyadmin:

#1062 - Duplicate entry 'INDEX_NEW_USE_PRODUCT_LISTING' for key 'unq_config_key_zen'

and in admin section I dont have TEMPLATE DEBUG.

Hope this will help.

Thanks again.

Liviu

4 May 2010, 10:22 AM
#218
livache73 avatar

livache73

New Zenner

Join Date:
May 2010
Posts:
7
Plugin Contributions:
0

Re: Using one single listing template

the error is when I trie to patch: install slt.sql

4 May 2010, 4:45 PM
#219
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,880
Plugin Contributions:
7

Re: Using one single listing template

I get an identical error if I try to install the patch a second time.

Can you check the end of the configuration table to see what the last entries are? I have attached a copy of a new install.

I have never altered the functionality of this sql code from the original and only had a problem installing it inside zen cart admin, not phpmyadmin.

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

4 May 2010, 9:56 PM
#220
livache73 avatar

livache73

New Zenner

Join Date:
May 2010
Posts:
7
Plugin Contributions:
0

Re: Using one single listing template

hello steve,

This is my config table last entires(see pictures).