Home Forums WoodMart support forum Wishlist: promotional email does not work

Wishlist: promotional email does not work

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #696917

    b.brenner
    Participant

    Hello, I’ve been trying to set up a promotional email for a product on my wishlist. Sending a test email worked perfectly. However, after clicking “Create Promotion” (Dashboard → Products → Wish Lists → Popular Products → Create Promotion), I haven’t received the email.
    Thanks!

    #696918

    b.brenner
    Participant

    Sorry! It is working … it was just taking very long…
    But: the image in the mail is too small. How can I change it to 70x70px like in all the other mails?
    I left the code in the html field like this:
    {product_image}

    In the other emails that are created by the php templates this is working well:
    <?php echo $email->get_product_image_html( $product, array( ’70’, ’70’ ), array( ‘class’ => ‘xts-thumb’ ) ); // phpcs:ignore. ?>

    Thanks!

    #696957

    Hello,

    These emails have default layouts that come from: woodmart/woocommerce/emails/

    Best Regards,

    #696996

    b.brenner
    Participant

    I have this issue only in the wishlist promotional email. This email can be edited in a html field and a text field and not in the template.

    I tried this html to increase the size of the image to 70px but it doesn´t work.:


    <span style=”display:inline-block; width:70px; height:70px;”>
    {product_image}
    </span>

    Output: Product image

    I think an image of 30px size is useless, nobody can see anything on it. Why is this so small? Please tell me where I can change this.

    #697000

    b.brenner
    Participant

    Hi,
    I found in this file
    …/wp-content/themes/woodmart/inc/integrations/woocommerce/modules/wishlist/emails/class-promotional-email.php:
    $image_size = apply_filters( ‘woodmart_promotional_email_thumbnail_item_size’, array( 32, 32 ) );
    and I changed it to array( 70, 70 ). The thumbnail in the email has the right size now.

    I added the snippet to the functions.php:
    add_filter( ‘woodmart_promotional_email_thumbnail_item_size’, function( $size ) {
    return array(70, 70); // neue Größe
    });
    it seems to work fine.
    Thanks for helping

    #697026

    Hello,

    Great work tracking that down, and thank you for sharing the solution!

    Yes — the promotional wishlist email uses its own internal thumbnail size.

    Glad to hear everything is working as expected now!

    Feel free to write back anytime. If you need further assistance, we are always here to help you.

    Thanks for contacting us.
    Have a great day.

    Topic Closed.
    Best Regards.

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

The topic ‘Wishlist: promotional email does not work’ is closed to new replies.