Viewing 3 replies - 16 through 18 (of 18 total)
  • Plugin Author Marcel Pol

    (@mpol)

    Oh, not sure about that one, so I searched Google :).
    On PHP 5.6 it works.

    Try this then:

    add_filter('woocommerce_get_product_attributes', 'custom_function');
    function custom_function( $attributes ) {
            $arr = print_r($attributes, true);
            echo $arr;
            return $attributes;
    }
    Thread Starter FCAbraham

    (@fcabraham)

    I suspect that it is in conflict with another Plugin called Woocommerce Show Attributes (WSA). After activating your code, the following code appears on the product page. The purpose of WSA is to display product attributes but now also displays your code. I deactivated WSA and the following code vanished. I’m somewhat lost on all of this so I will abandon this effort until I have a better understanding of php. Thanks for all of your effort and assistance.

    Array ( [pa_thread] => Array ( [name] => pa_thread [value] => [position] => 0 [is_visible] => 1 [is_variation] => 0 [is_taxonomy] => 1 ) [pa_fastener-type] => Array ( [name] => pa_fastener-type [value] => [position] => 3 [is_visible] => 1 [is_variation] => 0 [is_taxonomy] => 1 ) [pa_fastener-standard] => Array ( [name] => pa_fastener-standard [value] => [position] => 4 [is_visible] => 1 [is_variation] => 0 [is_taxonomy] => 1 ) [pa_thread-class] => Array ( [name] => pa_thread-class [value] => [position] => 6 [is_visible] => 1 [is_variation] => 0 [is_taxonomy] => 1 ) [pa_length] => Array ( [name] => pa_length [value] => [position] => 7 [is_visible] => 1 [is_variation] => 0 [is_taxonomy] => 1 ) [pa_thread-standard] => Array ( [name] => pa_thread-standard [value] => [position] => 8 [is_visible] => 1 [is_variation] => 0 [is_taxonomy] => 1 ) [pa_vent-hole-diameter-nominal] => Array ( [name] => pa_vent-hole-diameter-nominal [value] => [position] => 9 [is_visible] => 1 [is_variation] => 0 [is_taxonomy] => 1 ) [pa_hole-tolerance-in] => Array ( [name] => pa_hole-tolerance-in [value] => [position] => 10 [is_visible] => 1 [is_variation] => 0 [is_taxonomy] => 1 ) [pa_note] => Array ( [name] => pa_note [value] => [position] => 11 [is_visible] => 1 [is_variation] => 0 [is_taxonomy] => 1 ) [pa_finish] => Array ( [name] => pa_finish [value] => [position] => 13 [is_visible] => 1 [is_variation] => 0 [is_taxonomy] => 1 ) [pa_drive-type] => Array ( [name] => pa_drive-type [value] => [position] => 14 [is_visible] => 1 [is_variation] => 0 [is_taxonomy] => 1 ) [pa_head-height-overall] => Array ( [name] => pa_head-height-overall [value] => [position] => 15 [is_visible] => 1 [is_variation] => 0 [is_taxonomy] => 1 ) [pa_head-diameter] => Array ( [name] => pa_head-diameter [value] => [position] => 16 [is_visible] => 1 [is_variation] => 0 [is_taxonomy] => 1 ) [pa_point] => Array ( [name] => pa_point [value] => [position] => 17 [is_visible] => 1 [is_variation] => 0 [is_taxonomy] => 1 ) )

    Plugin Author Marcel Pol

    (@mpol)

    Yes, that is a var_dump of your taxonomies.

    I am not really sure how you want them sorted. It is really outside the scope of this plugin.
    It is an array with the several taxonomies, and you can resort this array if you want to. But that is up to you now.

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Great Product’ is closed to new replies.