• Resolved Jouke

    (@joukeschotanus)


    Hello,

    I imported thousands of products from my supplier in my WooCommerce store. It also automatically generated the product tag with the supplier name in my store. I want to delete this product tag.

    However, last time when I deleted some product categories, it also deleted all the products in that category, instead of changing their category to ‘no category’ for example.

    My question now is: can I delete this product tag with my supplier’s name without deleting all the 5000 products in my store?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi,

    Yes, you can certainly delete the product tag associated with your supplier’s name without deleting the products themselves. Unlike product categories, deleting a product tag does not inherently delete the products that are tagged with it.

    Here’s how you can safely remove the product tag from your WooCommerce products without deleting the products:

    1. Backup Your Store:
      Before making any significant changes, it’s always a good practice to create a backup of your store. This ensures that you have a restore point in case anything goes wrong.
    2. Remove Product Tag:
      Go to Products > Tags in your WordPress admin dashboard. Find the product tag that corresponds to your supplier’s name and delete it. This action will only remove the tag itself, not the products.
    3. Replace Tag on Products:
      If you want to replace the supplier’s tag with another tag or simply remove it from the products, follow these steps:
    • Go to Products > All Products.
    • Use the built-in filters or search to display the products with the specific tag.
    • Select the products you want to update.
    • From the “Bulk Actions” dropdown, choose “Edit” and click “Apply.”
    • In the bulk edit options, find the “Tags” section and either remove the supplier’s tag or replace it with a different tag.
    1. Update Products:
      Click “Update” to apply the changes to the selected products. This will remove the supplier’s tag from these products.
    2. Verify and Test:
      After making the changes, verify that the products still exist and have the correct tags. Test the store’s functionality to ensure that the changes didn’t cause any issues.

    Remember that the steps outlined here should be approached carefully, especially when dealing with a large number of products. Always test changes on a small number of products first to make sure everything works as expected before applying them to all products.

    Additionally, consider reaching out to your supplier to understand if they have specific recommendations on managing their tags or if there’s a particular process they suggest for keeping your product data organized.

    Thread Starter Jouke

    (@joukeschotanus)

    Hello Owadud,

    Thank you for your reply. I also tried bulk editing products.

    For example, I needed to change the category of 200 products. But, the bulk editor doesn’t work. I need to manually change check and uncheck the category of every product every time. The bulk editor also doesn’t work when I try to change the product tag for multiple products at the same time, only one by one.

    Do you know why this doesn’t work and how to solve it? That saves me a lot of time.

    Thank you.

    Hi,

    Bulk operations can require more memory and time compared to single operations. Check your WordPress memory limit and execution time. You might need to increase these values if they are too low. You can do this by adding the following code to your wp-config.php file:

    define( 'WP_MEMORY_LIMIT', '256M' ); define( 'WP_MAX_MEMORY_LIMIT', '512M' );
    set_time_limit( 300 );

    Thread Starter Jouke

    (@joukeschotanus)

    Hi,

    I use Astra Pro theme. Do I need to insert this code in the normal Astra theme file or in my Astra child theme file? Because when I update the theme version this code will be gone then right?

    Also, I checked the PHP memory limit at Tools > site health > info > server. Here it says that my maximum PHP limit already is 2048M. Does this mean that this isn’t the problem that causes the bulk editor to not work?

    Thank you.

    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @joukeschotanus

    When you delete a product tag in WooCommerce, it removes the tag from all associated products, but it does not delete the products themselves. The products will still exist in your store, they will just no longer have that particular tag.

    So, in your case, if you delete the product tag with your supplier’s name, it will remove the tag from all 5000 products but will not delete the products themselves.

    I use Astra Pro theme. Do I need to insert this code in the normal Astra theme file or in my Astra child theme file? Because when I update the theme version this code will be gone then right?

    The code shared by @owadud655 need to add to your wp-config.php file, not the theme file. This file is located in the root directory of your WordPress installation and changes made here won’t be overwritten when you update your theme.

    Regarding your PHP memory limit, even though it’s set to 2048M (which is quite high), the issue might not be related to memory at all. It could be due to a plugin conflict. Try deactivating all plugins except WooCommerce and see if the bulk editor works. If it does, reactivate your plugins one by one until you find the one causing the issue. You can find a detailed explanation of conducting a conflict test here.

    Also, ensure that you are using the latest version of WooCommerce, as updates often contain fixes for such issues. If the problem persists, I recommend contacting your hosting provider. They may be able to provide server logs that could provide further insight into what’s causing the bulk editor to fail.

    Alternatively, you could use a plugin like Product Bulk Editor for WooCommerce, Bulk Table Editor or Bulk Edit Products, Prices, and Attributes. These plugins provide the fastest and easy way to edit all the products in bulk in just a single click.

    I hope this information is helpful. If you have any further questions, please feel free to ask.

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can you delete product tag without deleting the products?’ is closed to new replies.