deleted products

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!

Viewing 12 reply threads
  • Author
    Posts
    • #70042
      sdel_nevo
      Participant

      Hi Guys

      if a vendor deletes a product it creates a problem with the analytics charts.

      if a vendor deletes a product, can you also delete this product from the pie chart showing your most viewed products

      Steve

    • #70258
      WCFM Forum
      Member

      We will take care of this.

    • #70259
      sdel_nevo
      Participant

      Hi Guys

      that’s brilliant,

      would it also be possible to delete all images associated with the product as well?

      Steve

    • #70579
      WCFM Forum
      Member

      Hi,

      Please add this code to –

      add_filter( 'wcfm_is_allow_delete_post_media', '__return_true' );

      It will delete associated images if product delete.

      Thank You

    • #70587
      sdel_nevo
      Participant

      Hi Guys

      thats fab šŸ™‚

      many thanks

      Steve

    • #70639
      sdel_nevo
      Participant

      Hi Guys

      I added

      add_filter( ‘wcfm_is_allow_delete_post_media’, ‘__return_true’ );

      to my functions file and created a test product with multiple images, when I deleted this product, the product images were still shown in the media list, they were not deleted.

      Have I put this code in the correct place

      Steve

    • #70951
      WCFM Forum
      Member

      HI,

      Yeah this code is right.

      Please be sure, you have deleted that product or it’s in “Trash” still now!

      Thank You

    • #70956
      sdel_nevo
      Participant

      Hi Guys

      oh, I get what you mean now, the image is deleted when the site admin empties the product trash.

      that works šŸ™‚

      is it possible to remove the images when the vendor deletes there own products, os the site admin does not need to do this

      Stev

    • #71126
      WCFM Forum
      Member

      HI,

      OK, then please add this code –

      add_filter( 'wcfm_is_allow_product_delete', '__return_true' );

      It will directly delete products, not being trashed!

      Thank You

    • #71214
      sdel_nevo
      Participant

      Hi guys

      Sorry for the late reply, Iā€™m away for area days and will rest as soon as Iā€™m back and update you

      Steve

    • #71246
      sdel_nevo
      Participant

      Hi guys

      God that was supposed to say

      Iā€™m away for a few days, and will text when Iā€™m back and update you

      How I hate predictive text lol

      Steve

    • #71298
      WCFM Forum
      Member

      No issue, take your time and enjoy your holiday šŸ™‚

    • #71700
      sdel_nevo
      Participant

      Hi Guys

      I have added this

      //Delete Product Images If Vendor Deletes A Product
      add_filter( ‘wcfm_is_allow_delete_post_media’, ‘__return_true’ );
      add_filter( ‘wcfm_is_allow_product_delete’, ‘__return_true’ );

      to my functions file and it works brilliantly

      many thanks

      Steve

Viewing 12 reply threads
  • The topic ‘deleted products’ is closed to new replies.