*/ ?> '; break; case 2: print ''; break; case 3: print ''; break; case 40: print ''; break; case 42: print ''; break; } ?> Cramer's Bakery - Our Products - <? print $currentCategoryName; ?>
 Products Menu '.$parentCategoryName.'  keyboard_arrow_right  '; } ?>
Upcoming Holidays:
View All Holidays
'; } if($currentCategory == 10){ print '

Please note:

All Mini Desserts Come Boxed
Mini Desserts are available on trays as follows:
20-35 pieces: 12” tray - $6.00
36-60 pieces: 16” Tray - $8.00
61-80 pieces: 18” Tray - $10.00

'; } if($currentCategory == 23){ print '

Disclaimer

Although “Gluten Free” items are baked without gluten, they are baked in a facility where gluten exists and can be cross contaminated with Gluten.

'; } if($currentCategory == 28){ print '
'; } if($currentCategory == 35){ print '

Passover Style, Not Kosher for Passover

Although Cramer’s Bakery is normally under Kosher supervision throughout the year, due to airborne flour and other factors in our bakery, it is impossible to be certified “Kosher for Passover” . Our Passover items are baked with Passover ingredients only. Thank you

Birthday cakes available for Passover. Must be ordered three days in advance of the beginning of Passover via e-mail to sales@cramerbakery.com

'; } if($currentCategory == 35){ print '

Birthday Cakes

Please contact the bakery for details: sales@cramerbakery.com or (215) 493-2760

Birthday Cakes are available in Vanilla, Chocolate, or Marble cake with the choice of Buttercream or Chocolate Icing.

'; } ?>
= '$todaysDate' ORDER BY 2021_date"; }else{ $sql1 .= " ORDER BY 2021_date"; } } $result1 = mysqli_query($cn,$sql1); while ($row = mysqli_fetch_array($result1)){ $timing = $row["timing"]; $itemOrderMessage = ""; if($timing != 0){ $todaysDate = date("Y-m-d"); $orderDate = date("Y-m-d", strtotime('-'.$timing.' days',strtotime($row["2020_date"]))); $holidayDate = date("Y-m-d", strtotime($row["2021_date"])); if($todaysDate <= $holidayDate && $todaysDate >= $orderDate){ //item can be ordered $itemOrderMessage = "

Now Available to Order!

"; }else{ //item cannot be ordered $itemOrderMessage = "

Available to Order on ".date("M d", strtotime('-'.$timing.' days',strtotime($row["2020_date"])))."

"; } } include("php/category_card.php"); } break; default: $result = mysqli_query($cn,$sql); while ($row = mysqli_fetch_array($result)){ $itemCanBeOrdered = true; $itemOrderMessage = ""; $timing = $row["timing"]; if($timing != 0){ $todaysDate = date("Y-m-d"); $orderDate = date("Y-m-d", strtotime('-'.$timing.' days',strtotime($row["2021_date"]))); $holidayDate = date("Y-m-d", strtotime($row["2021_date"])); if($todaysDate <= $holidayDate && $todaysDate >= $orderDate){ //item can be ordered }else{ //item cannot be ordered $itemCanBeOrdered = false; $itemOrderMessage = "Available: ".date("M d", strtotime('-'.$timing.' days',strtotime($row["2021_date"]))).""; } } $searchResultsHTML = ""; //generate product card include("php/product_card.php"); print $searchResultsHTML; } } print '

Can\'t Find What You\'re Looking For?

Use our Products Menu below to view products by category, or take a look at everything we offer online by clicking View All Products:

 Products Menu
View All Products

You can also use our Product Search in the top navigation to find an item by keyword

'; }else if($viewAllVar == "true"){ //pull all products $sql = "SELECT * FROM products"; $result = mysqli_query($cn,$sql); while ($row = mysqli_fetch_array($result)){ $searchResultsHTML = ""; //generate product card include("php/product_card.php"); print $searchResultsHTML; } }else{ //pull categories from db, make 1 card per category $sql = "SELECT * FROM categories"; $result = mysqli_query($cn,$sql); while ($row = mysqli_fetch_array($result)){ $timing = $row["timing"]; $itemOrderMessage = ""; if($timing != 0){ $todaysDate = date("Y-m-d"); $orderDate = date("Y-m-d", strtotime('-'.$timing.' days',strtotime($row["2021_date"]))); $holidayDate = date("Y-m-d", strtotime($row["2021_date"])); if($todaysDate <= $holidayDate && $todaysDate >= $orderDate){ //item can be ordered $itemOrderMessage = "

Now Available to Order!

"; }else{ //item cannot be ordered $itemOrderMessage = "

Available to Order on ".date("M d", strtotime('-'.$timing.' days',strtotime($row["2021_date"])))."

"; } } include("php/category_card.php"); } } mysqli_close($cn); ?>