Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How To Remove Quantity Column In Shopping Cart


mapavin

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...