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 9 years, 11 months ago by inplainview.
-
AuthorPosts
-
March 4, 2012 at 3:47 pm #5744inplainviewMember
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 #42691PeterMemberHi,
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 #42692adminKeymasterYou 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 #42693inplainviewMemberThank 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 #42694inplainviewMemberI 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 #42695wzpModeratorPlease post links to both sites, with instructions on how to recreate the issue.
December 28, 2014 at 8:08 pm #42696inplainviewMemberHere 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 #42697adminKeymasterThe following post will show you how you can teak the default purchase quantity field’s value:
December 28, 2014 at 11:52 pm #42698inplainviewMemberOkay, this is a more elegant solution and it worked just fine.
Thank you!
-
AuthorPosts
- You must be logged in to reply to this topic.