Support » Plugin: GravityWP - Count » Does this work with product fields?

  • Resolved mrwweb

    (@mrwweb)


    As best I can tell, this plugin currently doesn’t work with checkbox/radio/dropdown fields that are part of a product. Is that correct?

    I’ve got an Option field associated with a project using radio buttons, but it doesn’t seem to work. Other testing with non-product/option fields works fine.

    Here’s a screenshot of the field. And here’s my shortcode (I’m 100% sure of the formid):

    [gravitywp_count formid="2" filter_field="13" filter_value="{Value copied directly from form}"]

    The value (removed since it’s a client site) does contain spaces and a hyphen, but I doubt that’s the problem.

    This seems like a great plugin and I suspect I’ll return to it some time, even if this use isn’t supported. Thanks!

    • This topic was modified 2 years, 4 months ago by mrwweb.
    • This topic was modified 2 years, 4 months ago by mrwweb.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author GravityWP

    (@gravitywp)

    Hi Mark,

    Thanks for the compliment!

    Concerning your current problem: Could you try it with:

    filter_mode='contains'

    I found here some interesting code that looks like product fields are treated differently, but I’m not sure. If this solves the problem, let me know. If not, than it’s probably going to take more time to add product filter functionality.

    Thanks for the quick response. That did not fix the issue for me. I also tried shortening the filter_value I was looking for (to remove the hyphen it contains) and that didn’t help either.

    Plugin Author GravityWP

    (@gravitywp)

    Hi Mark,

    than I think it’s really a different way GF is handling product field filtering.

    Quick and dirty solutions would be:

    • to use conditional logic and in your example create 5 different fields (can be text lines with a standard value filled in) and turn it on invisible. This way you can create shortcodes based on those text fields.
    • you could the Gravity Perk Preview Submission to fill in one text field with the value of the product field in a later step in the form
    • you could have a Gravity Flow step to fill in an extra field in your form with the final choice after submission with the form connector add-on.
    • The better solution would be of course to add this functionality to the GravityWP – Count plugin. We will put it on the roadmap, but I can’t promise a final date.

      Hope this answers your question!

    • This reply was modified 2 years, 4 months ago by GravityWP.

    Thanks for the info. Unfortunately, this form is already a few months into collecting information, so we can’t make any changes like this at that point. However, I can definitely think of ways I could have worked around it knowing this limitation in the future.

    This definitely seems like a great feature for the roadmap, but I know how that doesn’t guarantee anything and I just appreciate you considering it.

    Thanks for the excellent support!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Does this work with product fields?’ is closed to new replies.