Wednesday, November 20, 2013

    bit off dirty way to display all variables from single product in woo commence plugin for wordpress

    well the list display of variables is nice but i wanted page showing all of them
    here's how it looks as output
    as u see is bare bones and needs styling for php to output divs spans classes ids but it works just fine now

    code to insert goes to woocommerce/templates/single-product/add-to-cart/variable.php

    at the end paste this
        $noop = 0;
        foreach ( $terms as $term ) {
        echo  "{$term->name}<br>
         $noop = $noop + 1;