Jump to content

schonwech

Members
  • Content count

    2
  • Joined

  • Last visited

Everything posted by schonwech

  1. hi, maybe anyone can help me to bring quantity tracking professional together with this contribution: http://www.oscommerce.com/community/contri...arch,attributes. Attribute Qty Product Info is still working on my site at www.himalaya-online.net, a testproduct: http://www.himalaya-online.net/product_inf...roducts_id=2999 quantity tracking pro is also installed except the file product_info.php. here is my product_info.php code: <?php $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 . "'"); $products_attributes = tep_db_fetch_array($products_attributes_query); if ($products_attributes['total'] > 0) { ?> <?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_mult')); ?> <div id="pinfobuybox"> <table border="0" cellspacing="1" cellpadding="1" width="100%" bgcolor="#F2F0E9"> <!------------ Wenn Preis ist gr?sser 0 ------------> <?php if($pf->thePrice > 0) { ?> <tr> <td bgcolor="#F2F0E9" align="center"><b><?php echo TEXT_PRODUCT_OPTION; ?></b></td> <td bgcolor="#F2F0E9" align="center"><b><?php echo TEXT_PRODUCT_QUANTITY; ?></b></td> </tr> <?php $X=0; $products_options_name_query = tep_db_query("select distinct popt.products_options_id, popt.products_options_name 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)) { $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.sort_order"); 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_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') '; if ($products_options['price_prefix'] == '+') { $price_with_attribute = ($product_info['products_price'] + $products_options['options_values_price']); } else { $price_with_attribute = ($product_info['products_price'] - $products_options['options_values_price']); } } ?> <tr> <td bgcolor="#ffffff" align="center"> <b><?php echo $products_options['products_options_values_name']; ?> </b> <?php echo tep_draw_hidden_field('a[]', $products_options['products_options_values_id']); echo tep_draw_hidden_field('b',$products_options_name['products_options_id']); ?> </td> <td bgcolor="#ffffff" align="center"><?php echo tep_draw_input_field('quantity[]',$value = '0','size=2');?></td> </tr> <?php $x++; } 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; } ?> <?php } ?> i think i have to change some code in pad_single_dropdown.php (single ist ok, i dont need the other). oh, and i have sppc and some other contribs installed... tim
  2. schonwech

    Featured 1.5

    I installed the contribution featured products 1.5.3. it works fine! now i want to display the featured products from a categorie in the product listing also. not just on the startpage and the nested categorie sites. if i include it in the product_listing file (i use bts, the file is index_products.tpl.php) it doesnt work. can anybody help??? thank you tim
×