Overview

Namespaces

  • Html2Text
  • Izberg
    • Exception
    • Resource
      • Category

Classes

  • Address
  • Application
  • ApplicationCategory
  • Attributes
  • BillingAddress
  • Brand
  • Carrier
  • Cart
  • CartItem
  • CartShippingChoice
  • Category
  • Country
  • CoverImage
  • Currency
  • Discount
  • ExtraInfo
  • Feed
  • LocaleConfig
  • Merchant
  • MerchantAddress
  • MerchantImage
  • MerchantOrder
  • MerchantReview
  • Message
  • Meta
  • Offer
  • OfferImage
  • Order
  • OrderItem
  • Payment
  • PaymentCardAlias
  • Product
  • ProductAttribute
  • ProductBrand
  • ProductChannel
  • ProductChannelFileOutput
  • Productoffer
  • ProductOfferVariation
  • ProductVariation
  • ProfileImage
  • Receiver
  • ReturnRequest
  • Review
  • Sender
  • ShippingAddress
  • ShippingMerchantTemplate
  • ShippingProvider
  • ShippingProviderAssignment
  • ShoppingPreference
  • User
  • Webhook
  • Overview
  • Namespace
  • Class

Class Cart

Izberg\Resource
Extended by Izberg\Resource\Cart
Namespace: Izberg\Resource
Located at Resource/Cart.php
Methods summary
public Object
# getItems( $params = null, $accept_type = "Accept: application/json" )

get current cart items

get current cart items

Returns

Object
Array
public Array
# addItem( $params = null, $accept_type = 'Content-Type: application/json' )

add an item to a cart

add an item to a cart

Returns

Array
public Array
# updateItem( $id, $params = null, $accept_type = 'Accept: application/json' )

update an item to a cart

update an item to a cart

Returns

Array
public StdObject
# setShippingAddress( $id )

Set cart shipping address

Set cart shipping address

Returns

StdObject
public StdObject
# setBillingAddress( $id )

Set cart Billing address

Set cart Billing address

Returns

StdObject
public
# createOrder( $params = null, $accept_type = 'Content-Type: application/json' )
public
# addOffer( $product_offer_id, $quantity = 1 )
public Izberg\Resource\CartItem
# removeItem( $id, string $accept_type = 'Accept: application/json' )

Remove an item from cart

Remove an item from cart

Parameters

$id
$accept_type

Returns

Izberg\Resource\CartItem
public DiscountCode
# discountCode( $code, string $action = "add" )

Apply a coupon code

Apply a coupon code

Parameters

$code
$action

Returns

DiscountCode
public Boolean
# clean( )

Remove all cart items

Remove all cart items

Returns

Boolean
public Array
# shippingOptions( )

Remove all shipping options

Remove all shipping options

Returns

Array
public Array
# shippingOption( $option_id )

Get a shipping options

Get a shipping options

Returns

Array
public ShippingOption
# selectShippingOption( $option_id )

Select a shipping option

Select a shipping option

Returns

ShippingOption
public Array
# selectShippingOptions( Array $params )

Select multiple shipping options

Select multiple shipping options

Parameters

$params
$ids

Returns

Array
public Array
# updateShippingOptions( )

Update all available shipping options for cart

Update all available shipping options for cart

Returns

Array
Methods inherited from Izberg\Resource
__construct(), __toString(), delete(), getName(), getPrefix(), hydrate(), log(), parseUri(), save(), setIzberg()
Properties inherited from Izberg\Resource
$Izberg, $_name
API documentation generated by ApiGen