Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jacob Schwartz

    (@mightyturtle)

    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

    Thread Starter dubzzdigital

    (@dubzzdigital)

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

    Plugin Author Jacob Schwartz

    (@mightyturtle)

    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?

    Thread Starter dubzzdigital

    (@dubzzdigital)

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Add image of product (linking to product details) and SKU to email’ is closed to new replies.