WP e-Commerce Style Email
[resolved] Admin Email notification (3 posts)

  1. Everlast00
    Posted 3 years ago #

    Hey there! I love your plugin! I have a question though :P

    I finally figured out how to style the email that gets send to the admin/merchant.

    I just made a file called: wpsc-email_style_purchase_report.php and put everything in that. Like:

    echo ecse_get_the_totals();
    echo ecse_get_the_addresses();

    This all works fine, but it doesnt see the product row (echo ecse_get_the_product_list();). Nor when I just copy/paste the code from wpsc-email_content_part-product_row.php. That's just empty. How do I get the products the user bought in the admin email?

    TY in advance!


  2. Jacob Schwartz
    Plugin Author

    Posted 3 years ago #

    Hi there!

    If you're talking about the current WP repository release of the plugin, content templating isn't supported - only "wrapper" templating, with some minimal intelligence.

    If you're talking about the development version of the plugin over at Schwambell, it includes a set of sample theme files to get your started.

    Note that there is a distinction between the "wrapper" templates, which have the template heirarchy but can't access purchase details, and the content templates. I suspect that you're confusing the two, because wpsc-email_style_purchase_report.php is a wrapper template file. Using that file in the hierarchy allows you to style the admin report differently, but it doesn't give you access to the purchase details. You just use ecse_get_email_content() to dump the content into the wrapper.

    In the development release of content templating, only the customer receipts get template support; Admin emails will be coming soon.

    Is this all too confusing? If so, I may need to simplify things.

  3. Jacob Schwartz
    Plugin Author

    Posted 3 years ago #

    I'll assume that answered your question. I've sent v0.6 of the plugin live to the WP repository. Thanks for using my plugin!

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


No tags yet.