Miva Merchant Community Forums
Toolbelt does JSON. Version 5.42 Major Release
We're excited to announce the latest version of PCI Net Toolbelt directly supports JSON to Miva data conversions.
With Toolbelt your can develop robust AJAX applications much more easily.
What is Toolbelt:
Toolbelt dramatically extends the Miva Merchant 5 page templates, making ALL of the underlying Miva Script functions directly available plus adding HUNDREDS of new commands. With Toolbelt, page templates becomes a robust web development environment. Finally you can have the ability to create the pages you've always dreamed of. Included page template files show many fully commented, real world examples of how you can easily customize your pages to do things that once required external modules.
The exhaustive indexed documentation is the second to none.
Json_Call: Returns a JSON string when given the URL to a JSON data source. For example many APIs like Google Maps, return JSON coded data.
Click to see Miva Merchants San Diego address data in Google Maps. Toolbelt not only retreives this information, it can convert it for use in your page templates.
* All of the JSON commands are also directly available as functions.
Export: Directly exports a miva merchant data array that you specify into a delimited flat file. The file can be saved to either the secure mivadata folder or to the website. You may optionally sort the data on any field before exporting.
Import: Directly loads a flat file into a miva merchant data array. The file can be loaded from either the secure mivadata folder or from the website. You may optionally sort the import file on any field. Sorted fields can be searched instantly with the SearchArray command.
Product_Meta: Loads the product keyword and description meta data.
Array_FromList: Given a delimited string, converts the list directly into miva data array. User specified delimiter.
Json_Parse(g.Json_String, verbose) Note: verbose enables debugging mode.
Json_Parse_Call(g.URL_string, verbose) Note: verbose enables debugging mode.
Arccos() Working substitute for broken MivaScript command acos(). Bug reported 2/9/2012.
Degrees(radians) Converts degrees to radians. All Miva Script trig functions accept radians
Radians(degrees) Converts radians to degrees
Just because I hate the extra typing:
da() Short cut function for decodeattribute(string)
ea() Short cut function for encodeattribute(string)
de() Short cut function for decodeentities(string)
ee() Short cut function for encodeentities(string)
Toolbelt 5.42 is available now at pcinet.com, mvtrocks.com and mivacentral.com.
Last edited by RayYates; 04-11-12 at 01:39 PM.
Re: Toolbelt does JSON. Version 5.42 Major Release
Just wanted to say I was excited about this development. I"m using in our store to get info from several sources.
The most people would think about is wordpress and display wordpress content inside the miva store. I'm even using jquery to animate the headlines of the wordpress news articles that we grab using JSON.
The second use.. i have redone the order history screen to show current shipping statuses. We don't use our store admin for processing orders as we do that inside our warehouse, so the data doesn't exist inside of miva merchant. But our order processing system does push the data out to the web. Now with JSON from miva merchant, we can use that data and display it to our miva shoppers. Since we do partial shipments sometimes, this works out great. We are displaying per item status and tracking numbers inside our customers order history details.
It works great.