pinterest-for-woocommerce icon indicating copy to clipboard operation
pinterest-for-woocommerce copied to clipboard

Bulk edit for Condition and Google category

Open ChristianAF opened this issue 3 years ago • 5 comments

User story

There are merchants that have more than 2000 products and they need to go and edit each product the condition and google category.

Is your feature request related to a problem?

https://wordpress.org/support/topic/way-to-set-default-product-condition/ https://wordpress.org/support/topic/will-pinterest-tag-work-with-a-catelog-that-i-have-activated-from-another-source/#post-15405267

Describe the solution you'd like

Bulk edit for Condition and Google category

Acceptance criteria

Bulk edit should be present and be able to edit "Condition" and "Google category" for several products at the same time

ChristianAF avatar Feb 25 '22 19:02 ChristianAF

https://ideas.woocommerce.com/forums/133476-woocommerce/suggestions/44848675-add-the-ability-to-bulk-update-fields-such-as-con

ChristianAF avatar Apr 27 '22 18:04 ChristianAF

@jconroy here is a bad review: https://wordpress.org/support/topic/not-a-happy-experience/ The second point is related to this issue. I think that is not the only Merchant that has lots of products, and they have to edit all of them 1 by 1. Would be great to have a bulk edit or as she mention, or kind of inherit from some other place. (think the bulk edit is the best one.

ChristianAF avatar Aug 25 '22 13:08 ChristianAF

Thanks for adding. We're designing an attribute mapping feature for a different product that we may be able to port here.

Bulk attribute editing etc. Is part of a larger refresh across Woo for product editing experience - not sure when we'd look at it.

Please keep collecting feedback here.

jconroy avatar Aug 26 '22 02:08 jconroy

Workaround while this feature is developed and deployed

Before running any queries, remember to backup your db: mysqldump -u yourdbuser -p yourdbpassword yourdbname > backup.sql

Set google_product_category to "Business & Industrial" for all products

INSERT INTO wp_postmeta (post_id, meta_key, meta_value) SELECT id, "_wc_pinterest_google_product_category", "Business & Industrial" FROM wp_posts WHERE post_type="product" AND post_status="publish" AND NOT EXISTS (SELECT 1 FROM wp_postmeta WHERE meta_key="_wc_pinterest_google_product_category" AND wp_posts.ID = wp_postmeta.post_id);

Set condition to "new" for all products

INSERT INTO wp_postmeta (post_id, meta_key, meta_value) SELECT id, "_wc_pinterest_condition", "new" FROM wp_posts WHERE post_type="product" AND post_status="publish" AND NOT EXISTS (SELECT 1 FROM wp_postmeta WHERE meta_key="_wc_pinterest_condition" AND wp_posts.ID = wp_postmeta.post_id);

Set condition to "new" for all product variations

INSERT INTO wp_postmeta (post_id, meta_key, meta_value) SELECT id, "_wc_pinterest_condition", "new" FROM wp_posts WHERE post_type="product_variation" AND post_status="publish" AND NOT EXISTS (SELECT 1 FROM wp_postmeta WHERE meta_key="_wc_pinterest_condition" AND wp_posts.ID = wp_postmeta.post_id);

obregon08 avatar Sep 14 '22 18:09 obregon08

zd-7090550

https://wordpress.org/support/topic/pinterest-bulk-editing/

Babylon1999 avatar Sep 29 '23 15:09 Babylon1999