gregy Posted December 1, 2004 Share Posted December 1, 2004 Hi would like to add words "if changed quantity, please hit "Update" button, under box for quantity in shopping_cart.php i found this code $info_box_contents[$cur_row][] = array('align' => 'center', 'params' => 'class="productListing-data" valign="top"', 'text' => tep_draw_input_field('cart_quantity[]', $products[$i]['quantity'], 'size="4"') . tep_draw_hidden_field('products_id[]', $products[$i]['id'])); but i don't know how to add this .. could be language depending? you know, some people will not think that they have to hit update button if they changed quantity .. Link to comment Share on other sites More sharing options...
241 Posted December 1, 2004 Share Posted December 1, 2004 you could add a define to shopping_cart.php in each language folder define('QUANTITY_TEXT', 'place your text in here'); then call the define in the code where you wish it to appear $info_box_contents[$cur_row][] = array('align' => 'center', 'params' => 'class="productListing-data" valign="top"', 'text' => QUANTITY_TEXT . tep_draw_input_field('cart_quantity[]', $products[$i]['quantity'], 'size="4"') . tep_draw_hidden_field('products_id[]', $products[$i]['id'])); No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
gregy Posted December 1, 2004 Author Share Posted December 1, 2004 you could add a define to shopping_cart.php in each language folder define('QUANTITY_TEXT', 'place your text in here'); then call the define in the code where you wish it to appear ? ? ?$info_box_contents[$cur_row][] = array('align' => 'center', ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?'params' => 'class="productListing-data" valign="top"', ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?'text' => QUANTITY_TEXT . tep_draw_input_field('cart_quantity[]', $products[$i]['quantity'], 'size="4"') . tep_draw_hidden_field('products_id[]', $products[$i]['id'])); <{POST_SNAPBACK}> thanx a lot .. but i guess this doesn't supoprt html tag as i want .. 'text' => <b>QUANTITY_TEXT<br></b> . tep_draw_input_field('cart_quantity[]', $products[$i]['quantity'], 'size="4"') . tep_draw_hidden_field('products_id[]', $products[$i]['id'])); actually i was digging further but cannot place quantity_text below Quantity field .. not above ... thanx for prompt support Link to comment Share on other sites More sharing options...
241 Posted December 1, 2004 Share Posted December 1, 2004 your bold and break tags would go in the define for language text and the call can be before or after depending on where you place the code define('QUANTITY_TEXT', '<b>if changed quantity, please hit \"Update\" button</b><br>'); $info_box_contents[$cur_row][] = array('align' => 'center', 'params' => 'class="productListing-data" valign="top"', 'text' => tep_draw_input_field('cart_quantity[]', $products[$i]['quantity'], 'size="4"') . tep_draw_hidden_field('products_id[]', $products[$i]['id']) . QUANTITY_TEXT); or $info_box_contents[$cur_row][] = array('align' => 'center', 'params' => 'class="productListing-data" valign="top"', 'text' => tep_draw_input_field('cart_quantity[]', $products[$i]['quantity'], 'size="4"') . tep_draw_hidden_field('products_id[]', $products[$i]['id']) . '<br>' . QUANTITY_TEXT); No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
gregy Posted December 1, 2004 Author Share Posted December 1, 2004 thank you very much .. everything works well Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.