Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2005
    Location
    Louny, Czech Republic
    Posts
    51
    Plugin Contributions
    1

    Default Clone sidebox manufacturers

    Hi, I have new additional item for table products. Item is on base manufacturers include new table and clone manufacturers settings.
    In shop I have clone manufacturerīs box and after clicking on selecting item I get link ie.: http://something.com/index.php?main_...ndex&item_id=1. Thatīs right, but where is defined item_id=1 for browsing selected products? Now isnīt any results, but shop doesnīt know this item_id=1 or item_id=2 etc. only ie. manufacturers_id=1 etc.. I need modify others files?
    JardaR

  2. #2
    Join Date
    Apr 2005
    Location
    Louny, Czech Republic
    Posts
    51
    Plugin Contributions
    1

    Default Re: Clone sidebox manufacturers

    Anyone? default_filter.php?

    My changes:
    Code:
      if (isset($_GET['manufacturers_id']) && $_GET['manufacturers_id'] != '' ) {
        if (isset($_GET['filter_id']) && zen_not_null($_GET['filter_id'])) {
    // We are asked to show only a specific category
          $listing_sql = "select " . $select_column_list . " p.products_id, p.products_type, p.master_categories_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, pd.products_description, if(s.status = 1, s.specials_new_products_price, NULL) AS specials_new_products_price, IF(s.status = 1, s.specials_new_products_price, p.products_price) as final_price, p.products_sort_order, p.product_is_call, p.product_is_always_free_shipping, p.products_qty_box_status
           from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id , " .
           TABLE_PRODUCTS_DESCRIPTION . " pd, " .
           TABLE_MANUFACTURERS . " m, " .
           TABLE_PRODUCTS_TO_CATEGORIES . " p2c
           where p.products_status = 1
             and p.manufacturers_id = m.manufacturers_id
             and m.manufacturers_id = '" . (int)$_GET['manufacturers_id'] . "'
             and p.products_id = p2c.products_id
             and pd.products_id = p2c.products_id
             and pd.language_id = '" . (int)$_SESSION['languages_id'] . "'
             and p2c.categories_id = '" . (int)$_GET['filter_id'] . "'" .
             $alpha_sort;
        } else {
    // We show them all
          $listing_sql = "select " . $select_column_list . " p.products_id, p.products_type, p.master_categories_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, pd.products_description, IF(s.status = 1, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status = 1, s.specials_new_products_price, p.products_price) as final_price, p.products_sort_order, p.product_is_call, p.product_is_always_free_shipping, p.products_qty_box_status
          from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " .
          TABLE_PRODUCTS_DESCRIPTION . " pd, " .
          TABLE_MANUFACTURERS . " m
          where p.products_status = 1
            and pd.products_id = p.products_id
            and pd.language_id = '" . (int)$_SESSION['languages_id'] . "'
            and p.manufacturers_id = m.manufacturers_id
            and m.manufacturers_id = '" . (int)$_GET['manufacturers_id'] . "'" .
            $alpha_sort;
        }
      } elseif (isset($_GET['meritko_id']) && $_GET['meritko_id'] != '' ) {
        if (isset($_GET['filter_id']) && zen_not_null($_GET['filter_id'])) {
    // We are asked to show only a specific category
          $listing_sql = "select " . $select_column_list . " p.products_id, p.products_type, p.master_categories_id, p.meritko_id, p.products_price, p.products_tax_class_id, pd.products_description, if(s.status = 1, s.specials_new_products_price, NULL) AS specials_new_products_price, IF(s.status = 1, s.specials_new_products_price, p.products_price) as final_price, p.products_sort_order, p.product_is_call, p.product_is_always_free_shipping, p.products_qty_box_status
           from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id , " .
           TABLE_PRODUCTS_DESCRIPTION . " pd, " .
           TABLE_MERITKO . " m, " .
           TABLE_PRODUCTS_TO_CATEGORIES . " p2c
           where p.products_status = 1
             and p.meritko_id = m.meritko_id
             and m.meritko_id = '" . (int)$_GET['meritko_id'] . "'
             and p.products_id = p2c.products_id
             and pd.products_id = p2c.products_id
             and pd.language_id = '" . (int)$_SESSION['languages_id'] . "'
             and p2c.categories_id = '" . (int)$_GET['filter_id'] . "'" .
             $alpha_sort;
        } else {
    // We show them all
          $listing_sql = "select " . $select_column_list . " p.products_id, p.products_type, p.master_categories_id, p.meritko_id, p.products_price, p.products_tax_class_id, pd.products_description, IF(s.status = 1, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status = 1, s.specials_new_products_price, p.products_price) as final_price, p.products_sort_order, p.product_is_call, p.product_is_always_free_shipping, p.products_qty_box_status
          from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " .
          TABLE_PRODUCTS_DESCRIPTION . " pd, " .
          TABLE_MERITKO . " m
          where p.products_status = 1
            and pd.products_id = p.products_id
            and pd.language_id = '" . (int)$_SESSION['languages_id'] . "'
            and p.meritko_id = m.meritko_id
            and m.meritko_id = '" . (int)$_GET['meritko_id'] . "'" .
            $alpha_sort;
        }
      } else {
    // show the products in a given category
        if (isset($_GET['filter_id']) && zen_not_null($_GET['filter_id'])) {
    // We are asked to show only specific category
          $listing_sql = "select " . $select_column_list . " p.products_id, p.products_type, p.master_categories_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, pd.products_description, IF(s.status = 1, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status = 1, s.specials_new_products_price, p.products_price) as final_price, p.products_sort_order, p.product_is_call, p.product_is_always_free_shipping, p.products_qty_box_status
          from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " .
          TABLE_PRODUCTS_DESCRIPTION . " pd, " .
          TABLE_MANUFACTURERS . " m, " .
          TABLE_PRODUCTS_TO_CATEGORIES . " p2c
          where p.products_status = 1
            and p.manufacturers_id = m.manufacturers_id
            and m.manufacturers_id = '" . (int)$_GET['filter_id'] . "'
            and p.products_id = p2c.products_id
            and pd.products_id = p2c.products_id
            and pd.language_id = '" . (int)$_SESSION['languages_id'] . "'
            and p2c.categories_id = '" . (int)$current_category_id . "'" .
            $alpha_sort;
        } else {
    // We show them all
          $listing_sql = "select " . $select_column_list . " p.products_id, p.products_type, p.master_categories_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, pd.products_description, IF(s.status = 1, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status =1, s.specials_new_products_price, p.products_price) as final_price, p.products_sort_order, p.product_is_call, p.product_is_always_free_shipping, p.products_qty_box_status
           from " . TABLE_PRODUCTS_DESCRIPTION . " pd, " .
           TABLE_PRODUCTS . " p left join " . TABLE_MANUFACTURERS . " m on p.manufacturers_id = m.manufacturers_id, " .
           TABLE_PRODUCTS_TO_CATEGORIES . " p2c left join " . TABLE_SPECIALS . " s on p2c.products_id = s.products_id
           where p.products_status = 1
             and p.products_id = p2c.products_id
             and pd.products_id = p2c.products_id
             and pd.language_id = '" . (int)$_SESSION['languages_id'] . "'
             and p2c.categories_id = '" . (int)$current_category_id . "'" .
             $alpha_sort;
        }
      }
    but showing only 1 product.
    JardaR

  3. #3
    Join Date
    Apr 2005
    Location
    Louny, Czech Republic
    Posts
    51
    Plugin Contributions
    1

    Default Re: Clone sidebox manufacturers

    So otherwise. Knows somebody succession files from selection manufacture in box to display his products listing?
    JardaR

 

 

Similar Threads

  1. Clone a Sidebox?
    By cageman555 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 12 Mar 2011, 08:56 AM
  2. Manufacturers sidebox
    By peeks in forum Basic Configuration
    Replies: 3
    Last Post: 27 Apr 2009, 02:47 PM
  3. Manufacturers sidebox
    By FredZ in forum Basic Configuration
    Replies: 6
    Last Post: 21 Feb 2007, 09:44 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