New Landing How can we help? Themeforest Theme Support Dante WooCommerce (.jpg) Digital Product Upload Creates 14 Unnecessary Files

Viewing 3 posts - 1 through 3 (of 3 total)
  • Posted in: Dante
  • #178006
    Brookebot
    Member
    Post count: 112

    I am selling digital & downloadable files in .jpg, .png, .gif formats. When I create a new WooCommerce product and upload a new digital file on the product edit screen, the Dante theme creates 14 additional images. Now, I understand why these images are created for regular post or page uploads via the media library because I understand multiple sizes are needed for the theme to display images properly. On the other hand, this process is completely unnecessary for WooCommerce digital product uploads. WooCommerce uploads will never be displayed by the theme & all files that are uploaded to the WooCommerce uploads folder are meant only for download after payment.

    In order to keep my file system clean and efficient, I have to go in and delete each extra image individually. Eventually I figured out how to create a filter via FTP in order to select all 14 extra images created for each product uploaded. So every time I create a new product with a digital download w/ image file type (.jpg, .png, .gif), I have to go in and delete 14 useless images. See attached image for an example of the filter I created for FTP extra image deletion of .jpg format. You should be able to tell which files are unnecessary because the size of images created by the theme are attached to the file name.

    Is there a piece of code that I can stick in my functions.php or better yet, can you provide a fix in the next update for everyone so that extra files for .jpg, .png, .gif, etc. will not be created if they are uploaded via the WooCommerce uploads folder?

    Thank you so much for your time and effort! I appreciate you and your work!
    Brooke

    Attachments:
    You must be logged in to view attached files.
    #178025
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    the developer of theme will assist you shortly.
    Thanks
    Mohammad

    #178145
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi Brooke,

    I’ve looked into this, but this is something that WordPress controls via the Media Library. As far as I’m aware or have found from my research, there isn’t any way to stop this happening for WooCommerce product images. I’ll keep an eye out for anything that may be a solution for the future.

    – Ed

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register