Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Inventory Control and Adding to Cart

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore General Questions › Inventory Control and Adding to Cart

Tagged: cart, inventory, quantity

  • This topic has 8 replies, 2 voices, and was last updated 14 years, 9 months ago by morticya33.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • August 10, 2010 at 12:27 pm #1656
    morticya33
    Member

    What happens when you have Product A, 10 copies of it in the inventory, and you with the quantity value, you add 12 copies to the shopping cart?

    How does the plugin manage this?

    August 11, 2010 at 1:51 am #23263
    amin007
    Participant

    It should give you an error saying the requested quantity exceeds the available quantity.

    August 11, 2010 at 10:53 am #23264
    morticya33
    Member

    Does this happen immediately when you’re adding? Or you’ll have to add the quantity to the cart first, then it throws an error message?

    August 11, 2010 at 9:04 pm #23265
    morticya33
    Member

    Sorry, just to update – what I problems I had was :

    If Product A has 5 copies, and with the Quantity input text I type 10 copies, that order will still go through and add itself to the shopping cart.

    However, if you try to add more instances of that product then it throws out the error message at the shopping cart.

    How can I control so that it throws the error message the first time, since it’s over the available quantity?

    August 12, 2010 at 1:19 am #23266
    amin007
    Participant

    The ability to specify the quantity field beside the “Add to Cart” button was recently added and it didn’t have the check. I have fixed this bug and sent you and updated copy of the plugin.

    August 12, 2010 at 1:23 am #23267
    morticya33
    Member

    Hey ya amin – Thanks for the quick reply! Was it a quick line that you fixed? I kinda hacked a few pages and it’ll help if you told me which lines you fixed (unless if it was a lot then I’d copy my code into yours instead of vice versa..

    But thanks again! :D

    August 12, 2010 at 1:28 am #23268
    amin007
    Participant

    My fix was only in the “wp_eStore1.php” file for this but I dont’ know which version you are upgrading from so other files may need to be synchronized too if your version was a bit older.

    August 12, 2010 at 10:58 am #23269
    morticya33
    Member

    Ah nah, I just bought it like earlier this week so I’m guessing it should be fine!

    I’ll replace and let you know if it works! :)

    August 12, 2010 at 11:16 am #23270
    morticya33
    Member

    Update : It works great now, thanks! :D :D :D

  • Author
    Posts
Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ