mapavin Posted June 4, 2007 Share Posted June 4, 2007 Hi, as I want to sell single items I would like to remove the column 'Quantity' within the shopping cart. To achieve this I deleted the following source code within the file shopping_cart.php: Around line 68: $info_box_contents[0][] = array('align' => 'center', 'params' => 'class="productListing-heading"', 'text' => TABLE_HEADING_QUANTITY); Around line 145: $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'])); By this way I got the correct visual result, but on the other hand I'm not any more able to update the shopping cart (e.g. remove an item from the shopping cart). Does anybody have an idea what is going wrong? Thanks! Link to comment Share on other sites More sharing options...
martinstan Posted June 6, 2007 Share Posted June 6, 2007 Sounds like a feature that could be removed within the admin area. Have you looked a the configuration/product listing menu? Martin Link to comment Share on other sites More sharing options...
mapavin Posted June 6, 2007 Author Share Posted June 6, 2007 Hi Martin, thanks for your reply. The option in the admin area you mention removes only the quantity column within the product list, but not within the shopping cart. In the meantime I have found the solution given at the following post, which had the same problem, and it works fine. www.oscommerce.com/forums/index.php?showtopic=135176&st=0&p=545558entry545558 Maurizio Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.