Support / Documentation / / Set Lightbox Default Quantity to 1

Set Lightbox Default Quantity to 1

This article relates to the Lightbox add-on

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.

Go Pro

Get every single Sunshine add-on and access to premium support for only $99

Oh, and we offer a 30 day money back guarantee to sweeten the deal... because we don't think you will need it anyway.

Learn more

Go Pro for $50 off, limited time!