Limit Product Quantity

Open to all! Ask other shopowners for help.
ThatSweetShop

Limit Product Quantity

Post by ThatSweetShop »

Hi, I was wondering how I can limit the quantity of a product a customer can order. The reason for this is I want to do a free + shipping promotion so customers can get item for free but pay for shipping only.


Join The Code Co-op to get access to your library in the Code Co-op Forum
User avatar
Kofod95
Senior Contributor
Posts: 748
Joined: Sat Feb 06, 2021 7:38 pm
Phoenix Version: 1.0.8.20
Has thanked: 99 times
Been thanked: 179 times

Re: Limit Product Quantity

Post by Kofod95 »

Not entirely sure how I would do that, but you could take this (giftwrap-addon) and alter the text to make it a product. Eventually with a link to an info page that describes the product (unless you sell the product normally as well, then you could link to that product page).

//Daniel
Last edited by Kofod95 on Sun Jul 04, 2021 11:30 am, edited 1 time in total.
I'm not smart, but sometimes even a blind chicken can find a corn.
Here are a lot of corns: Phoenix user guide
Fiber
Contributor
Posts: 173
Joined: Mon Oct 26, 2020 12:16 pm
Phoenix Version: v1.1.0.6
Has thanked: 17 times
Been thanked: 27 times

Re: Limit Product Quantity

Post by Fiber »

ThatSweetShop wrote: Sat Jul 03, 2021 11:32 pm Hi, I was wondering how I can limit the quantity of a product a customer can order.
admin/configuration/maxium values/Product Quantities In Shopping Cart/
Turn up the Max
14Steve14
Senior Contributor
Posts: 922
Joined: Fri Oct 25, 2019 7:01 pm
Phoenix Version: v1.0.9.1
Has thanked: 17 times
Been thanked: 103 times

Re: Limit Product Quantity

Post by 14Steve14 »

ThatSweetShop wrote: Sat Jul 03, 2021 11:32 pm Hi, I was wondering how I can limit the quantity of a product a customer can order. The reason for this is I want to do a free + shipping promotion so customers can get item for free but pay for shipping only.
When I did something similar a long time ago, I created the free product with a price of zero, added a weight so shipping gets added, just like any product. I then added in the text that only one of these will be included in an order and any others added will not be sent. Something like that. Most people read that and only added on.
ThatSweetShop

Re: Limit Product Quantity

Post by ThatSweetShop »

Fiber wrote: Sun Jul 04, 2021 7:22 am
ThatSweetShop wrote: Sat Jul 03, 2021 11:32 pm Hi, I was wondering how I can limit the quantity of a product a customer can order.
admin/configuration/maxium values/Product Quantities In Shopping Cart/
I don't think this will work as it's a global setting and means only one product is allowed in shopping cart. I'm not trying to limit quantity of ALL other products but the specific product which is free. If I have other customers shopping, they won't be able to add more than one item to shopping cart.
ThatSweetShop

Re: Limit Product Quantity

Post by ThatSweetShop »

Kofod95 wrote: Sun Jul 04, 2021 6:02 am Not entirely sure how I would do that, but you could take this (giftwrap-addon) and alter the text to make it a product. Eventually with a link to an info page that describes the product (unless you sell the product normally as well, then you could link to that product page).

//Daniel
I'm not sure if this will work as it appears that this only shows up at checkout which means customer has to have at least one other product in cart to get to this point.
User avatar
Kofod95
Senior Contributor
Posts: 748
Joined: Sat Feb 06, 2021 7:38 pm
Phoenix Version: 1.0.8.20
Has thanked: 99 times
Been thanked: 179 times

Re: Limit Product Quantity

Post by Kofod95 »

ThatSweetShop wrote: Sun Jul 04, 2021 3:23 pm [...] this only shows up at checkout which means customer has to have at least one other product in cart to get to this point.
True - I have something similar to achieve, that I can share with you, once I figure it out (and get the time - it will not be sooner than Saturday, and probably later than that).
What I'm imaging now, is to make a site, populated by the infopage-system, that adds a fake product with an adjustable price. Further, it will need a shoppingcart-module and an order-total-module, but those should be simple enough. Does that sound useful to you?

//Daniel
I'm not smart, but sometimes even a blind chicken can find a corn.
Here are a lot of corns: Phoenix user guide
ThatSweetShop

Re: Limit Product Quantity

Post by ThatSweetShop »

Kofod95 wrote: Sun Jul 04, 2021 4:28 pm
ThatSweetShop wrote: Sun Jul 04, 2021 3:23 pm [...] this only shows up at checkout which means customer has to have at least one other product in cart to get to this point.
True - I have something similar to achieve, that I can share with you, once I figure it out (and get the time - it will not be sooner than Saturday, and probably later than that).
What I'm imaging now, is to make a site, populated by the infopage-system, that adds a fake product with an adjustable price. Further, it will need a shoppingcart-module and an order-total-module, but those should be simple enough. Does that sound useful to you?

//Daniel
Thanks very much for your kind offer. Yes, this could work, though it seems that one would have to create a a new page for every product one decides to offer for free. I hope I've understood your approach correctly.

I'm not a technical person but I was thinking that perhaps the decrease/increase quantities module in shopping basket can be tweaked to check if a product price is 0.00, then disable the ability to decrease/increase quantity. This seems a lot more functional, less modifications and easier to implement for all.
User avatar
Kofod95
Senior Contributor
Posts: 748
Joined: Sat Feb 06, 2021 7:38 pm
Phoenix Version: 1.0.8.20
Has thanked: 99 times
Been thanked: 179 times

Re: Limit Product Quantity

Post by Kofod95 »

ThatSweetShop wrote: Sun Jul 04, 2021 4:53 pm Yes, this could work, though it seems that one would have to create a a new page for every product one decides to offer for free. I hope I've understood your approach correctly.
They could be on the same page, and they could have separate infopages, but be controlled by one page. They would, however not be listed among the ordinary products, so my proposal works best, if it is only a couple of things.

ThatSweetShop wrote: Sun Jul 04, 2021 4:53 pm [...] the decrease/increase quantities module in shopping basket can be tweaked to check if a product price is 0.00, then disable the ability to decrease/increase quantity. This seems a lot more functional, less modifications and easier to implement for all.
It's possible, and might be easier - I might give that a shot. The customer would, however, still be able to add the product to their cart multiple times. This could be dealt with as well, but I'm not sure how important it would be to do so.

//Daniel
I'm not smart, but sometimes even a blind chicken can find a corn.
Here are a lot of corns: Phoenix user guide
ThatSweetShop

Re: Limit Product Quantity

Post by ThatSweetShop »

ThatSweetShop wrote: Sun Jul 04, 2021 4:53 pm [...] the decrease/increase quantities module in shopping basket can be tweaked to check if a product price is 0.00, then disable the ability to decrease/increase quantity. This seems a lot more functional, less modifications and easier to implement for all.
It's possible, and might be easier - I might give that a shot. The customer would, however, still be able to add the product to their cart multiple times. This could be dealt with as well, but I'm not sure how important it would be to do so.

//Daniel
[/quote]

Maybe this would work better by not just disabling the ability to increase quantity but also add an additional check to see if product already in cart and not allow customer to add it a second time. This scenario still seems a lot easier and function better. Just my thought, there may be better ideas.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply