Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Help getting Product Sorter Mod working with manufactuers listing

    i'm using this code on my product listing pages which is great.

    PHP Code:
    <?php 
    /** 
     * Module Template 
     * 
     * @package templateSystem 
     * @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: tpl_modules_additional_listing_display_order.php 3369 2006-04-03 23:09:13Z drbyte $ 
     */ 
    ?> 
    <?php 
    // NOTE: to remove a sort order option add an HTML comment around the option to be removed 
    ?> 

    <div id="sorter"> 
    <label for="disp-order-sorter"><?php echo TEXT_INFO_SORT_BY?></label> 
    <?php 
      
    echo zen_draw_form('sorter_form'zen_href_link($_GET['main_page']), 'get'); 
      echo 
    zen_draw_hidden_field('main_page'$_GET['main_page']); 
      echo 
    zen_draw_hidden_field('cPath'$cPath); 
      
    // draw cPath if known 
      
    if (!$getoption_set
        echo 
    zen_draw_hidden_field('cPath'$cPath); 
      echo 
    zen_hide_session_id(); 
    ?> 
        <select name="sort" onchange="this.form.submit();" id="disp-order-sorter"> 
    <?php if ($_GET['sort'] != PRODUCT_LISTING_DEFAULT_SORT_ORDER) { ?> 
        <option value="<?php echo PRODUCT_LISTING_DEFAULT_SORT_ORDER?><?php echo ($_GET['sort'] == PRODUCT_LISTING_DEFAULT_SORT_ORDER 'selected="selected"' ''); ?>><?php echo PULL_DOWN_ALL_RESET?></option> 
    <?php // reset to store default ?> 
        <option value="1a" <?php echo ($_GET['sort'] == '1a' 'selected="selected"' ''); ?>><?php echo TEXT_INFO_SORT_BY_PRODUCTS_NAME?></option> 
        <option value="1d" <?php echo ($_GET['sort'] == '1d' 'selected="selected"' ''); ?>><?php echo TEXT_INFO_SORT_BY_PRODUCTS_NAME_DESC?></option> 
        <option value="3a" <?php echo ($_GET['sort'] == '3a' 'selected="selected"' ''); ?>><?php echo TEXT_INFO_SORT_BY_PRODUCTS_PRICE?></option> 
        <option value="3d" <?php echo ($_GET['sort'] == '3d' 'selected="selected"' ''); ?>><?php echo TEXT_INFO_SORT_BY_PRODUCTS_PRICE_DESC?></option> 
        </select></form></div>
    however, I have noticed that it doent work when viewing manufactuers product listings.. assumably because the above code is doing stuff with cPath etc where that is not relevant for the manufacturers view.

    Can anyone advise how I can write the above to either work with either or a seperate one that will work with manufactueres and I will just run different codes baseed on the current view.

    Many thanks
    Phil Rogers
    A problem shared is a problem solved.

  2. #2
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Help getting Product Sorter Mod working with manufactuers listing

    anyone at all? really could do with getting this working
    Phil Rogers
    A problem shared is a problem solved.

  3. #3
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Help getting Product Sorter Mod working with manufactuers listing

    Been playing with this for a while and still don't have a solution to the problem. Hoping one of you gurus can help?
    Phil Rogers
    A problem shared is a problem solved.

 

 

Similar Threads

  1. v151 Product Listing Sorter Drop-Down [Support Thread]
    By torvista in forum All Other Contributions/Addons
    Replies: 77
    Last Post: 17 Feb 2022, 11:26 AM
  2. Modify Product Alpha Listing Sorter dropdown menu
    By JohnBoyCR in forum General Questions
    Replies: 5
    Last Post: 16 Feb 2013, 08:44 AM
  3. Help: Product Listing Grid Layout Mod DISASTER!
    By BabaGee in forum Customization from the Admin
    Replies: 4
    Last Post: 16 May 2011, 04:28 AM
  4. HELP with Mod: "Column Layout Grid for Product Listing"
    By ajstocco in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 5 Mar 2008, 08:01 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