Okay
  Public Ticket #2732038
WooCommerce: out of stock / more information
Closed

Comments

  •  2
    NASBAM started the conversation

    Hello,

    The look & feel of the "add to cart" button is different from the "out of stock / more information "button. I want change that last button to the same look & feel of the first one. 

    We use the WooCommerce classic product style in the Salient theme options. 

    How can we apply this good looking style for "out of stock / more information" button? 

    So that both red hovering buttons, are the same length, the same fontsize etc. 


  •  2,719
    Andrew replied

    Hi Nasbam,

    Please try this css:

    .woocommerce .classic .product-wrap .product-add-to-cart .add_to_cart_button, .woocommerce .classic .product-wrap .product-add-to-cart .button.product_type_variable {
        width: 46%;
    }

    Thanks.

  •  2
    NASBAM replied

    Wow, that's really fast Andrew. Thank you!
    Gonna try it right away

  •  2,719
    Andrew replied

    Hi Nasbam,

    Replace the earlier css with this :

    .woocommerce .classic .product-wrap .product-add-to-cart .add_to_cart_button, .woocommerce .classic .product-wrap .product-add-to-cart .button.product_type_variable {
        width: 37%;
    }
    .woocommerce .classic .product-wrap .nectar_quick_view, .woocommerce .classic .product-wrap .add_to_cart_button, .woocommerce .classic .product-wrap .button.product_type_variable, .woocommerce .classic .product-wrap a.button.product_type_simple {   width: 11px;    font-size: 12px;
    }
    .woocommerce .classic .product-wrap .add_to_cart_button i, .woocommerce .classic .product-wrap .nectar_quick_view i, .text_on_hover.product .nectar_quick_view i {      font-size: 15px;
    }

    Thanks.

  •  2
    NASBAM replied

    In mean the other way round. But we are coming close :D

    And how do I change the font style and height of the more information / out of stock button text? 

    Thank you! 

    (see the attachment)

  •  2
    NASBAM replied

    With this code, it looks a bit weird (see attachment)

    .woocommerce .classic .product-wrap .product-add-to-cart .add_to_cart_button, .woocommerce .classic .product-wrap .product-add-to-cart .button.product_type_variable {
        width: 37%;
    }
    .woocommerce .classic .product-wrap .nectar_quick_view, .woocommerce .classic .product-wrap .add_to_cart_button, .woocommerce .classic .product-wrap .button.product_type_variable, .woocommerce .classic .product-wrap a.button.product_type_simple {   width: 11px;    font-size: 12px;
    }
    .woocommerce .classic .product-wrap .add_to_cart_button i, .woocommerce .classic .product-wrap .nectar_quick_view i, .text_on_hover.product .nectar_quick_view i {      font-size: 15px;
    }
  •  2
    NASBAM replied

    I changed the width to 314px. It looks almost the same as the "add to cart" button. 

  •  2,719
    Andrew replied

    Hi Nasbam,

    Please try this css:

    .woocommerce .classic .product-wrap .nectar_quick_view, .woocommerce .classic .product-wrap .add_to_cart_button, .woocommerce .classic .product-wrap .button.product_type_variable, .woocommerce .classic .product-wrap a.button.product_type_simple {
        width: 122px;
        font-size: 12px;
        text-align: left;
    }

    Thanks.

  •  2
    NASBAM replied

    Nevermind! Thank you Andrew for your quick service and support. Problem solved!

    ------------------------
    Old comment:

    Is there a rule, css line, to scale the bar when people visit the page on their phone? This is what I see when visiting on a iPhone 12 max

  •  2
    NASBAM replied

    Ah well, just one more question. Do you know how I can change the text of the "out of stock" button? Currently it's saying Meer Informatie, dutch for More Information. I want to change the text to: Uitverkocht - Product bekijken (Dutch for sold out, see product)

  •  8,393
    Tahir replied

    Hey Again,

    Try using this Plugin : https://wordpress.org/plugins/say-what/ . 

    In The "Text Domain" field write "salient" without quotes . If you are trying to change woocommerce words  add "woocommerce" in "Text domain" . The fields are case-sensitive .

    9799383690.png



    Thanks 


    ThemeNectar Support Team