Jump to content

phobos

Members
  • Content count

    25
  • Joined

  • Last visited

Posts posted by phobos


  1. Hi to all.

     

    I'm using pdf_datasheet 1.3 and it's a very beautifull contrib, but now in the product_info.php, I've added a new step:

    under the

              <p><?php echo stripslashes($product_info['products_description']); ?></p>

    I've put this

    <table width="100%">
     <tr>
       <td colspan="2" class="main">
       <?php
         if ($new_text=tep_get_products_html($product_info['products_model'])) {
           include($new_text);
         }
       ?>
        </td>
     </tr>
    </table>

    I've also added a new function, this:

      function tep_get_products_html($products_model) {
     $products_html_file= DIR_WS_INCLUDES . 'html/' . $products_model . '.html';
       if (!file_exists($products_html_file)) {
         $products_html_file='';
       }
       return $products_html_file;
     }

    Now if ther's a file called [products_model].html, it's code are added after the products_description.

     

    But now the pdf_datasheet don't report che correct description, can I integrate this modification with the pdf_datasheet contrib?

     

    tnx a lot, jo.


  2. Phobos,

     

    I know I have this same problem on my test server (my local machine, running easyphp1-7.) but when I upload to my webserver everything works just fine.  All I can think of is it has something to do with a server configuration. As it works on my website I really haven't looked into it much.  Are you getting this problem on your "live" site, or just on a testing site?

     

    RW

     

    The problem, for now, is only on my test server, my local machine running wmservertools. Sincerely I have not tried the pack online yet, I hope that work then also well online, thanks RavenWulf for the reply.

     

    tnx, jo


  3. Yes :D I'm referring to this!!!!

     

    Tnx very much!!!!

     

    I have replace:

    this

                $tmp_html = '<input type="text" name ="id[' . TEXT_PREFIX . $products_options_name['products_options_id'] . ']" size="' . $products_options_name['products_options_length'] .'" maxlength="' . $products_options_name['products_options_length'] . '" value="' . $cart->contents[$HTTP_GET_VARS['products_id']]['attributes_values'][$products_options_name['products_options_id']] .'">  ' . $products_options_name['products_options_comment'];

    with this

                $tmp_html = '<input type="text" name ="id_' . TEXT_PREFIX . $HTTP_GET_VARS['products_id'] . '[' . $products_options_name['products_options_id'] . ']" size="' . $products_options_name['products_options_length'] .'" maxlength="' . $products_options_name['products_options_length'] . '" value="' . $cart->contents[$HTTP_GET_VARS['products_id']]['attributes_values'][$products_options_name['products_options_id']] .'">  ' . $products_options_name['products_options_comment'];

     

    this

                  $tmp_html .= tep_draw_radio_field('id[' . $products_options_name['products_options_id'] . ']', $products_options_array['products_options_values_id'], $checked);

    with this

                  $tmp_html .= tep_draw_radio_field('id_' . $HTTP_GET_VARS['products_id'] . '[' . $products_options_name['products_options_id'] . ']', $products_options_array['products_options_values_id'], $checked);

     

    this

                echo tep_draw_checkbox_field('id[' . $products_options_name['products_options_id'] . ']', $products_attribs_array['options_values_id']);

    with this

                echo tep_draw_checkbox_field('id_' . $HTTP_GET_VARS['products_id'] . '[' . $products_options_name['products_options_id'] . ']', $products_attribs_array['options_values_id']);

     

    and this

            <td class="main"><input type="file" name="id[<?php echo TEXT_PREFIX . $products_options_name['products_options_id']; ?>]"><br><?php echo $cart->contents[$HTTP_GET_VARS['products_id']]['attributes_values'][$products_options_name['products_options_id']] . tep_draw_hidden_field(UPLOAD_PREFIX . $number_of_uploads, $products_options_name['products_options_id']) . tep_draw_hidden_field(TEXT_PREFIX . UPLOAD_PREFIX . $number_of_uploads, $cart->contents[$HTTP_GET_VARS['products_id']]['attributes_values'][$products_options_name['products_options_id']]); ?></td>

    with this

            <td class="main"><input type="file" name="id_<?php echo TEXT_PREFIX . $HTTP_GET_VARS['products_id'] . '[' . $products_options_name['products_options_id']; ?>]"><br><?php echo $cart->contents[$HTTP_GET_VARS['products_id']]['attributes_values'][$products_options_name['products_options_id']] . tep_draw_hidden_field(UPLOAD_PREFIX . $number_of_uploads, $products_options_name['products_options_id']) . tep_draw_hidden_field(TEXT_PREFIX . UPLOAD_PREFIX . $number_of_uploads, $cart->contents[$HTTP_GET_VARS['products_id']]['attributes_values'][$products_options_name['products_options_id']]); ?></td>

     

    and does it work well, would you know how to tell me if the last substitution is correct?

     

    tnx againg, jo.


  4. Hi to everybody, do you excuse the trouble, but omeone has succeeded to resolve this problem?

     

    When an user already logged tries to add a product to the wishlist, it comes redirect to the login screen and once referred the login he's not found anything in the wishlist.

     

    Any solutions?

     

    Tnx jo.


  5. Exact, if the product that I am looking is not available, then a product is chosen by those available.

     

    However, always from available products both AAA and BBB

     

    Cannot be done in any way? :(

     

    Otherwise I apply the first solution and patience...

     

    tnx a lot, jo.


  6. Ok, I've tried, but (they are explained me to badly, excuse me, is guilt of my ugly English :D )

     

    with this

    if ((BUY_TWO_YES_NO == 'yes') && ($product_info['products_quantity'] > 0)) {

    if the product quantity is 0 the buy_two module don't display any bundle....

     

    I' don't add this :P

     

    I've also chaged this

    // CUSTOM EXTENSIONS !!! If you need fill out - if not do ''
    $bundle_custom_extensions = 'and p.products_quantity>0'; // this is the value

     

    but I've add a blank space at the end quantity>0 '; why in some case I've a sql error....

     

    In the product are out-of-stock, I want to see the buy_two module, and this is ok, I've left the correct code in the product_info, but I want that the first product chosen for the bundle is in stock.

     

    For ex.

     

    If speed is out-of-stock and I select this product, in product info, I see the buy_two module and the 1 product is speed.....no, the 1 product must be chosen only from the available product.....

     

    Sorry againg for my English, tnx, jo.


  7. Hi

     

    how do you identify an out-of-stock product? Do you do it cause of the quantity? Or do you have another identifier?

    I identify the out-of-stock with the quantity query, for example, in the listing product I identify the out-of-stock with this

    if ($listing['products_quantity']<=0) {

     

    I can remember that I did not assume something in that direction, cause there are in fact different solutions out. So I left this point open right now...

     

    It is in fact easy to implemtent - I have already prepared a custome variable to extend custom statements, but you have to know what and how to identify. Then I can help you also in that way. Like I said: it is easy...

     

    Kai

     

    Ok, thanks for yuor help, I search also an easy solution, ex.

     

    Product A (select it between the products that are available and to leave out those not available)

     

    The product B is already select with the avvailable product, right?

     

    tnx, jo.


  8. Ok, only for the product b?

     

    And if the product a is out of stock?

     

    I have noticed that if I go in the product_info of an out of stock product, the buy_two proposes to me for the 1 product this product (and it's out of stock)

     

    I have already arranged the buttons for contrib no the stock no checkout and works great, but I've this little but it does not depend on this last one contrib.

     

    If the 1 product is out of stock, in my case, the module don't select any other product for the 1.

     

    any idea?

     

    tnx, jo.


  9. Hi, very great contrib, but I've 1 question.

     

    I've recently adapted the no stock no checkout contrib, and I ask to you if it is possible to implement this:

     

    If product A or B is not avviable, can the buy two module choose an other product in place of those?

     

    Tnx a lot, jo.


  10. Hi to all, I'm here again with another problem :blush:

     

    I have installed of recent option type feature and I have realized that it doesn't work well with master product

     

    Well, here following I bring you the thing that I have noticed me for that that it concerns master product and option type feature.......

     

    I bring you the possible causes with relative code, I hope that someone succeeds to make to run well the 2 contribs.

     

    In the file product_info.php in catalog we find this code

    	<?php echo '<form name="buy_now_" method="post" action="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=add_slave', 'NONSSL') . '">'; ?>

    while the original one is

    	<?php echo tep_draw_form('cart_quantity', tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=add_product')); ?>

     

    What creates problems it is the final part add_slave to the place of add_product, if in fact we also replace add_slave with add_product in case of option type selected there are no errors; but anymore however the attributes they don't work that don't use option type.

    Needless to say that if I restore then the original function all of this that is tied up to master product doesn't work well.....

     

    I now bring you the content of application_top.php in catalog/includes

     

    add_slave:

         case 'add_slave' :
                                reset($HTTP_POST_VARS);
                                while ( list( $key, $val ) = each( $HTTP_POST_VARS ) ) {
                                  if (substr($key,0,11) == "Qty_ProdId_") {
                                    $prodId = substr($key,11);
                                    $qty = $val;
                                    if(isset($HTTP_POST_VARS["id_$prodId"]) && is_array($HTTP_POST_VARS["id_$prodId"])) {
                                      // We have attributes
                                      $cart->add_cart($prodId, $cart->get_quantity(tep_get_uprid($prodId,$HTTP_POST_VARS["id_$prodId"]))+$qty, $HTTP_POST_VARS["id_$prodId"]);
                                    } else {
                                      // No attributes
                                      $cart->add_cart($prodId, $cart->get_quantity($prodId)+$qty);
                                    }
                                  }
                                }
                                tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters)));
                                break;

     

    add_product:

          case 'add_product' :    if (isset($HTTP_POST_VARS['products_id']) && is_numeric($HTTP_POST_VARS['products_id'])) {
                                   $cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $HTTP_POST_VARS['id']))+1, $HTTP_POST_VARS['id']);
                                 }
                                 tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters)));
                                 break;

     

    According to me the problem is here, but I don't know how to resolve it, has tried but without success...... and I am not even sure that this that doesn't make to work option type....

     

    I also bring you the piece of code of product_info.php in catalog that you should check option type in case of attributes....

    <?php
    // iii 030813 added: initialize $number_of_uploads
       $number_of_uploads = 0;
       $products_attributes_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "' order by patrib.attribute_sort");
       $products_attributes = tep_db_fetch_array($products_attributes_query);
       if ($products_attributes['total'] > 0) {
    ?>
             <table border="0" cellspacing="0" cellpadding="2">
               <tr>
                 <td class="main" colspan="2"><?php echo '<BR>' . TEXT_PRODUCT_OPTIONS_PRETEXT . '<BR><BR>'; ?></td>
               </tr>
    	 <tr>
                 <td class="main" colspan="2"><?php echo '<b>' . TEXT_PRODUCT_OPTIONS . '</b><br>';?></td>
               </tr>
       
       
    <?php
    	 //clr 030714 update query to pull option_type
         $products_options_name_query = tep_db_query("select distinct popt.products_options_id, popt.products_options_name, popt.products_options_type, popt.products_options_length, popt.products_options_comment from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "' order by popt.products_options_name");
         while ($products_options_name = tep_db_fetch_array($products_options_name_query)) {
       //clr 030714 add case statement to check option type
           switch ($products_options_name['products_options_type']) {
             case PRODUCTS_OPTIONS_TYPE_TEXT:
               //CLR 030714 Add logic for text option
               $products_attribs_query = tep_db_query("select distinct patrib.options_values_price, patrib.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = '" . $products_options_name['products_options_id'] . "' order by pa.attribute_sort");
               $products_attribs_array = tep_db_fetch_array($products_attribs_query);
               $tmp_html = '<input type="text" name ="id[' . TEXT_PREFIX . $products_options_name['products_options_id'] . ']" size="' . $products_options_name['products_options_length'] .'" maxlength="' . $products_options_name['products_options_length'] . '" value="' . $cart->contents[$HTTP_GET_VARS['products_id']]['attributes_values'][$products_options_name['products_options_id']] .'">  ' . $products_options_name['products_options_comment'];
               if ($products_attribs_array['options_values_price'] != '0') {
                 $tmp_html .= '(' . $products_attribs_array['price_prefix'] . $currencies->display_price($products_attribs_array['options_id'], $products_attribs_array['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .')';
               }
    ?>
               <tr>
                 <td class="main"><?php echo $products_options_name['products_options_name'] . ':'; ?></td>
                 <td class="main"><?php echo $tmp_html;  ?></td>
               </tr>
    <?php
               break;
             case PRODUCTS_OPTIONS_TYPE_RADIO:
               //CLR 030714 Add logic for radio buttons
               $tmp_html = '<table>';
               $products_options_query = tep_db_query("select pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov where pa.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pa.options_id = '" . (int)$products_options_name['products_options_id'] . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . (int)$languages_id . "' order by pa.attribute_sort");
               $checked = true;
               while ($products_options_array = tep_db_fetch_array($products_options_query)) {
                 $tmp_html .= '<tr><td class="main">';
                 $tmp_html .= tep_draw_radio_field('id[' . $products_options_name['products_options_id'] . ']', $products_options_array['products_options_values_id'], $checked);
                 $checked = false;
                 $tmp_html .= $products_options_array['products_options_values_name'];
                 $tmp_html .= $products_options_name['products_options_comment'];
                 if ($products_options_array['options_values_price'] != '0') {
                   $tmp_html .= '(' . $products_options_array['price_prefix'] . $currencies->display_price($products_options_array['options_id'], $products_options_array['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') ';
                 }
                 $tmp_html .= '</tr></td>';
               }
               $tmp_html .= '</table>';
    ?>
               <tr>
                 <td class="main"><?php echo $products_options_name['products_options_name'] . ':'; ?></td>
                 <td class="main"><?php echo $tmp_html;  ?></td>
               </tr>
    <?php
               break;
             case PRODUCTS_OPTIONS_TYPE_CHECKBOX:
               //CLR 030714 Add logic for checkboxes
               $products_attribs_query = tep_db_query("select distinct patrib.options_values_id, patrib.options_values_price, patrib.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = '" . $products_options_name['products_options_id'] . "'");
               $products_attribs_array = tep_db_fetch_array($products_attribs_query);
               echo '<tr><td class="main">' . $products_options_name['products_options_name'] . ': </td><td class="main">';
               echo tep_draw_checkbox_field('id[' . $products_options_name['products_options_id'] . ']', $products_attribs_array['options_values_id']);
               echo $products_options_name['products_options_comment'];
               if ($products_attribs_array['options_values_price'] != '0') {
                 echo '(' . $products_attribs_array['price_prefix'] . $currencies->display_price($products_attribs_array['options_id'], $products_attribs_array['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') ';
               }
               echo '</td></tr>';
               break;
    // iii 030813 added: support for file fields
             case PRODUCTS_OPTIONS_TYPE_FILE:
               $number_of_uploads++;
               $products_attribs_query = tep_db_query("select distinct patrib.options_values_price, patrib.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)tep_db_input($HTTP_GET_VARS['products_id']) . "' and patrib.options_id = '" . $products_options_name['products_options_id'] . "'");
               $products_attribs_array = tep_db_fetch_array($products_attribs_query);
    ?>
         <tr>
           <td class="main"><?php echo $products_options_name['products_options_name'] . ' (' . $products_attribs_array['price_prefix'] . $currencies->display_price($products_attribs_array['options_id'], $products_attribs_array['options_values_price'], $product_info_values['products_tax_class_id']) . ') '; ?></td>
           <td class="main"><input type="file" name="id[<?php echo TEXT_PREFIX . $products_options_name['products_options_id']; ?>]"><br><?php echo $cart->contents[$HTTP_GET_VARS['products_id']]['attributes_values'][$products_options_name['products_options_id']] . tep_draw_hidden_field(UPLOAD_PREFIX . $number_of_uploads, $products_options_name['products_options_id']) . tep_draw_hidden_field(TEXT_PREFIX . UPLOAD_PREFIX . $number_of_uploads, $cart->contents[$HTTP_GET_VARS['products_id']]['attributes_values'][$products_options_name['products_options_id']]); ?></td>
         </tr>
    <?php
               break;
             default:
               //clr 030714 default is select list
               //clr 030714 reset selected_attribute variable
               $selected_attribute = false;
    	 
    	 
             $products_options_array = array();
             $products_options_query = tep_db_query("select pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov where pa.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pa.options_id = '" . (int)$products_options_name['products_options_id'] . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . (int)$languages_id . "' order by pa.attribute_sort");
             while ($products_options = tep_db_fetch_array($products_options_query)) {
               $products_options_array[] = array('id' => $products_options['products_options_values_id'], 'text' => $products_options['products_options_values_name']);
               if ($products_options['options_values_price'] != '0') {
                 $products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $products_options['price_prefix'] . $currencies->display_price($products_options['options_id'], $products_options['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') ';
               }
             }
    
             if (isset($cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$products_options_name['products_options_id']])) {
               $selected_attribute = $cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$products_options_name['products_options_id']];
             } else {
               $selected_attribute = false;
             }
    ?>
               <tr>
                 <td class="main"><?php echo $products_options_name['products_options_name'] . ':'; ?></td>
    
                 <td class="main"><?php
        
    //     echo tep_draw_pull_down_menu('id[' . $products_options_name['products_options_id'] . ']', $products_options_array, $selected_attribute) . $products_options_name['products_options_comment'];  
        echo tep_draw_pull_down_menu('id_' . $HTTP_GET_VARS['products_id'] . '[' . $products_options_name['products_options_id'] . ']', $products_options_array, $selected_attribute);
    //     echo tep_draw_pull_down_menu('id[' . $products_options_name['products_options_id'] . ']', $products_options_array, $selected_attribute);
        
        ?></td>
               </tr>
    <?php
           }  //clr 030714 end switch
         } //clr 030714 end while
    ?>

     

    It serves someone who knows well master product to give me a help.

     

    Make to know me, hi, jo.

     

    Thanks in advance


  11. The document.cart_quantity line is a javascript trick to make *one* form submit to either one of *two* different pages (one sends info to the shopping cart, the other one sends info to the wish list)., according to the submit button pressed.

     

    By default, the name of the form with all the product info is "cart_quantity". change document.cart_quantity to document.[your_form_name_here]. I believe this might be "buy_now_"

     

    Note to developers:

    It'll probably be better to have a whole different form for the 'Add to Wishlist button'. I used the already existing form and added a button that redirected to FILENAME_WISHLIST

     

     

    Ok, now the button works, tnx jorgeo, but the laste error persist, when I add any item to the wishlist, I return to the login page. Note: I'm already logged to the shop....


  12. Hi, great contrib, but with the last addon I've 1 problem, if I try to add the product to the wishlist with this code in product info

            <td align="center" class="main"><?php if (tep_session_is_registered('customer_id')) echo tep_draw_hidden_field('wishlist_action', 'add_wishlist') . tep_image_submit('button_wishlist.gif', IMAGE_BUTTON_ADD_WISHLIST, 'onClick="document.cart_quantity.action=\''. FILENAME_WISHLIST . '\';document.cart_quantity.submit();"'. ' action=add_wishlist'); ?></td>

    I've an error on the document.cart_quantity

     

    I've also installed master product and in the same file I've this

    	<?php  echo '<form name="buy_now_" method="post" action="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=add_slave', 'NONSSL') . '">'; ?>

    instead of

    	<?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">

     

    If I restore the original function, when I add any product to a wish list I'm redirect to login page (but I've already make a logon) and the product was't add to the wish list...

     

    Any idea?

     

    If you want I can report some file, like as application top or product info...

     

    Tnx, jo.


  13. I Steve, another beautifull contrib!!!

     

    I've 1 "problem" with this contrib.

     

    I've also installed SaleMaker contrib, and I've created a test sale, the new price for the entire catalog was 1 (euro) + tax (20%) -> 1,20.

     

    Only the products set up to featured don't show the sale price, but featured_categories and featured_manufacturer show the sale price.

    If the featured product is special product the featured price is the price from the special setting and not the sale setting, and if the featured product is't special the price is the standard price and not the sale price.

     

    I've tried to modify 2 file, featured_products.php and featured_sets.php, to make to show the correct prices like in the categories or the manufacture, but I'm not able to make this modification, can you help me?

     

    Tnx, jo.


  14. Hi to all.

     

    I've a little question:

     

    In the file product_listing.php catalog side, in the case PRODUCT_LIST_BUY_NOW if I make the modification, here the new code:

     

              case 'PRODUCT_LIST_BUY_NOW':
               $lc_align = 'center';
    //Master Products            
               if ($listing['products_master_status'] != '1' && $listing['products_master'] == '0') {
               $lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> ';
           } elseif ($listing['products_master'] != '0') {
               $lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_master']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> ';       
           } else {
               $lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> ';
           }	
    //Master Products EOF       	 
               break;

     

    in the advanced_search_result.php if I click on the button buy now, nothing are add...and a message says, product not found....

     

    Any idea???

     

    Tnx a lot, jo.

     

    Ps, you can find the site at www.k-com.it/catalog


  15. Perfect :D

     

    Now works, I've 2 menu named faqdesk, but works grat! B)

     

    1 more little adjustment sorry :P

     

    Now I've 2 menu named faqdesk, but if I set BOX_HEADING_FAQDESK_CONFIGURATION the heading of faqdesk_configuration file, in any language file define('BOX_HEADING_FAQDESK_CONFIGURATION', 'FAQDeskConf');

    nothing change....the name of the second menu are identical at the frist!!!! :unsure:

     

     

    Tnx, jo.


  16. Tnx for the fast reply.

     

    Ops :P

     

    Ok, I'm set the right file access at this file, but the problem ar not solved?

     

    I've see the code, and I've noticed that:

     

    in admin/includes/boxes/faqdesk.php If I've this

     

    <?php
    $heading = array();
    $contents = array();
    
    $heading[] = array(
    ?'text' ?=> BOX_HEADING_FAQDESK,
    ?'link' ?=> tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('selected_box')) . 'selected_box=faqdesk'));
    
    if ($selected_box == 'faqdesk' || $menu_dhtml == true) {
    $contents[] = array('text' ?=> 
    //Admin begin
    // ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? '<a href="' . tep_href_link(FILENAME_FAQDESK, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_FAQDESK . '</a><br>
    // ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?<a href="' . tep_href_link(FILENAME_FAQDESK_REVIEWS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_FAQDESK_REVIEWS . '</a><br>');
    ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? tep_admin_files_boxes(FILENAME_FAQDESK, BOX_FAQDESK) .
    ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? tep_admin_files_boxes(FILENAME_FAQDESK_REVIEWS, BOX_FAQDESK_REVIEWS));
    //Admin end
    
    
    
    $cfg_groups = '';
    $configuration_groups_query = tep_db_query("
    select configuration_group_id as cgID, configuration_group_title as cgTitle from " . TABLE_FAQDESK_CONFIGURATION_GROUP . " 
    where visible = '1' order by sort_order
    ");
    
    while ($configuration_groups = tep_db_fetch_array($configuration_groups_query)) {
    $cfg_groups .= '
    <a href="' . tep_href_link(FILENAME_FAQDESK_CONFIGURATION, 'gID=' . $configuration_groups['cgID'], 'NONSSL') . '" class="menuBoxContentLink">' . 
    $configuration_groups['cgTitle'] . '</a><br>
    ';
    }
    
    $contents[] = array('text' ?=> $cfg_groups);
    
    
    }
    
    $box = new box;
    echo $box->menuBox($heading, $contents);
    ?>
    
    ?</td>
    </tr>
    
    <!-- faqdesk_eof //-->
    
    
    <?php

     

    In this case only the 1 part works, until

     ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? tep_admin_files_boxes(FILENAME_FAQDESK_REVIEWS, BOX_FAQDESK_REVIEWS));

    and the rest of the code will be ignored.

     

    But if I invert the code this

    $cfg_groups = '';
    $configuration_groups_query = tep_db_query("
    select configuration_group_id as cgID, configuration_group_title as cgTitle from " . TABLE_FAQDESK_CONFIGURATION_GROUP . " 
    where visible = '1' order by sort_order
    ");
    
    while ($configuration_groups = tep_db_fetch_array($configuration_groups_query)) {
    $cfg_groups .= '
    <a href="' . tep_href_link(FILENAME_FAQDESK_CONFIGURATION, 'gID=' . $configuration_groups['cgID'], 'NONSSL') . '" class="menuBoxContentLink">' . 
    $configuration_groups['cgTitle'] . '</a><br>
    ';
    }
    
    $contents[] = array('text' ?=> $cfg_groups);

    in place of this

    $contents[] = array('text'? =>

    //Admin begin

    //? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?  '<a href="' . tep_href_link(FILENAME_FAQDESK, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_FAQDESK . '</a><br>

    //? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? <a href="' . tep_href_link(FILENAME_FAQDESK_REVIEWS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_FAQDESK_REVIEWS . '</a><br>');

    ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?  tep_admin_files_boxes(FILENAME_FAQDESK, BOX_FAQDESK) .

    ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?  tep_admin_files_boxes(FILENAME_FAQDESK_REVIEWS, BOX_FAQDESK_REVIEWS));

    //Admin end

    I see only the rest of the menu, but not all together!

     

    If I leave the normal code I see only this a.jpg

    If I invert the code I see only this b.jpg

     

    Any Idea?


  17. Hi to all.

     

    Tnx for this very great contrib, it's much much much best than faqsystem :P

     

    But I've a question:

     

    I've also installed the dhtml menu (admin side) and I see only a part of the faqdesk box.

     

    I am trying to create a mod version of oscommerce with only 2 languages but with many contrib installed, currently I have some more than 80, with some bug, but solvable. I'm not a php coder, I have only put together many contrib ;)

     

    Here there is the administrative side, user and password are test@test.com

     

    Sorry but I don't know how to resolve this problem, someone that knows the solution?

     

    Tnx, jo.


  18. Hi, I've installed the last update for this contrib, but I've 2 problem ;)

     

    1st problem:

     

    In application_top.php (catalog side)

     

    the old code

        case 'add_slave' :    
                               foreach ($HTTP_POST_VARS as $keyA => $valueA) {
                                   if (substr($keyA,0,11) == "Qty_ProdId_") { 
                                   $prodId = substr($keyA,11); 
                                   if ($valueA <= 0 ) continue; 
                                   $cart->add_cart($prodId, $cart->get_quantity(tep_get_uprid($prodId, $HTTP_POST_VARS['id']))+($valueA), $HTTP_POST_VARS['id']);
                                 } 
                               }
                               tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters)));
                               break;

    Works fine, but if I use the new code

     

          case 'add_slave' :    
    
                                 while ( list( $key, $val ) = each( $HTTP_POST_VARS ) ) { 
                                    if (substr($key,0,11) == "Qty_ProdId_") { 
                                    $prodId = substr($key,11); 
                                    $qty = $val; 
                                    if ($qty <= 0 ) continue; 
                                    $cart->add_cart($prodId, $cart->get_quantity(tep_get_uprid($prodId, $HTTP_POST_VARS['id']))+($qty), $HTTP_POST_VARS['id']);
                                   } 
                                 } 
                                 tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters)));
                                 break;

     

    when I add a product in the basket through the product_info page no article has added.

     

    2nd problem:

     

    I've merged and controlled many times the code for the attribute to the slave product, but it don't work (for me :rolleyes: ), when I select a master product, I see the slave product but it don't have any visible attributes.

    Ps. The slave produt have a attributes :D

     

    Any idea?

     

    Thanks and compliment for this contrib.

     

    Jo.


  19. Hi, I've installed this contrib, but i've also install the infobox_admin contrib!

     

    Now I've this problem, my colum_left/right.php file report

     

      $column_query = tep_db_query('select display_in_column as cfgcol, infobox_file_name as cfgtitle, infobox_display as cfgvalue, infobox_define as cfgkey, box_heading, box_heading_font_color from ' . TABLE_INFOBOX_CONFIGURATION . ' where infobox_display = "yes" and display_in_column = "right" order by location');
     while ($column = tep_db_fetch_array($column_query)) {
    
    if ( file_exists(DIR_WS_BOXES . $column['cfgtitle'])) {
    define($column['cfgkey'],$column['box_heading']);
    $infobox_define = $column['box_heading'];
    $font_color = $column['box_heading_font_color'];
    require(DIR_WS_BOXES . $column['cfgtitle']);
    }
    }
    ?>

     

    there is some way in to include the line

    if (tep_session_is_registered('customer_id')) include(DIR_WS_BOXES . 'wishlist.php');

    ???

     

    Someone has already installed these 2 contrib together?

     

    Tnx, Jo.

×