Hi. I'm dying here trying to get this to work: I read the other tickets that use wpv_filter_force_template to select different templates for a woocommerce archive page and it's not working for me. It doesn't appear to even run on the pages I need it on.
This is the code I'm trying to debug just to see why it doesn't work
***
add_filter( 'wpv_filter_force_template', 'func_assign_ct_dynamically', 10, 3 );
function func_assign_ct_dynamically( $template_selected, $post_id, $kind ) {
So this outputs the Hi2 and the url on regular pages. hidden link
It outputs both those and "Is product" an odd number of times on the product pages, like it runs three times there hidden link
But on the pages I am trying to actually use it on I can't see that it ever runs. hidden link hidden link
Those are category archive pages. I want to switch between templates I've built but the code doesn't ever appear to get called on those pages, how do I do this? Thanks.
I am able to create a single wordpress archive page and assign it to products in the toolset area, but that's not what I want, I want a top level one for the "shop" page and a couple different ones that I toggle between based on the category they pick.