<?php
  /* STEP 1: LOAD RECORDS - Copy this PHP code block to the TOP of your page BEFORE anything else. */
  require_once "/home/infinite/public_html/cmsAdmin/lib/viewer_functions.php";

  list($storeRecords, $storeMetaData) = getRecords(array(
    'tableName'   => 'store',
  ));

?>

<?php require_once('../header.ssi'); ?>
  
      <p>
      <a href="http://www.infinitewell-being.com/index.php">Home</a> 
      <span class="style1">&raquo;</span>
     <a href="http://www.infinitewell-being.com/store/storeList.php">All Products List</a> 
      </p>
      
      
      
     <hr/>
     <p>  <a href="http://www.infinitewell-being.com/store/storeList.php?category=beverage">Beverages</a>  | 
     <a href="http://www.infinitewell-being.com/store/storeList.php?category=beverage">Chocolate</a> | 
     <a href="http://www.infinitewell-being.com/store/storeList.php?category=Chocolate">Dried Fruit</a> | 
     <a href="http://www.infinitewell-being.com/store/storeList.php?category=DVD">DVD</a> | 
     <a href="http://www.infinitewell-being.com/store/storeList.php?category=Fish">Fish</a> | 
     <a href="http://www.infinitewell-being.com/store/storeList.php?category=Gift Boxes">Gift Boxes</a> | 
     <a href="http://www.infinitewell-being.com/store/storeList.php?category=Nuts">Nuts</a> | 
     <a href="http://www.infinitewell-being.com/store/storeList.php?category=oil">Oil</a>  | 
     <a href="http://www.infinitewell-being.com/store/storeList.php?category=Seeds">Seeds</a> | 
     <a href="http://www.infinitewell-being.com/store/storeList.php?category=Snacks">Snacks</a> | 
     <a href="http://www.infinitewell-being.com/store/storeList.php?category=Spices">Spices</a> | 
     <a href="http://www.infinitewell-being.com/store/storeList.php?category=Vinegar">Vinegar</a></p>
     <br/>
  

 <br/>
    <?php foreach ($storeRecords as $record): ?>
    
      <h3> <?php echo $record['title'] ?></h3>
     
     <p> <strong> Product: </strong><?php echo $record['product_name'] ?><br/>
     <i><?php echo $record['1_sentence_product_description'] ?></i><br/>
      <strong> Price: </strong><?php echo $record['product_price'] ?><br/></p>
     <?php echo $record['add_to_cart'] ?>
      <p> <a href="<?php echo $record['_link'] ?>">More information...</a></p>

<hr>
   
    <?php endforeach; ?>

    <?php if (!$storeRecords): ?>
      No records were found!<br/><br/>
    <?php endif ?>
  <!-- /STEP2: Display Records -->
 
  <?php require_once('../footer.ssi'); ?>
