space Baylys
Just practicing to pass the Turing test.
space
space
space
space
Developer for Hire!
space
addedValues Plugin
space

Home

What's new

Bayly.Root

Cornershop Plugin

space

Installing Cornershop

Configuring Cornershop

The Cornershop Macros

Cornershop RPChandlers

The Forex Plugin

The ShopFitter Plugin

Building a Shop with Metadata

Reference Sites and Links

Affiliates

callbacks

Career

edutools Root

Enhancements

Interests

linguist Plugin

Manila

Patches

Patches by Group

Papers

Sales

Sign My Guestbook

User(land) Relations.

Contact Address

Search Baylys

urlchains

space
Join Now
Login
space space space

Cornershop RPChandlers

The Cornershop plugin offers 4 RPC entry points. There are designed with the needs of the shopFitter plugin in mind. The caller must provide the username and password of a Managing Editor to be permitted access to these functions.

Configuration Table

Two scripts provide for getting and setting values of configuration variable.

getConfigurationValues (sitename, username, password)

Returns a table of values of the configuration parameters.

setConfigurationValues (sitename, username, password, configTbl)

Sets the value of configuration parameters from the table configTbl. You need only insert values you wish to change in the table parameter.

Basket Callback Table.

Much of cornershops power comes from its support for callbacks. These 2 entry points allow retrieval of the whole table and to overwrite some or all of the scripts in the callback table for a shop.

getbasketCallbackTable (sitename, username, password)

returns a copy of the callback table for the shop used by sitename.

setbasketCallbackTable (sitename, username, password, callbackTbl, flOverWrite=false)

Stores table entries (of any kind) from callbackTbl into the shops callback table.

If flOverwrite is true, existing entries are overwritten regardless, if false a timestamp comparison is done and an existing entry is only overwritten by a newer version. Care must be taken when updating across different timezones.

Returns number of entries overwritten.