How to add ean code in the product description

This topic has 2 replies, 2 voices, and was last updated 16 minutes ago ago by Luca Rossi

  • Avatar: ShoQ
    ShoQ
    Participant
    October 22, 2024 at 09:52

    Hi!
    we must have the ean code visible in product meta, unfortunately I cannot find the option to add it anywhere

    Content is visible for topic creator and
    support staff only.
    1 Answer
    Avatar: Justin
    Luca Rossi
    Support staff
    October 22, 2024 at 14:37

    Hi @ShoQ,

    Please try adding this custom code under functions.php file locates in your child theme:

    
    add_shortcode('et_ean', 'et_ean');
    function et_ean(){
        global $product;
        return $product->get_global_unique_id();
    }
    

    After that add this shortcode to the text element:

    https://prnt.sc/hNSkWVdiCrGK

    Hope it helps!

  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.