$args = array('orderby' => $orderby, 'order' => $order, 'hide_empty' => $hide_empty, 'include' => $ids);
$terms = get_terms('product_cat', $args);
$woocommerce_loop['view'] = 'grid';
if (isset($layout) && $layout != 'default') {
    $woocommerce_loop['layout'] = $layout;
}
ob_start();
$columns = apply_filters('loop_shop_columns', 4);
$woocommerce_loop['columns'] = $columns;
if ($terms) {
    $html = $html_mobile = '';
    $i = 0;
    echo '<div class="products-slider-wrapper">';
    echo '<div class="products-slider categories ' . $style . ' numbers-' . $numbers . '">';
    if (isset($title) && $title != '') {
        echo '<h4>' . $title . '</h4>';
    } else {
        echo '<h4>&nbsp;</h4>';
    }
    echo '<ul class="products ' . $style . '">';
    foreach ($terms as $category) {
        yith_wc_get_template('content-product_cat.php', array('category' => $category, 'columns' => null));
    }
    echo '</ul></div>';
    echo '<div class="es-nav"><span class="es-nav-prev">Previous</span><span class="es-nav-next">Next</span></div>';
    echo '</div><div class="es-carousel-clear"></div>';
}
echo str_replace('<div class="products-slider', '<div data-items="' . $woocommerce_loop['columns'] . '" class="products-slider', ob_get_clean());
wp_reset_query();
$woocommerce_loop['loop'] = 0;
unset($woocommerce_loop['setLast']);
} else {
    $woocommerce_loop['li_class'][] = 'black';
}
//$products_per_page = apply_filters( 'loop_shop_columns', 4 );
//$woocommerce_loop['columns'] = $columns;
if ($terms) {
    ob_start();
    $html = $html_mobile = '';
    $i = 0;
    echo '<div class="woocommerce">';
    echo '<div class="products-slider-wrapper" data-columns="%columns%">';
    echo '<div class="products-slider show-category categories ' . $style . ' numbers-' . $numbers . '">';
    if (isset($title) && $title != '') {
        echo '<h4>' . $title . '</h4>';
    } else {
        echo '<h4>&nbsp;</h4>';
    }
    echo '<div class="row"><ul class="products ' . $style . '">';
    foreach ($terms as $category) {
        yith_wc_get_template('content-product_cat.php', array('category' => $category, 'style' => $style, 'show_counter' => $show_counter, 'discovery_text' => $discovery_text));
    }
    echo '</ul></div>';
    echo '<div class="es-nav"><span class="es-nav-prev">Previous</span><span class="es-nav-next">Next</span></div>';
    echo '</div><div class="es-carousel-clear"></div>';
    echo '</div>';
    $content = ob_get_clean();
    echo str_replace('%columns%', $woocommerce_loop['columns'], $content);
}
wp_reset_query();
$woocommerce_loop['loop'] = 0;
unset($woocommerce_loop['setLast']);
Esempio n. 3
0
function yit_woocommerce_primary_end()
{
    global $woo_shop_folder;
    yith_wc_get_template($woo_shop_folder . '/primary-end.php');
}
Esempio n. 4
0
    <?php 
    do_action('woocommerce_checkout_before_customer_details');
    ?>

    <?php 
    if (!is_user_logged_in()) {
        ?>
        <div class="step current col2-set" id="login_register" data-step="1">
            <div class="col-1">
                <?php 
        do_action('woocommerce_checkout_login_form');
        ?>
            </div>
            <div class="col-2">
                <?php 
        yith_wc_get_template('checkout/form-register.php', array('checkout' => $checkout));
        ?>
            </div>
        </div>
    <?php 
    }
    ?>

    <form name="checkout" method="post" class="checkout checkout_multistep"
          action="<?php 
    echo esc_url($get_checkout_url);
    ?>
">

        <div class="step <?php 
    if (is_user_logged_in()) {
Esempio n. 5
0
			<?php 
    /**
     * woocommerce_after_shop_loop hook
     *
     * @hooked woocommerce_pagination - 10
     */
    do_action('woocommerce_after_shop_loop');
    ?>

		<?php 
} elseif (!woocommerce_product_subcategories(array('before' => woocommerce_product_loop_start(false), 'after' => woocommerce_product_loop_end(false)))) {
    ?>

			<?php 
    yith_wc_get_template('loop/no-products-found.php');
    ?>

		<?php 
}
?>

	<?php 
/**
 * woocommerce_after_main_content hook
 *
 * @hooked woocommerce_output_content_wrapper_end - 10 (outputs closing divs for the content)
 */
do_action('woocommerce_after_main_content');
?>
                                
Esempio n. 6
0
<?php

/**
 * Single Product Sale Flash
 *
 * @author 		WooThemes
 * @package 	WooCommerce/Templates
 * @version     1.6.4
 */
if (!defined('ABSPATH')) {
    exit;
}
// Exit if accessed directly
yith_wc_get_template('loop/sale-flash.php');
Esempio n. 7
0
/**
 * Your Inspiration Themes
 * 
 * @package WordPress
 * @subpackage Your Inspiration Themes
 * @author Your Inspiration Themes Team <*****@*****.**>
 *
 * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.gnu.org/licenses/gpl-3.0.txt
 */
if (is_product_attribute()) {
    yit_add_body_class('woocommerce');
    yith_wc_get_template('archive-product.php');
    die;
}
$paged = get_query_var('paged') ? get_query_var('paged') : 1;
$blog_type = yit_get_option('blog-type');
get_header();
if ($blog_type == 'pinterest' && (is_home() || is_category() || is_tag())) {
    wp_enqueue_script('yit-jquery-masonry');
}
do_action('yit_before_primary');
?>
<!-- START PRIMARY -->
<div id="primary" class="<?php 
yit_sidebar_layout();
?>
">