• Resolved kajahal

    (@kajahal)


    Hi, our client wants to display product attribute, because that is how they identify their products. How can I include it? I found some code on other forum:

    // Add product custom code

    function product_custom_code( $product ) {
    $sifra = $product->get_attribute(‘pa_sifra’);
    echo $sifra;
    }
    add_action( ‘wcdn_order_item_after’, ‘product_custom_code’ );

    But this does nothing, no attribute is shown. I want to display it just below SKU.

    Please help?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support kenil802

    (@kenil802)

    Hi @kajahal,

    I will ask the developer regarding this and get back to you with an update.

    Regards,
    Kenil Shah

    Plugin Support kenil802

    (@kenil802)

    Hi @kajahal,

    I see that we are already having our conversation on the ticket. So, we will continue there.

    Regards,
    Kenil Shah

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Get Attribute in PDF’ is closed to new replies.