WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
How do I change the template directory for each WOOCOMMERCE VERSION (1 post)

  1. t.nonaka
    Member
    Posted 6 months ago #

    Hi there.

    I want to use different templates depending on the user wc version.

    I wrote the following function on functions.php, but override template did not changed.
    if ( version_compare( WOOCOMMERCE_VERSION, "2.1" ) >= 0 ) {
    function my_template_path() {
    return 'woocommerce-2.1.x/';
    }
    add_filter('WC_TEMPLATE_PATH' , 'my_template_path’);
    }
    Please help me. thank you.

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

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.