Jump to content

bhbilbao

Members
  • Content count

    308
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by bhbilbao


  1. v.4.0 works fine, except:

     

    When modifing a product "EDIT", it gets a php error and the product appears empty.

     

    Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /public_html/admin/includes/functions/database.php on line 99
    
    PHP Error Message
    
    Warning: reset() [function.reset]: Passed variable is not an array or object in /public_html/admin/includes/classes/object_info.php on line 17
    
    PHP Error Message
    
    Warning: Variable passed to each() is not an array or object in /public_html/admin/includes/classes/object_info.php on line 18

     

    Other contrib installed:

    CUSTOM PRODUCT BUILDER

    SPECIALS IN SCROLL

     

    OSC V2.2rc2a

     

    Can anyone help me?

     

    Thanks in advance.


  2. Now I have problems with cpb:

     

    I´m addding Enable_Disable_Categories_1.6.5 but the problem is that it changed some files, f.e:

     

    /catalog/includes/application_top.php

     

    ***FIND:
         $categories_query = tep_db_query("select categories_name from " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id = '" . (int)$cPath_array[$i] . "' and language_id = '" . (int)$languages_id . "'");
    
    ***REPLACE WITH:
         // BOF Enable & Disable Categories
         $categories_query = tep_db_query("select categories_name from " . TABLE_CATEGORIES_DESCRIPTION . " cd left join " . TABLE_CATEGORIES . " c on cd.categories_id = c.categories_id where c.categories_status = '1' and cd.categories_id = '" . (int)$cPath_array[$i] . "' and cd.language_id = '" . (int)$languages_id . "'");
         // EOF Enable & Disable Categories
    

     

    Where Custom Product Builder aplication_top.php is:

    // BUILDER INTERVENTION - THE CART SHOULD DISABLE THE PRODUCT BY ITSELF, BUT WE DO IT INCASE STOCK > 1
                                   if ($_POST['disable_build'] == '1') {
                                     tep_db_query("update " . TABLE_PRODUCTS . " set products_status = '0' where products_id = '" . $_POST['products_id'] . "'");
                                   }
                                 // BUILDER INTERVENTION ENDS

     

    How can i integrate both codes???

×