• Resolved jim28100

    (@jim28100)


    Hi, we’ve been using CFF for a while to create a subscription calculator for our tennis club. Unfortunately, this has now stopped working. The site’s software is up-to-date. It is using Elementor as a page builder and Generate Press as a theme.

    What I’m seeing…
    The ‘Subscriptions’ fields should be displaying the data that is being inputed via the shortcode.

    [CP_CALCULATED_FIELDS id=”12″ famdisc=”5″ maxfamdisc=”12.5″ affindisc=”5″ maxaffindisc=”20″ joinvalue=”0″ joinnums=”0″ minisub=”40″ juniorsub=”70″ studentsub=”91″ offpeaksub=”184″ seniorsub=”222″ assocsub=”15″ countrysub=”74″]

    Selecting membership category (or categories) do not produce a calculation.

    I have tried turning off all plugins except CFF and changing the theme to the default WP theme twenty twenty-four without success. I’ve also tried the page in different browsers too.

    I’d be most grateful of any help.

    Jim

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @jim28100,

    Thank you very much for using our plugin. The way of accessing the additional form shortcode attributes changed some versions ago. The additional attributes were converted into global javascript variables in previous plugin versions. However, this implementation has a problem. If other plugins define variables for their use, and they matched with the additional shortcode attributes, they were overwriting causing the malfunction of third-party plugins.

    In the latest plugin updates, this method changed. Now our plugin generates the global object cff_var, and the additional shortcode attributes are properties of this object.

    So, instead of directly accessing the joinvalue or seniorsub variables, you must use cff_var.joinvalue and cff_var.seniorsub respectively. Follow the same principle with the other attributes.

    Best regards.

    Thread Starter jim28100

    (@jim28100)

    Thanks for coming back so quickly…

    If I’m understanding you correctly, all shortcode variables are now appended with the precursor ” cff_var.”, which will result in the following shortcode.

    [CP_CALCULATED_FIELDS id=”12″ cff_var.famdisc=”5″ cff_var.maxfamdisc=”12.5″ cff_var.affindisc=”5″ cff_var.maxaffindisc=”20″ cff_var.joinvalue=”0″ cff_var.joinnums=”0″ cff_var.minisub=”40″ cff_var.juniorsub=”70″ cff_var.studentsub=”91″ cff_var.offpeaksub=”184″ cff_var.seniorsub=”222″ cff_var.assocsub=”15″ cff_var.countrysub=”74″]

    If this is correct then unfortunately it still isn’t working.
    https://www.crowthornetennisclub.co.uk/tennis-club-membership/subscription-costs-test/

    If you have a secure method of communication then I can send over a WP login if it will make things easier?

    Jim

    Plugin Author codepeople

    (@codepeople)

    Hello @jim28100,

    No, the shortcode structure does not vary, only the access to the variables from the equations or any other code in the form.

    So, the shortcode would be:

    [CP_CALCULATED_FIELDS id="12" famdisc="5" maxfamdisc="12.5" affindisc="5" maxaffindisc="20" joinvalue="0" joinnums="0" minisub="40" juniorsub="70" studentsub="91" offpeaksub="184" seniorsub="222" assocsub="15" countrysub="74"]

    But if you want to access the affindisc from the equation, you must use cff_var.affindisc

    Best regards.

    Thread Starter jim28100

    (@jim28100)

    OK. Got it. It’s working now.

    Thanks for your help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘CFF Form no longer working’ is closed to new replies.