developer_x Posted April 5, 2005 Share Posted April 5, 2005 I need checkboxes in the product listing table instead of the buy now buttons so that clients can select and buy multiple items. The orignal product listing(if you click on a category , and then any of its subcategory, products of that subcategory are listed) comes with buy now buttons. I needed checkboxes instead of these buy now buttons so that a visitor can add multiple products by checking the checkboxes. I tried using this contribution: Add Multi Products Checkbox But the 'Add to Cart' button is not working. This contribution is based on 2 older contributions which are: 1- Add Multi Products by C Wilsonhttp://www.oscommerce.com/community/contributions,1129 2- Add Multi Products Revived by Steve Oliveirahttp://www.oscommerce.com/community/contributions,3022 As the Add Multi Products Checkbox 1.0 contribution was not working properly. I tried to change Ian C wilson's contribution to suit my requirements. In the catalog/includes/modules/product_listing_multi.php I replaced $lc_text = '<input type="text" name="add_id['.$number_of_products.']" value="0" size="4">'; (line # 154 approximately) with this line: $lc_text = '<input type="checkbox" name="add_id['.sizeof($list_box_contents).']" value="1">'; I do get the checkboxes. All the items get added to the cart except the first one. I also tried using the standard osc checkbox function: $lc_text = tep_draw_checkbox_field(' add_id['.sizeof($list_box_contents).'] ', '1'); But results still has that bug. In the 'Add Multi Products Revived by Steve Oliveira ' contribution this bug has been discussed. I have took the steps told in that contribution for removing that bugh. But I am still getting that bug. Its almost done. Need a lil bit of help. Irfan, Link to comment Share on other sites More sharing options...
This topic is now archived and is closed to further replies.