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 Callbacks

Much of the power of cornershop is its support for callback scripts - scripts that override default behaviour. Callbacks tailor cornershops behaviour for one or more websites.

Baskets are implemented as members of a distinct and separate mainresponder membership group, and shared baskets is just shared membership. The cornershop membership group is a table which is found in the permanent plugin data table of the website that owns the baskets. A typical address might be

myFirstSiteManilaWebsite.["#plugins"].data.cornerShop.newbaskets.callbacks

Callbacks are activated by placing a replacement script in the table called callbacks of the cornershop basket membership group. It is convenient and permitted to place other scripts in that folder, partly because shopFitter treats it as a single entity of configuration.

The script names allowed are

showItems(lang=nil)

Produces a display of the contents of the basket.

showHistory(lang=nil)

addItem(adrSite, adrBasket)

processedOrderRSVP(pta, adrBasketInfo)

linkToOneProduct

getBasketTableAddress