PHP Classes

File: fwphp/01mater/shop/catalog/product_view_content.php

Recommend this page to a friend!
  Classes of Slavko Srakocic  >  B12 PHP FW  >  fwphp/01mater/shop/catalog/product_view_content.php  >  Download  
File: fwphp/01mater/shop/catalog/product_view_content.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: B12 PHP FW
Manage database records with a PDO CRUD interface
Author: By
Last change: ver 7.0.1 mnu, msg, mkd FUNCTIONAL namespaces, CRUD PDO trait, pretty URL-s
Date: 3 months ago
Size: 991 bytes


Class file image Download


<h1><?php //echo htmlspecialchars($product_name); ?></h1>

<div id="left_column">
    <p><img src="<?php echo $image_path; ?>"
            alt="<?php echo $image_alt; ?>" /></p>

<div id="right_column">
    <p><b>List Price:</b><?php echo '$' . $list_price; ?></p>
    <br /><p><b>Discount:</b><?php echo $discount_percent_f . '%'; ?></p>
    <br /><p><b>Your Price:</b><?php echo '$' . $unit_price_f; ?>
(You save <?php echo '$' . $discount_amount_f; ?>)</p>

    <form action="<?php echo $module_relpath . 'cart' ?>" method="get"
        <input type="hidden" name="action" value="add" />
        <input type="hidden" name="product_id"
               value="<?php echo $product_id; ?>" />
        <input type="text" name="quantity" value="1" size="2" />
        <input type="submit" value="Add to Cart" />

    <br /><h2>Description</h2>
    <?php echo $description_with_tags; ?>

For more information send a message to info at phpclasses dot org.