WordPress.org

Forums

WooCommerce - excelling eCommerce
Changing layout of grouped products (1 post)

  1. Teo Maragakis
    Member
    Posted 1 year ago #

    Hello everyone,

    I've been having a problem with grouped products. I am using the default WooCommerce templates and I have been trying to render grouped products differently.

    content.single-product.php adds the woocommerce_before_single_product_summary and woocommerce_single_product_summary hooks. I would like to keep these in single products, but if the product is grouped, I would like to add a completely different HTML layout, (not render the product image and short description for example), without breaking the hook that might be used in the future by other plugins. Is this possible, and if so, how?

    Also, I would like to show child products, with a different HTML layout than the regular loop. How would I achieve this?

    In short: I would like to rewire the single product template for grouped products, without breaking the hooks.

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.