Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Quantity update in shopping cart


david733383

Recommended Posts

I want to make quantity update more intuitive on the cart page.

 

ie. instead of customers having to enter a new amount for a product and then click on UPDATE, I want to have a little button under the quantity textbox for each product which reads "Update Quantity". Alternatively, could we javascript it? --> whenever the quantity is changed in the textbox the product quantity in the cart should change accordingly.

 

Are there other ways too?

 

I also want to add DELETE buttons (cute buttons with X in the middle) in each product row on the shopping cart page.

 

I'm sure many people have done these for their carts... Care to share? Any leads would be appreciated.

 

Cheers,

David.

Link to comment
Share on other sites

Any suggestions? Best place to start?

 

 

I want to make quantity update more intuitive on the cart page.

 

ie. instead of customers having to enter a new amount for a product and then click on UPDATE, I want to have a little button under the quantity textbox for each product which reads "Update Quantity". Alternatively, could we javascript it? --> whenever the quantity is changed in the textbox the product quantity in the cart should change accordingly.

 

Are there other ways too?

 

I also want to add DELETE buttons (cute buttons with X in the middle) in each product row on the shopping cart page.

 

I'm sure many people have done these for their carts... Care to share? Any leads would be appreciated.

 

Cheers,

David.

Link to comment
Share on other sites

Any suggestions? Best place to start?

 

I have not modded the delete, but have a js for selfsubmitting when updated

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

     $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" onchange="this.form.submit()"') . tep_draw_hidden_field('products_id[]', $products[$i]['id']));

     $info_box_contents[$cur_row][] = array('align' => 'right',
                                            'params' => 'class="productListing-data" valign="top"',
                                            'text' => '<b>' . $currencies->display_price($products[$i]['final_price'], tep_get_tax_rate($products[$i]['tax_class_id']), $products[$i]['quantity']) . '</b>');

 

There is a different approach to this in the tips and tricks section too.

:-)

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

  • 1 month later...
  • 2 years later...

Archived

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

×
×
  • Create New...