Versions Compared

Key

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

...

The key to be removed from the flexAttributes of the orderItem.

orderItem.sanitizePiced()

Opens the picedstore of the orderItem and runs ImageMagick convert over the images to repair images with broken pixels.

Example

Code Block
languagejs
linenumberstrue
... 
orderItem.sanitizePiced()
...

orderItem.set(key, value)

Sets the value of a specified key for a given orderItem.

Example

Code Block
languagejs
linenumberstrue
... 
orderItem.set(key, value, [options])
...

...

Sets the amount of a given oderItem

Example

Code Block
languagejs
linenumberstrue
... 
orderItem.setAmount(quantity)
...

...

Sets the backend stateĀ  of a given oderItem

Example

Code Block
languagejs
linenumberstrue
... 
orderItem.setBackendState(status)
...

...

Sets the backend uuid of the oderItem

Example

Code Block
languagejs
linenumberstrue
... 
orderItem.setBackendUuid(uuid)
...

...

Sets the price in cent of the oderItem

Example

Code Block
languagejs
linenumberstrue
... 
orderItem.setPrice(cent)
...

...

Sets the product id of the oderItem

Example

Code Block
languagejs
linenumberstrue
... 
orderItem.setProduct(id)
...

...

Sets the tracking id of the oderItem

Example

Code Block
languagejs
linenumberstrue
... 
orderItem.setTrackingId(tracking_id)
...

...

Sets the vat of the oderItem

Example

Code Block
languagejs
linenumberstrue
... 
orderItem.setVat(vat)
...

...

Sets the shipping address of the oderItem

Example

Code Block
languagejs
linenumberstrue
... 
orderItem.shippingAddress
...

...

Sets the single price of the oderItem

Example

Code Block
languagejs
linenumberstrue
... 
orderItem.singlePrice
...

...

Sets the sku of the oderItem

Example

Code Block
languagejs
linenumberstrue
... 
orderItem.sku
...

...

Sets the sub oder id of the oderItem

Example

Code Block
languagejs
linenumberstrue
... 
orderItem.subOrderId
...

...

Sets the token of the oderItem

Example

Code Block
languagejs
linenumberstrue
... 
orderItem.token
...

...

Sets the tracking id of the oderItem

Example

Code Block
languagejs
linenumberstrue
... 
orderItem.trackingId
...

...

Returns the type of the oderItem

Example

Code Block
languagejs
linenumberstrue
... 
orderItem.type
...

...

Returns the uuid of the oderItem

Example

Code Block
languagejs
linenumberstrue
... 
orderItem.uuid
...

...

Returns the vat of the oderItem

Example

Code Block
languagejs
linenumberstrue
... 
orderItem.vat
...

...