• Hello,
    Customers can not download the the files from their emails.
    Can you help please?

    Here is a part of email source code:

    <section class="woocommerce-attachment-details"><h2 class="woocommerce-order-details__title" style='color: #ac9e61; display: block; font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif; font-size: 18px; font-weight: bold; line-height: 130%; margin: 0 0 18px; text-align: left;'>Product Attachment</h2>
    <h3 class="wcpoa_attachment_name" style='color: #ac9e61; display: block; font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif; font-size: 16px; font-weight: bold; line-height: 130%; margin: 16px 0 8px; text-align: left;'>Instructions EN</h3>
    <a target="_blank" href="?attachment_id=6168&download_file=5e1941a01e9ff&wcpoa_attachment_order_id=6261&is_mail_file=1" rel="nofollow noopener noreferrer">Download</a><p class="wcpoa_attachment_desc" style="padding: 8px 0px; margin: 0 0 16px;"></p>
    <h3 class="wcpoa_attachment_name" style='color: #ac9e61; display: block; font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif; font-size: 16px; font-weight: bold; line-height: 130%; margin: 16px 0 8px; text-align: left;'>Instructions FR</h3>
    <a target="_blank" href="?attachment_id=6170&download_file=5e1941c51ea00&wcpoa_attachment_order_id=6261&is_mail_file=1" rel="nofollow noopener noreferrer">Download</a><p class="wcpoa_attachment_desc" style="padding: 8px 0px; margin: 0 0 16px;"></p></section><table id="addresses" cellspacing="0" cellpadding="0" border="0" style="width: 100%; vertical-align: top; margin-bottom: 40px; padding: 0;"><tr>
    <td valign="top" width="50%" style="padding: 0; text-align: left; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; border: 0;">
    • This topic was modified 4 years, 10 months ago by Jan Dembowski.
Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter aliserge

    (@aliserge)

    It’s not clickable from email

    Plugin Author Dotstore

    (@dots)

    Hello @aliserge,

    Thanks for reaching out to us.

    I have reviewed your given code and see that the URL of the site is missing.

    This type of issue might become if you are using the subdomain for your site.

    Can you please review it at your side and it would be good that you can provide us if any attachment or PDF related plugin installed.

    Are you getting any error logs? Or please send us a report of installed plugins with version.

    Let us know still you have any queries.

    Thanks,

    Thread Starter aliserge

    (@aliserge)

    Hi,
    Yes it’s a subdomain: https://store.naturalook.ca/
    I have “WooCommerce PDF Invoices & Packing Slips” plugin installed.
    I didn’t see any error logs.

    Thank you

    Plugin Author Dotstore

    (@dots)

    Hello @aliserge,

    Thanks for your reply.

    We are looking for a subdomain possibility.

    Let us know you are using the plugin related to PDF Invoice is free or Pro and which version?

    So, we can troubleshoot with the same version and update you for the same.

    Thanks,

    Thread Starter aliserge

    (@aliserge)

    WooCommerce PDF Invoices & Packing Slips – Free
    Version 2.4.3 | By Ewout Fernhout

    Thank you

    Plugin Author Dotstore

    (@dots)

    Hello @aliserge,

    Thanks for the update.

    We will download this free version and update you for the same.

    Thanks,

    Plugin Author Dotstore

    (@dots)

    Hello @aliserge,

    I hope you are doing well.

    I have troubleshot and found that if you are using any custom theme layout then, the default gets product URL might be not displayed there and the URL might be displayed as blank.

    I have found out one solution given below.
    Path: “plugins\woo-product-attachment\admin\class-woocommerce-product-attachment-admin.php”

    From:
    $wcpoa_file_url_btn = '<a class="wcpoa_attachmentbtn" target="_blank" href="' . esc_url( get_permalink() . esc_attr( $wcpoa_attachment_url_arg ) . 'attachment_id=' . esc_attr( $attachment_id ) . '&download_file=' . esc_attr( $wcpoa_attachments_id ) . '&_wpnonce=' . esc_attr( $nonce ) ) . '" rel="nofollow">' . esc_html__( "Download", 'woocommerce-product-attachment' ) . '</a>';

    To:
    $wcpoa_file_url_btn = '<a class="wcpoa_attachmentbtn" target="_blank" href="' . esc_url( get_permalink(get_the_ID()) . esc_attr( $wcpoa_attachment_url_arg ) . 'attachment_id=' . esc_attr( $attachment_id ) . '&download_file=' . esc_attr( $wcpoa_attachments_id ) . '&_wpnonce=' . esc_attr( $nonce ) ) . '" rel="nofollow">' . esc_html__( "Download", 'woocommerce-product-attachment' ) . '</a>';

    The change is:

    From: esc_url( get_permalink()
    To: esc_url( get_permalink(get_the_ID())

    Please make the above changes and let me know it works for you or not.

    We also working on this type of few queries and we release our new release on next.

    Thanks,

    Thread Starter aliserge

    (@aliserge)

    No, didn’t work for me.
    I can forward the order email to you if you want to take a look

    Thread Starter aliserge

    (@aliserge)

    Actually it’s not working with “New Order” email, but when I cancel the order I receive an email “Order Cancelled” and from there the link is clickable.

    Tried many times always same result:

    “New Order” email – Not clickable
    “Order Cancelled” email – clickable

    Thread Starter aliserge

    (@aliserge)

    Oh, I see
    “New Order” email comming with “WooCommerce PDF Invoices & Packing Slips” PDF file and “Order Cancelled” isn’t.

    Plugin Author Dotstore

    (@dots)

    Okay, @aliserge,

    Thank you so much for your reply and troubleshoot the query. ??

    Yes, that might be the reason that you can’t be getting the link working.

    So, can you please try by deactivating that “WooCommerce PDF Invoices & Packing Slips” plugin and let us know the link working properly or not get we can get the exact reason.

    Let me know still if any we are happy to help.

    Thanks,

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Link doesn’t work in emails’ is closed to new replies.