Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 6    Views: 63

Golfba11
Apple Fan
Profile
Posts: 95
Reg: Feb 21, 2013
Belllingham
950
03/31/14 10:27 PM (10 years ago)

JSON Snippet for email customization

HI, Can someone give me a JSON snippet that will allow me to pre-fill both the subject, email address of receiver, and main body of email? Thanks I tried a snippet from an old forum but it didn't work. Thanks again=)
 
Dusko
Veteran developer
Profile
Posts: 998
Reg: Oct 13, 2012
Beograd
22,680
like
04/01/14 02:54 AM (10 years ago)
Fill in the data in the plugin, then go to JSON Data in the main menu and find the plugin data there. Carefully copy that piece of code and that's it (if I understood your question correctly, that is).
 
Golfba11
Apple Fan
Profile
Posts: 95
Reg: Feb 21, 2013
Belllingham
950
like
04/01/14 10:45 AM (10 years ago)
I did that.... And I get an error message: Picture of clouded phone "Plugin Not Found? View controller error" I made sure to compile the project with the JSON Snippet plugin and I made sure it was inside the Xcode project
 
Golfba11
Apple Fan
Profile
Posts: 95
Reg: Feb 21, 2013
Belllingham
950
like
04/01/14 10:46 AM (10 years ago)
{"itemId":"33251463142D6E86F3F6011", "itemType":"BT_sendEmail", "itemNickname":"Regular Milk Chocolate White Chocolate Place Order", "emailToAddress":"[email protected]", "emailSubject":"COOKEAZ Online Order"} This is the exact JSON snippet from "Send Email" plugin... When I copied this into the JSON Snippet plugin, it would nt work.... as I just stated
 
Dusko
Veteran developer
Profile
Posts: 998
Reg: Oct 13, 2012
Beograd
22,680
like
04/01/14 11:16 AM (10 years ago)
Perhaps you should contact the creator of that plugin, directly.
 
Stobe
buzztouch Evangelist
Profile
Posts: 1528
Reg: Mar 04, 2011
Fredericksburg,...
24,680
like
04/01/14 05:27 PM (10 years ago)
The JSON snippet keeper doesn't require a plugin to be compiled in the core, but it doesn't hurt anything either. I don't think it has anything to do with the JSON. It might be the way the core handles the BT_sendEmail now. It used to be a separate class in 2.0, now it's just baked into the core. It certainly looks like it should work, but I believe you that it's not. I'll look into it.
 
Stobe
buzztouch Evangelist
Profile
Posts: 1528
Reg: Mar 04, 2011
Fredericksburg,...
24,680
like
04/01/14 07:54 PM (10 years ago)
I found your problem (I think). It looks like your itemId above does not match the itemId of the JSON snippet screen. When you look at the plugin page, you'll see the itemId of the JSON snippet listed above the text box in bold. Copy and paste that in place of the itemId you have above, and it should work. If that's the case, it wasn't a missing plugin that was being reported, it was likely a missing itemId when you navigated to that screen.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.