woocommmerce is used to create campaigns by the WP Crowdfunding plugin (https://www.ads-software.com/support/plugin/wp-crowdfunding/)
Most of it works as it should.
However, the ‘hidden’ feature (as well as the other options on the Catalog visibility menu, don’t seem to work at all.
The developers of the WP Crowdfunding plugin say the problem lies with Woocommerce:
am sorry but we don’t have any snippets or code for this and as all crowdfunding list as a product so this is part of woocommerce you can try to contact their support I hope they can help you better in this use case.
Is that so? can you help?
Many thanks,
J
I’ve tried to keep a campaign hidden from public view and have used the visibility function available in the Crowdfunding product/ campaign.
It doesn’t seem to work.
Can you please advise as to how t hide it.
Many thanks,
J
Been trying to hide the Uncategorized category from view.
Tried the following code in Funtion.php but it doesn’t work as i think it addresses woocommerce but not WP Crowdfunding
code used from here
”
add_filter( 'get_terms', 'ts_get_subcategory_terms', 10, 3 );
function ts_get_subcategory_terms( $terms, $taxonomies, $args ) {
$new_terms = array();
// if it is a product category and on the shop page
if ( in_array( 'product_cat', $taxonomies ) && ! is_admin() &&is_shop() ) {
foreach( $terms as $key => $term ) {
if ( !in_array( $term->slug, array( 'uncategorised' ) ) ) { //pass the slug name here
$new_terms[] = $term;
}}
$terms = $new_terms;
}
return $terms;
}
Can you send me the code to do it?
Thanks
]]>I looked through the code snippets for tweaking the output of the sitemap on the page above, but I didn’t see any easy way to remove just hidden products from the sitemap.
Until I find something better, I’m using the following to remove my hidden products from the sitemap using the product IDs:
// Exclude hidden products from the sitemap.
add_filter('wp_sitemaps_posts_query_args', function( $args, $post_type ) {
if ( 'product' !== $post_type ) {
return $args;
}
$args['post__not_in'] = isset( $args['post__not_in'] ) ? $args['post__not_in'] : array();
array_push($args['post__not_in'], 12176, 9504, 9500, 9496, 9492, 9489, 9486, 9483, 9478, 9473, 9467, 9450, 9443, 9436);
return $args;
}, 10, 2);
I created a bug ticket about the issue, but in the meantime, does anyone have a better workaround to eliminate hidden products from the sitemap? I’d rather not have to use the IDs.
]]>we would like to use WooCommerce in the scenario described below and would like to know if this is possible:
– We have a website with a configurator in which our customer can design an individual product
– We would like to handle the buying/paying process via WooCommerce
– The individual product which the customer has created is only visible for him
Can we achieve this with WooCommerce? I took a look at the rest api from WooCommerce and found the following:
– It is possible to create products via rest api -> So we can create the product our customer made in the configurator
– I found no hint if I can make the product only visible for him
If somebody can give me a few hints were to look or if this scenario is possible I would be very thankful.
Greetings
Mike
If i go in the product manager and change it in hidden then i put it visible again the store shows the product rightly.
I’ve tried to export an xml file of the product before and after this move, but it looks identical.
Someone has any idea?
]]>Only by changing it in “quick edit mode” on admin product list page it takes my modifyes “published in catalog and research ” – but if I try to change it from product page edit as soon as I upgrade it returns to “hidden”.
May I have inadvertently touched something in the configuration that I put products in a “hidden mode” by default ?
I hope someone can give me information about it because having to enter hundreds of products would be really a break editing them manually in “quick edit ” to make them visible (because every time I make any other changes eg . Price, attribute, description and upgrade , I put him back “hidden ” ) .
Thank you for your time.
https://www.ads-software.com/plugins/woocommerce/
]]>https://www.ads-software.com/plugins/woocommerce/
]]>https://www.ads-software.com/plugins/woocommerce/
]]>