Special Discount for a limited time

00 Days
00 Hours
00 Minutes
00 Seconds


Change Default Value Of Quick Quantity

Estimated reading: 1 minute 278 views

We have a special column that updates cart quantity. ( Check that )

By default, the quantity value is 0.

We can change that by using a filter hook. The hook is 'wpto_localize_data'

Here is the code example below.

Just change value of $WPT_DATA['quick_qty_empty_value']. If I change to $WPT_DATA['quick_qty_empty_value'] = ' ';

That means by default value will be empty.

If I change to $WPT_DATA['quick_qty_empty_value'] = 2;

Then the default value will be 2

Share this Doc