WordPress.org

Support

Support » Plugins and Hacks » WP e-Commerce Style Email » [Resolved] [Plugin: WP e-Commerce Style Email] Admin Email notification

[Resolved] [Plugin: WP e-Commerce Style Email] Admin Email notification

  • Hey there! I love your plugin! I have a question though 😛

    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!

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

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

    @mightyturtle

    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.

    Plugin Author Jacob Schwartz

    @mightyturtle

    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!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] [Plugin: WP e-Commerce Style Email] Admin Email notification’ is closed to new replies.
Skip to toolbar