Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Cruelo

Archived
  • Posts

    8
  • Joined

  • Last visited

Everything posted by Cruelo

  1. Ok sorry but i think that a new version will be better of the previous versions (2004). You are a very good work for this contribution . I will use it with : Pepperoni --> yes/no Cheese --> yes/no Mushrooms --> yes/no you have said "its not possible , That's just the way osCommerce works!!! " ggrrr
  2. Hi , i don't choose radio because it's for add many choice of option (ingredients for pizza) base marguerita with tomatoes and cheese. custommers can add : chicken +.50€ merguez +.50€ mozzarella +.50€ potatoes +.50€ one checkbox for one choice option type feature in 2004 for creload 6.2 work correctly (i can show you my first website ) how modify script for see many checkbox my code case OPTIONS_TYPE_CHECKBOX: $products_options = 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)$product_info['products_id'] . "' and pa.options_id = '" . $ProdOpt_ID . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . $languages_id . "'"); while ($products_options_value = tep_db_fetch_array($products_options)) { $tmp_html = tep_draw_checkbox_field('id[' . $ProdOpt_ID . ']', $products_options_value['products_options_values_id']); $tmp_html .= $products_options_value['products_options_values_name']; if ($products_options_value['options_values_price'] != '0') { $tmp_html .= ' (' . $products_options_value['price_prefix'] . $currencies->display_price($products_options_value['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') '; } } ?> <tr> <td class="main"><?php echo $ProdOpt_Name . ' :<br><small>' . $ProdOpt_Comment . '</small>'; ?></td> <td class="main"><?php echo $tmp_html; ?></td> </tr> <?php break; work correcty : show name of choice , comment and price , all add in shopping cart no problem but i see only the last choice Thanks for read
  3. Hi i changed a code to includes\modules\option_types.php case OPTIONS_TYPE_CHECKBOX: if (isset($cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$ProdOpt_ID])) { $checked = true; } else { $checked = false; } $tmp_html = tep_draw_checkbox_field('id[' . $ProdOpt_ID . ']', $products_attribs_array['options_values_id'], $checked) . ' '; $tmp_html .= $ProdOpt_Comment; $tmp_html .= $tmp_html_price; ?> <tr> <td class="main"><?php echo $ProdOpt_Name . ' :'; ?></td> <td class="main"><?php echo $tmp_html; ?></td> </tr> <?php break; to case OPTIONS_TYPE_CHECKBOX: $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)$product_info['products_id'] . "' and pa.options_id = '" . $ProdOpt_ID . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . $languages_id . "'"); while ($products_options_array = tep_db_fetch_array($products_options_query)) { if (isset($cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$ProdOpt_ID]) && ($products_options_array['products_options_values_id'] == $cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$ProdOpt_ID])) { $checked = false; } else { $checked = false; } $tmp_html .= '<tr><td class="main">'; $tmp_html = tep_draw_checkbox_field('id[' . $ProdOpt_ID . ']', $products_options_array['products_options_values_id'], $checked); $tmp_html .= $products_options_array['products_options_values_name']; if ($products_options_array['options_values_price'] != '0') { $tmp_html .= ' (' . $products_options_array['price_prefix'] . $currencies->display_price($products_options_array['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') '; } } ?> <tr> <td class="main"><?php echo $ProdOpt_Name . ' :<br><small>' . $ProdOpt_Comment . '</small>'; ?></td> <td class="main"><?php echo $tmp_html; ?></td> </tr> <?php break; Now show the name of choice but only one (the last choice only)
  4. Good evening, I installed the latest module in date I modify the files one by one. everything is going relatively well, But I have a display problem in the product info page. all options are visible checkbox correctly except: the title of the option is not visible one checkbox is visible. I try to put the product_info.php provided but always the same where the error please? Thank you sorry for the google translation ;) If you want Zappo , i can give a url (in PM) for show an exemple of products with 2 option with 2 choise (checkbox , radio)
  5. Hello, Is what a charitable heart would be able to make a function in order to recover all the fees of paypal and being able to resortir them by ?year, month, week?. I test hopelessly of me helps of ?stats_sales_report2.php? but I cannot make!
  6. Hello, I installed this contrib the 1.60 version step by step of V1.00 has V1.60 not problem to install it. in the administration part, I have to give points and to withdraw some. email received by the customer. I have a problem when a customer places order. The points on standby are not accessible in the administration part. ?Customers Pending Points? I have this error: Fatal error: Call to a member function on a non-object in /home.10.2/xxxxxxxxxxx/www/V2/admin/includes/classes/order.php on line 183 however we do not have to touch has this file it seems to me! on line 183 in admin/includes/classes/order.php $this->content_type = $cart->get_content_type(); can you help me ? Thanks
×
×
  • Create New...