kreamweb
7/15/2017 - 8:41 AM

[Flatsome]Fix where show the cart message inside the single product pageis necessary add <div class="col"><?php do_action( 'ywcm_show_mess

[Flatsome] Fix where show the cart message inside the single product page is necessary add

in /wp-content/themes/flatsome/woocommerce/single-product/layouts/product.php

<?php 
/**
 * Moves the message in the single product page
 * is necessary add <div class="col"><?php do_action( 'ywcm_show_message' ); ?></div> inside the
 * file /wp-content/themes/flatsome/woocommerce/single-product/layouts/product.php of flatsome
 * */
if ( defined( 'YITH_YWCM_PREMIUM' ) ) {
	add_action( 'template_redirect', 'ywcart_message_single_product' );
	function ywcart_message_single_product() {
		global $YWCM_Instance;
		remove_action( 'woocommerce_before_single_product', array( $YWCM_Instance, 'print_message' ) );
		add_action( 'ywcm_show_message', array( $YWCM_Instance, 'print_message' ) );
	}
}