Cart SFO
Properties
Field | Type | Comment/Sample |
---|
Methods
Method | Returns | Parameters | Parameter Types | Comments/Sample |
---|---|---|---|---|
|
|
|
| adds a coupon. True if successful. |
|
|
|
| adds an expiring coupon. True if successful |
|
|
|
| adds a pricing tier to the cart |
|
|
|
| deletes a specific coupon from the cart |
|
|
|
| deletes all coupons from the cart |
|
|
|
| returns all coupons associated with this cart. If uniqueCoupons is true, only a unique set is returned. |
|
|
| returns an array of all available cart currencies | |
|
|
| returns the cart currency | |
|
|
| returns the cart customer profile or null if there is not one. | |
|
|
|
| returns the custom field value |
|
|
|
| returns the custom field value |
|
|
|
| returns the custom field value |
|
|
|
| returns the custom field value |
|
|
|
| returns the custom field value |
|
|
|
| returns the custom field value |
|
|
|
| returns the custom field value |
|
|
|
| returns the count of items in the cart, as a string |
|
|
|
| returns the count of items in the cart, as a string, rounded up to the nearest int |
|
|
| gets an array of all items in the cart | |
getLanguageIsoCode() | string | none | none | gets the ISO 3-letter language code |
|
|
|
| returns all the pricing tiers allowed to assign |
|
|
| cart S&H as a BigDecimal | |
|
|
|
| cart S&H as a formatted string |
|
|
|
| cart S&H as a formatted string, in the cart currency |
|
|
|
| get the country code of the cart. If none specified, attempt to use geo location to find it. |
|
|
|
| get the country code of the cart. If none specified, attempt to use geo location to find it, if desired. |
|
|
|
| returns the ship to zip code, or an empty string if there is not one |
|
|
|
| returns the ship to state, or an empty string if there is not one |
|
|
|
| cart subtotal as a formatted string |
|
|
| cart subtotal as a BigDecimal | |
|
|
|
| cart subtotal as a formatted string, in the cart currency |
|
|
|
| cart tax as a formatted string |
|
|
| cart tax as a BigDecimal | |
|
|
|
| cart tax as a formatted string, in the cart currency |
|
|
|
| cart total as a formatted string |
|
|
| cart total as a BigDecimal | |
|
|
|
| cart total as a formatted string, in the cart currency |
|
|
|
| true if the cart is associated with the given pricing tier |
isLanguageIsoCode(string[] codes] | boolean | codes | string[] | true if the cart's language ISO code is one of the ones passed in via the array |
|
|
|
| returns true if the shopping cart has been locked to allow a merchant to provide a quote for it. |
|
|
|
| true if the cart has an active customer profile logged in |
isPurchasing(String itemId) | boolean | itemId | String | true if the cart contains the specified item id |
|
|
|
| true if the country code is european |
|
|
|
| sets the custom field indicated by the index position |
|
|
|
| sets the custom field 1 value |
|
|
|
| sets the custom field 2 value |
|
|
|
| sets the custom field 3 value |
|
|
|
| sets the custom field 4 value |
|
|
|
| sets the custom field 5 value |
|
|
|
| sets the custom field 6 value |
|
|
|
| sets the custom field 7 value |