Skip to content

Commit 260b8dc

Browse files
committed
New Setup
1 parent 8beec8d commit 260b8dc

File tree

1,899 files changed

+240012
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,899 files changed

+240012
-0
lines changed

add_to_cart.inc.php

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?php
2+
class add_to_cart{
3+
function addProduct($pid,$qty){
4+
$_SESSION['cart'][$pid]['qty']=$qty;
5+
}
6+
7+
function updateProduct($pid,$qty){
8+
if(isset($_SESSION['cart'][$pid])){
9+
$_SESSION['cart'][$pid]['qty']=$qty;
10+
}
11+
}
12+
13+
function removeProduct($pid){
14+
if(isset($_SESSION['cart'][$pid])){
15+
unset($_SESSION['cart'][$pid]);
16+
}
17+
}
18+
19+
function emptyProduct(){
20+
unset($_SESSION['cart']);
21+
}
22+
23+
function totalProduct(){
24+
if(isset($_SESSION['cart'])){
25+
return count($_SESSION['cart']);
26+
}else{
27+
return 0;
28+
}
29+
30+
}
31+
32+
}
33+
?>

admin/.DS_Store

10 KB
Binary file not shown.

admin/assets/.DS_Store

6 KB
Binary file not shown.

admin/assets/calendar/fullcalendar-init.js

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)