view_cart.vm
Form Legend
→ form field
→ submit button
Most of the boolean flags below are dictacted by Merchant Properties. These were seldom used flags created to allow merchants non-standard cart behavior during a time when they had limited control of the web design. With the introduction of the StoreFronts, these properties and flags aren't necessary. Now, if a merchant wishes non-standard cart behavior, he or she may edit the template as desired. The standard themes created by UltraCart will still contain references to these flags and properties to ensure they are backward compatible with long time customers who upgrade from a legacy cart to StoreFronts. If you are designing a new theme for personal use, you may wish to streamline and omit support for these conditionals all together. If you are designing a theme for general use, should you support these flags and merchant properties? Probably not worth the headache.
$form variables for template view_cart.vm
Name | Type | Formal Syntax | Form Data? | Required on Post? | Comments/Sample Usage |
|---|---|---|---|---|---|
|
|
|
|
|
|
|
|
|
|
| same as showChangeCurrency. Use showChangeCurrency instead. |
|
|
|
|
| deprecated. and misspelled too.
|
|
|
|
|
|
|
|
|
|
| submit button. if non-null, this parameter signals the UltraCart engine that the payment method is Amazon Payments | |
|
|
|
|
| amazon merchant id |
|
|
|
|
| this is populated by the amazon payments and must be present and valid if |
|
|
|
|
| if true, the amazon address book should load and display |
|
|
|
|
| script url for the "Pay with Amazon" button. Example:
|
|
|
|
| submit button. if non-null, instructs the engine to apply a supplied affiliate id | |
|
|
|
| submit button. if non-null, instructs the engine to apply a coupon | |
|
|
|
| submit button. rarely used. If non-null, instructs the engine to apply a referral code | |
|
|
|
|
| This is a rarely used Merchant Property that, when present and true, should render out the ability to close the window. This flag means that the cart was opened in another window already. For example:
and later in the page:
|
|
|
|
| submit button. if non-null, the cart engine examines the currencyCode parameter and changes the cart currency to it. | |
|
|
|
|
| if present and true, open the checkout in a new window. This value, rarely used, is a Merchant Property to allow merchants to open the checkout in a new window. |
|
|
|
|
| the url of the checkout, if a custom url is used. |
|
|
|
|
| if true, one or more items are pre-ordered items. this flag is used to display a pre-order message somewhere prominent on the screen. |
|
|
|
| input submit button. if this is non-null, the shopping experience is redirected back to the catalog page. | |
|
|
|
|
| a coupon to be added to the cart |
|
|
|
|
| This is static text for creating the "Enter Coupons" label. Over the years, there seems to be a huge amount of customization over the years for coupons. "Enter Coupon" vs. "Enter Coupons" vs. "Enter Coupon Code". So, this field will contain the value from the constant "checkout.viewcart.couponCodeText", "coupon code" |
|
|
|
|
| Used to show the total number of coupons. For example, "5 Coupons" would need a plural version of the word 'coupon', whatever language that may be. |
|
|
|
|
| Used to show the total number of coupons. For example, "1 Coupon" would need a singular version of the word 'coupon', whatever language that may be. |
| Coupon |
|
|
|
|
|
|
|
|
| The currency or target currency code. |
|
|
|
|
| example: USD |
|
|
|
|
| example: $ |
|
|
|
|
| the email address of the customer |
|
|
|
|
| |
|
|
|
|
| If true, the checkout is immedatiatly finalized. |
|
|
|
|
| formatted values are a string representation of the decimal value, complete with currency symbol, periods, and commas |
|
|
|
|
| formatted values are a string representation of the decimal value, complete with currency symbol, periods, and commas |
|
|
|
|
| formatted values are a string representation of the decimal value, complete with currency symbol, periods, and commas |
|
|
|
|
| formatted values are a string representation of the decimal value, complete with currency symbol, periods, and commas |
|
|
|
|
| if true, the free promotional item is added to the cart. |
|
|
|
|
| confirmation boolean |
|
|
|
|
| Some merchants wish to include a free promotional item (configured on the back end). this html presents that offer to the customer. |
|
|
|
|
|
|
|
|
|
|
| if true, do not show quantity |
|
|
|
|
| if true, do not link the item images to their view urls |
|
|
|
|
| if true, any options that do not yet have a What are qualifiers? The original name of options. 20 years is a long, long time. |
|
|
|
|
|
|
|
|
|
|
| see Message, see info_messages.vm |
| CartItem |
|
|
|
|
|
|
|
|
| if true, do not allow item quantities to be edited |
|
|
|
|
| if true, do not allow any edits on items (no deletions) |
|
|
|
|