• Resolved aarraez

    (@aarraez)


    I am currently using your plugin for managing donations on my WordPress site, and I have a question regarding its integration with the Flexible Custom Fields plugin.

    I would like to implement a logic where, if a donation amount is 100 or more, it becomes mandatory for users to provide their first and last name. If the donation amount is less than 100, this information or any information should not be required.
    Could you please advise me on how to achieve this functionality? Is there a specific way to set this up within your plugin or any hooks I should consider?
    I’ve already contact the Flexible Custom Fields support plugin too but nothing yet.

    Best regards,

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jonas

    (@flinnn)

    Hi aarraez,

    Thanks for reaching out! This sounds like a bit of a tricky setup, but I have a suggestion that might help. While there isn’t a built-in way to achieve this directly within the plugin, I would recommend using a custom JavaScript snippet to hide and show the name fields based on the donation amount.

    To make this easier, I’d suggest using ChatGPT to help you generate the JavaScript snippet that can automatically prefill the name fields and toggle their visibility based on the cart contents.

    Best,
    Jonas

    Thread Starter aarraez

    (@aarraez)

    Hi Jonas,

    Thank you for response I appreciate your effort to help.

    However, I had already considered using JavaScript to achieve that and also php. Unfortunately, that solution doesn’t fully address my requirements, as I was hoping for a more integrated approach within the plugin.

    I understand this might be a more complex request, but if there’s any further guidance or alternatives you can suggest, I’d greatly appreciate it. In the meantime I’ll try to convince my client to keep the solution you suggest

    Thank you again for your time.

    Best regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.