-
AuthorPosts
-
July 19, 2023 at 10:58 pm #1413761
Hi there,
1. I’m working on a WooCommerce shop, and am specifically using an extension called WooCommerce Composite Products. It appears that the quantity fields for the “Components” are displaying fill-in fields, vs the +/- buttons for the quantity. I messaged the plugin developer and they told me that this was something that was managed by the theme.
2. The quantity buttons under the “Select: Desk Colors” and “CPU Holder” component aren’t working.
I have provided credentials to the site below, too.
July 20, 2023 at 1:19 am #1413767Hi vantagepointmg,
Thanks for giving us admin access.
It seems WooCommerce Composite Products does not work well with our number buttons, I have added this CSS code to enable the number spinner in the number field:#top #wrap_all .quantity input.qty { width: 80px; } #top #wrap_all .quantity input.qty::-webkit-outer-spin-button, #top #wrap_all .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: auto; appearance: auto; }
Please review your website.
Best regards,
NikkoJuly 20, 2023 at 2:15 am #1413783Hi Niko,
Appreciate the quick help! How does that view on mobile? I’m having a hard time seeing it. Is it possible to add the +/- instead?
~MacKenzie
July 21, 2023 at 2:50 am #1413885Hi MacKenzie,
On mobile it shows like an input field, but when the field is focused the keys showing on mobile will just be numbers.
As for fixing it, the problem is conflict with the WooCommerce Composite Products and Enfold theme which prevents that feature of Enfold from working properly takes to time to identify the cause of the issue, fix and test, so the only workable solution at the moment is to disable the feature and use the original behavior the plugin provides.Best regards,
NikkoJuly 24, 2023 at 9:54 pm #1414276Hi Nikko,
I appreciate the additional information, thank you! I think we’ll be able to work with that for now.
Another quantity-related issue is that we aren’t able to update the quantities on the cart page on mobile (screenshot here: https://ibb.co/pJBFCDh)
~MacKenzie
July 25, 2023 at 1:36 am #1414283Hi MacKenzie,
Changing quantities is hidden in the cart on Enfold by default, but you can add it back by adding this CSS code:
@media only screen and (max-width:767px) { #top .woocommerce-cart-form .shop_table.cart .cart_item { display: flex; flex-direction: column; width: 100%; } #top .woocommerce-cart-form .shop_table.cart .cart_item td:before { content: attr(data-title) ": "; font-weight: 700; float: left; } #top .woocommerce-cart-form thead, #top .woocommerce-cart-form .shop_table.cart .cart_item .product-remove:before { display: none; } #top .woocommerce-cart-form .shop_table.cart .cart_item .product-remove, #top .woocommerce-cart-form .shop_table.cart .cart_item .product-name, #top .woocommerce-cart-form .shop_table.cart .cart_item .product-price, #top .woocommerce-cart-form .shop_table.cart .cart_item .product-quantity { display: block; width: 100%; padding: 12px 20px; } #top .woocommerce-cart-form .shop_table.cart .cart_item .product-name, #top .woocommerce-cart-form .shop_table.cart .cart_item .product-price, #top .woocommerce-cart-form .shop_table.cart .cart_item .product-quantity { text-align: right; } #top .woocommerce-cart-form .shop_table.cart .cart_item .product-name .component-name { max-width: 220px; margin-left: auto; padding-left: 0; } #top .woocommerce-cart-form .shop_table.cart .cart_item .product-name .component-name * { float: right; } #top .woocommerce-cart-form .shop_table.cart .cart_item .product-quantity .quantity { width: 170px; margin-right: 0; } }
Hope it helps.
Best regards,
NikkoJuly 26, 2023 at 12:53 am #1414447Thanks, Nikko! Looks like that did the trick!
Looks like the +\- buttons on the cart page on desktop need a little styling help – can you provide some insight? Here’s a screenshot of what I’m seeing; https://ibb.co/37Lm3pw
July 26, 2023 at 1:16 am #1414450Hi MacKenzie,
You’re welcome :)
Please add this CSS code:#top .woocommerce-cart-form .shop_table.cart .cart_item .product-quantity .quantity { width: 170px; }
Best regards,
NikkoJuly 26, 2023 at 1:21 am #1414451You’re awesome, that worked like a charm :)
Is there a library anywhere with those shortcodes? I’ve been an Enfold user for a number of years and have always wondered that.
July 26, 2023 at 1:38 am #1414453Hi MacKenzie,
You’re welcome, I’m happy that I could help.
Also those are CSS codes, they are not in our documentation because I just made it on the spot when I inspected your website :)
You can learn those skills by learning CSS:
https://www.w3schools.com/Css/
https://developer.mozilla.org/en-US/docs/Web/CSS/Tutorials
And also learn how to inspect elements:I hope you’ll find those resources helpful
Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.