E-Commerce User Guide : Other setup scenarios : Settings for using the web service in detail : Using Sales screen action macros
 
Using Sales screen action macros
 
Sales screen action macros are processed by Sales running in web mode (Sales Host) provided the Sales screen action macro is inside <ISWEB></ISWEB> tags. Sales running in Classic mode ignores Sales screen action macros that are inside <ISWEB></ISWEB> tags. These Sales screen action macros are specified in the Sales Screen action to execute when this item is sold: field in the SysManager > Activities > DCIs > New/Edit > Sales Actions tab.
You can also use the Action to execute when this item is sold on the web: field on the SysManager > Activities > DCIs > New/Edit > Web tab to apply a special to an item sold through E-Commerce module. The macro SPECIAL() is used to apply the special. To get this to work you would enter: SPECIAL("WEBSET$5 ") into the Action to execute when this item is sold on the web: field and that special is then applied to the item when sold with the E-Commerce pages. This allows items to be configured at the “window” rate with a special applied that discounts down to the “web” rate. The web discounted rate is displayed within the ItemList.aspx, ItemShow.aspx (including multi-add configurations) and CartShow.aspx pages. Additionally, the CartShow.aspx page can be configured to display a total of all discounts.

Warning: The Sales screen action macro functionality when used with the E-Commerce pages are used with caution and are thoroughly tested before deployment.
 
Example:
One does not use the <ISWEB> functionality to change the price of an item or sale by applying a special (<ISWEB>SELECTLAST()SPECIAL("TESTSPEC ")</ISWEB>) because Sales Host processes and applies the Sales screen action macro after the sale has been completed in the Web pages. In this example, the online shopper would be charged full price for the item/sale, and then Sales Host would apply the special through the Sales screen action macro and a refund would be due to the online shopper. To apply a special, use the second method (described previously), which causes the discount to be taken directly by the web pages.

The Sales screen action macro functionality was added specifically to Sales Host to process the following type of Sales screen action macro: <ISWEB>SELECTLAST()MODIFYITEM ("TEST TEST TESTTIX1 ")MODIFYITEM("TEST TEST TESTTIX2 ")</ISWEB>, where a few $0 ticket items need to be added to the main item.
Other useful Sales screen action macros that can be used here include:
<ISWEB>SELECTLAST()FORCEFINALIZE()</ISWEB>, which selectively finalizes items in an E-Commerce sale that would otherwise be saved.
The WEBOVERRIDE() macro.
The RENEW() Sales screen action macro which, in E-Commerce module, can take only a guest number. This macro attaches a specified static guest number to an item when appropriately configured for that item. To use, enter <ISWEB>RENEW (guest_no) </ISWEB> and substitute the actual guest number for guest_no.
 
For more information on Sales screen action macros, see the Salesware Sales Screen Action Macro Commands document.