Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php include "header.php"; ?>
- <div class="singlepage">
- <div class="wrapper">
- <?php global $post;
- while (have_posts()) : the_post();
- $product = foxypress_GetProduct($post->ID); ?>
- <h1>Shop <img src="<?php bloginfo('template_directory'); ?>/images/arrow-right.png" class="arrow-right" /> <?php echo($product['categories'][0]['name']);?> <img src="<?php bloginfo('template_directory'); ?>/images/arrow-right.png" class="arrow-right" /> <?=$product['name'];?></h1>
- <div class="pagecontent">
- <div class="productleftcontent">
- <h2 class="findproduct">Find Products</h2>
- <form name="foxypress_search_form" autosave="google" results="5" id="foxypress_search_form" method="POST" action="<?php echo site_url(); ?>">
- <input type="text" id="foxy_search_term" name="foxy_search_term" class="searchbox" value="" />
- <input type="submit" id="foxy_search_submit" name="foxy_search_submit" class="searchbutton" />
- </form>
- <h2 class="categories">Categories</h2>
- <ul class="product-category">
- <?php
- $product_pages = explode( ',', $fp_modern_options['product_pages'] );
- foreach( $product_pages as $product_page_number ) { ?>
- <li><a href='<?php echo home_url( '/' ); ?><?php echo $fp_modern_options['product_page_slug_' . $product_page_number]; ?>'><?php echo $fp_modern_options['product_page_title_' . $product_page_number]; ?></a></li>
- <?php } ?>
- </ul>
- <h2 class="orderinfo">Order Info</h2>
- <a href="<?php echo home_url( '/' ); ?>track-your-order/">Track Your Order</a><br />
- <?php foxypress_GetMiniCartWidget($dropdowndisplay, true); ?>
- </div>
- <div class="productrightcontent">
- <div class="productimage">
- <?php
- $ItemImage = foxypress_GetMainInventoryImage($post->ID);
- if($ItemImage == "")
- {
- echo("<img src=\"" . INVENTORY_IMAGE_DIR . "/" . INVENTORY_DEFAULT_IMAGE . "\" class=\"foxypress_main_item_image\" id=\"foxypress_main_item_image\" />");
- }
- else
- {
- echo("<img src=\"" . $ItemImage . "\" id=\"foxypress_main_item_image\" class=\"foxypress_main_item_image\"/>");
- }
- ?>
- </div>
- <div class="productdescription">
- <h4><?=$product['name'];?></h4>
- <p><?=$product['description'];?></p>
- <h2>Price: <?=(($product['sale_price']!="0.00" && $product['sale_price']!="")? "<span class=\"price-strike\">" . foxypress_FormatCurrency($product['price']) . "</span> <span class=\"price-sale\">" . foxypress_FormatCurrency($product['sale_price']) ."</span>"
- : foxypress_FormatCurrency($product['price']) );?></h2>
- <?php
- $productOutput = foxypress_GetProductFormStart($post->ID, "foxypress_" . $post->ID, false). foxypress_BuildOptionList($post->ID, "foxypress_" . $post->ID, $product['quantity_max']).((foxypress_CanAddToCart($post->ID,$product['quantity']))? "<input class=\"addtocart\" type=\"submit\" value=\"Add to Cart\" />": "<div class=\"foxypress_item_submit_detail outofstock\">Sorry, we are sold out of this product.</div>"). foxypress_GetProductFormEnd();
- if(foxypress_HasCartValidation())
- {
- $productOutput = FoxyCart_Helper::fc_hash_html($productOutput);
- }
- echo($productOutput);
- ?>
- </div>
- <div class="clear"></div>
- <h3 class="border">View Gallery</h3>
- <?php
- $Foxypress_Image_Mode = get_option('foxypress_image_mode');
- $ItemImages = $product['images'];
- if(!empty($ItemImages) && count($ItemImages) > 1)
- {
- $ItemThumbs = "<ul class=\"foxypress_item_image_thumbs_detail" . $CssSuffix . "\">";
- //check to see if we have a featured image, if we do, use that as the first thumb
- $FeaturedImage = foxypress_GetFeaturedInventoryImage($product['id']);
- if($FeaturedImage != "")
- {
- if($Foxypress_Image_Mode == FOXYPRESS_USE_COLORBOX)
- {
- $ItemThumbs .= "<li><a href=\"" . $FeaturedImage . "\" rel=\"colorbox\"><img src=\"" . $FeaturedImage . "\" /></a></li>";
- }
- else
- {
- $ItemThumbs .= "<li><a href=\"javascript:ToggleItemImage('" . $FeaturedImage . "');\" ><img src=\"" . $FeaturedImage . "\" /></a></li>";
- }
- }
- //loop through all the images
- foreach($product['images'] as $li)
- {
- //make sure were not repeating the featured image
- if($FeaturedImage != $li['name'])
- {
- if($Foxypress_Image_Mode == FOXYPRESS_USE_COLORBOX)
- {
- $ItemThumbs .= "<li><a href=\"" . $li['name'] . "\" rel=\"colorbox\"><img src=\"" . $li['name'] . "\" /></a></li>";
- }
- else
- {
- $ItemThumbs .= "<li><a href=\"javascript:ToggleItemImage('" . $li['name'] . "');\" ><img src=\"" . $li['name'] . "\" /></a></li>";
- }
- }
- }
- $ItemThumbs .= "</ul>";
- }
- echo($ItemThumbs);
- ?>
- <h3 class="border">Customer Reviews</h3>
- <div class="fb-comments" data-href="<?php the_permalink();?>" data-num-posts="5" data-width="685"></div>
- </div>
- <div class="clear"></div>
- </div>
- <?php endwhile; ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement