PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Wanted to display the current category TITLE on my shop page as selected by the WOOF filter

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

https://marketplace.clinchflyfishing.com/shop/?swoof=1&product_cat=hats

 

Everything is working great right now and I did have the category titles showing previously but it just stopped working for some reason.

Here is the functions.php script we are using now:

add_action('woocommerce_before_shop_loop', 'show_category_title', 10, 2);

function show_category_title() {
$cat_title = single_tag_title("", false);
echo '<h1 class="category-title">' . $cat_title . '</h1>';
}

We did get our vendor locations to show up after filtering them like so:

add_action( 'woocommerce_after_shop_loop_item_title', 'custom_field_display_below_title', 30 );
function custom_field_display_below_title(){
global $product;

$values = (array) get_field( 'product_location', $product->get_id() ); // Get custom field values

// Display custom field values
if( ! empty($values) ) {
echo '<p class="vendor-location"><a class="vendor-name-link" href="' . get_bloginfo('url') . '/shop/?swoof=1&pa_location=' . str_replace("","-", strtolower(implode( ', ', $values ))) . '" class="product_location">' . implode( ', ', $values ) . '</a></p>';
}
}

Any ideas?

Woody House

 

 

Hello

Please paste your license key here - https://share.pluginus.net/image/i20210618130558.png -> https://share.pluginus.net/image/i20210618130614.png

Update  the  plugin to latest  version - https://products-filter.com/how-to-make-auto-update-for-wordpress-plugins-and-themes-bought-on-envato

Unfortunately code customization and fixing custom code is not included in the support. You should contact the developer who made this task for you