Great thanks for the update, would be useful to other Woocommerce users too 🙂 Hope to get that problem solved in a forthcoming update.
Thanks
This reply has been marked as private.
AnonymousInactive
Thanks for the help!
My fix for the time being is to simply create a new archive-product.php in the theme root with this:
<?php
add_filter('body_class','my_class_names');
function my_class_names($classes) {
// add 'class-name' to the $classes array
$classes[] = 'woocommerce';
// return the $classes array
return $classes;
}
include 'woocommerce/archive-product.php';
?>
i should note that my_class_names() is an unrelated fix 😉
AnonymousInactive
I’m trying to use the template override when searching my woocommerce products.
The woocommerce templates are usually stored in ‘theme/woocommerce/archive-product.php’, but when entering ‘woocommerce/archive-product.php’ as custom template in the search form config, the slash is stripped so it becomes ‘woocommercearchive-product.php’.
Moving archive-product.php to the themes root folder seems to work, but then I have 2 template files serving the same prupose… Any other options?
AnonymousInactive
This reply has been marked as private.
AnonymousInactive
Ross,
I have the search working now with ajax. Thanks for your help.
Now i just need to sort the paginations top and/or bottom. They don’t update with the search??
And also the lists don’t update with available products or hide the empty selections?
Any ideas? Thanks for your help so far.
AnonymousInactive
OH OK. I think so. I will have a play around and let you know how it goes.
So I need to make the product archive template the same as the products page!
I will get back to you and let you know the results. Thanks for the help.
This reply has been marked as private.
This reply has been marked as private.