Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Edit Dropdownmenu v2.7


ptah

Recommended Posts

Vereis, lo que pasa es que solo tengo un fabricante, asi que lo que keria era kitar l menu de "Fabricante" del box de busqueda, y bueno.... he intentado editar el archivo categories_js.php y encontre esto

<?php

$inf='<BODY onload="preselect(' . $IDCategories . ',' . $IDSubcategories . ',' . $IDManufacturers . ',true);">'.

tep_draw_form("QForm", tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, "", "NONSSL", false), "get") .

'<TABLE border="0" width="100%" cellspacing="0" cellpadding="0">' .

  '<TR>' .

    '<TD>' .

      '<TABLE border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">' .

        '<TR class="infoBoxContents">' .

  '<TD>' .

    '<TABLE border="0" width="100%" cellspacing="0" cellpadding="2">' .

      '<TR>' .

        '<TD class="fieldValue">' .

            tep_draw_pull_down_menu("manufacturers_id", "") .

        '</TD>' .

      '</TR>' .

      '<TR>' .

      '<TD class="fieldValue">' .

          tep_draw_pull_down_menu("categories_id", "") .

      '</TD>' .

    '</TR>' .

    '<TR>' .

      '<TD class="fieldValue">' .

        tep_draw_pull_down_menu("subcategories_id", "") .

      '</TD>' .

    '</TR>' .

    '<TR>' .

      '<TD colspan="3" class="fieldKey">' .

          DROPDOWNMENU_KEYWORDS .

      '</TD>' .

    '</TR>' .

      '<TD colspan="2" class="boxText">' .

          tep_draw_input_field("keywords","","style=\'width:98%; background-color= #ffffff;\'") .

      '</TD>' .

      '<TR>' .

        '<TD colspan="1" align="left" class="boxText">' .

            tep_draw_checkbox_field("search_in_description", "1") .

    " " .

    DROPDOWNMENU_INCLUDE_DESCRIPTION .

  '</TD>' .

  '<input type="hidden" name="inc_subcat" value="1">' .

  '<TD colspan="2" class="smallText" align="right"></TD>' .

      '</TR>' .

      '<TR>' .

        '<TD align="center">' .

    tep_image_submit("button_search.gif", IMAGE_BUTTON_SEARCH) .

    tep_hide_session_id() .

  '</TD>' .

      '</TR>' .

    '</TABLE>' .

  '</TD>' .

'</TR>' .

      '</TABLE>' .

    '</TD>' .

  '</TR>' .

'</TABLE>' .

'</FORM>'

 

Que supongo que es el que contrulle el box, y kite esta parte:

 

'<TR>' .

'<TD class="fieldValue">' .

tep_draw_pull_down_menu("manufacturers_id", "") .

'</TD>' .

'</TR>' .

 

y al cargar la pagina elimina el menu "Fabricante" pero no m carga los otros dos, es decir, m los ense?a, pero no m muestra nada, ni "Categorias" ni "Subcategorias"

 

exarme una mano x fa, gracias

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...