nielslange / smntcs-quantity-buttons-for-woocommerce

Display quantity buttons on WooCommerce product page.
https://wordpress.org/plugins/smntcs-woocommerce-quantity-buttons/
GNU General Public License v2.0
8 stars 4 forks source link

Button is to big on astra theme #4

Closed ofer777 closed 5 years ago

ofer777 commented 5 years ago
Screenshot 2019-08-21 at 20 36 51

can you please help how to resize the button?

nielslange commented 5 years ago

@ofer777 Can you post the URL of your site, so that I can take a look at it? I might have to overwrite some theme related CSS of the Astra theme.

ofer777 commented 5 years ago

Thanks for the quick reply!

URL: http://speedybox.co.uk

Regards,

Ofer Hai

ofer777 commented 5 years ago

Also I try before on β€œhello” theme and was the some problems of sizes.

Best Regards,

Ofer Hai

nielslange commented 5 years ago

Hello @ofer777,

Please add the following CSS to your site:

.woocommerce .quantity input[type=button],
.woocommerce .quantity input[type=number],
.woocommerce div.product form.cart .button.single_add_to_cart_button {
  height: 40px;
  padding: 5px 40px;
  vertical-align: middle;
}

This should solve the styling issue.

My plugin doesn't add any stylings to the buttons though, thus, the styling issues are caused both by the Astra and Hello themes and it's quite common that themes overwrite the default WooCommerce styling which leads to these side effects.

ofer777 commented 5 years ago

Thanks for your reply!!!!

Perfect, I change it on the cart page, but how can I add the css on the all products pages, any idea?

Regards,

Ofer Hai

ofer777 commented 5 years ago

Its ok, I add it to the css of ASTRA - perfect πŸ€—

Regards,

Ofer Hai

nielslange commented 5 years ago

I just looked up http://speedybox.co.uk/ and it seems to look as expected both on the product and cart page. Thus, this issue is solved and this can be closed, correct?

ofer777 commented 5 years ago

Yep, thank you 😊

Best Regards,

Ofer Hai

nielslange commented 5 years ago

Great to hear, @ofer777! In this case, I'll close this issue for now. πŸ˜€

ofer777 commented 5 years ago

Hi Niels,

Any idea how to add the quantity buttons to the shop page?

Regards,

Ofer Hai

nielslange commented 5 years ago

Not really, as I'm not familiar with the ASTRA theme. I would ask the theme developers on this issue. A quick solution would be to replace the Add to cart button with a View product button. Adding the quantity buttons to the shopping page itself might be more challenging and might also affect the responsive design of your shopping cart.

ofer777 commented 5 years ago

Thanks for the quick reply!

Best Regards,

Ofer Hai

ofer777 commented 4 years ago

Hi,

Can you please help me to check as the plugin SMNTCS WooCommerce Quantity Buttons not working with Advanced Product Quantity ( https://woocommerce.com/products/advanced-product-quantity/)

I want to make the unit as 0.5 and not 1 but its not working …

You can check my test page on https://we-perfect.com/product/cutting-knife/

Regards,

Ofer Hai

nielslange commented 4 years ago

@ofer777 The test page https://we-perfect.com/product/cutting-knife/ cannot be accessed at the moment. Also, this issue does not seem to be related with the original issue Button is too big on Astra theme. Please create a separate ticket for this issue. Thanks! πŸ˜‰