Exemplo n.º 1
0
    }
    if (!$product_id) {
        return false;
    }
    $_etheme_new_label = get_post_meta($product_id, $key);
    return $_etheme_new_label;
    if ($_etheme_new_label[0] == 1) {
        return true;
    }
    return false;
}
global $etheme_productspage_id, $etheme_shoppingcart_id, $etheme_transactionresults_id, $etheme_userlog_id;
$etheme_productspage_id = etheme_shortcode2id('[productspage]');
$etheme_shoppingcart_id = etheme_shortcode2id('[shoppingcart]');
$etheme_transactionresults_id = etheme_shortcode2id('[transactionresults]');
$etheme_userlog_id = etheme_shortcode2id('[userlog]');
/**
 * Create product slider by query
 */
function etheme_create_slider($args, $title = false, $image_width = 215, $image_height = 215, $crop = false, $enable_slider_from = 4, $last_offset = 3)
{
    global $wpdb;
    $product_per_row = etheme_get_option('prodcuts_per_row');
    $box_id = rand(1000, 10000);
    $multislides = new WP_Query($args);
    if ($multislides->have_posts()) {
        if ($title) {
            $title_output = '<h4 class="slider-title">' . $title . '</h4>';
        }
        echo '<div class="product-slider columns' . $product_per_row . '">';
        echo $title_output;
Exemplo n.º 2
0
function etheme_product_page_banner()
{
    global $post;
    $etheme_productspage_id = etheme_shortcode2id('[productspage]');
    if ($post->ID == $etheme_productspage_id && etheme_get_option('product_bage_banner') && etheme_get_option('product_bage_banner') != '') {
        ?>
        <div class="wpsc_category_details">
            <img src="<?php 
        etheme_option('product_bage_banner');
        ?>
"/>              
        </div>
    <?php 
    }
}