Docly

Change Default Value Of Quick Quantity

Estimated reading: 1 minute 164 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

CONTENTS