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
Advertisements

Sr. Software Engineer

Tagged with: , , ,
Posted in Wordpress

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: