Woocommerce get shop template and display custom product loop

1. I want to load shop template with my function. I researched the documentation and questions but still i can’t find the name of product archive. I was trying:

wc_get_template(‘product-archive’);

wc_get_template(‘product_archive’);

but it doesn’t work. I can’t find anywhere the name of this template.

2. After loading the template i want to pass custom loop to it. Like display only these products where their _my_meta_key = “value” or only these product that their id was passed.

I’d appreciate for any help provided.

Read more here:: Woocommerce get shop template and display custom product loop

Leave a Reply

Your email address will not be published. Required fields are marked *