Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

eStore Tweak – Changing default purchase quantity value

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore F.A.Q/Instructions › eStore Tweak – Changing default purchase quantity value

Tagged: default quantity, minimum checkout amount, purchase quantity, quantity, quantity field

  • This topic has 0 replies, 1 voice, and was last updated 10 years, 4 months ago by admin.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • December 28, 2014 at 11:23 pm #11987
    admin
    Keymaster

    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.

  • Author
    Posts
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ