WordPress.org

Support

Support » Plugins and Hacks » WooCommerce Customizer » [Resolved] Add to Cart Button on Variable Products

[Resolved] Add to Cart Button on Variable Products

  • I’ve been using and enjoying this plugin for a while but after a useability study suggested we make some changes, I wanted to change the Add to Cart Button text. Cool I thought, I can do that with WooCommerce Customizer, so I trundle over to the Product Page tab and drop my desired text into the Add to Cart Button Text > All product types field and hit save.
    Our shop contains a mixture of simple and variable products – the plugin over-ride worked fine on the simple products but completely not for the variable ones.
    I’ve actually tried manually changing it with the following:

    add_filter('variable_add_to_cart_text', 'woo_custom_cart_button_text1');
    
    function woo_custom_cart_button_text1() {
    
    		return __('Buy Now - Free Shipping', 'woocommerce');
    
    }

    But that didn’t work either – possibly a fix for an older version of WooComm?

    Any ideas?

    https://wordpress.org/plugins/woocommerce-customizer/

Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] Add to Cart Button on Variable Products’ is closed to new replies.
Skip to toolbar