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

eStore – allow only one product in cart?

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › eStore – allow only one product in cart?

  • This topic has 23 replies, 5 voices, and was last updated 4 years, 6 months ago by pocket.
Viewing 9 posts - 16 through 24 (of 24 total)
← 1 2
  • Author
    Posts
  • August 14, 2012 at 9:05 am #47804
    streidl
    Member

    This works great, thanks.

    One thing left: The styling is now gone, the manual checkout looks like a normal form. No borders, no spacing, no width 100%

    August 16, 2012 at 9:28 am #47805
    streidl
    Member

    any ideas on that?

    August 16, 2012 at 11:05 pm #47806
    admin
    Keymaster

    That one line of change shouldn’t cause the issue you are seeing. What other modifications have you made?

    Take a backup copy of this customized version then load a fresh build of the eStore plugin.

    https://support.tipsandtricks-hq.com/forums/topic/re-install-or-load-a-fresh-build-of-the-plugins

    Do you see this same issue after that? If you don’t see the issue then that means this was introduced with the code changes you made. Go back through your changes carefully and fix it.

    November 18, 2020 at 6:23 pm #81998
    pocket

    Hi,

    after setting

    define('WP_ESTORE_CART_CHECKOUT_ITEM_LIMIT', 1);

    we can’t update the quantity of the item in the cart to more than 1. We require that the customer can add any quantity of a single item.

    Is this possible?

    Thanks
    Ian

    November 18, 2020 at 6:57 pm #82000
    pocket

    Note: It is also not possible to update the cart and reduce the quantity from 20 to 1. Message “Shopping cart quantity limit exceeded! You cannot exceed the quantity limit of 1” is displayed.

    November 19, 2020 at 4:59 pm #82005
    wzp
    Moderator

    3 products of 1 each, or 1 product of quantity 3; unfortunately count as 3 items — the same as it does real life, at the grocery store. What exactly are you trying to do — allow a customer to only buy any quantity of only 1 (of “N”) products from your store?

    You could use a “Buy Now” button, with a quantity field; but it bypasses the “remaining inventory” checks. Would that work for you?

    November 19, 2020 at 5:49 pm #82011
    pocket

    Hi,

    thank you for your response.

    We would like to limit the customer to only buy a single product, but any quantity of that product.

    i.e 200 of product A is allowed, 1 of product A and 1 of product B is not allowed.

    We don’t need inventory checks.

    I’ve tested a buy now button and it actually looks quite good. Bulk discounts are supported, but we can live without that.

    [wp_eStore_fancy_display id="1" type="2" style="1" gateway="stripe_co_sca"]

    We using the “Capture customer input in the cart” add-on. Can you suggest an alternative method to show two additional fields for customer input?

    Regards
    Ian

    November 20, 2020 at 4:07 pm #82020
    wzp
    Moderator

    Unfortunately, “Buy Now” bypasses the cart. What is the nature of the customer input? Is it required to process the order, or can it be “asked for,” prior to delivery?

    November 20, 2020 at 4:25 pm #82021
    pocket

    Thanks for the suggestion,

    as we also need tax calculation (which I think only works in the cart), we have decided to use the solution from post #47803:

    reset_eStore_cart();

    This works well for us.

    Regards
    Ian

  • Author
    Posts
Viewing 9 posts - 16 through 24 (of 24 total)
← 1 2
  • 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