Woocommerce product link url for simple products

Using the shortcode [add_to_cart_url sku="#"] will generate a link that will take the shopper to the single product page ONLY IF the product has variations.

What if I want a simple product (a product without variations) to link to its single product page instead of adding it to the cart?

IMO, this seems overlooked by the WooCommerce team.

All I want is a generated link to an item’s single product page based on its SKU. Something as simple as implementing [product_url sku="#"] would be great.

Otherwise, searching Google has revealed no success.

Source: shortcode

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.