• Resolved bsp4750

    (@bsp4750)


    Is it possible to get a shortcode, or a html snippet so the suppliers sku will be displayed on the product page ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Salva Machi

    (@salvamb)

    Hi @bsp4750

    A simple snippet to do that would be:

    
    $atum_product = \Atum\Inc\Helpers::get_atum_product( $product );
    echo $atum_product->get_supplier_sku();
    

    I hope this helps.

    Best Regards,
    Salva.

    Thread Starter bsp4750

    (@bsp4750)

    Thanks

    Can’t get it working. i have tried putting it in the function.php (no luck) and added it via the code snippet plugin, and no luck there getting it to work.

    I’ll see if i can find another plugin instead of atum to do it with.

    Plugin Author Salva Machi

    (@salvamb)

    @bsp4750

    I’m sorry but I wrongly assumed that you knew how to add that PHP code.
    That should be added directly to the PHP template where you want to display the Supplier’s SKU, not in functions nor in the product’s content editor.

    But helping you out to do so is out of the scope of our support (as it’s not related to ATUM at all). Perhaps you can try to ask this on StackOverflow.

    I hope you understand.

    Best Regards,
    Salva.

    • This reply was modified 4 years, 10 months ago by Salva Machi.
    • This reply was modified 4 years, 10 months ago by Salva Machi.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Display Supplier SKU on productpage’ is closed to new replies.