<?php /** * The template for displaying product content within loops. * * Override this template by copying it to yourtheme/woocommerce/content-product.php * * @author WooThemes * @package WooCommerce/Templates * @version 1.6.4 */ if (!defined('ABSPATH')) { exit; } // Exit if accessed directly if (!woo_gate(__FILE__)) { return; } global $product, $woocommerce_loop, $king; // Store loop count we're currently on if (empty($woocommerce_loop['loop'])) { $woocommerce_loop['loop'] = 0; } $items = 4; if (!empty($king->cfg['woo_grids'])) { $items = $king->cfg['woo_grids']; } if (!empty($_REQUEST['perRow'])) { $items = $_REQUEST['perRow']; } // Store column count for displaying the grid
/** * The Template for displaying product archives, including the main shop page which is a post type archive. * * Override this template by copying it to yourtheme/woocommerce/archive-product.php * * @author WooThemes * @package WooCommerce/Templates * @version 2.0.0 */ if (!defined('ABSPATH')) { exit; } // Exit if accessed directly global $woocommerce_loop, $blog_id, $king; get_header(); if (!woo_gate(__FILE__, true)) { return; } $cookie_shop_layout = 'king_' . get_template() . (is_multisite() ? '_' . $blog_id : '') . '_shop_layout'; $woocommerce_loop['view'] = isset($_COOKIE[$cookie_shop_layout]) ? $_COOKIE[$cookie_shop_layout] : (!empty($king->cfg['woo_product_display']) ? $king->cfg['woo_product_display'] : 15); if (empty($king->cfg['woo_layout'])) { $king->cfg['woo_layout'] = 'right'; } ?> <?php $king->breadcrumb(); ?> <div id="primary" class="single-product-content content">