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 141 to 160 of 327
7 Feb 2009, 9:33 PM
#142
doodlebee avatar

doodlebee

Inactive

Join Date:
Jan 2006
Posts:
228
Plugin Contributions:
0

Re: Using one single listing template

I got one! I'm using ZenCart 1.3.8. I love this little tutorial - it's great - working like a charm (and I'm even using the product listing CSS mod too - it's awesome so far. In fact, the mode seems to already have a lot of your tutorial stuff in place - I didn't have to change much!)

However - I've noticed that the All and New pages are doubling up the breadcrumb. Actually tripling - but I went into the header_php.php files for both new and all, and commented out the $breadcrumb line - so now it's only doubling.

Basically, the breadcrumb is showing this:

Shop > All Products > All Products

instead of this:

Shop > All Products

Got any suggestions? Thanks!

8 Feb 2009, 6:50 PM
#143
swamyg1 avatar

swamyg1

Zen Follower

Join Date:
Dec 2008
Location:
San Fran
Posts:
382
Plugin Contributions:
0

Re: Using one single listing template

I didn't see a way to make this work with the Reviews template. That listing page would require a custom CSS file if this mod doesn't work with it, UGH.

8 Feb 2009, 7:04 PM
#144
yellow1912 avatar

yellow1912

Totally Zenned

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

Re: Using one single listing template

swamyg1:

I didn't see a way to make this work with the Reviews template. That listing page would require a custom CSS file if this mod doesn't work with it, UGH.
If you understand how it works, you can tweak it to work for any listing. I managed to tweak it to work for xsell products on the product_info page as well.

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

8 Feb 2009, 7:05 PM
#145
yellow1912 avatar

yellow1912

Totally Zenned

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

Re: Using one single listing template

doodlebee:

I got one! I'm using ZenCart 1.3.8. I love this little tutorial - it's great - working like a charm (and I'm even using the product listing CSS mod too - it's awesome so far. In fact, the mode seems to already have a lot of your tutorial stuff in place - I didn't have to change much!)

However - I've noticed that the All and New pages are doubling up the breadcrumb. Actually tripling - but I went into the header_php.php files for both new and all, and commented out the $breadcrumb line - so now it's only doubling.

Basically, the breadcrumb is showing this:

Shop > All Products > All Products

instead of this:

Shop > All Products

Got any suggestions? Thanks!It's weird, did you try to check all the places that breadcrum would be added?

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

17 Feb 2009, 3:43 PM
#146
doodlebee avatar

doodlebee

Inactive

Join Date:
Jan 2006
Posts:
228
Plugin Contributions:
0

Re: Using one single listing template

It's weird, did you try to check all the places that breadcrum would be added?

yep, I did - at least all the ones I knew about. It's really odd.

I'm actually working on another (different) site right this exact moment, but as soon as I'm done with it, I'll come back to this one and then tell you the files I've checked to change this.

The other site (the one I'm referring to for this question) is actually a heavily modified theme I did about 2 or 3 years ago. It was originally running 1.2.6, and the who site was done as a table-based layout. It was also the first ZenCart theme I ever did - so I'd imagine there was a ton of things I could have done better. But I basilcally redid every file to be tableless - the tables were driving me mad, and with the design we had, there was no way I could pull it off with tables. Fast forward to now, and the client wanted the site moved, but the new host wou'dn't accept it because the cart was running 1.2.6, and was full of holes, I would imagine, So I had to quickly update it to 1.3.8 - which of course broke all of my beautiful rewrites. I woudl imagine I'm missing a file soemwhere that is causing this. I didn't have ime to redo the entire site - so I've been going through, picking apart everything to update it. There's probably an old 1.2.6 file that's causing this issue - but if that's so, I'm going to be hard-pressed to find it.

Upgrading ZenCart should so be easier LOL

but if you happen ot have any ideas on what I could look for (even if it's just an old Constant name or piece of code that I could run through the Developer's Toolkit, that would be an awesome help on it's own.

19 Apr 2009, 12:34 AM
#147
scytheuk avatar

scytheuk

New Zenner

Join Date:
Apr 2009
Posts:
42
Plugin Contributions:
0

Re: Using one single listing template

Hi, i have just installed this mod on a Test site on a local server, and have noticed since installing that the Specials, New Products and Featured product boxes on my homepage all say "New Products For April" in their respective headers.

What have i done wrong? I used the files that are zipped together from http://public.rubikintegration.com/

Everything else seems to be working fine.

Using latest install of ZC, with Column Layout Grid, and Column Divider Pro mods installed also.

Pete

14 May 2009, 3:16 PM
#148
wilbo avatar

wilbo

New Zenner

Join Date:
May 2009
Posts:
43
Plugin Contributions:
0

Re: Using one single listing template

Hi there,

I followed the above and got the All Products page working, but I can't get it to work with the New Products page. Has anyone done this? I could use some help.

Thanks!

14 May 2009, 6:19 PM
#149
worti avatar

worti

New Zenner

Join Date:
May 2009
Posts:
1
Plugin Contributions:
0

Re: Using one single listing template

Hello there

first, nice mod. But i have the same issue as Gary777

I have downloadet Column Layout Grid for Product Listing for v1.3.8.

There are no Model, Shipping Weight or Units in Stock Labels
have someone a fix for this?

Thake a look at the Images.

[IMG]http://www.bilder-space.de/thumb/14.05VVfq4HZd4SRZwMg.jpg[/IMG]

[IMG]http://www.bilder-space.de/thumb/14.057MHPJbr60oDjzWn.jpg[/IMG]

Page is building on a local machine. there ar no links aviable

Many thanks
Worti

15 May 2009, 10:47 AM
#150
wilbo avatar

wilbo

New Zenner

Join Date:
May 2009
Posts:
43
Plugin Contributions:
0

Re: Using one single listing template

Hi,

Can somebody please post the code for the other pages (everything but the All Products page).

I've got the All products page working fine but the New Products just gives me an error:

1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'limit 0, 10' at line 1
in:
[ limit 0, 10]

what am I doing wrong?

Thanks

15 May 2009, 10:54 AM
#151
wilbo avatar

wilbo

New Zenner

Join Date:
May 2009
Posts:
43
Plugin Contributions:
0

Re: Using one single listing template

OK, for anyone who gets the same error, you've just missed one $products_new_query_raw that needs to be changed to $listing_sq

Underneath the line:

$listing_sql = $db->bindVars($listing_sql, ':languageID', $_SESSION['languages_id'], 'integer');

is another line that needs to be changed to:

$products_new_split = new splitPageResults($listing_sql, MAX_DISPLAY_PRODUCTS_NEW);

That worked for me:smile:

23 May 2009, 10:40 PM
#152
siaoster avatar

siaoster

New Zenner

Join Date:
May 2009
Posts:
1
Plugin Contributions:
0

Re: Using one single listing template

Hi, im having problem with text alignment in IE(view here).
The text "Information" is misalign in IE.
Firefox no problem.

Anyone here knows how to remove the text "information" in (product_listing.php). Thanks

11 Jun 2009, 2:46 PM
#153
perica6892 avatar

perica6892

New Zenner

Join Date:
Jan 2009
Posts:
6
Plugin Contributions:
0

Re: Using one single listing template

Hi,

excellent method.

I see that this thread deals with how to make all pages look like default Category Product Listing.

My problem:

I have modified my All Products listing to suite my needs. Now I want to apply that style to all other listings.

Is this possible? I guess all I need to change is which code goes
where, but since I'm not that much into PHP, any help would be
greatly accepted.

Thank you

12 Jun 2009, 10:49 PM
#154
perica6892 avatar

perica6892

New Zenner

Join Date:
Jan 2009
Posts:
6
Plugin Contributions:
0

Re: Using one single listing template

bumpy bump :frusty:

14 Jun 2009, 8:03 AM
#155
kobra avatar

kobra

Black Belt

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

Re: Using one single listing template

perica6892:

I have modified my All Products listing to suite my needs. Now I want to apply that style to all other listings.

Is this possible? I guess all I need to change is which code goes
where, but since I'm not that much into PHP, any help would be
greatly accepted.
I know that there are over 100 posts here but this has been covered and the principle is the same no matter which of the 4 layouts you want
Have a read

Zen-Venom Get Bitten

10 Aug 2009, 4:11 PM
#156
dw08gm avatar

dw08gm

Totally Zenned

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

Re: Using one single listing template

I just downloaded this mod from rubik integration and notice many of the files are dated to yesterday. If I understand correctly, this mod has been recently upgraded, but there are no advices re the upgrade.

10 Aug 2009, 4:14 PM
#157
yellow1912 avatar

yellow1912

Totally Zenned

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

Re: Using one single listing template

dw08gm:

I just downloaded this mod from rubik integration and notice many of the files are dated to yesterday. If I understand correctly, this mod has been recently upgraded, but there are no advices re the upgrade.
I guess the upgrade note is: overwrite or merge the new files with the old ones :)

The most of the files are safe to overwrite except the product_listing.php (in case you edited that file to when you edit your layout for example)

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

13 Aug 2009, 12:12 PM
#158
dw08gm avatar

dw08gm

Totally Zenned

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

Re: Using one single listing template

yellow1912:

I guess the upgrade note is: overwrite or merge the new files with the old ones :)

Great mod by the way.

yellow1912:

The most of the files are safe to overwrite except the product_listing.php (in case you edited that file to when you edit your layout for example)

IIRC The only changes I made (had to make!?) to my product_listing.php were

i) adding "- 0.5" (ie minus) to the column layout grid width calculation, only because I had already written this column layout arrangement into a category description (ie that adds blurb above a category image)

ii) extending line 158 to append "...more info" to a truncated product description. (http://www.zen-cart.com/forum/showthread.php?p=675664#post675664). However I have yet to fully test this appendage.

Thanks

13 Sep 2009, 6:45 PM
#159
weber avatar

weber

Zen Follower

Join Date:
Nov 2005
Posts:
157
Plugin Contributions:
0

Re: Using one single listing template

i have problem with my special listing, zencart 1.38a. i got a page which is blank un center area(all header/footer/sideboxes are there but center part has nothing..., i am sure i have special products as shown in sideboxes)
for pages/special/header.php

<?php
/**
 * Specials
 *
 * @package page
 * @copyright Copyright 2003-2006 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: header_php.php 3000 2006-02-09 21:11:37Z wilt $
 */

require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php'));
$breadcrumb->add(NAVBAR_TITLE);


	// display order dropdown
	$disp_order_default = PRODUCT_ALL_LIST_SORT_DEFAULT;
  require(DIR_WS_MODULES . zen_get_module_directory(FILENAME_LISTING_DISPLAY_ORDER));
  
  $listing_sql = "SELECT p.products_id, p.products_image, pd.products_name,
                          p.master_categories_id
                         FROM (" . TABLE_PRODUCTS . " p
                         LEFT JOIN " . TABLE_SPECIALS . " s on p.products_id = s.products_id
                         LEFT JOIN " . TABLE_PRODUCTS_DESCRIPTION . " pd on p.products_id = pd.products_id )
                         WHERE p.products_id = s.products_id and p.products_id = pd.products_id and p.products_status = '1'
                         AND s.status = 1
                         AND pd.language_id = :languagesID" . $order_by;

  $listing_sql = $db->bindVars($listing_sql, ':languagesID', $_SESSION['languages_id'], 'integer');

 //check to see if we are in normal mode ... not showcase, not maintenance, etc
  $show_submit = zen_run_normal();

$define_list = array('PRODUCT_LIST_MODEL' => PRODUCT_LIST_MODEL,
  'PRODUCT_LIST_NAME' => PRODUCT_LIST_NAME,
  'PRODUCT_LIST_MANUFACTURER' => PRODUCT_LIST_MANUFACTURER,
  'PRODUCT_LIST_PRICE' => PRODUCT_LIST_PRICE,
  'PRODUCT_LIST_QUANTITY' => PRODUCT_LIST_QUANTITY,
  'PRODUCT_LIST_WEIGHT' => PRODUCT_LIST_WEIGHT,
  'PRODUCT_LIST_IMAGE' => PRODUCT_LIST_IMAGE);

  /*                         ,
  'PRODUCT_LIST_BUY_NOW' => PRODUCT_LIST_BUY_NOW);
  */
  asort($define_list);
  reset($define_list);
  $column_list = array();
  foreach ($define_list as $key => $value)
  {
    if ($value > 0) $column_list[] = $key;
  }


?>

main_template_vars.php i just leave it blank..
then tpl_special_default.php

<div class="centerColumn" id="specialsListing">

<h1 id="specialsListingHeading"><?php echo $breadcrumb->last(); ?></h1>
<?php
require($template->get_template_dir('/tpl_modules_listing_display_order.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_listing_display_order.php');
    require($template->get_template_dir('tpl_modules_product_listing.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_product_listing.php');
?>


</div>
17 Sep 2009, 6:17 AM
#160
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Using one single listing template

This installed PERFECTLY the very first time..:clap:

Yellow I PROMISE that this time I remembered to read this ENTIRE THREAD before posting my question.. :smile: I saw a few posts hint at this, but none which pointed me in the right direction (unless I missed it.. could be.. I'm a little sleepy now.. :laugh:)

On the product pages there is a 'Filter results' function,which is useful, but on the New Products and All Products pages, I noticed that there is a 'Sort by' function which I think would be very useful on the product pages since it can sort according to price, dated added, etc. I could use your assistance with the how-to's in replacing the 'Filter results' function on the product pages with the 'Sort by' function?

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.