Object objShoppingCartItem

From Snapp CMS Developer Documentation

Jump to: navigation, search

Item in the users Shopping Cart

Contents

Associated Objects

objCatalogProduct


Construction Configuration Options

Config Options Description
data : array (required)

Configuration Variables for Volume Discount Paramaters

  • id : int (required)
  • code : string (optional)
  • type : string (optional)
  • description or title : string (optional)
  • amount : float (optional)
  • purchase_amount : float (optional)
  • is_onetime : bool (optional)
cart_total : float (required) Current Total of Shopping Cart

Avaliable Variables

name Description
id : int Price Policy ID
code : string Pricing Policy Code
description : string Pricing Policy Description
amount : float
onetime : bool If this Promotional Code can only be used once
purchase_amount : float
rules : array List of Pricing Rules that apply to this Pricing Policy

Available Functions

amount()
Return the Volume Discount Amount
loadRules()
Load the Related Pricing Rules from the Database into the rules variable
check(cart_total)
Check if Volume Discount still Applies
Personal tools
Core Components
Standalone Installs