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 241 to 260 of 327
29 Jul 2010, 4:58 PM
#241
ekele avatar

ekele

Zen Follower

Join Date:
Apr 2010
Location:
UK
Posts:
150
Plugin Contributions:
0

Using one single listing template

Hello,
I am trying to install this module but I am getting an error;
"1062 Duplicate entry 'INDEX_NEW_USE_PRODUCT_LISTING' for key 2
in:
[INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('New Listing Template', 'INDEX_NEW_USE_PRODUCT_LISTING', '1', 'Set to 1 to use the original listing templates, 2 to use the new index_listing template, 3 to use the Product Listing template.', 24, 1, NOW(), NOW(), NULL, 'zen_cfg_select_option(array(''1'', ''2'', ''3''),'), ('Featured Listing Template', 'INDEX_FEATURED_USE_PRODUCT_LISTING', '1', 'Set to 1 to use the original listing templates, 2 to use the new index_listing template, 3 to use the Product Listing template.', 24, 2, NOW(), NOW(), NULL, 'zen_cfg_select_option(array(''1'', ''2'', ''3''),'), ('Special Listing Template', 'INDEX_SPECIAL_USE_PRODUCT_LISTING', '1', 'Set to 1 to use the original listing templates, 2 to use the new index_listing template, 3 to use the Product Listing template.', 24, 3, NOW(), NOW(), NULL, 'zen_cfg_select_option(array(''1'', ''2'', ''3''),'), ('Template Debugging', 'TEMPLATE_DEBUG', 'False', 'Display the template filenames where used', 24, 4, NOW(), NOW(), NULL, 'zen_cfg_select_option(array(''False'', ''True''),');]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields."

I have no idea how to repair it or what to do to install this module... Please, any help!

29 Jul 2010, 5:02 PM
#242
jackie_taferner avatar

jackie_taferner

Totally Zenned

Join Date:
Jun 2009
Location:
Orange County, California
Posts:
547
Plugin Contributions:
3

Re: Using one single listing template

ekele,

Looks like maybe you ran the SQL twice - go check to see if the Single Listing options are now in the configuration. If they already are, go ahead and change your settings and it probably already works!

Jackie Taferner - JT Website Design
Custom Website Design and Ecommerce
Support the community. Don't Private Message, post your questions in the forum.

29 Jul 2010, 8:26 PM
#243
ekele avatar

ekele

Zen Follower

Join Date:
Apr 2010
Location:
UK
Posts:
150
Plugin Contributions:
0

Re: Using one single listing template

Well, I don't think it works. I don't have "Template debugging" in Index Listing.
I just don't know how to achive that. I am afraid to mess my database because I simply know nothing about fixing it:mellow:

29 Jul 2010, 10:15 PM
#244
jackie_taferner avatar

jackie_taferner

Totally Zenned

Join Date:
Jun 2009
Location:
Orange County, California
Posts:
547
Plugin Contributions:
3

Re: Using one single listing template

Ok, Do you have the following options listed there?

New Listing Template
Featured Listing Template
Special Listing Template

Jackie Taferner - JT Website Design
Custom Website Design and Ecommerce
Support the community. Don't Private Message, post your questions in the forum.

30 Jul 2010, 5:27 PM
#245
ekele avatar

ekele

Zen Follower

Join Date:
Apr 2010
Location:
UK
Posts:
150
Plugin Contributions:
0

Re: Using one single listing template

No, I don't. :no:

30 Jul 2010, 5:35 PM
#246
jackie_taferner avatar

jackie_taferner

Totally Zenned

Join Date:
Jun 2009
Location:
Orange County, California
Posts:
547
Plugin Contributions:
3

Re: Using one single listing template

Hmm, you'll probably need to get into the database in phpmyadmin then, and search for the INDEX_NEW_USE_PRODUCT_LISTING and see why it's already there - perhaps it was part of a previous add-on?

Once you've confirmed its origin, you can decide if it's ok to override it, and manually change the database using the sql install code as a guide.

If you're not comfortable with modifying the database, you may want to have a developer do it for you (check the commercial section of the forum).

The other option, is to restore your site to the way it was before, then modify the template files yourself to achieve the look you want.

You did backup your database before attempting an install, yes?

Jackie Taferner - JT Website Design
Custom Website Design and Ecommerce
Support the community. Don't Private Message, post your questions in the forum.

30 Jul 2010, 5:44 PM
#247
ekele avatar

ekele

Zen Follower

Join Date:
Apr 2010
Location:
UK
Posts:
150
Plugin Contributions:
0

Re: Using one single listing template

:oops: I have checked my shop, not my test site where I installed this module. So yes, I have: New Listing Template
Featured Listing Template
Special Listing Template
I don't have Template Debuggin.

Sorry!

30 Jul 2010, 5:48 PM
#248
jackie_taferner avatar

jackie_taferner

Totally Zenned

Join Date:
Jun 2009
Location:
Orange County, California
Posts:
547
Plugin Contributions:
3

Re: Using one single listing template

Oh, that's good news! Well, 3 out of 4 ain't bad. Maybe debugging is hidden somewhere else in the list (they don't always group together as you expect).

Go ahead and set the templates to match, check the front of your store and you should be good to go!

Jackie Taferner - JT Website Design
Custom Website Design and Ecommerce
Support the community. Don't Private Message, post your questions in the forum.

30 Jul 2010, 6:36 PM
#249
ekele avatar

ekele

Zen Follower

Join Date:
Apr 2010
Location:
UK
Posts:
150
Plugin Contributions:
0

Re: Using one single listing template

i have just installed STL in my real shop and everything is OK! So you are right, it must have been something I installed before. Well, I think I panicked :blush:
just one more question: have you tried to install Column Divider Pro? I think it will look better.
Thank you for your help:smile:

30 Jul 2010, 6:45 PM
#250
jackie_taferner avatar

jackie_taferner

Totally Zenned

Join Date:
Jun 2009
Location:
Orange County, California
Posts:
547
Plugin Contributions:
3

Re: Using one single listing template

Glad to hear it's working. I have not used Column Divider Pro, but if you're looking to layout your categories in column/grid format, i think that's already included with the STL module.

Just run the SQL in column_layout_grid.sql, then go to configuration > product listing. You'll see an option for "Product Listing -Layout Style" and choose row/column

Jackie Taferner - JT Website Design
Custom Website Design and Ecommerce
Support the community. Don't Private Message, post your questions in the forum.

30 Jul 2010, 9:33 PM
#251
ekele avatar

ekele

Zen Follower

Join Date:
Apr 2010
Location:
UK
Posts:
150
Plugin Contributions:
0

Re: Using one single listing template

I've installed Column Divider pro and i think it looks much better.
Thanks for your support!:D

30 Jul 2010, 9:38 PM
#252
jackie_taferner avatar

jackie_taferner

Totally Zenned

Join Date:
Jun 2009
Location:
Orange County, California
Posts:
547
Plugin Contributions:
3

Re: Using one single listing template

Sure, no problem!

Maybe I'll check out CDP sometime.

Jackie Taferner - JT Website Design
Custom Website Design and Ecommerce
Support the community. Don't Private Message, post your questions in the forum.

16 Aug 2010, 7:40 PM
#253
pinkleopard avatar

pinkleopard

Zen Follower

Join Date:
Jun 2009
Posts:
383
Plugin Contributions:
0

Re: Using one single listing template

Hi, does anyone have a sample page of how this looks? Thanks.

1 Sep 2010, 12:31 PM
#254
ideasco avatar

ideasco

New Zenner

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

Re: Using one single listing template

I have installed this Single Listing Template mod. but seem to have an error or two.
Firstly, I had previously implemented the columnar display mod. and it has been working fine. Also, I thoroughly reviewed this SLT mod., compared the files with my current files, using Beyond Compare and I believe I understand it well. I am using v 1.3.7.1 with various upgrades, but none that should effect this one.
Also, I have set debug to True.

Is it possible that there is a missing function define?

Here are the errors I get.

New Products Listing:
\includes\templates\TEMPLATE\templates\tpl_products_new_default.php
then requires tpl_modules_listing_display_order.php
then tpl_modules_product_listing.php

Sort by:

\includes\modules\TEMPLATE\product_listing.php
$PRODUCT_LISTING_COLUMNS_PER_ROW = 3

Fatal error: Call to undefined function zen_get_generated_category_path_rev() in /home/feng3/public_html/includes/modules/newport/product_listing.php on line 253

or

Category Listing

\includes\modules\TEMPLATE\product_listing.php
$PRODUCT_LISTING_COLUMNS_PER_ROW = 3

Fatal error: Call to undefined function zen_get_generated_category_path_rev() in /home/feng3/public_html/includes/modules/newport/product_listing.php on line 253

or

Specials Listing

Fatal error: Call to undefined function zen_get_generated_category_path_rev() in /home/feng3/public_html/includes/modules/pages/specials/main_template_vars.php on line 45

1 Sep 2010, 2:10 PM
#255
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

The function is a standard one located here:

/includes/functions/functions_categories.php

Line #591 : function zen_get_generated_category_path_rev($this_categories_id)

However it does get used by the extra function file that comes with this mod, maybe that has not uploaded cleanly?

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

1 Sep 2010, 3:18 PM
#256
ideasco avatar

ideasco

New Zenner

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

Re: Using one single listing template

Muchisimas Gracias por tu ayuda!
From what you said, i found that my functions_categories.php did not have that function defined. I uploaded the one from Zen v. 1.3.9e, as I could see that there were additional functions and modifications to existing functions in it. After doing that all appears to work!.

A question:
Do you know if there should be any adverse effects to upgrading to functions_categories.php from v.1.3.9e (My Zen is v.1.3.7.1 generally).
(My hunch is that it includes more functions and better definitions of existing ones, so it might be ok). Do you know for certain either way?
Thanks

1 Sep 2010, 3:19 PM
#257
jackie_taferner avatar

jackie_taferner

Totally Zenned

Join Date:
Jun 2009
Location:
Orange County, California
Posts:
547
Plugin Contributions:
3

Re: Using one single listing template

ideasco,

the module is for ZC 1.3.8 or 1.3.9. Please upgrade your cart and re-install. or try to manually make the changes to your older cart using the instructions at the beginning of this thread. I highly recommend a cart upgrade though.

Jackie Taferner - JT Website Design
Custom Website Design and Ecommerce
Support the community. Don't Private Message, post your questions in the forum.

1 Sep 2010, 3:30 PM
#258
ideasco avatar

ideasco

New Zenner

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

Re: Using one single listing template

OK good point, Mine is v1.3.7.1
Upgrading seems like a mammoth task though, since there are so many customizations and overrides. I cannot imagine how long it would take.
I only upgraded the functions_categories.php from v 1.3.9e and it seems to be working fine now. hopefully, that will do it.

1 Sep 2010, 3:41 PM
#259
jackie_taferner avatar

jackie_taferner

Totally Zenned

Join Date:
Jun 2009
Location:
Orange County, California
Posts:
547
Plugin Contributions:
3

Re: Using one single listing template

while upgrading may be a bit of a pain, it's very important to do so. your site is vulnerable to hacking attempts, and keeping upgraded to the latest version will help improve security and fix bugs.

To make the task easier, I suggest using Win-Merge: http://winmerge.org/downloads/
You can compare your current site with the new version to see exactly which files changed.

Jackie Taferner - JT Website Design
Custom Website Design and Ecommerce
Support the community. Don't Private Message, post your questions in the forum.

3 Sep 2010, 9:19 PM
#260
ideasco avatar

ideasco

New Zenner

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

Re: Using one single listing template

I would like to be able to sort product listing by model, new to old, price etc.
This works fine with Specials, New and Featured listings but not with Category Listing.

Is there a way to have this display order function work for Category Listings?

I notice that tpl_index_product_list.php does not require tpl_modules_listing_display_order.php, whereas tpl_products_new_default.php
does.