The JSMA orderItem provides functionality for handling orderItems
What canĀ JSMA orderItem do for me?You could easily use the JSMA orderItem to edit an orderItem |
Here is an example on how to write data to a JSMA orderItem:
... orderItem.setAmount(5) ... |
Here is an example on how to read data from a JSMA customer:
... var amount = orderItem.amount; ... |
The JSMA orderItem provides the following methods:
Returns the amount of an orderItem
... orderItem.amount ... |
Returns the backend state of an orderItem
... orderItem.backendState ... |
Returns the backend uuid of an orderItem
... orderItem.backendUuid ... |
Returns the description of an orderItem
... orderItem.description ... |
Returns an array of the flex attributes of an orderItem
... orderItem.flexAttributes() ... |
Returns the value of key as string or null if no value is set under the key.
... orderItem.get(key) ... |
The key to be looked up in the flexAttributes of the orderItem.
Returns a boolean value depending on whether key is present for a given orderItem
... orderItem.has(key) ... |
The key to be checked in the flexAttributes of the orderItem.
Returns the id of an orderItem
... orderItem.id ... |
Increments the vale of a given key by one.
... orderItem.increment(key) ... |
The key to be incremented in the flexAttributes of the orderItem.
Returns the order of an orderItem
... orderItem.order ... |
Returns a file array of privewImages for the orderItem
... orderItem.previewImages ... |
Returns the price in cent of the orderItem
... orderItem.price ... |
Returns the product of the orderItem
... orderItem.product ... |
Returns the project of the orderItem
... orderItem.project ... |
Returns the project id of the orderItem
... orderItem.projectId ... |
Returns the print id of the orderItem
... orderItem.projectPrintId ... |
Removes the key from the flexAttributes of the orderItem
... orderItem.remove(key) ... |
The key to be removed from the flexAttributes of the orderItem.
Opens the picedstore of the orderItem and runs ImageMagick convert
over the images to repair images with broken pixels.
... orderItem.sanitizePiced() ... |
Sets the value of a specified key for a given orderItem.
... orderItem.set(key, value, [options]) ... |
The key to be set in the flexAttributes of the orderItem.
The value to be set for the key
Sets the amount of a given oderItem
... orderItem.setAmount(quantity) ... |
Sets the backend stateĀ of a given oderItem
... orderItem.setBackendState(status) ... |
Sets the backend uuid of the oderItem
... orderItem.setBackendUuid(uuid) ... |
Sets the price in cent of the oderItem
... orderItem.setPrice(cent) ... |
Sets the product id of the oderItem
... orderItem.setProduct(id) ... |
Sets the tracking id of the oderItem
... orderItem.setTrackingId(tracking_id) ... |
Sets the vat of the oderItem
... orderItem.setVat(vat) ... |
Sets the shipping address of the oderItem
... orderItem.shippingAddress ... |
Sets the single price of the oderItem
... orderItem.singlePrice ... |
Sets the sku of the oderItem
... orderItem.sku ... |
Sets the sub oder id of the oderItem
... orderItem.subOrderId ... |
Sets the token of the oderItem
... orderItem.token ... |
Sets the tracking id of the oderItem
... orderItem.trackingId ... |
Returns the type of the oderItem
... orderItem.type ... |
Returns the uuid of the oderItem
... orderItem.uuid ... |
Returns the vat of the oderItem
... orderItem.vat ... |