• Resolved alexli126

    (@alexli126)


    Hello,

    I used the following code to created attribute rule:

    add_filter(
    ‘woocommerce_gla_attribute_mapping_sources_custom_attributes’,
    function( $values ) {
    return array_merge( $values, [ ‘Gender’]);
    }
    );

    But when try to create attibute rule, it only show the Global Gender attribute option:

    https://prnt.sc/9M-RPW_SbBsK

    But, there is no “Use value from existing product field” option.

    The custom code snippet is quite limited to Color, Material, Size.

    Thanks

    • This topic was modified 1 year, 5 months ago by alexli126.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Custom attribute Code does not support Gender’ is closed to new replies.