• Resolved N.g

    (@loralora)


    Thanks for the great plugin.

    I have problems with the code from your plugin support (link to the page on your site).

    Previously it was integrated into the email template. But recently it does not work.

    Please tell me if the code is still relevant?

    <?php if ( property_exists( $item_data, 'product' ) && is_a( $item_data->product, 'WC_Product' ) ) { $image = wp_get_attachment_image_src( get_post_thumbnail_id( $item_data->product->get_id() ), 'single-post-thumbnail' ); if ($image) { ?> <img src="<?php echo $image[0]; ?>"> <?php } } ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author pimwick

    (@pimwick)

    I ran a quick test and the code is still valid. Make sure that you have a picture set on the gift card product. There could be another plugin that is interfering with the image being displayed.

    Deactivate all plugins except for WooCommerce and our plugin. If this solves the problem, gradually activate your plugins one by one until you spot the problematic plugin and we can dig in further.

    Plugin Author pimwick

    (@pimwick)

    Due to inactivity I am marking this thread as resolved. Let us know if you still need assistance, thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.