Describe the bug
Page template setting (Inside the WP Edit Page screen) works for every page except the one specified in Woocommerce Shop page settings (under Woocommerce -> Settings -> Products -> Shop page).
In case I wish to use a different template for product category archive and shop archive I cannot....
Catch every redirect to the shop page made by Woocommerce providing the "real" shop page
add_filter( 'woocommerce_return_to_shop_redirect', 'custom_return_to_shop_redirect' );
function custom_return_to_shop_redirect( $redirect ) {
$redirect = 'https://<LINK TO THE REAL SHOP PAGE>';
return $redirect;
}
Describe the bug Page template setting (Inside the WP Edit Page screen) works for every page except the one specified in Woocommerce Shop page settings (under Woocommerce -> Settings -> Products -> Shop page).
In case I wish to use a different template for product category archive and shop archive I cannot....
A link to a Sandbox site where the bug has been reproduced: https://oxygen-qysr7ldac3wwl.oxygen-demo.qsandbox.org/shop/
Workaround