WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Override stock html on a variant (variable) (2 posts)

  1. Rein Aris
    Member
    Posted 10 months ago #

    Working on WooCommerce with product variants (variables).

    I like to override the stock html. I like to display an image or so, I just want to change that little part of html.

    This piece of code comes from:
    public function get_available_variations()
    It's defined in:
    class-wc-product-variable.php

    The html that I want to change is in the variable:
    $availability_html

    How do I change this function in my theme functions.php.
    I do not want to edit the plugin.

    http://wordpress.org/plugins/woocommerce/

  2. Rein Aris
    Member
    Posted 10 months ago #

    Any example is perfect, I just want to know how to do this properly! Thanks :)

Reply

You must log in to post.

About this Plugin

About this Topic