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.
Release Notes
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.
New Commands:
Json_Stringify: Converts ANY structured Miva data or array in a JSON string. This allows you to easily transform and transmit Merchant data to your JavaScript applications. This makes dynamic AJAX applications much easier to integrate into your store. Json_Stringify is the opposite of Json_Parse.
Json_Parse: Converts a JSON data string into structured Miva data or arrays making it accessible to your page template. This allows you to easily transform JavaScript data in your page templates making dynamic AJAX applications much easier to integrate into your store. Json_Parse is the opposite of Json_Stringify.
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.
Json_Parse_Call: Combines the two commands Json_Call and Json_Parse into a single command. When given the URL to a JSON data source it retrieves the source, converts it and returns structured Miva data or arrays making it accessible to your page template. This allows you to easily receive and transform JavaScript data in your page templates making dynamic AJAX applications much easier to integrate into your store. Json_Parse is the opposite of Json_Stringify.
* 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.
New Functions:
JSON Functions:
Json_Stringify(l.all_settings:mivadata)
Json_Call(g.URL_string)
Json_Parse(g.Json_String, verbose) Note: verbose enables debugging mode.
Json_Parse_Call(g.URL_string, verbose) Note: verbose enables debugging mode.
Trig Functions:
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.
With Toolbelt your can develop robust AJAX applications much more easily.
Release Notes
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.
New Commands:
Json_Stringify: Converts ANY structured Miva data or array in a JSON string. This allows you to easily transform and transmit Merchant data to your JavaScript applications. This makes dynamic AJAX applications much easier to integrate into your store. Json_Stringify is the opposite of Json_Parse.
Json_Parse: Converts a JSON data string into structured Miva data or arrays making it accessible to your page template. This allows you to easily transform JavaScript data in your page templates making dynamic AJAX applications much easier to integrate into your store. Json_Parse is the opposite of Json_Stringify.
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.
Json_Parse_Call: Combines the two commands Json_Call and Json_Parse into a single command. When given the URL to a JSON data source it retrieves the source, converts it and returns structured Miva data or arrays making it accessible to your page template. This allows you to easily receive and transform JavaScript data in your page templates making dynamic AJAX applications much easier to integrate into your store. Json_Parse is the opposite of Json_Stringify.
* 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.
New Functions:
JSON Functions:
Json_Stringify(l.all_settings:mivadata)
Json_Call(g.URL_string)
Json_Parse(g.Json_String, verbose) Note: verbose enables debugging mode.
Json_Parse_Call(g.URL_string, verbose) Note: verbose enables debugging mode.
Trig Functions:
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.
Comment