Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding products to the shopping cart


Guest

Recommended Posts

Posted

OK, I'm trying to mod the product_info.php file so that there will be an option for adding more than one "specimen" of a product to the shopping cart directly. But I can't find where this action happens!! :'(

 

If I'm not reading anything wrong, in this part of the product_info.php file, once the "Add to cart" button is clicked, the form is supposed to be processed within the product_info.php file, but I can't find the code for processing the "action=add_product" parameter.

 

<?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product')); ?>

 

Can you guys help with something?

 

Thanks a lot in advance!

Posted

The adding to the cart processing is done in application_top.php. I'm sure there are some contributions out there that allow you to add a dropdown list to your product info pages so that customers can add more than one item to the cart.

 

I have that on my site but I can't remember when and how I added it. It's not too complicated though.

 

abra

The First Law of E-Commerce: If the user can't find the product, the user can't buy the product.

 

Feedback and suggestions on my shop welcome.

 

Note: My advice is based on my own experience or on something I read in these forums. No guarantee it'll work for you! Make sure that you always BACKUP the database and the files you are going to change so that you can rollback to a working version if things go wrong.

Posted

Happy that I could help!

 

abra

The First Law of E-Commerce: If the user can't find the product, the user can't buy the product.

 

Feedback and suggestions on my shop welcome.

 

Note: My advice is based on my own experience or on something I read in these forums. No guarantee it'll work for you! Make sure that you always BACKUP the database and the files you are going to change so that you can rollback to a working version if things go wrong.

Archived

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

×
×
  • Create New...