WooCommerce CSV files - wordpress

Have just finished adding all of my products onto woocommerce and have only just realized that my supplier has a CSV file available for the products.
Having never worked with CSV files before I am not sure if it is still worth importing this file or will this mess up the work I have already done? Now I have manually added all products and descriptions all I really need it for is to update current stock status.
Any ideas?
Thanks

What I would do is exporting your products from WooCommerce ( product listing ), compare and adjust this CSV sheet with your supplier's CSV sheet (Adding, removing, changing data) and then import the sheet back to WooCommerce

Related

WooCommerce Product Import not using Variation Products ID's

I'm using a CSV to update product pricing rather than using the WooCommerce UI. The product ID's are respected and will be skipped by the Importer. Product Variations on the other hand do not have their ID's respected and the system will create new versions of the variations whenever I run the importer. This could be a problem as I want the Importer to not generate new product variations if the user uploading the CSV forgets to tick "Update Existing Products".
I have tried using the CSV to create the variations and then backfilling their ID's into the CSV. This did not help and instead the system still created new Product Variations for each Variant
Update:
Turns out WooCommerce just seemingly ignores the ID column and relies entirely on each Variant having a unique SKU.
So I set-up an excel formula to generate a unique SKU for each product and now it works as expected.

Woocommerce Update All Product SKU

Is there any way to update all of my products SKU? I have a space in my SKU. Cant figure it out how to delete it from all. Its like "ABC 123". Thanks for help!
I would first try to export all products as .csv (On the "All Products" Page, there should be an export button next to the "add new" button.).
Add ID and SKU to the export columns and download the file -> Open the file in excel, mark the SKU column -> find and replace the space with nothing -> replace all, then save the file as .csv
Now you can upload the file via the Import button next to the add new button. Tick the "update product" checkbox.
Now the importer will check if the ID exists,and update the SKU accordingly (ideally this works, I have not tried this, it might fail because SKU is also checked).
Make sure to first try it with one product only, or alternatively on a staging site.
If that doesn't work, you could make a Python script to update the SKU via the woocommerce API (https://woocommerce.github.io/woocommerce-rest-api-docs/?python#products). If it's worth the effort in contrast to changing the sku manually depends on the amount of products you have of course.
A plugin that allows bulk editing of products could be a solution too.

How to include time in the date column of an export from the WordPress WP All Export Plugin

I am using WP All Export Plugin to export posts but I can't get it to export the Time part of the post date. My date column in the exported CSV file only contains the date. I have tried the following:
Changing the date format in Settings to d-m-Y H:i and exported but only the date part of the post is exported. How can I go about this? Feeling stuck at this point.
I noticed my CSV file was not formatted properly to accommodate the date and time

How to export WordPress comments with post informations

I need to export all the comments on a WordPress website but I also need to have the post title of the currrent comments being exported.
Surprisingly none of the popular WP plugins seems to offer this possiblity. How would you do that?
I was thinking working with 2 sheets in Excel as I am capable to export the comments in one CSV and my posts in an another, but it seems really complicated for my current need.
I was hoping exporting one CSV file only in which I would have automatically the comment's informations but also the related post's informations.
Thanks in advance.
You can export Wordpress comments with post informations in PhpMyAdmin.
This simple Query will be a good starting point:
SELECT DISTINCT wp_comments.comment_ID, wp_comments.comment_post_ID,
wp_comments.comment_author, wp_comments.comment_author_email,
wp_comments.comment_author_url,
wp_comments.comment_author_IP,wp_comments.comment_date,
wp_comments.comment_content, wp_posts.ID, wp_posts.post_title
FROM `wp_comments` INNER JOIN `wp_posts`
WHERE wp_comments.comment_post_ID = wp_posts.ID
Up to you then to select the columns you want to export.

How to import image link data to excel row

i have a big excel file with more than 1000 rows, each row is a product with it's SKU number and other product details.
I have all product images in a folder on the computer, each image name is the SKU number of the product.
I need to upload everything in woocommerce, my problem is that images are not associated to the products inside the excel file. Is there a way to dynamically/batch import the image name (with the .jpg suffix) to each row of the excel file?
Hope i was clear enough....
Thank you,
Michael

Resources