4 January 2022

Build a property listing site using WooCommerce and Fluent Forms free version

The link to the video:
https://youtu.be/D1dDhkfNaDA

The function code:

function remove_woocommerce_product_tabs( $tabs ) 
{			
	unset( $tabs['description'] );
	unset( $tabs['reviews'] );
//	unset( $tabs['additional_information'] );
	return $tabs;		
}
add_filter( 'woocommerce_product_tabs', 'remove_woocommerce_product_tabs', 98 );	

add_filter( 'woocommerce_product_additional_information_heading', 'by_change_additional_information_heading' );
/**
 * @return string Modified value for product's "Additional information" text.
 */
function by_change_additional_information_heading() {
	return __( 'Property Details', 'mytextdomain' );
}

add_filter('gettext', 'translate_category' );

function translate_category($text) { 
	
  $text = str_ireplace('Tag', 'Collection', $text);
  return $text; 
}

// To change add to cart text on product archives(Collection) page
add_filter( 'woocommerce_product_add_to_cart_text', 'woocommerce_custom_product_add_to_cart_text' );  
function woocommerce_custom_product_add_to_cart_text() {
    return __( 'View Property', 'woocommerce' );
}

Code block to display the categories:

<?php
	global $product; 
echo 'Province: ' . $product->get_categories( ', ', ' ' . _n( ' ', '  ', $cat_count, 'woocommerce' ) . ' ', ' ' );
?>

CSS Added

ul.tabs.wc-tabs {
    display: none !important;
}
div#div_block-4-99 li {
    list-style: none;
}
h2.widgettitle {
	font-size:18px;
	
}
.woocommerce .woocommerce-widget-layered-nav h2 {
	font-weight:500;
}
BYoung Design
CONTACT
Newsletter Form (#17)

Subscribe to our newsletter

Welcome to our Newsletter Subscription Center. Sign up in the newsletter form below to receive the latest news and updates.


Want to rank higher in search engines?

There are a number of factors that can affect how high your website ranks in search engines such as Google. These factors include the keywords you optimize your site for, your domain's age, keyword density, and the amount of, quality, backlinks to your site. In order to rank your site higher in search engines, you will need to work on gaining the proper backlinks and targeting high traffic keywords.

We can help you rank better.
Back to Top
envelopephonemenuchevron-upcross-circle