Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Dec 2010
    Posts
    32
    Plugin Contributions
    0

    Default Sidebox like Manufacturer but not able to search

    Hi, I was trying to create new Sidebox like Manufacturer, I am able to do so. Able to see list as Manufacturer,
    But it is not searching like Manufacturers.
    Any idea which file Manufacturer sidebox use to make search.
    Regards

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Sidebox like Manufacturer but not able to search

    A copy of for your template
    includes/templates/template_default/sideboxes/tpl_manufacturers_select.php
    and
    includes/modules/sideboxes/manufacturers.php
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Dec 2010
    Posts
    32
    Plugin Contributions
    0

    Default Re: Sidebox like Manufacturer but not able to search

    I did these, it is in e-commerce and all suppliers are there in list, But it is unable to get products belong to them.
    Want to know if file includes/index_filters/default_filter.php can help to search results for suppliers.
    Regards

  4. #4
    Join Date
    Dec 2010
    Posts
    32
    Plugin Contributions
    0

    Default Re: Sidebox like Manufacturer but not able to search

    --/index.php?main_page=index&manufacturers_id=1, unable to understand from which file this one is getting result

  5. #5
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Sidebox like Manufacturer but not able to search

    But it is unable to get products belong to them.
    Have you defined in your admin>catalog/products > entries that a product belongs to a particular manufacturer?
    Zen-Venom Get Bitten

  6. #6
    Join Date
    Dec 2010
    Posts
    32
    Plugin Contributions
    0

    Default Re: Sidebox like Manufacturer but not able to search

    Yes Kobra, I am trying to create new side box for supplier. As said. I am able to see new sidebox supplier in e-commerce.
    I noticed If defined product for Manufacturer are coming through two files- default_filter.php and tpl_manufacturers_select.php .
    But unable to understand how manufacturer_id move from tpl_manufacturers_select.php to default_filter.php.

    If I change manufacture_id to supplier_id in both files, Then My new sidebox Supplier start giving products.
    Like
    in tpl_manufacturers_select.php
    $content .= zen_draw_pull_down_menu('manufacturers_id', $manufacturer_sidebox_array, (isset($_GET['manufacturers_id']) ? $_GET['manufacturers_id'] : ''), 'onchange="this.form.submit();" size="' . MAX_MANUFACTURERS_LIST . '" style="width: 90%; margin: auto;"') . zen_hide_session_id();
    to
    $content .= zen_draw_pull_down_menu('suppliers_id', $manufacturer_sidebox_array, (isset($_GET['manufacturers_id']) ? $_GET['manufacturers_id'] : ''), 'onchange="this.form.submit();" size="' . MAX_MANUFACTURERS_LIST . '" style="width: 90%; margin: auto;"') . zen_hide_session_id();

    and
    in default_filter.php
    if (isset($_GET['manufactures_id']) && $_GET['brands_id'] != '' ) {
    to

    if (isset($_GET['suppliers_id']) && $_GET['brands_id'] != '' ) {

  7. #7
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Sidebox like Manufacturer but not able to search

    I suggest that you start by cloning/copying these two files
    includes/templates/template_default/sideboxes/tpl_manufacturers_select.php
    and
    includes/modules/sideboxes/manufacturers.php
    renaming them to
    includes/templates/template_default/sideboxes/tpl_suppliers_select.php
    and
    includes/modules/sideboxes/suppliers.php

    Edit the code within them to reflect "suppliers"
    Zen-Venom Get Bitten

  8. #8
    Join Date
    Dec 2010
    Posts
    32
    Plugin Contributions
    0

    Default Re: Sidebox like Manufacturer but not able to search

    HI Kobra, I did this but no luck.
    want to know what is MAX_DISPLAY_MANUFACTURER_NAME_LEN. seems it getting Length from database.
    But I change this to MAX_DISPLAY_SUPPLIER_NAME_LEN.
    I only get .. as supplier list.
    But if i use MAX_DISPLAY_MANUFACTURER_NAME_LEN I am able to get all suppliers in list but not its products.

    still no luck to get suppliers related products.
    Regards

  9. #9
    Join Date
    Dec 2010
    Posts
    32
    Plugin Contributions
    0

    Default Re: Sidebox like Manufacturer but not able to search

    in /includes/templates/template_default/sideboxes/tpl_brands_select.php
    if I am changing manufacturers_id to suppliers_id gives nothing

    $content .= zen_draw_pull_down_menu('manufacturers_id', $supplier_sidebox_array, (isset($_GET['suppliers_id']) ? $_GET['supliers_id'] : ''), 'onchange="this.form.submit();" size="' . MAX_SUPLIERS_LIST . '" style="width: 90%; margin: auto;"') . zen_hide_session_id();

  10. #10
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Sidebox like Manufacturer but not able to search

    If you have cloned the files you now need to create the Database tables for suppliers

    suppliers
    suppliers_info

    Then the code to display in your admin
    Zen-Venom Get Bitten

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v154 Sidebox like Manufacturer
    By mandeepmavi in forum Addon Sideboxes
    Replies: 1
    Last Post: 1 Dec 2015, 07:09 PM
  2. not sure it is supposed to look like this...But I like it how do I duplicate on left?
    By jwaynehinkle in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 4 Nov 2013, 01:02 AM
  3. Replies: 3
    Last Post: 12 Oct 2010, 01:32 AM
  4. Manufacturer sidebox ON but NOT showing!
    By hindley08 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 16 Aug 2008, 06:17 PM
  5. Manufacturer linked error...but not when clicking same item via search?
    By DrEtnof in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 7 Jun 2007, 06:41 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR