- This topic has 0 replies, 1 voice, and was last updated 9 years, 11 months ago by .
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore F.A.Q/Instructions › eStore Tweak – Changing default purchase quantity value
If you use the “Display Quantity Field” option in the product configuration then by default the the default purchase quantity value is set to 1. The customers can change 1 to any quantity amount they wish to purchase.
What if you wanted that default quantity amount to be set to 5 instead of 1? You can do that by using the following tweak.
Add the following block of code to your functions.php file of your theme (or a custom plugin).
add_filter('eStore_filter_default_purchase_qty_value', 'my_custom_qty_tweak');
function my_custom_qty_tweak($value)
{
$value = "5";
return $value;
}
You can change 5 to any other numeric value you want.