Bulk Product Attachment Import/Export

This feature will assist you in importing the product attachments in bulk using either product SKUs or product IDs, giving you flexibility in how you identify your products during import.


Import Methods

You can import bulk product attachments using two different methods:

Method 1: Import by Product SKU (Default)

This is the default method that identifies products using their SKUs. Your products must have SKUs assigned for this method to work.

Method 2: Import by Product ID

This alternative method identifies products using their unique WooCommerce product IDs. This is useful when:

  • Products have the same SKUs assigned (Multilingual Products )
  • You prefer working with numerical IDs
  • You're integrating with systems that use product IDs

How to Enable Product ID Import

To use Product ID instead of SKU for importing attachments, you must add this filter to your theme's functions.php   file BEFORE uploading the CSV file:

add_filter( 'wcpoa_attachments_import_by_product_id', '__return_true' ); 

Note: You need to upload a CSV file only for import.

To add specific product bulk attachments, go to the "Bulk Attachment > Specific Product Bulk Attachments" section. Then, click on the "Bulk Product Attachment Import" button and select your CSV file.


Screenshot 1: (Admin: Upload CSV file to import attachments)

Download & analyze the example CSV file that is attached before uploading. To make it work, you must adhere to the format of your CSV file. Similar to this example file.


Download Sample CSV File:- Bulk-Product-Attachment-Import-Sample.csv


For Product ID-based Import:

Update the product SKU column with product IDs.


The new attachments will appear on the appropriate single product pages depending on the product SKUs or IDs, once you upload your CSV file to the bulk product attachment import.


Screenshot 2: (Admin: CSV file format)

Screenshot 3: (Front: New attachments on the single product page)


Export Product attachments


Screenshot 4: (Back: export attachment button)


Click the Export button to download a CSV file containing all product-assigned attachments.



Delete All Product Attachments


Screenshot 5: (Back: Delete all product attachments)



The Delete All Product Attachments feature allows store owners to remove all attachments associated with their WooCommerce products in bulk. This global option ensures that any file attachments linked to products are permanently deleted, helping maintain a clean and optimized store.


How It Works:

  • When you click, this option scans all WooCommerce products for the attached files.
  • Any attachments found will be permanently removed from the respective products.
  • This action cannot be undone, so proceed with caution.

Bulk CSV Import with External URLs and New Tab Options

The WooCommerce Product Attachment plugin supports advanced bulk import functionality that allows you to import attachments with external URLs, control link behavior, and automatically handle media files through CSV upload.

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