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: 2 months ago
Size: 991 bytes
 

Contents

Class file image Download
<?php

?>

<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>

<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"
          id="add_to_cart_form">
        <input type="hidden" name="action" value="add" />
        <input type="hidden" name="product_id"
               value="<?php echo $product_id; ?>" />
        <b>Quantity:</b>&nbsp;
        <input type="text" name="quantity" value="1" size="2" />
        <input type="submit" value="Add to Cart" />
    </form>

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

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