david733383 Posted August 30, 2005 Share Posted August 30, 2005 I want to make quantity update more intuitive on the cart page. ie. instead of customers having to enter a new amount for a product and then click on UPDATE, I want to have a little button under the quantity textbox for each product which reads "Update Quantity". Alternatively, could we javascript it? --> whenever the quantity is changed in the textbox the product quantity in the cart should change accordingly. Are there other ways too? I also want to add DELETE buttons (cute buttons with X in the middle) in each product row on the shopping cart page. I'm sure many people have done these for their carts... Care to share? Any leads would be appreciated. Cheers, David. Link to comment Share on other sites More sharing options...
david733383 Posted August 30, 2005 Author Share Posted August 30, 2005 Any suggestions? Best place to start? I want to make quantity update more intuitive on the cart page. ie. instead of customers having to enter a new amount for a product and then click on UPDATE, I want to have a little button under the quantity textbox for each product which reads "Update Quantity". Alternatively, could we javascript it? --> whenever the quantity is changed in the textbox the product quantity in the cart should change accordingly. Are there other ways too? I also want to add DELETE buttons (cute buttons with X in the middle) in each product row on the shopping cart page. I'm sure many people have done these for their carts... Care to share? Any leads would be appreciated. Cheers, David. <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
♥Monika in Germany Posted August 30, 2005 Share Posted August 30, 2005 Any suggestions? Best place to start? <{POST_SNAPBACK}> I have not modded the delete, but have a js for selfsubmitting when updated $info_box_contents[$cur_row][] = array('params' => 'class="productListing-data"', 'text' => $products_name); $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" onchange="this.form.submit()"') . tep_draw_hidden_field('products_id[]', $products[$i]['id'])); $info_box_contents[$cur_row][] = array('align' => 'right', 'params' => 'class="productListing-data" valign="top"', 'text' => '<b>' . $currencies->display_price($products[$i]['final_price'], tep_get_tax_rate($products[$i]['tax_class_id']), $products[$i]['quantity']) . '</b>'); There is a different approach to this in the tips and tricks section too. :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ... Link to comment Share on other sites More sharing options...
patator Posted October 3, 2005 Share Posted October 3, 2005 Absolutely fantastic ! Thanks for all your help on this solution Monika, it worked great for my shop Patrice Link to comment Share on other sites More sharing options...
MediaHound Posted May 11, 2008 Share Posted May 11, 2008 Old thread but thank you Monika! Link to comment Share on other sites More sharing options...
perverse Posted May 11, 2008 Share Posted May 11, 2008 can you look at this issue please http://www.oscommerce.com/forums/index.php?showtopic=301847 :) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.