Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Analytics › deleted products
- This topic has 12 replies, 2 voices, and was last updated 5 years, 5 months ago by sdel_nevo.
- AuthorPosts
- June 27, 2019 at 4:12 pm #70042sdel_nevoParticipant
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
- June 29, 2019 at 4:48 pm #70258WCFM ForumMember
We will take care of this.
- June 29, 2019 at 4:49 pm #70259sdel_nevoParticipant
Hi Guys
that’s brilliant,
would it also be possible to delete all images associated with the product as well?
Steve
- July 1, 2019 at 3:14 pm #70579WCFM ForumMember
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
- July 1, 2019 at 3:32 pm #70587sdel_nevoParticipant
Hi Guys
thats fab š
many thanks
Steve
- July 2, 2019 at 5:39 am #70639sdel_nevoParticipant
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
- July 4, 2019 at 6:01 am #70951WCFM ForumMember
HI,
Yeah this code is right.
Please be sure, you have deleted that product or it’s in “Trash” still now!
Thank You
- July 4, 2019 at 6:14 am #70956sdel_nevoParticipant
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
- July 5, 2019 at 5:42 am #71126WCFM ForumMember
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
- July 5, 2019 at 5:28 pm #71214sdel_nevoParticipant
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
- July 5, 2019 at 8:17 pm #71246sdel_nevoParticipant
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
- July 6, 2019 at 9:33 am #71298WCFM ForumMember
No issue, take your time and enjoy your holiday š
- July 9, 2019 at 11:52 am #71700sdel_nevoParticipant
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
- AuthorPosts
- The topic ‘deleted products’ is closed to new replies.