Site logo

Archived topic

WooCommerce Modification

3 replies · Started by Matt Stern on August 7, 2021

Viewing posts 1–4 of 4

Hi Guys,

This may be more than you can help with here, but I'll ask just in case. :)

On a Woocommerce catalog page, such as this one: https://3sternstaging.com/product-category/air-purifiers/, we're using Filters (by Attribute) in the left sidebar.

Is there a way to show the Attributes selected either below or in place of the Category Title (Air Purifiers) and the Category Description (lorem ipsum text)?

So if you click on Asthma and Mold, for example, those terms show up on the right side above the product grid?

Thanks in advance,

Matt

Hi there,

not sure on this, the most i could find on Stackexchange was this:

https://wordpress.stackexchange.com/a/248721

Which gets the [filter_atrribute] strings from the URL

If that works then you could use a Hook Element to run this PHP:

<?php
    $filter_color = $_REQUEST['filter_color'];
    if ($filter_color) {
        echo $filter_color;
    }
?>

And use the woocommerce_archive_description hook for its display.

Bit skeptical that will do what you need, but couldn't find much else on this.

Thanks, David, I'll check it out.

You're welcome

This archived topic is closed to new replies.