Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @pclandofficiel,

    I think it’s seo plugin issue, have you tried to change the seo plugin?

    Regards,
    Omar

    Thread Starter BoutiquePcLanD

    (@pclandofficiel)

    Hello, thank you for your answer, so I am also in contact at the moment with yoast, they will see on their side!

    I tried to put a line of code but it should not work.

    add_filter( 'woocommerce_structured_data_product', 'nt_woocommerce_structured_data_product_offer', 10, 2 );
    function nt_woocommerce_structured_data_product_offer( $markup, $product ) {
    
        $markup[ 'brand' ] = array(
            '@type'  => 'brand',
            'name'   => wc_get_product()->get_attribute('product_brand'),
        );
    
        return $markup;
    }

    I hope I will find a solution!

    Mirko P.

    (@rainfallnixfig)

    Hi @pclandofficiel,

    Right, probably Yoast’s support team should look into this and assist you. Since this is not related to WooCommerce core I’m going to close this thread now. Feel free to create a new topic if you have any questions related to our plugin.

    Cheers.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘json data structure problem !’ is closed to new replies.