PHP eCommerce 20

preview_player
Показать описание
Learn to build a complete eCommerce site from scratch with PHP.
Рекомендации по теме
Комментарии
Автор

Your Tutorial is very helpful.. I am learning lot of things... Thank You for your tutorial..

fakhrul
Автор

Just want to say a very big thank you Mr Curtis Parham, I just concluded the 20th Video series and i just did the archive page with ease!. with an image preview feature for each item to restore.. i cant wait to finish up this video series!.

WithFigma
Автор

Wow, I actually did what you say and I successfully restore it. Thank you for this!

null
Автор

Include this to navigation for menu dropdown on products.
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Products
<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a
<li><a
</ul>
</li>

TheHDSoccerGoals
Автор

i also made the archive page thank you sir i m learning too much new thing from this series

- via YTPak(.com)

attaroams
Автор

The code for Archived:

<?php
require_once
include 'includes/head.php';
include 'includes/navigation.php';

//Restore Product

if(isset($_GET['restore'])) {

$idz = sanitize($_GET['restore']);
$db->query("UPDATE `products` SET `deleted`=0 WHERE `id`='$idz'");
header('Location: Restore.php');

}

?>

<?php

$sqlw = "SELECT * FROM `products` WHERE `deleted`=1";
$p_result = $db->query($sqlw);


?>

<h2
<div class="clearfix"></div>
<hr>
<table class="table table-bordered table-condensed talbe-striped">
<thead>
<th>Restore</th>
<th>Product</th>
<th>Price</th>
<th>Parent ~ Category</th>
<th>Featured</th>
<th>Sold</th>
</thead>

<tbody>

<?php while($product = :

$childID = $product['categories'];
$catsql = "SELECT * FROM `categories` WHERE `id`='$childID'";
$cat_result = $db->query($catsql);
$child =
$parentID = $child['parent'];
$p_sql = "SELECT * FROM `categories` WHERE `id`='$parentID'";
$presult = $db->query($p_sql);
$parent = mysqli_fetch_assoc($presult);
$category = $parent['category'].' ~ '.$child['category'];

?>


<tr>

<td>
<a echo $product['id']; ?>" class="btn btn-xs btn-success"><span class="glyphicon glyphicon-repeat"></span></a>
</td> <!--EDIT OR REMOVE -->

<td><?php echo $product['title']; ?></td> <!-- TITLE -->

<td><?php echo money($product['price']); ?></td> <!-- PRICE -->

<td><?php echo $category; ?></td> <!-- Categories -->

<td><a echo (($product['featured'] == 0)?'1':'0'); ?>&id=<?php echo $product['id']; ?>" class="btn btn-xs btn-<?php echo (($product['featured'] == 1)?'warning':'success'); ?>">
<span class="glyphicon glyphicon-<?php echo (($product['featured'] == 1)?'minus':'plus'); ?>"></span>
</a>&nbsp; <?php echo (($product['featured'] == 1)?'Remove Featured':'Add Featured'); ?></td> <!-- FEATURED PRODUCT -->

<td>0</td> <!-- SOLD -->

</tr>
<?php endwhile; ?>
</tbody>

</table>



<?php include 'includes/footer.php'; ?>

^_^ I hope this will help you guys!

sagamerdev
Автор

I really like your video. My problem I am encountering is when I clicked Edit product, I got the product doubled. one with the updated item and 1 without the update. Hope you can help. I will try figure it out though. Thanks

grmetechnologies
Автор

I can't add more than one product

inakiledesma
Автор

I successfully restored the deleted products but I always have to click twice before it restores.. Don't know why

michaellobasi
Автор

PLZ NEXT TIME MAKE THE CODE TO FIT IN THE F...N SCREEN

stukoff
Автор

please help
how I done the archive code?

abdullahalimran
Автор

when will we get user login system to access admin pages ?

MadhuKiranarja
Автор

Hello curtis ...can i get the video how to create the archive

baumistarleader
Автор

Hello curtis have tried making the achive page, have been succeful getting the achived products on the achive page but deleting them and refreshing them back to the products page is kinda hard for me esp the $db part

fakedollar
Автор

I already know the issue is that is generating multiples products with an id=0. How can I change it? please help me.

inakiledesma
Автор

I may noticed something. Not sure about that but it's for editing product. If you edit a product without changing the image. I'm nt sure bit i think it deletes the image. I had that issue. Cuz when you do that, $_FILES is empty when editing and so $dbpath is blank, so in the database it set up the image to a blank string. Am i the only one having this issue?

alvinmujkic
Автор

+Curtis Parham (FREESKILLS)

millions times thank you CURTİS PARHAM. i was kind of similiar with php and building web site but wasnt using codes only design by dreamweaver.but now with go going forward and forward...i cant tell you how much i am happy.thank you again


IF ; ANY FALOWERS HAVE ISSUES TO FIXING YOUR CODES YOU MAY CONTACT TO ME AND MAYBE I CAN FIND YOUR ERRORS.I AM NOT PROMISING YOU BUT FOR SURE CAN FIND ERRORS.SO CONTACT TO ME.
BECAUSE CURTIS IS SHOULD VERY BUSY . SO HE ALLREADY GIVE WAWY TO MUCH STUFF.SO NO MORE BOTHERING FOR HIM. I HAVE TIME TO HELP YOU.SO REACH ME FOR PREVIOUS EPIDOS...

yakarcumali
Автор

*Variable cannot get passed through URL to archived.php page*
<a
Can anybody help me?

ck
Автор

my file deleted but it still shows in home page! and how to make archive page???

visusrinivas
Автор

i have a problem my file deleted but it still shows in home page? any idea how to solve hat

bahez