• Resolved magapascansky

    (@magapascansky)


    Hello!

    I am developing a custom theme for my WooCommerce site and I am using a page template as the single product template (sending the product ID vía url and getting it to get the product’s data).

    However, when I am in the product dashboard and click on a product “view”, it doesn’t take me to the page I developed. I understand that it is because it is not set as the single product template. How can I solve this?

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

Viewing 1 replies (of 1 total)
  • Mirko P.

    (@rainfallnixfig)

    Hi @magapascansky

    To make your custom page act as the single product template, it sounds like you’d need to hook into the ‘template_include‘ filter provided by WordPress.

    This filter allows you to specify a different template file to be used for a specific post type or condition.

    More information on this filter hook can be found on the Developer Resources page.

    Hope this helps!

Viewing 1 replies (of 1 total)
  • The topic ‘Single Product template’ is closed to new replies.