Skip to content

Cart Library

Luis Felipe Perez edited this page Jan 20, 2019 · 1 revision
The Cart library is DEPRECATED and should not be used. It is currently only kept for backwards compatibility. 

Official documentation cart library reference

Adding an item to the cart

Trigger: cicartin

Results: $this->cart->insert();

Get cart contents

Trigger: cicart

Results: $this->cart->contents()

Cart item update

Trigger: cicartup

Results: $this->cart->update()

Cart total amount

Trigger: cicarttotal

Results: $this->cart->total()

Product options

Trigger: cicartopt

Results: $this->cart->product_options()

Product has options

Trigger: cicarthas

Results: $this->cart->has_options()

Total amount of items in the cart

Trigger: cicarttotali

Results: $this->cart->total_items()

Cart destroy

Trigger: cicartdes

Results: $this->cart->destroy()