<?php
/**
* 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 8.6.0
*/
if(!defined('ABSPATH')) exit; // Exit if accessed directly
get_header();
?>
<section id="wp-main-content" class="clearfix main-page">
<?php do_action( 'woocommerce_before_main_content' ); ?>
<div class="main-page-content">
<div class="content-page">
<div id="wp-content" class="wp-content clearfix">
<?php
if(is_shop()){
echo '<div class="container shop-without-layout">';
echo '<div class="row">';
echo '<div class="col-12">';
wc_get_template_part('archive', 'content');
echo '</div>';
echo '</div>';
echo '</div>';
}else{
echo '<div class="container shop-without-layout">';
echo '<div class="row">';
echo '<div class="col-12">';
wc_get_template_part('archive', 'content');
echo '</div>';
echo '</div>';
echo '</div>';
}
?>
</div>
</div>
</div>
<?php do_action( 'woocommerce_after_main_content' ); ?>
</section>
<?php get_footer(); ?>