';
echo '
';
do_action( 'ocean_before_archive_product_image' );
// Add Out of Stock badge.
if ( class_exists( 'OceanWP_WooCommerce_Config' ) ) {
OceanWP_WooCommerce_Config::add_out_of_stock_badge();
}
woocommerce_show_product_loop_sale_flash();
// Display product featured image.
if ( function_exists( 'wc_get_template' ) ) {
wc_get_template( 'loop/thumbnail/featured-image.php' );
}
// Add to cart.
if ( false === $ocean_woo_cond || $show_woo_cond ) {
do_action( 'ocean_before_archive_product_add_to_cart_inner' );
woocommerce_template_loop_add_to_cart();
do_action( 'ocean_after_archive_product_add_to_cart_inner' );
}
// Wishlist button.
if ( get_theme_mod( 'ocean_woo_quick_view', true )
|| ocean_woo_wishlist() ) {
echo '';
do_action( 'ocean_before_archive_woo_entry_buttons' );
if ( get_theme_mod( 'ocean_woo_quick_view', true ) ) {
echo '- ' . apply_filters( 'ocean_woo_quick_view_button_html', '' . oceanwp_icon( 'eye', false ) . '' ) . '
'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
}
$wl_plugin = get_theme_mod( 'ocean_woo_wl_plugin', 'ti_wl' );
if ( 'ti_wl' === $wl_plugin && class_exists( 'TInvWL_Wishlist' ) ) {
echo '- ' . do_shortcode( '[ti_wishlists_addtowishlist]' ) . '
';
} elseif ( 'yith_wl' === $wl_plugin && class_exists( 'YITH_WCWL' ) ) {
echo '- ' . do_shortcode( '[yith_wcwl_add_to_wishlist]' ) . '
';
}
do_action( 'ocean_after_archive_woo_entry_buttons' );
echo '
';
}
do_action( 'ocean_after_archive_product_image' );
echo '';
echo '';
// Display product categories.
do_action( 'ocean_before_archive_product_categories' );
echo wp_kses_post( wc_get_product_category_list( $product->get_id(), ', ', '- ', '
' ) );
do_action( 'ocean_after_archive_product_categories' );
$heading = 'h2';
$heading = apply_filters( 'ocean_product_archive_title_tag', $heading );
// Display product title.
do_action( 'ocean_before_archive_product_title' );
echo '- ';
do_action( 'ocean_before_archive_product_title_inner' );
if ( false === $ocean_woo_disable_links
|| ( $disable_links && is_user_logged_in() ) ) {
echo '<' . esc_attr( $heading ) . '>' . get_the_title() . '' . esc_attr( $heading ) . '>';
} else {
echo '<' . esc_attr( $heading ) . '>' . get_the_title() . '' . esc_attr( $heading ) . '>';
}
do_action( 'ocean_after_archive_product_title_inner' );
echo '
';
do_action( 'ocean_after_archive_product_title' );
// Display price.
do_action( 'ocean_before_archive_product_inner' );
if ( false === $ocean_woo_cond || $show_woo_cond ) {
echo '- ';
do_action( 'ocean_before_archive_product_price' );
woocommerce_template_loop_price();
do_action( 'ocean_after_archive_product_price' );
echo '
';
} else {
$ocean_woo_cond_msg = get_theme_mod( 'ocean_shop_cond_msg', 'yes' );
if ( $ocean_woo_cond_msg === 'yes' ) {
// Get Add to Cart button replacement message.
$woo_cond_message = get_theme_mod( 'ocean_shop_msg_text' );
$woo_cond_message = $woo_cond_message ? $woo_cond_message : esc_html__( 'Log in to view price and purchase', 'oceanwp' );
$woo_add_myaccunt_link = get_theme_mod( 'ocean_shop_add_myaccount_link', false );
echo '- ';
if ( false === $woo_add_myaccunt_link ) {
echo '' . $woo_cond_message . '';
} else {
echo '' . $woo_cond_message . '';
}
echo '
';
}
}
do_action( 'ocean_after_archive_product_inner' );
// Display rating.
echo '- ';
do_action( 'ocean_before_archive_product_rating' );
woocommerce_template_loop_rating();
do_action( 'ocean_after_archive_product_rating' );
echo '
';
// Display product description for product archive List view.
do_action( 'ocean_before_archive_product_description' );
if ( ( oceanwp_is_woo_shop() || oceanwp_is_woo_tax() )
&& get_theme_mod( 'ocean_woo_grid_list', true ) ) {
$length = get_theme_mod( 'ocean_woo_list_excerpt_length', '60' );
echo '- ';
if ( ! $length ) {
echo wp_kses_post( strip_shortcodes( $post->post_excerpt ) );
} else {
echo wp_trim_words( strip_shortcodes( $post->post_excerpt ), $length ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
}
echo '
';
}
do_action( 'ocean_after_archive_product_description' );
echo '
';
if ( function_exists( 'wc_get_template' ) ) {
wc_get_template( 'owp-archive-product-thumbnails.php' );
}
echo '';
do_action( 'ocean_after_archive_product_item' );