Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › Shopping Cart Hide Quantity
Tagged: Hide Quantity
- This topic has 10 replies, 6 voices, and was last updated 7 years ago by
sahmcolorado.
-
AuthorPosts
-
February 8, 2011 at 11:01 am #2668
Sashiko Sachiko
MemberIs there any way to hide the quantity in the shopping cart? My items are downloadable and it doesn’t have any sense to have that option.
Thank you.
February 9, 2011 at 4:07 am #28838amin007
ParticipantUpdate: There is now a settings option for this in the settings menu. If you do not want to show the quantity in the shopping cart, simply check the “Do Not Show Quantity in Shopping Cart” checkbox in the general settings of eStore.
[deleted the code tweaks as it is no longer required]
February 9, 2011 at 10:20 am #28839Sashiko Sachiko
MemberHi amin007,
It worked! Thank you for your prompt reply
July 27, 2011 at 5:56 am #28840amin007
ParticipantAdded an option for this in the settings menu now. If you do not want to show the quantity in the shopping cart simply check the “Do Not Show Quantity in Shopping Cart” checkbox in the general settings of eStore.
August 8, 2014 at 12:40 am #28841nolmt60243
MemberGoing along this thread, I have an Add to Cart short code with a custom button. Are there any parameters that I can include to hide the quantity field? I would like the quantity to be active in general, but only disabled for these particular buttons.
Here is the code: [wp_eStore_add_to_cart_custom_button id=1 button=http://yoursite.com/wp-content/uploads/2013/07/addtocart.png]
I have tried show_quantity=0 and quantity=0, and am at a loss of how that might occur.
Thanks!
August 8, 2014 at 3:02 am #28842admin
KeymasterEdit the eStore product in question and uncheck the “Display Quantity Field” field. That field is unchecked by default (you must have checked it when you created the product).
Your customers will still be able to change the quantity in the shopping cart.
August 8, 2014 at 4:02 am #28843nolmt60243
MemberI was looking to keep that selection checked, as everywhere else I would like it to have a quantity field. It is only this one instance that I would like the quantity turned off. Is that possible?
Thanks!!!
August 8, 2014 at 11:05 pm #28844admin
KeymasterYou can create another estore product (use the copy product functionality) then uncheck the quantity display field for this one and use it.
February 20, 2018 at 8:58 am #28845sahmcolorado
SpectatorIs it possible to hide the quantity in the cart without limiting the user to 1 of each item?
I have tried using css to hide the quantity, but if I use display:none, it messes up the columns in the table because the “Total” cell spans 2 columns. I can make it look exactly how I want by editing the html directly to eliminate that column, but I don’t know where I can do that in the code. Can you help me figure out how to do thi?
Thank you for your help.
February 20, 2018 at 1:09 pm #28846wzp
ModeratorIs it possible to hide the quantity in the cart without limiting the user to 1 of each item?
Have you tried the “Do Not Show Quantity in Shopping Cart” checkbox in the general settings of eStore? It works, no matter what the product quantity is.
February 21, 2018 at 12:51 am #28847sahmcolorado
SpectatorYes, I tried that first. That prevents adding the same item again, though. Here is what I need the user to be able to do:
1. Enter information in the customer info field for Item A and click “Add to Cart”
2. Enter different information in the customer info field for Item A and click “Add to Cart” again.
I have quantity hidden for Item A, so they can only add one at a time. Each time they add Item A, they must enter customer info. If they go and edit the quantity in the cart, it won’t make sense.
I’ve played around a little with the code to remove the table cells that contain the quantity value in the cart. However, I haven’t yet found where the header cell is to remove that. I would really prefer not to mess with the code and just do something with css or a separate script if possible.
-
AuthorPosts
- You must be logged in to reply to this topic.