• Resolved idnr1

    (@rm04)


    Hi,

    I have been testing your plugin and have been unable to get the images working inside the created pdf files. both product and logo image is not working. Reading threw the support topics didn’t resolve this issue.

    There is no cdn being used at all.

    What i tried so far;

    wpconfig.php
    define( 'WC_CART_PDF_THUMBNAIL_COMPATIBILITY', true ); (nothing changes)

    cart-table.php
    added echo esc_html( $thumbnail ) to view the used data which shows below code in the generated pdf. (i masked the main domain name for privacy concerns)

    <img width="300" height="300"
    src="https://test.****.nl/wp-content/uploads/2021/11/170180-balken-300x300.jpg"
    class="attachment-woocommerce_thumbnail size-woocommerce_thumbnail" alt="" width="60"
    height="auto"
    srcset="https://test.*****.nl/wp-content/uploads/2021/11/170180-balken-300x300.jpg 300w,
    https://test.*****.nl/wp-content/uploads/2021/11/170180-balken-100x100.jpg 100w,
    https://test.*****.nl/wp-content/uploads/2021/11/170180-balken-150x150.jpg 150w"
    sizes="(max-width: 300px) 100vw, 300px" />

    If u would like to view this on the staging site that should be possible after whitelisting an ip address.

    Thanks in advance

    • This topic was modified 2 years, 7 months ago by idnr1.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author David Jensen

    (@dkjensen)

    Hello

    Could you please email me at [email protected] and I will send you my IP address to be whitelisted?

    Thread Starter idnr1

    (@rm04)

    The images are retrieved threw the WAN address so make sure that is allowed.

    Great support btw

    I was wondering if this was fixed.
    I’m seeing the same problem.

    Adding define( ‘WC_CART_PDF_THUMBNAIL_COMPATIBILITY’, true ); to the wp-config did not fix it ??
    I’d love to hear if you found a fix.

    Plugin Author David Jensen

    (@dkjensen)

    @renewmyid Hello

    A few things to try:

    If there is a password to view the site such as basic auth, images will likely not display
    If there is a firewall, make sure to whitelist the server IP address itself
    Try disabling lazy loading
    Sometimes a CDN can interfere with the images loading

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘images not showing’ is closed to new replies.