• Resolved redpupmedia

    (@redpupmedia)


    Hello.

    Great plugin! Very useful.

    We need to apply these price changes on a few hundred products, each with 60+ variations. Is there a method to call the Woocommerce ‘Set regular price’ or ‘Set sale price’ functions on all products’ variations with out editing each product in the WP admin?

    We are importing products and their variations (via WP All Import). If we can run a script on import or after import, that would save us even more time that this plugin already is.

    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter redpupmedia

    (@redpupmedia)

    Is there a method to use the Woocommerce filter woocommerce_product_variation_get_regular_price or something similar?

    Thank you.

    Plugin Author Mark Tomlinson

    (@marktomlinson)

    Thanks.

    To your first question; I’m not familiar with any method of running the bulk edit functions via an API or some such so that you can run it during import. That may be a question for the WooCommerce forums.

    I can tell you that Markup-by-Attribute uses the price that is entered via the JScript dialog box when you run ‘Set regular|sale price’ — which adds another layer of complexity to your question. Additionally, if you are importing the attributes as well, you’d have to find some method of adding the markup during the import of the attributes but before the products are imported.

    I’m going to assume it’s not possible.

    Regarding your second question, I’m not entirely sure what you mean. You may be suggesting applying the markup on the get_regular_price function. Instead, I opted to apply the markup during the woocommerce_bulk_edit_variations hook so the price will be correct on the database.

    I can see where in your situation if the markup value changes you will not want to run through hundreds of products to reset the prices and reapply the markup. But, at least, you won’t have to run through every variation individually.

    Sorry I couldn’t be more help.

    Thread Starter redpupmedia

    (@redpupmedia)

    Thanks Mark.

    I appreciate the info. We’ll poke around some and see if we can customize what we need.

    No need to apologize. Markup-by-Attribute is, in itself, a huge time saver and I believe your notes will help us.

    Thank you.

    Plugin Author Mark Tomlinson

    (@marktomlinson)

    Thanks again. I’m going to mark this resolved.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Bulk…bulk set regular prices’ is closed to new replies.