$id = $_POST['product_add'];
$_SESSION['cart'] = array();
$cart = $_SESSION['cart'][] = $id;
array_push($cart, $id);
remove_action('woocommerce_before_main_content', 'woocommerce_breadcrumb', 20);
add_action('woocommerce_before_main_content', 'coffe_add_bread', 20);
function coffe_add_bread()
{
?>
<div class="banner_inner">
<div class="services-breadcrumb">
<div class="inner_breadcrumb">
<ul class="short">
<?php woocommerce_breadcrumb(); ?>
</ul>
</div>
</div>
</div>
<?php
}
add_action('after_setup_theme', 'mytheme_add_woocommerce_support');
function mytheme_add_woocommerce_support()
{
add_theme_support('woocommerce');
add_theme_support('wc-product-gallery-zoom');
add_theme_support('wc-product-gallery-lightbox');
add_theme_support('wc-product-gallery-slider');
}
add_action('woocommerce_before_single_product', 'coffe_start_wrapper_product', 5);
function coffe_start_wrapper_product()
{
?>
<section class="banner-bottom-wthreelayouts py-lg-5 py-3">
<div class="container">
<div class="inner-sec-shop pt-lg-4 pt-3">
<div class="row">
<?php
}
add_action('woocommerce_after_single_product', 'coffe_after_single_product_img_start', 25);
function coffe_after_single_product_img_start()
{
?>
</div>
</div>
</div>
</section>
<?php
}
add_action('woocommerce_before_single_product_summary', 'coffe_before_single_product_summary_start', 5);
function coffe_before_single_product_summary_start()
{
?>
<div class="col-lg-4 single-right-left ">
<div class="grid images_3_of_2">
<?php
}
add_action('woocommerce_before_single_product_summary', 'coffe_after_single_product_end', 25);
function coffe_after_single_product_end()
{
?>
</div>
</div>
<?php
}
add_action('woocommerce_before_single_product_summary', 'test', 30);
function test()
{
?>
<div class="col-lg-8 single-right-left simpleCart_shelfItem">
<?php
}
add_action('woocommerce_after_single_product_summary', 'coffe_after_single_product_entry_end', 5);
function coffe_after_single_product_entry_end()
{
?>
</div>
<?php
}