Example #1
0
?>
</h2>
      <?php 
echo \Helpers\Util::get_price($row['price'], $row['sale_price']);
?>
      <?php 
if (isset($attributes)) {
    ?>
        <form method="post" action="<?php 
    echo $this->url('/shop/add_product');
    ?>
">
          <fieldset>
            Choose: &nbsp;
            <?php 
    \Helpers\Form::create_attributes($attributes);
    ?>
            <input type="hidden" name="action" value="add">
            <input type="hidden" name="id" value="<?php 
    echo $row['id'];
    ?>
">
            <br /><br />
            <span class="buttons">
              <input type="submit" name="cart" value="Add to Cart">
              <input type="submit" name="wishlist" value="Add to Wishlist">
            </span>
          </fieldset>
        </form>
      <?php 
} else {