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

How to change the "Display Quantity Field" default value from "1" to nothing

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › How to change the "Display Quantity Field" default value from "1" to nothing

Tagged: quantity field

  • This topic has 8 replies, 4 voices, and was last updated 8 years, 2 months ago by inplainview.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • March 4, 2012 at 3:47 pm #5744
    inplainview
    Member

    I’m selling content over at seocontent.me.

    I’d like to show a “Quantity Field”, but empty, without the default value which is now “1”.

    I see the line of code is this one:

    <input type=”text” value=”1″ size=”1″ name=”add_qty”>

    In which file exactly is this line of code situated?

    If I delete

    value=”1″

    it would suffice, or do I need to do something else?

    Thank you for your help.

    March 4, 2012 at 9:30 pm #42691
    Peter
    Member

    Hi,

    You can simply change the value=”1″ to value=””.

    Before making any modifications to eStore files it is recommended that you save the original file somewhere in case you need it.

    March 5, 2012 at 12:22 am #42692
    admin
    Keymaster

    You will need to look in the “eStore_misc_functions.php” file for that change but I don’t see why you want to have an empty value though? What will happen when your customer just hits the add to cart button without adding a quantity there? Don’t you want to add at least 1 quantity to the cart?

    March 5, 2012 at 2:29 pm #42693
    inplainview
    Member

    Thank you for your advice; it worked.

    I sell content in units of 100 words each. No matter how I describe the product (and I have a line that literally says “1 credit = $x = 100 words”), I still have a ton of people ordering first 1 unit, then whatever they actually need; shortest articles are about 300 words / 3 units.

    Because PayPal fees are very high compared with these small transactions, I lose money on them, which I don’t like. It takes a long time to explain to a (new) client why I want to cancel the transactions, and have him send just one payment. It kind of makes me look like a cheapskate in front of a (new) client, but it adds up from many transactions, and the client doesn’t have this behind the wall view like I do.

    Therefore, for this particular case, since the clients have to modify that default “1” to something else anyway, it’s better they are forced to do it.

    I hope this makes more sense now.

    December 28, 2014 at 3:14 am #42694
    inplainview
    Member

    I tried to modify the code as instructed on a new site, and it seems that this tweak is not working anymore.

    I replaced ALL the [value=”1″] in the “eStore_misc_functions.php” file with [value=””], but it is still showing the same “Quantity Field” as being “1”.

    Please advise.

    December 28, 2014 at 4:05 pm #42695
    wzp
    Moderator

    Please post links to both sites, with instructions on how to recreate the issue.

    December 28, 2014 at 8:08 pm #42696
    inplainview
    Member

    Here is a link where the tweak worked:

    [http://101content.com/seo-articles-keywords-lsi-embedded/]

    Here is a link where the tweak did not work, although I made the exact same changes as above:

    [http://revahq.com/reva-hours/]

    I did inspect the code, and I can tell the “1” value is still there, so my thinking is that in this version of the plugin I’m supposed to edit a different file, and not the “eStore_misc_functions.php” file as initially instructed.

    Oh, and I attempted to make the change twice in order to make sure I saved the file properly etc.

    December 28, 2014 at 11:25 pm #42697
    admin
    Keymaster

    The following post will show you how you can teak the default purchase quantity field’s value:

    https://support.tipsandtricks-hq.com/forums/topic/estore-tweak-changing-default-purchase-quantity-value

    December 28, 2014 at 11:52 pm #42698
    inplainview
    Member

    Okay, this is a more elegant solution and it worked just fine.

    Thank you!

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

Forum Related

  • Forum Home
  • Forum Search
  • 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
  • WP PDF Stamper Documentation
  • WP Photo Seller 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
  • WP Photo Seller Video Tutorial

Our Other Plugins

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

Copyright © 2023 | Tips and Tricks HQ