WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Bakery Shop »
  • Maximum order quantity
  • Print
Pages: [1]   Go Down

Author Topic: Maximum order quantity  (Read 6386 times)

Offline Erwinvb

  • Posts: 11
  • Gender: Male
Maximum order quantity
« 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
Logged

freeSbee

  • Guest
Re: Maximum order quantity
« Reply #1 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
Logged

Offline Erwinvb

  • Posts: 11
  • Gender: Male
Re: Maximum order quantity
« Reply #2 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
Logged

freeSbee

  • Guest
Re: Maximum order quantity
« Reply #3 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
Code: [Select]
<input type="text" name="item[ITEM_ID]"  class="mod_bakery_item_input_f" value="1" size="2" />by
Code: [Select]
<input type="hidden" name="item[ITEM_ID]"  class="mod_bakery_item_input_f" value="1" size="2" />
Regards Christoph
Logged

Offline Erwinvb

  • Posts: 11
  • Gender: Male
Re: Maximum order quantity
« Reply #4 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:
Logged

Offline Ruud

  • Posts: 3671
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: Maximum order quantity
« Reply #5 on: August 23, 2016, 01:26:40 PM »
Code: [Select]
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.
Logged
Dev4me - WebsiteBaker modules - WBhelp.org

freeSbee

  • Guest
Re: Maximum order quantity
« Reply #6 on: August 23, 2016, 02:49:48 PM »
Hi Erwinvb

Quote
How 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. 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
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Bakery Shop »
  • Maximum order quantity
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2