- This topic has 9 replies, 3 voices, and was last updated 4 years, 1 month ago by
Ying.
-
AuthorPosts
-
February 8, 2022 at 5:50 am #2109345
Daniel
Hi!
I don’t know if this is something related to WooCommerce or GeneratePress.
I have merged the WooCommerce cart with the checkout page but some css styles needed for the quantity buttons in the cart doesn´t load in the checkout page.I’ve found that in the cart page the html <article> tag has the class do-quantity-buttons and this class is what I need to be in the checkout page in order to display the quantity buttons correctly.
So is it possible to add that class to the checkout page or is it another way to load all the css needed for the cart table in the checkout page?
Thanks!
DanielFebruary 8, 2022 at 6:14 am #2109356David
StaffCustomer SupportHi there,
can you share a link to a produce that i can add to the cart so i can see the checkout page ?
February 8, 2022 at 6:33 am #2109369Daniel
Hi David!
Here is a test site with the cart table in the checkout page. You’ll see the quantity button correctly in the cart page but broken in the checkout page.
February 8, 2022 at 6:40 am #2109377David
StaffCustomer SupportCan you check that link as its just an empt cart for me.
February 8, 2022 at 10:05 am #2109781Daniel
Sorry, can you please try again?
February 8, 2022 at 11:02 am #2109842Ying
StaffCustomer SupportHi Daniel,
Try add this CSS:
.woocommerce .quantity.buttons-added { display: flex; align-items: center; }February 8, 2022 at 11:16 am #2109853Daniel
Thanks Ying, the quantity button now looks correct.
In the quantity input. when I hover the mouse over the number, the plus and minus arrows appear. Is there something I can do to hide them?
February 8, 2022 at 11:34 am #2109873Ying
StaffCustomer SupportUnfortuanly I’m not aware of a way to hide them.
Maybe you can reach out to Woocommerce support to check if they have a solution 🙂
February 9, 2022 at 1:56 am #2110377Daniel
I’ve found a css solution to hide the arrows. I’ll leave it here in case anyone needs it:
/* Chrome, Safari, Edge, Opera */ .woocommerce .quantity.buttons-added input::-webkit-outer-spin-button, .woocommerce .quantity.buttons-added input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; } /* Firefox */ .woocommerce .quantity.buttons-added input[type=number] { -moz-appearance: textfield; }February 9, 2022 at 10:24 am #2111101Ying
StaffCustomer SupportThanks for sharing 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.