WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. dubzzdigital
    Member
    Posted 7 months ago #

    Hi
    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 } ?>

    http://wordpress.org/plugins/wp-e-commerce-style-email/

  2. Jacob Schwartz
    Member
    Plugin Author

    Posted 7 months 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?

    Cheers,

    Jacob

  3. dubzzdigital
    Member
    Posted 6 months ago #

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

  4. Jacob Schwartz
    Member
    Plugin Author

    Posted 6 months 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
    Member
    Posted 6 months 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.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags