Ne01eX
Forum Replies Created
-
Thank you for your detailed explanation! I completely agree that changing URLs for already published and indexed products is a huge SEO risk.
However, there is one important detail about the pre-7.0 behavior: the old version did not change slugs for published products either. It only automatically regenerated the slug for newly duplicated drafts that contained
-copyor-kopirovatin their temporary URL. Once the product was published, the slug became stable.Since version 7.0 completely disabled this for drafts as well, it broke the standard duplication workflow for many WooCommerce stores.
To keep my workflow efficient and 100% safe for existing SEO, I have refined the workaround. This is the new code I am using now. It strictly targets only products that are copies and leaves all other stable URLs untouched:
// Safe automatic slug update only for duplicated WooCommerce products
add_filter('wp_unique_post_slug', 'secure_auto_update_copy_product_slug', 99, 6);
function secure_auto_update_copy_product_slug($slug, $post_ID, $post_status, $post_type, $post_parent, $original_slug) {
// Work strictly with WooCommerce products
if ($post_type === 'product') {
// Check if the current slug is a temporary copy slug
if (strpos($original_slug, 'copy') !== false || strpos($original_slug, 'kopirovat') !== false) {
$post = get_post($post_ID);
if ($post) {
// Force clean slug generation from the new title
$slug = sanitize_title($post->post_title);
}
}
}
return $slug;
}I am sharing this because maybe you could consider adding a similar conservative toggle in the future (e.g., “Regenerate slug on title change ONLY for drafts/copies”). This would preserve the safe default behavior for standard updates, but restore the quick workflow for merchants who clone products daily.
Thanks again for your great plugin and support!
To fix this temporarily, I had to add a custom workaround code to my
functions.php. It forces WordPress to regenerate the slug from the title upon saving WooCommerce products. Here is the code that fixes the issue for me:// Automatically regenerate clean product slug from title upon saving
add_filter('wp_unique_post_slug', 'pure_auto_update_product_slug', 10, 6);
function pure_auto_update_product_slug($slug, $post_ID, $post_status, $post_type, $post_parent, $original_slug) {
// Work only with WooCommerce products
if ($post_type === 'product') {
$post = get_post($post_ID);
if ($post) {
// Get the current product title that was just edited
$title = $post->post_title;
// Pass through standard WordPress sanitization (Cyr-To-Lat triggers here)
$slug = sanitize_title($title);
}
}
return $slug;
}Forum: Plugins
In reply to: [Redirection] The redirect is not canceledok, yay! I’ll look into it!
- So everything works as you explained!
- Thank you, I’m waiting!
There are several edits
- Param 1 Name (Static) displays the same as in Param 1 Value (Attribute).
It looks like this
<param name="high tech">high tech</param>
<param name="Cama">Cama</param>And it has
<param name="Style">high tech</param>
<param name="Manufacturer">Cama</param>- You need to make the param universal so that the same param can be added many times, and a unique attribute can be added to each param. Now it is possible to add up to 10 params. Personally, for my store I need 48.
I will explain using the example of furniture: a table has the same parameters, height, width, depth, material, color… In a sofa, some parameters coincide, for example, height, width, but there are also other parameters, upholstery, filling, the possibility of folding. Other furniture also has similar parameters, but there are also many unique parameters. In general, I have 48 such parameters on my site.
In the plugin you need to create all the parameters, and those that are empty, or the product does not have such a parameter, will not be included in the feed. I checked this, it works as it should!
Thank you for the great work and efficiency! I will test it!
Thank you very much! I look forward to the update!
<param> – these are user options (size, color, material…).
You can write it manually, and the feed will include param and what Lukmebel is in it. But I can’t get the name name=”Manufacturer” to also be included in the feed.<param name="Manufacturer">Lukmebel</param>- This reply was modified 6 months, 2 weeks ago by Ne01eX.
Maybe it’s in the plugin, but I don’t know how to enable it
Forum: Plugins
In reply to: [Currency per Product for WooCommerce] The price is displayed incorrectly.Yes, of course! Thank you for a great product!
Forum: Plugins
In reply to: [Currency per Product for WooCommerce] The price is displayed incorrectly.Technical support helped through the ticket system! The problem was solved very quickly! Thank you!
Forum: Plugins
In reply to: [YITH WooCommerce Wishlist] does not work until logged inI figured it out, the problem was the cache, I cleaned it and the button appeared.
I downloaded the old version and switched to it for now until the developers solve the problem.
https://github.com/yithemes/yith-woocommerce-wishlist/releasesI have the same problem after the update, how did you solve the problem?