WebsiteBaker Community Forum (upd)

WebsiteBaker Support (2.8.x) => Bakery Shop => Topic started by: Erwinvb on August 23, 2016, 12:02:12 PM

Title: Maximum order quantity
Post by: Erwinvb on August 23, 2016, 12:02:12 PM
Dear Bakeryspecialists...

Is it possible to limit the orderquantity for one item to just 1.

Thanks in advance
Title: Re: Maximum order quantity
Post by: freeSbee on August 23, 2016, 12:29:23 PM
Hi Erwinvb

Are you talking about all shop products or just one (or a few) specific product(s)?

Regards Christoph
Title: Re: Maximum order quantity
Post by: Erwinvb on August 23, 2016, 12:41:03 PM
Hi Christoph,

We have a graphic design webshop and some of our "products" als just extra services which can be added to a choosen product.
This will only comply to a few of our products.

Regards Erwin
Title: Re: Maximum order quantity
Post by: freeSbee on August 23, 2016, 12:55:00 PM
Hi Erwinvb

If your extra services have their own module Bakery page you could edit the corresponding page template. Replace the text input field by a hidden input field. Eg.

Replace
<input type="text" name="item[ITEM_ID]"  class="mod_bakery_item_input_f" value="1" size="2" />
by
<input type="hidden" name="item[ITEM_ID]"  class="mod_bakery_item_input_f" value="1" size="2" />

Regards Christoph
Title: Re: Maximum order quantity
Post by: Erwinvb on August 23, 2016, 01:16:09 PM
Sorry I don't follow,

We created this service as a product, just like all the other products in the shop.
How do you create an "own page" for that product? (or where can I read about how to)

Thanks for your patients  :wink:
Title: Re: Maximum order quantity
Post by: Ruud on August 23, 2016, 01:26:40 PM
Replace the text input field by a hidden input field.

Won't work..
It is fine for the overview/item pages.. but the cart/summery will allow you to change the number.
It will be very hard to fix that for one product.
Title: Re: Maximum order quantity
Post by: freeSbee on August 23, 2016, 02:49:48 PM
Hi Erwinvb

QuoteHow do you create an "own page" for that product?
Other shops use categories while the module Bakery just uses different pages to imitate them.
http://www.bakery-shop.ch/#categories

For each Bakery page you can modify the page template (http://www.bakery-shop.ch/#templates). If you have a page "Extra services" you could edit the corresponding template. But as Ruud already mentioned, there is a big caveat:
The cart allows customers to change the predefined quantity ...

There is only one way to achieve the desired in a proper way: You have to tweak the PHP Module Code.

Regards Christoph