Detailed instructions for use are in the User's Guide.
[. . . ] macromedia
®
DRUMBEAT 2000 eCOMMERCE EDITION
TM
Users Guide
Trademarks Macromedia, the Macromedia logo, the Made With Macromedia logo, Authorware, Backstage, Director, Extreme 3D, and Fontographer are registered trademarks, and Afterburner, AppletAce, Authorware Interactive Studio, Backstage, Backstage Designer, Backstage Desktop Studio, Backstage Enterprise Studio, Backstage Internet Studio, DECK II, Director Multimedia Studio, Doc Around the Clock, Drumbeat, Extreme 3D, Flash, FreeHand, FreeHand Graphics Studio, Lingo, Macromedia xRes, MAGIC, Power Applets, Priority Access, SoundEdit, ShockRave, Shockmachine, Shockwave, Showcase, Tools to Power Your Ideas and Xtra are trademarks of Macromedia, Inc. Other product names, logos, designs, titles, words or phrases mentioned within this publication may be trademarks, servicemarks, or tradenames of Macromedia, Inc. or other entities and may be registered in certain jurisdictions. MAKES NO WARRANTIES, EITHER EXPRESS OR IMPLIED, REGARDING THE ENCLOSED COMPUTER SOFTWARE PACKAGE, ITS MERCHANTABILITY OR ITS FITNESS FOR ANY PARTICULAR PURPOSE. [. . . ] Does not include weight tracking or line-item discount handling. ShoppingCart_WeightTracking. csv: Includes the weight-related columns so you can do weight-based shipping. ShoppingCart_Discounts_NoWeight. csv: Includes the columns needed to handle line-item discounts without the weight-related columns. ShoppingCart_Discounts_WithWeight. csv: Includes columns for discounts and weight to enable both line-item discounts and weight-based shipping.
Setting Up Shopping Cart Adjustments
The Shopping Cart SmartElement saves the adjustment information in an array (block of information) of name-value pairs. Of the pair, the name is the name you give to the adjustment in Drumbeat, and the value represents the actual adjustment amount. The array is shown in a order summary area. This area informs shoppers of charges and order information. The Shopping Cart adjustment is calculated differently depending on the type of adjustment. If the adjustment is a flat-rate fee or discount, the adjustment is added or subtracted from the sub-total price. If the adjustment is a percentage, the adjustment is multiplied to find the adjustment total, and then either added or subtracted from the sub-total price.
136
Chapter 7
Setting Up Adjustments for Total Weight, Quantity or Purchase
You can add sub-total adjustments to the page by applying activations on the Shopping Cart. When you apply activations on the Shopping Cart SmartElement, you can set up the adjustment on such order attributes as, weight, quantity, or sub-total.
1
In Drumbeat, open the shopping page. This page has the Shopping Cart SmartElement in the Basement and the Shopping Cart Display SmartElement on the page. To learn how to set up the Shopping Cart page, see Chapter 3 Adding Products to the Shopping Cart.
Merchandising
137
2
In the Basement, right click the Shopping Cart SmartElement and choose Possible Activations.
3
From the possible activations, in the eStore Adjustments category double click: Add [flat-value] adjustment [type] to [ShoppingCart] if [data] exceeds [threshold] In the parameters dialog, set the adjustment parameters. See below for parameter descriptions.
4
138
Chapter 7
Parameter Description:
Parameter AdjustmentName AdjustmentType Comparison Data Percentage Threshold Description Enter a name for the adjustment. Select the type of adjustment: fee or discount. Select how you want the order data compared to the threshold: >= and <=. Select which shopping cart data to use when comparing against the threshold value: total weight, purchase or quantity. The percentage value used to calculate the adjustment. Enter a minimum requirement for the adjustment to take effect.
This activation calculates the adjustment as a percentage or fee to the Shopping Cart's subtotal. A related contract is available to apply flat adjustments in this manner. Note that these adjustments are global to the order and are not relevant to specific line-items in the shopping cart. Additional contracts are available to provide discounts at the line-item level.
Ordering Page Interactions
Order-level adjustments need to be determined based on the Shopping Cart data, therefore, the activations to calculate adjustments must come after any update activations/interactions are applied.
To view assigned interactions on an element: 1 2
Select the element, right click and select Assigned Interactions (ordered). [. . . ] For example, if you have business locations in California and Nevada, you would enter "CA, NV" for this parameter. TaxCol is the name of the column in the TaxRS that contains the tax rate for a given state. TaxStateCol is the name of the column in the TaxRS that contains the state. Participants: CustomerRS is the recordset containing customer info including the billing state TaxRS is the recordset containing a list of states and corresponding sales tax rates ShoppingCart
CyberCash SmartElement Reference
233
Replace [token] in [target] with value of sales tax from [ShoppingCart] Replaces a token in a text element, edit box, or hidden form element with the value of the shopping cart's sales tax property. [. . . ]