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 ago by pocket.
-
AuthorPosts
-
August 14, 2012 at 9:05 am #47804streidlMember
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 #47805streidlMemberany ideas on that?
August 16, 2012 at 11:05 pm #47806adminKeymasterThat 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 #81998Hi,
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
IanNovember 18, 2020 at 6:57 pm #82000Note: 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 #82005wzpModerator3 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 #82011Hi,
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
IanNovember 20, 2020 at 4:07 pm #82020wzpModeratorUnfortunately, “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 #82021Thanks 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 -
AuthorPosts
- You must be logged in to reply to this topic.