<?php if(wpsc_product_has_stock()) : ?> <img src="<?php echo WPSC_URL; ?>/images/yes_stock.gif" alt="Yes" title="Yes" style="margin-top: 4px;"/> <?php else: ?> <img src="<?php echo WPSC_URL; ?>/images/no_stock.gif" title='No' alt='No' style="margin-top: 4px;"/> <?php endif; ?> </td> <td width="10%"> <span id="product_price_<?php echo wpsc_the_product_id(); ?>" class="pricedisplay"><?php echo wpsc_the_product_price(); ?></span> </td> <td width="20%"> <?php if(wpsc_product_external_link(wpsc_the_product_id()) != '') : ?> <?php $action = wpsc_product_external_link(wpsc_the_product_id()); ?> <?php else: ?> <?php $action = wpsc_this_page_url(); ?> <?php endif; ?> <form class='product_form' enctype="multipart/form-data" action="<?php echo $action; ?>" method="post" name="product_<?php echo wpsc_the_product_id(); ?>"> <?php /** the variation group HTML and loop */?> <div class="wpsc_variation_forms"> <?php while (wpsc_have_variation_groups()) : wpsc_the_variation_group(); ?> <p> <label for="<?php echo wpsc_vargrp_form_id(); ?>"><?php echo wpsc_the_vargrp_name(); ?>:</label> <?php /** the variation HTML and loop */?> <select class='wpsc_select_variation' name="variation[<?php echo wpsc_vargrp_id(); ?>]" id="<?php echo wpsc_vargrp_form_id(); ?>"> <?php while (wpsc_have_variations()) : wpsc_the_variation(); ?> <option value="<?php echo wpsc_the_variation_id(); ?>"><?php echo wpsc_the_variation_name(); ?></option> <?php endwhile; ?> </select> </p>
?> <?php echo wpsc_product_rater(); ?> <?php if (function_exists('gold_shpcrt_display_gallery')) { echo gold_shpcrt_display_gallery(wpsc_the_product_id()); } ?> </div> <form onsubmit="submitform(this);return false;" action="<?php echo wpsc_this_page_url(); ?> " method="post" name="product_<?php echo wpsc_the_product_id(); ?> " id="product_extra_<?php echo wpsc_the_product_id(); ?> "> <input type="hidden" value="<?php echo wpsc_the_product_id(); ?> " name="prodid"/> <input type="hidden" value="<?php echo wpsc_the_product_id(); ?>
<div class="shipping_info"> <h4>Shipping details</h4> <p>For delivery within the UK we charge a flat fee of £7.50 and the delivery will arrive within 3-5 days of receiving your order.</p> <p>For delivery within the EU we charge a flat fee of £10 and the delivery will arrive within 7-10 working days.</p> <p>For Non-EU International delivery we charge a flat fee of £15 and the delivery will arrive within 10-12 working days. See Delivery Information for full details of Delivery Charges.</p> </div> </div> </div><!--close productcol--> <form onsubmit="submitform(this);return false;" action="<?php echo esc_url(wpsc_this_page_url()); ?> " method="post" name="product_<?php echo wpsc_the_product_id(); ?> " id="product_extra_<?php echo wpsc_the_product_id(); ?> "> <input type="hidden" value="<?php echo wpsc_the_product_id(); ?> " name="prodid"/> <input type="hidden" value="<?php echo wpsc_the_product_id(); ?>
/** * wpsc_get_form_action * * Return the form action for use in the template files * * @global <type> $wpec_form_action * @return <type> */ function wpsc_get_form_action() { global $wpec_form_action; $product_id = wpsc_the_product_id(); // Function has already ran in this page load if (isset($wpec_form_action)) { $action = $wpec_form_action; // No global so figure it out } else { // Use external if set if (wpsc_is_product_external()) { $action = wpsc_product_external_link($product_id); // Otherwise use this page } else { $action = wpsc_this_page_url(); } } // Return form action return $action; }
<?php echo wpsc_buy_now_button(wpsc_the_product_id()); ?> <?php endif ; ?> <?php echo wpsc_product_rater(); ?> <?php if(function_exists('gold_shpcrt_display_gallery')) : echo gold_shpcrt_display_gallery(wpsc_the_product_id()); endif; echo wpsc_also_bought(wpsc_the_product_id()); ?> </div> <form onsubmit="submitform(this);return false;" action="<?php echo wpsc_this_page_url(); ?>" method="post" name="product_<?php echo wpsc_the_product_id(); ?>" id="product_extra_<?php echo wpsc_the_product_id(); ?>"> <input type="hidden" value="<?php echo wpsc_the_product_id(); ?>" name="prodid"/> <input type="hidden" value="<?php echo wpsc_the_product_id(); ?>" name="item"/> </form> </div> </div> </div> <?php echo wpsc_product_comments(); ?> <?php endwhile; ?> <?php /** end the product loop here */?> <?php if(function_exists('fancy_notifications')) { echo fancy_notifications(); }
</div> <?php } ?> <?php if (wpsc_product_external_link(wpsc_the_product_id()) != '') { ?> <?php $action = wpsc_product_external_link(wpsc_the_product_id()); ?> <?php } else { ?> <?php $action = htmlentities(wpsc_this_page_url(), ENT_QUOTES); ?> <?php } ?> <form class='product_form' enctype="multipart/form-data" action="<?php echo $action; ?> " method="post" name="product_<?php echo wpsc_the_product_id(); ?> " id="product_<?php echo wpsc_the_product_id(); ?>
wpsc_the_product_price_display(array('output_you_save' => false)); ?> </td> <td> <?php if (wpsc_product_external_link(wpsc_the_product_id()) != '') { ?> <?php $action = wpsc_product_external_link(wpsc_the_product_id()); ?> <?php } else { ?> <?php $action = wpsc_this_page_url(); ?> <?php } ?> <form class='product_form' id="product_<?php echo wpsc_the_product_id(); ?> " enctype="multipart/form-data" action="<?php echo $action; ?> " method="post" name="product_<?php echo wpsc_the_product_id(); ?> "> <?php
<?php if((wpsc_the_product_description() != '') && (get_option('display_description') == 1)): ?> <p class='griddescription'><?php echo wpsc_the_product_description(); ?></p> <?php endif; ?> <br/> <span class="pricedisplay"><?php echo wpsc_the_product_price(); ?></span>Price: <?php if(get_option('display_moredetails') == 1) : ?> <br /> <a href='<?php echo wpsc_the_product_permalink(); ?>'>More Details</a> <?php endif; ?> </div> </div> <div class="grid_more_info"> <form class='product_form' enctype="multipart/form-data" action="<?php echo wpsc_this_page_url(); ?>" method="post" name="product_<?php echo wpsc_the_product_id(); ?>" id="product_<?php echo wpsc_the_product_id(); ?>" > <input type="hidden" value="add_to_cart" name="wpsc_ajax_action"/> <input type="hidden" value="<?php echo wpsc_the_product_id(); ?>" name="product_id"/> <?php if(get_option('display_variations') == 1) : ?> <?php /** the variation group HTML and loop */ ?> <div class="wpsc_variation_forms"> <?php while (wpsc_have_variation_groups()) : wpsc_the_variation_group(); ?> <p> <label for="<?php echo wpsc_vargrp_form_id(); ?>"><?php echo wpsc_the_vargrp_name(); ?>:</label> <?php /** the variation HTML and loop */?> <select class='wpsc_select_variation' name="variation[<?php echo wpsc_vargrp_id(); ?>]" id="<?php echo wpsc_vargrp_form_id(); ?>"> <?php while (wpsc_have_variations()) : wpsc_the_variation(); ?> <option value="<?php echo wpsc_the_variation_id(); ?>" <?php echo wpsc_the_variation_out_of_stock(); ?> ><?php echo wpsc_the_variation_name(); ?></option> <?php endwhile; ?>
/** * Create product slider getting query */ function etheme_create_slider($args, $title = false, $image_width = 220, $image_height = 220, $crop = false) { global $wpdb; $box_id = rand(1000, 10000); $multislides = new WP_Query($args); if ($multislides->have_posts()) { if ($title) { $title_output = '<h2 class="slider-title">' . $title . '</h2>'; } echo '<div class="product-slider">'; echo $title_output; echo '<div class="clear"></div>'; echo '<div class="carousel">'; echo '<div class="slider">'; $_i = 0; while ($multislides->have_posts()) { $multislides->the_post(); $_i++; if (class_exists('Woocommerce')) { global $product; if (!$product->is_visible()) { continue; } echo '<div class="slide product-slide ' . $last . '">'; woocommerce_get_template_part('content', 'product'); echo '</div><!-- slide -->'; } if (class_exists('WP_eCommerce')) { $post_id = get_the_ID(); $post_name = get_the_title(); $post_image = etheme_get_image(null, $image_width, $image_height, $crop, $post_id); if (!$post_image && $image_default) { $post_image = $image_default; } $post_url = get_permalink(); if (class_exists('WP_eCommerce')) { $normal_price = class_exists('WP_eCommerce') ? the_product_price($post_id) : false; $post_price = class_exists('WP_eCommerce') ? the_product_price($post_id, true) : ''; } echo '<div class="slide product-slide ' . $last . '">'; echo '<a href="' . $post_url . '" class="product-image"><div class="img-wrapper"><img alt="" src="' . $post_image . '" /></div></a>'; echo '<span class="product-name"><a href="' . $post_url . '">' . esc_attr($post_name) . '</a></span>'; if ($normal_price != $post_price) { echo '<div class="price sale">'; echo '<p class="oldprice-p pricedisplay"><span class="oldprice">' . $normal_price . '</span></p>'; echo '<p class="pricedisplay"><span class="currentprice pricedisplay">' . $post_price . '</span></p>'; echo '</div> '; } else { echo '<div class="price">'; echo '<span>' . $post_price . '</span>'; echo '</div>'; } wpsc_the_product(); if (wpsc_product_external_link($post_id) != '') { $action = wpsc_product_external_link($post_id); } else { $action = htmlentities(wpsc_this_page_url(), ENT_QUOTES, 'UTF-8'); } echo '<div class="btn-cont">'; echo '<form class="product_form" enctype="multipart/form-data" action="' . $action . '" method="post" name="product_' . $post_id . '" id="product_' . $post_id . '" >'; echo '<input type="hidden" value="add_to_cart" name="wpsc_ajax_action"/>'; echo '<input type="hidden" value="' . $post_id . '" name="product_id"/>'; if (false) { echo '<button class="button" type="submit" id="product_' . $post_id . '_submit_button"><span>' . __('Add To Cart', 'wpsc') . '</span></button>'; } else { echo '<a href="' . $post_url . '" class="button add-to-cart sml"><span>' . __('Read more', 'wpsc') . '</span></a>'; } echo '</form>'; echo '</div>'; echo '</div><!-- slide -->'; } unset($last); } echo '</div><!-- slider -->'; echo '</div><!-- carousel -->'; if ($_i > 1) { echo '<div class="prev arrow' . $box_id . '" style="cursor: pointer; "> </div>'; echo '<div class="next arrow' . $box_id . '" style="cursor: pointer; "> </div>'; } echo '</div><!-- product-slider -->'; } wp_reset_query(); if (@$_i > 1) { echo ' <script type="text/javascript"> jQuery(".arrow' . $box_id . '.prev").addClass("disabled"); jQuery(".carousel").iosSlider({ desktopClickDrag: true, snapToChildren: true, infiniteSlider: false, navNextSelector: ".arrow' . $box_id . '.next", navPrevSelector: ".arrow' . $box_id . '.prev", lastSlideOffset: 3, onFirstSlideComplete: function(){ jQuery(".arrow' . $box_id . '.prev").addClass("disabled"); }, onLastSlideComplete: function(){ jQuery(".arrow' . $box_id . '.next").addClass("disabled"); }, onSlideChange: function(){ jQuery(".arrow' . $box_id . '.next").removeClass("disabled"); jQuery(".arrow' . $box_id . '.prev").removeClass("disabled"); } }); </script> '; } }