|
Baylys Just practicing to pass the Turing test. |
||||||||||||||||||
|
Cornershop CallbacksMuch 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 |
|||||||||||||||||