Product validation not working in bulk edit

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WCFM – Ultimate Product validation not working in bulk edit

Viewing 3 reply threads
  • Author
    Posts
    • #104727
      bcans
      Participant

      1. Go to /store-manager/products
      2. Click “Add New”
      3. Enter a title for the new product
      4. Click on “Draft” at the bottom of the page
      5. Go back to /store-manager/products
      6. Click on the checkbox next to the new product draft
      7. Click on “Bulk Edit”
      8. Change “Status” to “Published”
      9. Click “Update”

      The product is successfully published despite not having required fields filled in (price, description, etc).
      Is there any way to enforce validation here? Having a similar issue for the CSV product import as well.

    • #105692
      WCFM Forum
      Keymaster

      Hi,

      Well, Bulk edit works differently than product normal edit.

      Suppose for price, bulk edit provide option to increase/decrease price by percent – https://ibb.co/TM1dZCq

      Now, what validation we will enforce here? It will not be right to enforce increase/decrease for bulk update!

      Thank You

    • #105695
      bcans
      Participant

      Now, what validation we will enforce here?

      Validation for required fields missing. Right now I can bulk edit multiple products that are drafts and publish them despite not having required fields (e.g. price, description, etc).

    • #106395
      WCFM Forum
      Keymaster

      Hi,

      Well, in that case add this line to your site –

      add_filter( 'wcfm_is_allow_bulk_edit_status_update', '__return_false' );

      Add this code to your child theme’s functions.php
      In case you do not have child theme then add code using this plugin –¬†https://wordpress.org/plugins/code-snippets/

      Now, vendors are allowed to bulk edit products, bot not allowed to change product status form there! So they will not able to publish products without going though validation.

      Thank You

Viewing 3 reply threads
  • You must be logged in to reply to this topic.