WP e-Commerce Style Email
Add image of product (linking to product details) and SKU to email (5 posts)

  1. dubzzdigital
    Posted 1 year ago #

    I want to include the product image (linking to product details) as well as the SKU - and all other transaction information - in the email.

    I have copied the relevant pieces of code from your template. I can see an image in the general email preview - but not in the email.

    Appreciate your help with this.

    <?php echo ecse_get_email_content(); ?>
    " style="color:#444444; text-decoration:none"><?php echo ECSE_purchase_product::get_the_SKU() ?>
    <?php $src=ECSE_purchase_product::get_the_image();
    if(!empty($src)) { ?>
    " style="border:none"><img src="<?php echo $src ?>" style="border:solid 1px #ccc" />
    <?php } ?>


  2. Jacob Schwartz
    Plugin Author

    Posted 1 year ago #

    Hi there,

    It looks like you're trying to put some of the content template into the wrapper template. Which template have you put that code in?



  3. dubzzdigital
    Posted 1 year ago #

    Hi Jacob,
    Thanks for your reply. Yes I put it into the wrapper template wpsc-email_style.php

  4. Jacob Schwartz
    Plugin Author

    Posted 1 year ago #

    Ah - yes, that would explain it. ECSE_purchase_product can only be used within a content template. The wrapper template doesn't have access to it.

    The logic is that the wrapper template applies to a lot of different kinds of emails (potentially every kind of email your site can send). The content templates are specific to the kinds of content they are templating. The ECSE_purchase_product class is only populated for content that is applicable.

    Does that make sense?

  5. dubzzdigital
    Posted 1 year ago #

    Hi, yes. Thank you. I managed to add to the code in the purchase-log-notification.class file to get the result I needed. Thanks again for your reply.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP e-Commerce Style Email
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic