Jacob Schwartz
Forum Replies Created
-
Awesome! I look forward to it.
Forum: Plugins
In reply to: [WP e-Commerce Style Email] Insert user IDWould this work for you?
Tech support from AWS tried to reproduce the issue but apparently could not. I’m glad there’s someone else out there experiencing it besides me!
Out of curiosity, what AMI did you base your fresh EC2 instance on?
Hi,
The order pending template corresponds to the WP E-commerce order status notification for order received with payment pending. Here’s the documentation on the Getshopped site:
https://docs.getshopped.org/documentation/sales/You don’t need to do anything to make the template work. When WPEC sends that email, my plugin will theme it.
Jacob
Forum: Plugins
In reply to: [WP e-Commerce Style Email] Trying to add my own functio to the plugin?Hi,
I appreciate your enthusiasm for your project, but I’d recommend not putting your custom code inside my plugin. The main reason is that when I do updates to my plugin, you’ll need to re-integrate your code every time.
Jacob
Forum: Plugins
In reply to: [WP e-Commerce Style Email] Warning message during preview?I don’t recommend trying to use the template tags meant for my templates in your functions file. They are really only meant to be used within the context of those templates. There’s a whole process I’m using behind the scenes to make those tags work in a specific way.
What I would recommend is, create your own data structure to represent the data you need. It could be as simple as a multi-dimensional array or as complex as a class-based object. In my templates, fill that data structure. Use a global or static variable to store it. When it comes time to use your data, it’ll be available.
You may be able to get my tags to work with some fiddling, but since I’m not providing them as an API outside of my templates you don’t have any guarantee that they will continue to work as you need when I push updates.
Does that make sense?
Forum: Plugins
In reply to: [WP e-Commerce Style Email] Warning message during preview?Hi,
The warning that you see on the preview page can be ignored – it won’t affect the normal running of your site or the plugin. At some point, WordPress started producing these warnings and as DDT notes, it’s not a difficult thing to fix in my plugin, but I just haven’t gotten around to it yet. I do want to stress that the warning is not a cause for alarm at all in this situation – it’s a misdirected warning in this case. It is meant to inform developers when they are doing something other than what I am doing.
Now, with regards to DDT’s other questions…
The [email content as generated] is not a shortcode. It is just a placeholder to show you where normal email content will sit within the themed email.
My plugin does provide template tags for use in the templates, and it does provide for templating purchase results within the purchase result content templates. Content tags are not available in any of the style templates. Does that answer #3?
With regards to generating a PDF attachment, you could put some PHP in the content template that captures the information you need and passes it to your attachment generator for use after my plugin is done. The templating process in my plugin occurs within the wp_mail action – so I suspect that you could hook into wp_mail after my plugin, pick up the variables you captured in my templates, and use them however you wish. Does that makes sense?
Hi, thanks for letting me know. I’ll check into it. Can you confirm which templates don’t work any more? Does the general style wrapper work?
Forum: Plugins
In reply to: [WP e-Commerce Style Email] How to style product list for admin emails?It’s definitely on my list for the next release – but I’m a little over-committed for the near future so I can’t promise a timeline.
Cheers,
Jacob
Forum: Plugins
In reply to: [WP e-Commerce Style Email] How to style product list for admin emails?Hi,
Thanks for using my plugin – and thanks for looking through the other threads!
You are correct, the plugin currently only provides for consumer content templating. Wrapper templates can be different for all email types though.
Cheers,
Jacob
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?
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
Forum: Plugins
In reply to: [HC Custom WP-Admin URL] Can't loginThat session variable is set and it’s value is true.
Forum: Plugins
In reply to: [HC Custom WP-Admin URL] Can't loginThat’s an interesting approach. I guess I could do a session dump then, to see what’s set. What should I look for?
Forum: Plugins
In reply to: [WP e-Commerce Style Email] Receipt emails as spamHi,
It sounds like this is a SPAM related question. Which means that the emails are sending and it’s a matter of reputation management to make sure they get delivered to inboxes. To clarify, sending HTML emails does mean that your emails are given more scrutiny by SPAM filters. But with some work, you should be able to get this working (it’s beyond the scope of my plugin though, because it also involves sending IP addresses and domain settings, among other things). Does that make sense with what you’re seeing? If so, I can provide some tips on improving the deliverability of your emails.
Cheers,
Jacob