Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2008
    Location
    Missoula, MT
    Posts
    59
    Plugin Contributions
    0

    Default 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

    Code:
    <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
    PHP Code:
    $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!

  2. #2
    Join Date
    Feb 2009
    Posts
    95
    Plugin Contributions
    0

    Default 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

    PHP Code:
    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"'
    Last edited by jwitt98; 13 Mar 2009 at 02:57 AM.

 

 

Similar Threads

  1. Replies: 4
    Last Post: 7 Apr 2013, 10:39 PM
  2. Where does the EZPAGES_SEPARATOR_HEADER variable defined?
    By seifer987 in forum General Questions
    Replies: 11
    Last Post: 13 Nov 2008, 03:25 AM
  3. Does zen fit custom products with variable attributes?
    By CartCrazy in forum General Questions
    Replies: 8
    Last Post: 5 May 2008, 03:26 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg