Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1. $category = $_GET['cat'];
  2. $product_id = $_GET['product'];
  3.  
  4. $product_detail = get_allproduct_detail($product_id); //query to get product info
  5.  
  6. $prod_price = $product_detail['prod_price'];
  7. $sale_price = $product_detail['sale_price'];
  8. $prod_type = $product_detail['prod_type'];
  9.  
  10. <div id="main_item_img">
  11. <img src="/ahm/images/aroma/large/<?php echo $category; ?>/<?php echo get_product_img($_GET['product']); ?>.jpg" />
  12. <div id="magnify">
  13. <div class="zoom fitInBox">Fit in the Box</div>
  14. <div class="zoom originalSize">Original Size</div>
  15. <div class="zoom zoomin">zoom +</div>
  16. <div class="zoom zoomout">zoom -</div>
  17. </div>
  18. </div>
  19.  
  20. <form method="POST" action="">
  21.  
  22. <div id="item_detail_right">
  23. <label>Qty:<input type="text" name="qty" value="1" size="5" style="text-align: center" />
  24. <input type="button" value="+Cart" />
  25. <input type="button" value="+Wishlist" id="mywishlist" data-wishlist-id="<?php echo $_GET['product']; ?>" />
  26. <input type="hidden" name="product_price" value="<?php echo $prod_price; ?>" />
  27. <input type="hidden" name="sale_price" value="<?php echo $sale_price; ?>" />
  28. <input type="hidden" name="product_id" value="<?php echo $_GET['product']; ?>" />
  29. <input type="hidden" name="product_name" value="<?php echo strtoupper(get_product_name($_GET['product'])); ?>" />
  30.  
  31. </div>
  32.  
  33. </form>
  34.  
  35. <div id="cart_list">
  36. <!-- This should be display the cart list -->
  37. </div>
  38.  
  39. <?php if(isset($_SESSION['shopping_card'])): ?> //check if session is set ?>
  40. <div id="cart_list">
  41. <?php foreach($_SESSION['shopping_card'] as $product): ?>
  42. <!-- This should be display the cart list -->
  43. <?php end foreach;?>
  44. </div>
  45. <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement