How update the quantity value in cart as per textbox value – wp e-commerce plugin:Worpress

Hello Friends!
If you are using the wp e-commerce plugin and want to change the “Cart Quantity” value as per you entered the value during “Add To Cart” then don’t worry, just follow my steps.

  • Firstly you have need to find out “cart.class” files in your plugin folders
  • After that open this file in your code editor
  • Find "$this->cart_items[ $key ]->quantity += $new_cart_item->quantity;" this line
  • Replace the above line with this one
  • $this->cart_items[ $key ]->quantity = $new_cart_item->quantity;
  • And finally save the file
raghunath-addtocart
Enjoy Code! | Raghunath Blog

Leave a Reply

Your email address will not be published. Required fields are marked *