Skip to content
/ eshop Public

Eshop package with cart module for FuelPHP Framework

Notifications You must be signed in to change notification settings

2018/eshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Eshop package for FuelPHP application

Eshop package with cart driver Cart instance calculates item prices and taxes

Cart usage

Get cart instance:

$cart = \Eshop\Cart::instance();

Get cart items:

$cart = \Eshop\Cart::get_items();

or

$cart->get_items();

Add cart item:

$values = array(
    'code' => 'code_1',
    'title' => 'Product 1',
    'price' => 10
);
\Eshop\Cart::add($values);

or

$cart->add($values);

Delete cart item:

\Eshop\Cart::delete($item_id);

or

$cart->delete($item_id);

Delete cart:

\Eshop\Cart::clear();

or

$cart->clear();

About

Eshop package with cart module for FuelPHP Framework

Resources

Stars

Watchers

Forks

Packages

No packages published