Products imported with the name "Product"

Occasionally, when really strong caching is in place (specifically when hosted on WordPress.com), when products are imported into your WooCommerce store, they are imported with the name "Product" and a slug like "/product-4/".

Not super useful... But there's an easy fix.

Add the following code to your custom plugin:

add_action( 'dfrpswc_post_save_product', function ( Dfrpswc_Product_Update_Handler $update_handler ) {
   wp_cache_delete( $update_handler->wc_product->get_id(), 'posts' );
} );

After adding that code, Bump your Product Set and your products should be imported properly.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us