Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / where is does zen load the $list_box_contents variable?

where is does zen load the $list_box_contents variable?

Locked

Views: 3,315

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
12 Mar 2009, 1:59 AM
#1
svakanda avatar

svakanda

New Zenner

Join Date:
Apr 2008
Location:
Missoula, MT
Posts:
58
Plugin Contributions:
0

where is does zen load the $list_box_contents variable?

The $list_box_contents is used in tpl_columnar_display as an array for storing the item html that gets shown underneath a category(item1, item2 item3, etc) it stores all a string like

<a href="http://localhost/purebulk/acetyl-l-carnitine-alcar/acetyl-l-carnitine-alcar-100g"><src="images/TN/TN.Bag.Acetyl-L-Carnitine.100g.jpg" alt="Acetyl L-Carnitine (ALCAR) 100g" title=" Acetyl L-Carnitine (ALCAR) 100g " width="81" height="66" class="listingProductImage" /></a><br /><h3 class="itemTitle"><a href="http://localhost/purebulk/acetyl-l-carnitine-alcar/acetyl-l-carnitine-alcar-100g">Acetyl L-Carnitine (ALCAR) 100g</a></h3><div class="listingDescription"></div><br />$14.25<br /><br /><a href="http://localhost/purebulk/index/acetyl-l-carnitine-alcar/acetyl-l-carnitine-alcar-100g?sort=20a&action=buy_now"><src="includes/templates/template_default/buttons/english/button_buy_now.gif" alt="Buy Now" title=" Buy Now " width="90" height="20" class="listingBuyNowButton" /></a><br /><br />

in this location

$list_box_contents[$row][$col]['text']

can anyone tell me where this is pulled from the database and constructed? i've been looking for it for two days, and im starting to feel burnt. thanks for any insight you can provide!

13 Mar 2009, 1:50 AM
#2
jwitt98 avatar

jwitt98

New Zenner

Join Date:
Feb 2009
Posts:
95
Plugin Contributions:
0

Re: where is does zen load the $list_box_contents variable?

From what I can tell the $list_box_contents array is a multidimensional array used to piece together the html for displaying the list of products using variables that are set according to the preferences set up in admin for displaying products.

Maybe you could find some more pieces to your puzzle here:

\includes\modules\product_listing.php

 
00019: $list_box_contents[0] = array('params' => 'class="productListing-rowheading"');
00068: $list_box_contents[0][$col] = array('align' => $lc_align,
00081: $list_box_contents[$rows] = array('params' => 'class="productListing-even"');
00083: $list_box_contents[$rows] = array('params' => 'class="productListing-odd"');
00086: $cur_row = sizeof($list_box_contents) - 1;
00174: $list_box_contents[$rows][$col] = array('align' => $lc_align,
00189: // $list_box_contents[$rows][] = array('params' => 'class="' . $list_box_description . '" colspan="' . $zc_col_count_description . '"',
00196: $list_box_contents = array();
00198: $list_box_contents[0] = array('params' => 'class="productListing-odd"');
00199: $list_box_contents[0][] = array('params' => 'class="productListing-data"',