Home Forums WC Vendors Pro Support Vendors can't delete Gallery images

NOTICE: We've Moved to a Ticket System for Support

As of August 31, 2017 (12am EST) our support forums will be retired (read-only), and we will be moving to a support ticket system.  This will allow us to better organize and answer support requests, and provide a more personalized experience as we assist our customers.

For the time being, we will leave our forums open for reading and learning while we work on creating a more robust Knowledge Base for everyone to use.

If you are a WC Vendors Pro customer please open a support ticket here. 

If you are a WC Vendors user please open a support ticket on the Wordpress.org forums.

The information on this forum is outdated and in most instances no longer relevant. Please be sure to check our documentation for the most up to date information.

https://docs.wcvendors.com/

Thank you to all of our customers!

 

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #13750
    Karen Thomas
    Participant

    Hi Ben and Jamie,

    Vendors are asking how they can remove Gallery images if needed, as there isn’t the little cross in the corner that we had in wp-admin:

    Many thanks,

    Karen

    #13761
    WC Vendors Support
    Participant

    Easy! They can’t. I know this sounds like an option you may want. But then just wait till vendors delete the wrong image and you get a bunch of broken images on your site. It’s hell. 🙂

    #13788
    Karen Thomas
    Participant

    But they’d only delete their own gallery image from their listing not from the media file, so not sure how that would break any images. It’s a function they had in the old screens and never caused any issue. So not sure I understand sorry??

    #13819
    WC Vendors Support
    Participant

    If you edit the Vendor role (with a third party plugin like User Role Editor) you can assign the Vendor role the capability “delete_posts”. This will allow them to delete media library items. I would again raise the concern over vendors now being able to delete their own product images while not on a product page and potentially making your site look broken-imaged. But, you’ve been warned, so keep an eye on that. 🙂

    #13831
    David Hatcher
    Participant

    I just noticed this as well (using version 1.0.5).

    The problem is deleting the gallery images on the front end product page and not in the media library pop up window.

    When you first add the gallery images the thumbnails have the “li class” of “wcv-gallery-image”.
    If you then hover over a thumb there is a red cross in the top right corner where you can delete the image from the product gallery:
    http://goo.gl/cSNVfO

    However after the product changes are saved the gallery thumbnails are displayed with the “li class” of “image”.
    The image thumbs are then bigger and there is no red cross on hover, so you cant delete the images from the product gallery:
    http://goo.gl/B7C5PH

    I fixed it by doing the following:
    On line 627 of this file: /wp-content/plugins/wc-vendors-pro/public/class-wcvendors-pro-form-helper.php

    it reads:
    echo ‘<li class=”image” data-attachment_id=”‘ . $attachment_id . ‘”>’;

    change to:
    echo ‘<li class=”wcv-gallery-image” data-attachment_id=”‘ . $attachment_id . ‘”>’;

    It seems to work OK then.

    #13894
    WC Vendors Support
    Participant

    Aah, good catch, thanks. 🙂

    #13939
    Karen Thomas
    Participant

    Thanks so much @saturn015 🙂

Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘WC Vendors Pro Support’ is closed to new topics and replies.