1-ON-1 WEEKLY OFFICE HOURS   Get answers to any of your questions   Schedule Today

Set Lightbox Default Quantity to 1

Some users have expressed an interest in setting the default quantity to 1 when the Lightbox window loads. You can do so by adding the following code to your theme’s functions.php file or using a plugin to add it.

The reason it is 0 by default is to make it a more purposeful action to select a quantity. Also, some users might be confused and think they already have 1 in their cart. By defaulting to 0, it is more clear that the number does not represent how many of that item are already in their cart.