• I’m trying to add a link to all WooCommerce Product Pages utilizing the SKU as part of the link.

    Example of what I need:

    This is how I am able to show the SKU:

    add_action( 'woocommerce_single_product_summary', 'dev_designs_show_sku', 5 );
    function dev_designs_show_sku(){
        global $product;
        echo 'View Link ' . $product->get_sku();
    }

    I’m stuck and I think I need is something like this but like I said I’m just stuck any help is appreciated:

    add_action( 'woocommerce_single_product_summary', 'dev_designs_show_sku', 5 );
    function dev_designs_show_sku(){
        global $product;
        echo <a>get_sku();>'View Link '</a>
    }

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘WooCommerce & Functions.php’ is closed to new replies.