Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Mar 2005
    Location
    Helsinki
    Posts
    570
    Plugin Contributions
    0

    Idea or Suggestion creating a new productlisting layout - help wanted

    first off all I want to get rid off all alpha filters and sorters etc. on the top of the listing page.

    second I'd like to create a "loop" for products in the list. Basicly a simple loop would look like this fex:
    http://img257.imageshack.us/img257/3320/listlooppj0.gif
    and then it would just go on for the next product and all products in the list would have the same look..

    the third thing is I'm bit confused already so if anyone has ideas about this or can help anyway let me know.

    thanks

  2. #2
    Join Date
    Mar 2005
    Location
    Helsinki
    Posts
    570
    Plugin Contributions
    0

    Default Re: creating a new productlisting layout - help wanted

    actually would help a lot if someone could point me how to use the same layout as the new products page has on every product listing..

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: creating a new productlisting layout - help wanted

    There is a small bug to the switch for the Alpha Filter:
    http://www.zen-cart.com/forum/showth...t=alpha+filter

    NOTE: this is fixed in v1.3.8 but it is done with a variation of the posted work around ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #4
    Join Date
    Jun 2003
    Posts
    33,720
    Plugin Contributions
    0

    Default Re: creating a new productlisting layout - help wanted

    There is a Gric Listing mod in the downloads section.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  5. #5
    Join Date
    Mar 2005
    Location
    Helsinki
    Posts
    570
    Plugin Contributions
    0

    Default Re: creating a new productlisting layout - help wanted

    A, I don't really care to fix the sorter I'd just want to get rid off it by anymeans..

    Kim did you look at the image? Do you recommend using columnar mod even though my grid would be only 1 row and 1 column?

    I just want the product list to look like the new products listing since that's the only listing file I can make sense from..

  6. #6
    Join Date
    Sep 2007
    Posts
    6
    Plugin Contributions
    0

    Default Re: creating a new productlisting layout - help wanted

    i am just looking for help on this issue as well.. if anyone knows answer on how to separate the values drawn from database into pieces so that they can then be plugged into html based layout.. currently the string :

    <?php echo '<div' . $r_params . '>' . $list_box_contents[$row][$col]['text']. '</div>' . "\n"; ?>

    in the columnar display controls the whole product listing display.. i tried separating it and was successful by renaming some of the [text] values in the product_list.php to something like [textdesc] and then drawing it by a separate <?php echo ...?> command however this screws up the whole page layout due to my either lack of knowledge in css in the area that controls the <div> command or I don't know anymore.. :) As soon as I begin using the html to wrap the script.. the whole layout is gone .. or i lose the three products per row layout..

    Please help. thank you.

  7. #7
    Join Date
    May 2006
    Posts
    17
    Plugin Contributions
    0

    Default Re: creating a new productlisting layout - help wanted

    Quote Originally Posted by poosk View Post
    actually would help a lot if someone could point me how to use the same layout as the new products page has on every product listing..
    i have been looking for how to do this for a while now and i cant seem to find anything

  8. #8
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: creating a new productlisting layout - help wanted

    I believe the Coumn Grid mod will give you that listing style even if you have it set to one product per row, as long as you have selected the "grid" style instead of "row" style.

  9. #9
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: creating a new productlisting layout - help wanted

    To give yourself full control over the styling of the product listing, you can edit /includes/modules/your_template/product_listing.php to give a meaningful class to each element. For example, change this part:
    PHP Code:
          switch ($column_list[$col]) {
            case 
    'PRODUCT_LIST_MODEL':
              
    $lc_align '';
              
    $lc_text $listing->fields['products_model'];
              break;
            case 
    'PRODUCT_LIST_NAME':
              
    $lc_align '';
              if (isset(
    $_GET['manufacturers_id'])) {
                
    $lc_text '<h3 class="itemTitle"><a href="' zen_href_link(zen_get_info_page($listing->fields['products_id']), 'products_id=' $listing->fields['products_id']) . '">' $listing->fields['products_name'] . '</a></h3><div class="listingDescription">' zen_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($listing->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION) . '</div>' ;
              } else {
                
    $lc_text '<h3 class="itemTitle"><a href="' zen_href_link(zen_get_info_page($listing->fields['products_id']), ($_GET['cPath'] > 'cPath=' $_GET['cPath'] . '&' '') . 'products_id=' $listing->fields['products_id']) . '">' $listing->fields['products_name'] . '</a></h3><div class="listingDescription">' zen_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($listing->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION) . '</div>';
              }
              break;
            case 
    'PRODUCT_LIST_MANUFACTURER':
              
    $lc_align '';
              
    $lc_text '<a href="' zen_href_link(FILENAME_DEFAULT'manufacturers_id=' $listing->fields['manufacturers_id']) . '">' $listing->fields['manufacturers_name'] . '</a>';
              break; 
    to this:
    PHP Code:
          switch ($column_list[$col]) {
            case 
    'PRODUCT_LIST_MODEL':
              
    $lc_align '';
    //give the model number text a class
              
    $lc_text '<div class="productListModel">' $listing->fields['products_model'] . '</div>';
              break;
            case 
    'PRODUCT_LIST_NAME':
              
    $lc_align '';
    //title and description already have classes
              
    if (isset($_GET['manufacturers_id'])) {
                
    $lc_text '<h3 class="itemTitle"><a href="' zen_href_link(zen_get_info_page($listing->fields['products_id']), 'products_id=' $listing->fields['products_id']) . '">' $listing->fields['products_name'] . '</a></h3><div class="listingDescription">' zen_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($listing->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION) . '</div>' ;
              } else {
                
    $lc_text '<h3 class="itemTitle"><a href="' zen_href_link(zen_get_info_page($listing->fields['products_id']), ($_GET['cPath'] > 'cPath=' $_GET['cPath'] . '&' '') . 'products_id=' $listing->fields['products_id']) . '">' $listing->fields['products_name'] . '</a></h3><div class="listingDescription">' zen_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($listing->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION) . '</div>';
              }
              break;
            case 
    'PRODUCT_LIST_MANUFACTURER':
              
    $lc_align '';
    //give the mfr link a class
              
    $lc_text '<a class="productListManufacturer"  href="' zen_href_link(FILENAME_DEFAULT'manufacturers_id=' $listing->fields['manufacturers_id']) . '">' $listing->fields['manufacturers_name'] . '</a>';
              break; 
    You can set the order of elements in admin > Configuration > Product Listing, and fine-tune this by styling the classes in your stylesheet.

  10. #10
    Join Date
    Mar 2005
    Location
    Helsinki
    Posts
    570
    Plugin Contributions
    0

    Default Re: creating a new productlisting layout - help wanted

    thanks for the help. the grid mod actually worked well

 

 

Similar Threads

  1. v151 Custom layout help wanted for Radio buttons with display:block or white-space:nowrap
    By dw08gm in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 21 May 2013, 03:41 PM
  2. Creating a new navigation bar help
    By shinewebdesigns in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 18 Jun 2010, 05:33 PM
  3. Need help creating a new sidebox.
    By TJR Stores in forum Basic Configuration
    Replies: 2
    Last Post: 8 Jul 2009, 09:16 AM

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