Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated for my need of a cafe website #38

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion admin/language.php
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@
</div>
</div>
<div class="form-group">
<label for="" class="col-sm-4 control-label">Subscribe To Our Newsletter <span>*</span></label>
<label for="" class="col-sm-4 control-label">Subscribe<span>*</span></label>
<div class="col-sm-6">
<input type="text" class="form-control" name="lang_value[93]" value="<?php echo $lang_ids[93]; ?>">
</div>
Expand Down
Binary file added assets/uploads/Bagels.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/uploads/Cupcakes.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/uploads/Donuts.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/uploads/Espresso.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/uploads/Iced-Coffee.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/uploads/Latte.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/uploads/Pizza.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/uploads/Toast.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/uploads/bread-1284438_1280.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/uploads/breakfast-991821_1280.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/uploads/contact-banner.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/uploads/croissant.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/uploads/cupcakes-5116009_1280.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/uploads/donut-3448210_1280.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/uploads/ice-coffee-2546041_1280.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/uploads/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/uploads/logo1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/uploads/logo2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/uploads/macron-4330910_1280.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/uploads/pizza-2766568_1280.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/uploads/product-featured-77.jpg
Binary file not shown.
Binary file removed assets/uploads/product-featured-78.jpg
Binary file not shown.
Binary file removed assets/uploads/product-featured-79.jpg
Binary file not shown.
Binary file removed assets/uploads/product-featured-80.jpg
Binary file not shown.
Binary file removed assets/uploads/product-featured-81.jpg
Binary file not shown.
Binary file modified assets/uploads/slider-1.jpg
Binary file modified assets/uploads/slider-2.jpg
Binary file modified assets/uploads/slider-3.jpg
Binary file added assets/uploads/toast-6011147_1280.jpg
34 changes: 0 additions & 34 deletions cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,6 @@
<th><?php echo LANG_VALUE_7; ?></th>
<th><?php echo LANG_VALUE_8; ?></th>
<th><?php echo LANG_VALUE_47; ?></th>
<th><?php echo LANG_VALUE_157; ?></th>
<th><?php echo LANG_VALUE_158; ?></th>
<th><?php echo LANG_VALUE_159; ?></th>
<th><?php echo LANG_VALUE_55; ?></th>
<th class="text-right"><?php echo LANG_VALUE_82; ?></th>
Expand All @@ -106,35 +104,6 @@
$i++;
$arr_cart_p_id[$i] = $value;
}

$i=0;
foreach($_SESSION['cart_size_id'] as $key => $value)
{
$i++;
$arr_cart_size_id[$i] = $value;
}

$i=0;
foreach($_SESSION['cart_size_name'] as $key => $value)
{
$i++;
$arr_cart_size_name[$i] = $value;
}

$i=0;
foreach($_SESSION['cart_color_id'] as $key => $value)
{
$i++;
$arr_cart_color_id[$i] = $value;
}

$i=0;
foreach($_SESSION['cart_color_name'] as $key => $value)
{
$i++;
$arr_cart_color_name[$i] = $value;
}

$i=0;
foreach($_SESSION['cart_p_qty'] as $key => $value)
{
Expand Down Expand Up @@ -170,8 +139,6 @@
<img src="assets/uploads/<?php echo $arr_cart_p_featured_photo[$i]; ?>" alt="">
</td>
<td><?php echo $arr_cart_p_name[$i]; ?></td>
<td><?php echo $arr_cart_size_name[$i]; ?></td>
<td><?php echo $arr_cart_color_name[$i]; ?></td>
<td><?php echo LANG_VALUE_1; ?><?php echo $arr_cart_p_current_price[$i]; ?></td>
<td>
<input type="hidden" name="product_id[]" value="<?php echo $arr_cart_p_id[$i]; ?>">
Expand Down Expand Up @@ -201,7 +168,6 @@
<div class="cart-buttons">
<ul>
<li><input type="submit" value="<?php echo LANG_VALUE_20; ?>" class="btn btn-primary" name="form1"></li>
<li><a href="index.php" class="btn btn-primary"><?php echo LANG_VALUE_85; ?></a></li>
<li><a href="checkout.php" class="btn btn-primary"><?php echo LANG_VALUE_23; ?></a></li>
</ul>
</div>
Expand Down
129 changes: 1 addition & 128 deletions checkout.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,6 @@
<img src="assets/uploads/<?php echo $arr_cart_p_featured_photo[$i]; ?>" alt="">
</td>
<td><?php echo $arr_cart_p_name[$i]; ?></td>
<td><?php echo $arr_cart_size_name[$i]; ?></td>
<td><?php echo $arr_cart_color_name[$i]; ?></td>
<td><?php echo LANG_VALUE_1; ?><?php echo $arr_cart_p_current_price[$i]; ?></td>
<td><?php echo $arr_cart_p_qty[$i]; ?></td>
<td class="text-right">
Expand Down Expand Up @@ -155,122 +153,17 @@
}
}
?>
<tr>
<td colspan="7" class="total-text"><?php echo LANG_VALUE_84; ?></td>
<td class="total-amount"><?php echo LANG_VALUE_1; ?><?php echo $shipping_cost; ?></td>
</tr>
<tr>
<th colspan="7" class="total-text"><?php echo LANG_VALUE_82; ?></th>
<th class="total-amount">
<?php
$final_total = $table_total_price+$shipping_cost;
$final_total = $table_total_price;
?>
<?php echo LANG_VALUE_1; ?><?php echo $final_total; ?>
</th>
</tr>
</table>
</div>



<div class="billing-address">
<div class="row">
<div class="col-md-6">
<h3 class="special"><?php echo LANG_VALUE_161; ?></h3>
<table class="table table-responsive table-bordered bill-address">
<tr>
<td><?php echo LANG_VALUE_102; ?></td>
<td><?php echo $_SESSION['customer']['cust_b_name']; ?></p></td>
</tr>
<tr>
<td><?php echo LANG_VALUE_103; ?></td>
<td><?php echo $_SESSION['customer']['cust_b_cname']; ?></td>
</tr>
<tr>
<td><?php echo LANG_VALUE_104; ?></td>
<td><?php echo $_SESSION['customer']['cust_b_phone']; ?></td>
</tr>
<tr>
<td><?php echo LANG_VALUE_106; ?></td>
<td>
<?php
$statement = $pdo->prepare("SELECT * FROM tbl_country WHERE country_id=?");
$statement->execute(array($_SESSION['customer']['cust_b_country']));
$result = $statement->fetchAll(PDO::FETCH_ASSOC);
foreach ($result as $row) {
echo $row['country_name'];
}
?>
</td>
</tr>
<tr>
<td><?php echo LANG_VALUE_105; ?></td>
<td>
<?php echo nl2br($_SESSION['customer']['cust_b_address']); ?>
</td>
</tr>
<tr>
<td><?php echo LANG_VALUE_107; ?></td>
<td><?php echo $_SESSION['customer']['cust_b_city']; ?></td>
</tr>
<tr>
<td><?php echo LANG_VALUE_108; ?></td>
<td><?php echo $_SESSION['customer']['cust_b_state']; ?></td>
</tr>
<tr>
<td><?php echo LANG_VALUE_109; ?></td>
<td><?php echo $_SESSION['customer']['cust_b_zip']; ?></td>
</tr>
</table>
</div>
<div class="col-md-6">
<h3 class="special"><?php echo LANG_VALUE_162; ?></h3>
<table class="table table-responsive table-bordered bill-address">
<tr>
<td><?php echo LANG_VALUE_102; ?></td>
<td><?php echo $_SESSION['customer']['cust_s_name']; ?></p></td>
</tr>
<tr>
<td><?php echo LANG_VALUE_103; ?></td>
<td><?php echo $_SESSION['customer']['cust_s_cname']; ?></td>
</tr>
<tr>
<td><?php echo LANG_VALUE_104; ?></td>
<td><?php echo $_SESSION['customer']['cust_s_phone']; ?></td>
</tr>
<tr>
<td><?php echo LANG_VALUE_106; ?></td>
<td>
<?php
$statement = $pdo->prepare("SELECT * FROM tbl_country WHERE country_id=?");
$statement->execute(array($_SESSION['customer']['cust_s_country']));
$result = $statement->fetchAll(PDO::FETCH_ASSOC);
foreach ($result as $row) {
echo $row['country_name'];
}
?>
</td>
</tr>
<tr>
<td><?php echo LANG_VALUE_105; ?></td>
<td>
<?php echo nl2br($_SESSION['customer']['cust_s_address']); ?>
</td>
</tr>
<tr>
<td><?php echo LANG_VALUE_107; ?></td>
<td><?php echo $_SESSION['customer']['cust_s_city']; ?></td>
</tr>
<tr>
<td><?php echo LANG_VALUE_108; ?></td>
<td><?php echo $_SESSION['customer']['cust_s_state']; ?></td>
</tr>
<tr>
<td><?php echo LANG_VALUE_109; ?></td>
<td><?php echo $_SESSION['customer']['cust_s_zip']; ?></td>
</tr>
</table>
</div>
</div>
</div>

Expand All @@ -288,26 +181,6 @@

<?php
$checkout_access = 1;
if(
($_SESSION['customer']['cust_b_name']=='') ||
($_SESSION['customer']['cust_b_cname']=='') ||
($_SESSION['customer']['cust_b_phone']=='') ||
($_SESSION['customer']['cust_b_country']=='') ||
($_SESSION['customer']['cust_b_address']=='') ||
($_SESSION['customer']['cust_b_city']=='') ||
($_SESSION['customer']['cust_b_state']=='') ||
($_SESSION['customer']['cust_b_zip']=='') ||
($_SESSION['customer']['cust_s_name']=='') ||
($_SESSION['customer']['cust_s_cname']=='') ||
($_SESSION['customer']['cust_s_phone']=='') ||
($_SESSION['customer']['cust_s_country']=='') ||
($_SESSION['customer']['cust_s_address']=='') ||
($_SESSION['customer']['cust_s_city']=='') ||
($_SESSION['customer']['cust_s_state']=='') ||
($_SESSION['customer']['cust_s_zip']=='')
) {
$checkout_access = 0;
}
?>
<?php if($checkout_access == 0): ?>
<div class="col-md-12">
Expand Down
6 changes: 1 addition & 5 deletions contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
</div>
</div>
<div class="col-md-4">
<legend><span class="glyphicon glyphicon-globe"></span> Our office</legend>
<legend><span class="glyphicon glyphicon-globe"></span> Our Cafe</legend>
<address>
<?php echo nl2br($contact_address); ?>
</address>
Expand All @@ -189,10 +189,6 @@
</address>
</div>
</div>

<h3>Find Us On Map</h3>
<?php echo $contact_map_iframe; ?>

</div>
</div>
</div>
Expand Down
Loading