• Resolved adil1641

    (@adil1641)


    Hi, i have one question about woocommerce shortcode. I want to embed woocommerce product category in page. Is there any shortcode for this to achieve this? or any file i.e “archive-product.php” etc so that woocommerce product categories will show on pages.
    Please guide me about this thing as soon as possible.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter adil1641

    (@adil1641)

    @lorro thank you for sharing this link. But I need a file where i will paste my custom html so that i will style the product categories that will show on page. For example for single product page, we make a folder named as woocommerce under theme section in which we make a file named as “content-single-product.php” in which we apply our custom html to override the plugin file. for category page, we did this with “archive-product.php”.
    I need a file in which i will apply custom html to override the plugin file. I hope you will understand my question.

    • This reply was modified 5 years, 3 months ago by adil1641.

    It doesn’t work like that. You’ll need some remove_action() calls to remove the elements you don’t want, and some add_action() calls to insert calls to your own functions instead. removes, adds and custom functions all go in functions.php for your child theme. The best advice is not to modify WooCommerce files. If you do so, you will not be able to update. Search for tutorials on hooks and actions. Start here:
    https://docs.woocommerce.com/document/introduction-to-hooks-actions-and-filters/

    Plugin Support con

    (@conschneider)

    Engineer

    Hi there,

    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 4 replies - 1 through 4 (of 4 total)
  • The topic ‘how to embed woocommerce product category in page’ is closed to new replies.