Jacob Schwartz
Forum Replies Created
-
Forum: Reviews
In reply to: [WP e-Commerce Style Email] Superb serviceThanks for contacting me. I’m glad I was able to help – please do contact me with any further queries in the future!
Forum: Plugins
In reply to: [WP e-Commerce Style Email] Tax not showing up in recieptAnd thank you for contacting me. I’m glad I was able to help!
Just so others can make use of this comment thread: WP e-Commerce has a series of options under the “tax” tab of the store settings. If the store is set to include tax in product prices, WPEC will not itemize tax in checkout. This is because WPEC automatically adds any itemized tax to the total.
The issue here was including tax in product prices, while also itemizing the total tax included. The solution was to calculate the included tax based on a given rate applied to the total. The calculated amount was templated into the purchase receipt email.
Cheers,
Jacob
Forum: Plugins
In reply to: [WP e-Commerce Style Email] Tax not showing up in recieptBy all means – I’m happy to look at your website for you, if you’re comfortable with that. Email me the details. jacob (at) schwambell (dot) com
Jacob
Hi there,
The date of purchase is a purchase property – you can access it the same as any other purchase property, like purchase ID.
Cheers,
Jacob
Forum: Plugins
In reply to: [WP e-Commerce Style Email] Tax not showing up in recieptHi there,
Just to rule out the obvious, in the testing you’ve done do your purchases have tax set? (ie. the tax total isn’t $0)
Cheers,
Jacob
Forum: Plugins
In reply to: [WP e-Commerce Style Email] How to show custom field in email?Matteo,
Yep, that’s right – always plan for fields not being filled. If a field’s value is not available, the function will return false. So the correct test would be
if(empty())
Best,
Jacob
Forum: Plugins
In reply to: [WP e-Commerce Style Email] How to show custom field in email?Hi Matteo,
Are you saying that this worked for you? Or that you need help with it?
Regards,
Jacob
Thanks for reporting these. I’ll address them in the next release.
Here are some ways you can deal with them:
1.
wpsc_get_region()
This converts from the numeric state to the name, and it’s how I convert the shipping state in my plugin.2.
Use PHP to test whether the placeholder text is present.Cheers.
Forum: Plugins
In reply to: [WP e-Commerce Style Email] Templating the admin emailsThis is fixed in version 0.6.2, which I just released into the WP.org repository.
Hi there,
bobeedesign – were you able to determine whether my plugin was causing the issue?
Jacob
Forum: Plugins
In reply to: [WP e-Commerce Style Email] Changin Email SubjectsHi there,
Sorry I didn’t reply here when I replied to your email. I need to check these forums more often, unfortunately WP.org hasn’t been emailing me notifications…
It is possible to change email subjects in WordPress, but it’s not something that either WP e-Commerce or my plugin are made to do. WPEC allows you to change some subjects in the settings section, but others are hard coded. And my plugin won’t detect the hard-coded ones as their specific types if you change them manually in the WPEC code.
What you could do is, hook into the wp_mail filter – if you know how to do that (it’s how my plugin works). As usual, I’m happy to provide a quote for that kind of work.
Cheers,
Jacob
Forum: Plugins
In reply to: [WP e-Commerce Style Email] How to show custom field in email?Hi there,
The ECSE_purchase class can pull checkout data by name, unique name, or ID. It can be used from within any of the content templates (not the wrapper templates).
So Mr Oudin, give this a go:
<?php echo ECSE_purchase::get_the_checkout_prop('Business Name','name') ?>
Of course, it will only pull the last field with that name, which might not work for you if you’ve got 2 identically named fields. You could also use the checkout field ID’s like so:
<?php echo ECSE_purchase::get_the_checkout_prop('<your-field-ID>','id') ?>
Unfortunately WP e-Commerce doesn’t allow you to set your own unique names for fields. If that feature ever becomes available, you’ll have a better way to query for fields.
If you want to get an idea of what data is available, and how it’s organized, try this:
<pre><?php print_r( ECSE_purchase::get_the_checkout_prop() ) ?></pre>
Forum: Plugins
In reply to: [WP e-Commerce Style Email] Templating the admin emailsHi,
This appears to be happening only on the latest version of WPEC (3.8.9), caused by some changes made to the hard coded subject-line of purchase reports (WPEC pre-3.8.9 does not cause this problem). I’ll have a fix onto the repository soon!
Thanks,
Jacob
Just a quick note to say that this issue has been dealt with in v0.6 of the plugin, just released to the WP repository.
Regards,
Jacob
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!