Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

getShippingLastNamegetShippingPostalCode getShippingPostalCodegetShippingState getShippingState getSubtotalDiscountgetSubtotalDiscountAsBigDecimal getSubtotalDiscountAsBigDecimal string getTextFormatreturns the entire order is a huge fixed with text string. Use within <pre> tags getTotalAsBigDecimal 

Method

Signature

Comments/Sample

getBillingAddress1

string getBillingAddress1()

 

getBillingAddress2

string getBillingAddress2()

 

getBillingCity

string getBillingCity()

 

getBillingCompany

string getBillingCompany()

 

getBillingCountry

string getBillingCountry()

 

getBillingCountry3LetterCode

string getBillingCountry3LetterCode()

 

getBillingFirstName

string getBillingFirstName()

 

getBillingLastName

string getBillingLastName()

 

getBillingPostalCode

string getBillingPostalCode()

 

getBillingState

string getBillingState()

 

getBuysafeCostBigDecimal getBuysafeCost() 
getBuysafeCostFormattedstring getBuysafeCostFormatted() 
getBuysafeRefundedBigDecimal  getBuysafeRefunded() 
getBuysafeRefundedFormattedstring getBuysafeRefundedFormatted() 

getCouponCodes

string[ ] getCouponCodes()

 

getCreationDate

Date getCreationDate()

 

getCurrencyCode

string getCurrencyCode()

 

getCustomField1

string getCustomField1()

 

getCustomField2

string getCustomField2()

 

getCustomField3

string getCustomField3()

 

getCustomField4

string getCustomField4()

 

getCustomField5

string getCustomField5()

 

getCustomField6

string getCustomField6()

 

getCustomField7

string getCustomField7()

 

getDeliveryDate

Date getDeliveryDate()

 

getDirectTrackProducts

string getDirectTrackProducts()

 

getDirectTrackProducts2

string getDirectTrackProducts2()

 

getDirectTrackProducts3

string getDirectTrackProducts3()

 

getDiscountBigDecimal  getDiscount()this is the subtotal discount
getDiscountFormattedstring getDiscountFormatted

getEmail

string getEmail()

 

getGiftCertificateAmountBigDecimal getGiftCertificateAmount()
getGiftCertificateAmountFormattedstring getGiftCertificateAmountFormatted()
getGiftChargeBigDecimal getGiftCharge()
getGiftChargeFormattedstring getGiftChargeFormatted()
getGiftWrapCostBigDecimal getGiftWrapCost()
getGiftWrapCostFormattedstring getGiftWrapCostFormatted()

getGiftEmail

string getGiftEmail()

 

getGiftMessagestring[] getGiftMessage()returns an array of the gift message. Each line of the gift message is a maximum of 80 characters long.

getItemDescriptions

string getItemDescriptions()

returns a csv delimited string of item descriptions

getItemIds

string getItemIds()

returns a csv delimited string of item ids

getItemIdsAsJsonstring getItemIdsAsJson()returns a json array of item ids. very useful if you need the cart item ids in a javascript array.

getItemQuantities

string getItemQuantities()

returns a csv delimited string of item quantities

getItems

OrderItem[] getItems()

 

getMerchantId

string getMerchantId()

 

getOmnitureProducts

string getOmnitureProducts()

 

getOmnitureProductsWithShipping

string getOmnitureProductsWithShipping()

 

getorderHash

string getorderHash()

 

getOrderId

string getOrderId()

 

getPaymentDate

Date getPaymentDate()

 

getReceiptEmail

string getReceiptEmail()

 

getShipping

string getShipping()

 

getShippingAddress1

string getShippingAddress1()

 

getShippingAddress2

string getShippingAddress2()

 

getShippingAsBigDecimal

BigDecimal getShippingAsBigDecimal()

 

getShippingCity

string getShippingCity()

 

getShippingCompany

string getShippingCompany()

 

getShippingCountry

string getShippingCountry()

 

getShippingCountry3LetterCode

string getShippingCountry3LetterCode()

 

getShippingDate

Date getShippingDate()

 

getShippingFirstName

string getShippingFirstName()

 getShippingLastName

getShippingHandlingDiscountBigDecimal getShippingHandlingDiscount()
getShippingHandlingDiscountFormattedstring getShippingHandlingDiscountFormatted()

 


getShippingHandlingBigDecimal getShippingHandling()
getShippingHandlingFormattedstring getShippingHandlingFormatted()

 


getShippingHandlingRefundedBigDecimal getShippingHandlingRefunded()
getShippingHandlingRefundedFormattedstring getShippingHandlingRefundedFormatted()

 

getSubtotalgetShippingLastName

string getSubtotalgetShippingLastName()

 

getSubtotalAndShippinggetShippingPostalCode

string getSubtotalAndShippinggetShippingPostalCode()

 

getSubtotalAndShippingAsBigDecimalgetShippingState

BigDecimal getSubtotalAndShippingAsBigDecimalstring getShippingState()

 

getSubtotalAsBigDecimalgetSubtotal

BigDecimal getSubtotalAsBigDecimal getSubtotal()

 getSubtotalDiscount

getSubtotalFormattedstring getSubtotalFormatted()

 


getSubtotalBeforeDiscountBigDecimal getSubtotalBeforeDiscount()
getSubtotalBeforeDiscountFormattedstring getSubtotalBeforeDiscountFormatted()

getTax

string BigDecimal getTax()

 

getTaxAsBigDecimal

BigDecimal getTaxAsBigDecimalgetTaxFormatted

string getTaxFormatted()

 getTextFormat

getTaxRateBigDecimal getTaxRate()
getTaxRateFormattedstring getTaxRateFormatted()

getTier1AffiliateId

integer getTier1AffiliateId()

 

getTotal

string BigDecimal getTotal()

 getTotalAsBigDecimal

getTotalFormattedstring getTotalFormatted()
getTotalRefundedBigDecimal getTotalRefunded()
getTotalRefundedFormattedstring getTotalRefundFormatted()
getTrackingNumbersstring[] getTrackingNumbers()Returns the tracking numbers that are available on the order.
getTrackingUrlstring getTrackingUrl(string trackingNumber)Returns the URL that the customer can click to track the given tracking number. Use this in a loop of getTrackingNumbers to output tracking information for the customer on the shipment notification.
getUnshippedItemsItem[] getUnshippedItems()Returns the items that have not been shipped on the order. Useful in the shipment notification email.

hasItemWithOption

boolean hasItemWithOption(string itemId, string optionName, string optionValue)

 

ifPurchased

boolean ifPurchased(string itemIds)

itemIds is a csv string of item ids

isCouponCodeUsed

boolean isCouponCodeUsed(string code)

 

isMailingListOptIn

boolean isMailingListOptIn()

 

isPaymentProcessedboolean isPaymentProcessed

true if the customer has finalized payment. this is a very important method if you are embedded download links or codes within your receipt using the $order.isPurchased('ITEM') calls.

this method should always wrap those calls to ensure a customer with declined payment does not receive digital goods.

Code Block
#if($order.isPaymentProcessed())
 #if($order.isPurchased('ItemA')
 Here is your download code: ABCDEFG
 #end
#else
 There was a problem verifying your payment information, please contact our customer support. Thank you.
#end


isPaymentMethod

boolean isPaymentMethod(string paymentMethod)

 

isPrepaidCreditCard

boolean isPrepaidCreditCard()

 

isPurchased

boolean isPurchased(string itemId)

 

isPurchasedAnyItemInFolder
boolean isPurchasedAnyItemInFolder(String folderPath, boolean includeSubFolders)
Checks to see if any of the items on the order were located in the specified folderPath. The folderPath should start and end with / to make sure it's a complete item management folder path. The includeSubFolders parameter is optional and will default to false.
isShipmentCompleteboolean isShipmentComplete()Returns true once the order is completely shipped and moved to the completed orders stage.
isShowBuysafeboolean isShowBuysafe()Returns true if the order is bonded with buySAFE.

isTestOrder

boolean isTestOrder()

 

prorateItemCost

BigDecimal prorateItemCost(string itemId, integer expirationDays)

 

setCustomField1

void setCustomField1(value)

this actually updates the order

setCustomField2

void setCustomField2(value)

this actually updates the order

setCustomField3

void setCustomField3(value)

this actually updates the order

setCustomField4

void setCustomField4(value)

this actually updates the order

setCustomField5

void setCustomField5(value)

this actually updates the order

setCustomField6

void setCustomField6(value)

this actually updates the order

setCustomField7

void setCustomField7(value)

this actually updates the order

...