Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Set custom really_curr_tax

$
0
0

Replies: 0

Hi, I’m working on a page that is using this plugin (Products Filter for WooCommerce)

I didn’t develop this website, I’m just adding more stuff but I noticed that in the page where I have this filter I have this script on my html page:

<script type="text/javascript">
            var woof_is_permalink =1;

            var woof_shop_page = "";
        
            var woof_really_curr_tax = {};
            var woof_current_page_link = location.protocol + '//' + location.host + location.pathname;
            //***lets remove pagination from woof_current_page_link
            woof_current_page_link = woof_current_page_link.replace(/\page\/[0-9]+/, "");
                    var woof_link = 'https://www.madisa.com/wp-content/plugins/woocommerce-products-filter/';

           woof_really_curr_tax = {term_id:6128, taxonomy: "product_cat"};
</script>

I tried to replicate the filter using shortcodes in my home page to make a form that redirect to my catalog (where I also have this filter) and works ok but in catalog page when I use the plugin it adds a param like this at the end of the URL: “&really_curr_tax=6128-product_cat” which I think comes from the script on this line: woof_really_curr_tax = {term_id:6128, taxonomy: “product_cat”}; same line that does not apper on my home page in that place I have the next line: var woof_link = ”. I think I have searched in every option of the plugin but I cant find where this line could be implemented so I can do the same on my home page or if the plugin has an option to add a custom param in the URL.

Hope I could express myself correctly, thank you for any kind of tip or solution.


Viewing all articles
Browse latest Browse all 59525

Trending Articles