How to capture data from my woocommerce filter?

0

Good morning, I need to capture my filter data as shown in the image so that when I clicked on the "find product" button, I sent them as an application form to an email. But all I need to know is how I can capture that data. An example could help me.

Add: the filter is a plugin called VPF Vehicle part finder

    
asked by Guille Figueroa 10.07.2017 в 18:49
source

1 answer

0

I have seen that the filter sends the data by GET in the url:

http://wc.wpinstinct.com/?make=6&model=48&year_id=55&engine=&category=17&s=&post_type=product&action=vpf-search

Then you could capture these get variables when the user clicks on "filter" or "finds your product" and sends them to an email. Here is a guide: link

The other option would be to capture the information from those fields by means of javascript / Jquery each time they change and then send it.

Here is a guide: link

What is not clear to me is if the button "finds your product" is going to be inside the filter or outside, in the products.

    
answered by 10.07.2017 / 19:30
source