Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing the way a buy is made


gbg112

Recommended Posts

Is it possible to change the way items are purchased from having the customer put the good in the cart before quantity can be changed. I would like to have a text box in which the customer can fill in the quantity that they would like to add to the cart that way once they put it in the cart no further alterations need to be made. Thanks

Link to comment
Share on other sites

in your catalog\shopping_cart.php, backup the file then comment-out or remove the following:

 

	$info_box_contents[0][] = array('align' => 'center',
								'params' => 'class="productListing-heading"',
								'text' => TABLE_HEADING_QUANTITY);

 

	  $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']));

 

 

Then change this:

	  $info_box_contents[$cur_row][] = array('params' => 'class="productListing-data"',
										 'text' => $products_name);

 

to this:

	  $info_box_contents[$cur_row][] = array('params' => 'class="productListing-data"',
										 'text' => $products_name . tep_draw_hidden_field('cart_quantity[]', $products[$i]['quantity']) );

Link to comment
Share on other sites

:-)

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

Archived

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

×
×
  • Create New...