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
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
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
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
--/index.php?main_page=index&manufacturers_id=1, unable to understand from which file this one is getting result
Have you defined in your admin>catalog/products > entries that a product belongs to a particular manufacturer?But it is unable to get products belong to them.
Zen-Venom Get Bitten
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'] != '' ) {
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
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
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();
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
Bookmarks