Skip to content

Instantly share code, notes, and snippets.

@steveosoule
Last active September 25, 2018 23:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steveosoule/7947736d5052b00f4d8dc28ef37b3945 to your computer and use it in GitHub Desktop.
Save steveosoule/7947736d5052b00f4d8dc28ef37b3945 to your computer and use it in GitHub Desktop.
Miva - Basket/Order Item Price Descriptions

Single-Item Values

  • item:base_price = Product's Price Before Discounts
  • item:price = Product's Price With Discounts
  • item:quantity = Quantity Of Product That Is Purchased

Quantity-Based Values

  • item:subtotal = item:price × item:quantity
  • item:subtotal_base_price = item:base_price × item:quantity
  • item:subtotal_comprehensive = item:subtotal + (sum Of The item:options[]:subtotals)

Unsure

  • item:retail = Same As item:base_price???
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment