24/7 Support - 800.608.6482

Miva Merchant Community Forums

Thread: Toolbelt does JSON. Version 5.42 Major Release

  1. #1
    Join Date
    Dec 2006
    Location
    Florida
    Posts
    1,206

    Default 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.

    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.
    Last edited by RayYates; 04-11-12 at 02:39 PM.
    Ray Yates
    "If I have seen further, it is by standing on the shoulders of giants."
    --- Sir Isaac Newton
    PCINet: http://www.pcinet.com/
    Toolbelt: http://www.pcinet.com/miva-modules/ry_toolbelt.html
    Toolbelt Documentation: http://www.pcinet.com/docs/toolbelt_docs.html
    Miva Script: http://www.MivaScript.com/

  2. #2
    Join Date
    Jun 2008
    Posts
    1,114

    Default Re: Toolbelt does JSON. Version 5.42 Major Release

    Ray,
    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.

    Thanks!
    It works great.

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •