peteravu Posted December 19, 2004 Share Posted December 19, 2004 my symbol_right is $<br>Ex. vat but the <br> showup in the Attributes Thanks to all that contributed to separate_price_per_customers_4.2.2_for_2.3.1, Add Multiple Products with plus/minus buttons, One Page Checkout for 2.3.1, Multi Attribute V2, Login Box Club osCommerce Shipping Date Chooser for 2.3.1, Quickly Update Product Stock 3.8.5 Español and order number in email subject Forum, Thanks Designing New Themes the Easy Way, how-to-set-backgrounds. my contributions Add Multiple Product In Product Listing 2.3.1 v.1.0 and Multiple Attribute entry boxes in product info page v1.0 for 2.3.1 Link to comment Share on other sites More sharing options...
♥Vger Posted December 19, 2004 Share Posted December 19, 2004 Try < /br> Vger Link to comment Share on other sites More sharing options...
stevel Posted December 19, 2004 Share Posted December 19, 2004 There is no such HTML tag as </br>. You can try putting \n in there but it may not work. I've had issues with not being able to insert newlines where I want them in some text, and never found a 100% reliable solution. Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description Link to comment Share on other sites More sharing options...
peteravu Posted December 20, 2004 Author Share Posted December 20, 2004 </br>.... \n</br>.....<\n/br>...\</br>. all don't work, all showup Thanks to all that contributed to separate_price_per_customers_4.2.2_for_2.3.1, Add Multiple Products with plus/minus buttons, One Page Checkout for 2.3.1, Multi Attribute V2, Login Box Club osCommerce Shipping Date Chooser for 2.3.1, Quickly Update Product Stock 3.8.5 Español and order number in email subject Forum, Thanks Designing New Themes the Easy Way, how-to-set-backgrounds. my contributions Add Multiple Product In Product Listing 2.3.1 v.1.0 and Multiple Attribute entry boxes in product info page v1.0 for 2.3.1 Link to comment Share on other sites More sharing options...
boxtel Posted December 20, 2004 Share Posted December 20, 2004 </br>.... \n</br>.....<\n/br>...\</br>. all don't work, all showup <{POST_SNAPBACK}> you have not tried <br /> yet. Treasurer MFC Link to comment Share on other sites More sharing options...
Guest Posted December 20, 2004 Share Posted December 20, 2004 you have not tried <br /> yet. <{POST_SNAPBACK}> I'm voting for '<br>' myself. With the quote marks. Link to comment Share on other sites More sharing options...
peteravu Posted December 20, 2004 Author Share Posted December 20, 2004 <br />....'<br>' Tried, but not help. Thanks to all that contributed to separate_price_per_customers_4.2.2_for_2.3.1, Add Multiple Products with plus/minus buttons, One Page Checkout for 2.3.1, Multi Attribute V2, Login Box Club osCommerce Shipping Date Chooser for 2.3.1, Quickly Update Product Stock 3.8.5 Español and order number in email subject Forum, Thanks Designing New Themes the Easy Way, how-to-set-backgrounds. my contributions Add Multiple Product In Product Listing 2.3.1 v.1.0 and Multiple Attribute entry boxes in product info page v1.0 for 2.3.1 Link to comment Share on other sites More sharing options...
boxtel Posted December 20, 2004 Share Posted December 20, 2004 <br />....'<br>' Tried, but not help. <{POST_SNAPBACK}> I can only guess that html is not allowed in the fields of a pull down menu. you could try stripping the <br> out of the currency string before the menu is drawn. Treasurer MFC Link to comment Share on other sites More sharing options...
peteravu Posted December 20, 2004 Author Share Posted December 20, 2004 I can only guess that html is not allowed in the fields of a pull down menu. you could try stripping the <br> out of the currency string before the menu is drawn. <{POST_SNAPBACK}> How to do that???? It comes from ?symbol_right? in the database. And the rest of the places the currency will show up in many funny ways without the <br>. Thanks to all that contributed to separate_price_per_customers_4.2.2_for_2.3.1, Add Multiple Products with plus/minus buttons, One Page Checkout for 2.3.1, Multi Attribute V2, Login Box Club osCommerce Shipping Date Chooser for 2.3.1, Quickly Update Product Stock 3.8.5 Español and order number in email subject Forum, Thanks Designing New Themes the Easy Way, how-to-set-backgrounds. my contributions Add Multiple Product In Product Listing 2.3.1 v.1.0 and Multiple Attribute entry boxes in product info page v1.0 for 2.3.1 Link to comment Share on other sites More sharing options...
boxtel Posted December 20, 2004 Share Posted December 20, 2004 How to do that???? It comes from ?symbol_right? in the database. And the rest of the places the currency will show up in many funny ways without the <br>. <{POST_SNAPBACK}> no no, in product_info you will find this : $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 . "'"); 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 (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" align=center><?php echo $products_options_name['products_options_name'] . ':'; ?> <?php echo tep_draw_pull_down_menu('id[' . $products_options_name['products_options_id'] . ']', $products_options_array, $selected_attribute); ?></td> the statement : $currencies->display_price($products_options['options_values_price']...... basically formats the price information with symbol_left and right and the like. So you could use a string function that strips any '<br>' out of the string that is returned by the $currencies->display_price function. Treasurer MFC Link to comment Share on other sites More sharing options...
boxtel Posted December 20, 2004 Share Posted December 20, 2004 no no, in product_info you will find this : $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 . "'"); 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 (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" align=center><?php echo $products_options_name['products_options_name'] . ':'; ?> <?php echo tep_draw_pull_down_menu('id[' . $products_options_name['products_options_id'] . ']', $products_options_array, $selected_attribute); ?></td> the statement : $currencies->display_price($products_options['options_values_price']...... basically formats the price information with symbol_left and right and the like. So you could use a string function that strips any '<br>' out of the string that is returned by the $currencies->display_price function. <{POST_SNAPBACK}> that would strip it out "only" when displaying in an attribute situation because you leave the function in the class "currencies" alone. Treasurer MFC Link to comment Share on other sites More sharing options...
peteravu Posted December 20, 2004 Author Share Posted December 20, 2004 $currencies->display_price($products_options['options_values_price']...... basically formats the price information with symbol_left and right and the like. So you could use a string function that strips any '<br>' out of the string that is returned by the $currencies->display_price function. :huh: Sorry but I don't know what or how to change??? Thanks to all that contributed to separate_price_per_customers_4.2.2_for_2.3.1, Add Multiple Products with plus/minus buttons, One Page Checkout for 2.3.1, Multi Attribute V2, Login Box Club osCommerce Shipping Date Chooser for 2.3.1, Quickly Update Product Stock 3.8.5 Español and order number in email subject Forum, Thanks Designing New Themes the Easy Way, how-to-set-backgrounds. my contributions Add Multiple Product In Product Listing 2.3.1 v.1.0 and Multiple Attribute entry boxes in product info page v1.0 for 2.3.1 Link to comment Share on other sites More sharing options...
peteravu Posted December 22, 2004 Author Share Posted December 22, 2004 any help would be much appreciated! Thanks to all that contributed to separate_price_per_customers_4.2.2_for_2.3.1, Add Multiple Products with plus/minus buttons, One Page Checkout for 2.3.1, Multi Attribute V2, Login Box Club osCommerce Shipping Date Chooser for 2.3.1, Quickly Update Product Stock 3.8.5 Español and order number in email subject Forum, Thanks Designing New Themes the Easy Way, how-to-set-backgrounds. my contributions Add Multiple Product In Product Listing 2.3.1 v.1.0 and Multiple Attribute entry boxes in product info page v1.0 for 2.3.1 Link to comment Share on other sites More sharing options...
boxtel Posted December 22, 2004 Share Posted December 22, 2004 any help would be much appreciated! <{POST_SNAPBACK}> you see this code : 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'])) .') '; } change it : if ($products_options['options_values_price'] != '0') { $attribute_price_info = $currencies->display_price ($products_options['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])); ******************************************************** strip the <br> out of $attribute_price_info here........ ******************************************************** $products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $products_options['price_prefix'] . $attribute_price_info . ') '; } Treasurer MFC Link to comment Share on other sites More sharing options...
boxtel Posted December 22, 2004 Share Posted December 22, 2004 you see this code : 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'])) .') '; } change it : if ($products_options['options_values_price'] != '0') { $attribute_price_info = $currencies->display_price ($products_options['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])); ******************************************************** strip the <br> out of $attribute_price_info here........ ******************************************************** $products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $products_options['price_prefix'] . $attribute_price_info . ') '; } <{POST_SNAPBACK}> for stripping you could use : ******************************************************** strip the <br> out of $attribute_price_info here........ $attribute_price_info = str_replace ('<br>', '', $attribute_price_info); ******************************************************** Treasurer MFC Link to comment Share on other sites More sharing options...
peteravu Posted December 22, 2004 Author Share Posted December 22, 2004 amanda you are a magician, thanks alot!!! Thanks to all that contributed to separate_price_per_customers_4.2.2_for_2.3.1, Add Multiple Products with plus/minus buttons, One Page Checkout for 2.3.1, Multi Attribute V2, Login Box Club osCommerce Shipping Date Chooser for 2.3.1, Quickly Update Product Stock 3.8.5 Español and order number in email subject Forum, Thanks Designing New Themes the Easy Way, how-to-set-backgrounds. my contributions Add Multiple Product In Product Listing 2.3.1 v.1.0 and Multiple Attribute entry boxes in product info page v1.0 for 2.3.1 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.