Support » Plugin: PDF Thumbnails » Woocommerce PDF upload folder

  • Resolved Mikey B

    (@mikebackhouse)


    Hi, great plugin!

    When uploading a PDF via woocommerce as a downloadable product, the PDF goes to /uploads/woocommerce-uploads/ which prevents people finding the pdf and downloading it without creating an account.

    This however doesnt work with your plug. The thumbnail is blank.

    I know I could upload all the PDFs to the standard media folder, generate the thumbnails, move them all and add the product.. but that’s a massive faff! And I’m going to be adding a lot of them monthly/weekly/daily.

    Is there some way of hooking it into woocommerce? I’m never going to upload any PDFs to the site for anything other than woocommerce, so I’m happy to overwrite all defaults to this folder!

    https://wordpress.org/plugins/pdf-thumbnails/

Viewing 1 replies (of 1 total)
  • Plugin Author stianlik

    (@stianlik)

    Thanks!

    There are some hooks in the documentation. Unfortunately I don’t have any experience with WooCommerce and I did not find documentation on how they handle downloadable products.

    If you have the ID for an attachment, you can manually generate a thumbnail using:

    PdfThumbnailsPlugin::instance()->regenerateThumbnail($attachment_id);

    Note that this is not a part of the official API and may be changed in the future.

    If you find a useful hook, I’m happy to add integration code to the plugin as long as it is non-intrusive and does not deviate far from plugins main purpose.

Viewing 1 replies (of 1 total)
  • The topic ‘Woocommerce PDF upload folder’ is closed to new replies.