• We have a product template that each product inherits from. We have another product template that someone created for a few other products which was unnecessary.

    I’m new to this company and somewhat new to WordPress/Woocommerce, but could someone please explain to me:

    1) How this product template inheritance works?
    2) Where would I define what template these products will inherit from?

    They haven’t had a developer come on before me so everything has been done through the admin panel. I’ve looked all around and cannot for the life of me find where product template is actually set.

    Thanks all.

    https://wordpress.org/plugins/woocommerce/

Viewing 1 replies (of 1 total)
  • Hmm… I’m not sure what you mean by “Product Template” – unless there’s something theme specific about this? In your admin for a product, do you get to pick a “Product Template”?

    If you are just looking for where WooCommerce templates are, you can look at the following:

    In your theme folder, there might be a “single-product.php” file, which would be used to display a woocommerce product. This file might also be found inside a “woocommerce” folder in your theme.

    If you don’t have one of those, then you’re using the default woocommerce template for a single product.

    WooCommerce uses a combination of template files found in your theme and the woocommerce pluigin, as well as lots of action and filter hooks, to generate a product page.

    Here’s the documentation: https://docs.woothemes.com/document/template-structure/

    If you have a development or staging environment, I would encourage you to use the “Query Monitor” plugin, which will help you figure out which template file is used for each page (plus a whole lot of other information, such as which functions are fired on each hook).

Viewing 1 replies (of 1 total)
  • The topic ‘How to associate product template to product?’ is closed to new replies.