Community Forums › Forums › Archived Forums › Design Tips and Tricks › woocommerce product quantity display issue?
- This topic has 12 replies, 4 voices, and was last updated 10 years, 9 months ago by
Brad Dalton.
-
AuthorPosts
-
May 11, 2015 at 5:50 pm #151801
Focused.1
ParticipantHey Thanks for any help that might be provided. I am having trouble locating where I can change how the quantity is being displayed. I am using "Swank" theme and the buttons to increase and decrease the quantity are showing but the actual quantity of a product in the cart is not showing. The quantity is changing when using the buttons. It seems like the theme is causing a display issue but I have not been able to get it to display properly.
Any suggestions?
Thanks a ton!
http://www.zagazaproduction.com/May 11, 2015 at 6:20 pm #151802Victor Font
ModeratorThe width of the input is in the WooCommerce css in the .woocommerce .quantity .qty block.
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?May 11, 2015 at 6:36 pm #151803Focused.1
ParticipantThank you for your time and help!
May 13, 2015 at 9:23 am #152004Jason Weakley
MemberWhere would I find how to edit this? I am using the Agency Pro theme and am having a similar issue on this page:
http://cornerstoneretrievers.com/shop/lucy/
The quantity selector seems to be working, but does not display correctly.May 13, 2015 at 2:12 pm #152058Focused.1
ParticipantYou can edit the WooCommerce css in the .woocommerce .quantity .qty block. file via the file manager in your hosting account.
May 13, 2015 at 5:04 pm #152079Jason Weakley
MemberI found it:
Login to your hosting provider, access the File Manager and follow this file path:
public_html/mydomain.com/wp-content/plugins/woocommerce/assets/css
Select the woocommerce.css file and edit it.
Search the document for "qty" (on a PC use [CTRL]+F).
You are looking for a string of code that looks like this:
.woocommerce .quantity .qty{width:3.631em;text-align:center}Change the value to whatever you'd like. 4.631 or 5.631 should be good.
Save changes and leave the file open.
Go to your website and refresh the page. View changes, edit the file if need be. Close window with the open file when you're satisfied.
May 13, 2015 at 5:09 pm #152080Brad Dalton
ParticipantWhat happens to your edits when you update the plugin?
Why wouldn't you copy the CSS over to your child themes style sheet and edit it there so its saved after plugin updates?
May 13, 2015 at 5:15 pm #152081Jason Weakley
MemberWould it work if I just copy and paste
.woocommerce .quantity .qty{width:6.631em;text-align:center}
to the style.css file in WordPress?
When I do this it doesn't seem to be working if I use a higher number it doesn't get wider...May 13, 2015 at 5:23 pm #152083Brad Dalton
ParticipantMay 13, 2015 at 5:28 pm #152085Jason Weakley
MemberIs this correct?
.woocommerce .quantity .qty{width:6.631em;text-align:center !important}May 13, 2015 at 5:36 pm #152089Brad Dalton
ParticipantMay 14, 2015 at 6:37 am #152168Jason Weakley
MemberHmmm, I'm just not seeing any change on screen when I change the size of the number.
May 14, 2015 at 6:38 am #152169Brad Dalton
Participant -
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.