Skip to content

semihpolat/viddyoze_php_basket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

viddyoze_php_basket

Usage

You can change items features from Database at db_mock.php

You can change and print Basket at index.php

creating new basket example

$cart_1 = new Cart();
$cart_1->add_item('B01');
$cart_1->add_item('G01');

$c1_total = $cart_1->get_cart_total();

1. Class Item (at item.php) in this file there are functions for Items

For get price of item

function get_item_price()

For get code number of item

function get_item_code()

2. Class Card(at cart.php) in this file there are functions for Basket

Add item to the shopping cart

function add_item($new_item)

Print total cost of the basket

function get_cart_total()

Print total delivery cost

function delivery_cost($current_saldo)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages