I'm editing my content-product.php file in my child theme, because i want to create custom woocommerce loops.
For now, i've put everything in a big
if ( is_woocommerce() );. With an else with my own code inside.
The problem is that now, if i use the shortcode
[best_selling], or every other woocommerce shortcode in a page, i get the same (wrong) layout.
So i just need to check which shortcode is calling my template.
Example: As i said, i have a if ( is_woocommerce() ); condition.
If the page is woocommerce, it will show the default template.
Then there is an else, so every other page loads the 2nd template.
I want to check which shortcode is beign used to load that template, so i can do something like:
switch (shortcode_used) case 'single_product': code case 'best_selling' code
Thank you in advance. -Kryuko