Cart

Názov

OldNew
11Cart

Permalink

OldNew
11cart

Obsah

OldNew
11# Cart
2
3Cart is a globally available system node that holds the items of the shopping cart for the browser session.
4
5```
6 cart::add_product($product_id, $options, $quantity, $force_if_error);
7
8 cart::update($item_key, $quantity, $force_if_error);
9
10 cart::remove($item_key, $quantity);
11
12 var_dump(cart::$items);
13
14 var_dump(cart::$total);
15```

Edited by tim on 27 dec 2023 at 07:07

View code on GitHub