Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $category = $_GET['cat'];
- $product_id = $_GET['product'];
- $product_detail = get_allproduct_detail($product_id); //query to get product info
- $prod_price = $product_detail['prod_price'];
- $sale_price = $product_detail['sale_price'];
- $prod_type = $product_detail['prod_type'];
- <div id="main_item_img">
- <img src="/ahm/images/aroma/large/<?php echo $category; ?>/<?php echo get_product_img($_GET['product']); ?>.jpg" />
- <div id="magnify">
- <div class="zoom fitInBox">Fit in the Box</div>
- <div class="zoom originalSize">Original Size</div>
- <div class="zoom zoomin">zoom +</div>
- <div class="zoom zoomout">zoom -</div>
- </div>
- </div>
- <form method="POST" action="">
- <div id="item_detail_right">
- <label>Qty:<input type="text" name="qty" value="1" size="5" style="text-align: center" />
- <input type="button" value="+Cart" />
- <input type="button" value="+Wishlist" id="mywishlist" data-wishlist-id="<?php echo $_GET['product']; ?>" />
- <input type="hidden" name="product_price" value="<?php echo $prod_price; ?>" />
- <input type="hidden" name="sale_price" value="<?php echo $sale_price; ?>" />
- <input type="hidden" name="product_id" value="<?php echo $_GET['product']; ?>" />
- <input type="hidden" name="product_name" value="<?php echo strtoupper(get_product_name($_GET['product'])); ?>" />
- </div>
- </form>
- <div id="cart_list">
- <!-- This should be display the cart list -->
- </div>
- <?php if(isset($_SESSION['shopping_card'])): ?> //check if session is set ?>
- <div id="cart_list">
- <?php foreach($_SESSION['shopping_card'] as $product): ?>
- <!-- This should be display the cart list -->
- <?php end foreach;?>
- </div>
- <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement