• Resolved dmeljon

    (@dmeljon)


    Hi,
    is there a shortcode to show the product page that is currently viewing? i know you have this shortcode:
    [product_page id=”99″]
    i need one without ID, is that possible?
    the reason i ask is because i created a single product template and i dont want to change the ID every time i create a new product.
    thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • jessepearson

    (@jessepearson)

    Automattic Happiness Engineer

    @dmeljon If you have created a single product template in your theme, then you would just need to place it at /your_theme/woocommerce/single-product.php to override the single-product template that comes with WooCommerce. By default each product can be viewed in the own page without the need to display them via a shortcode.

    Kenin

    (@kbassart)

    Automattic Happiness Engineer

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Woocommerce dynamic product page shortcode’ is closed to new replies.