• Resolved gregorr64

    (@gregorr64)


    Hi,

    How can I hide the calculated fields in the cart and order info and only show the users input fields?

    I don’t want the user to be able to see the calculations or the values of each and I need to be able to see which options they have picked.

    Thanks,
    Gregor

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

    (@codepeople)

    Hello @gregorr64,

    From the products’ settings:

    – Tick the checkbox: “Activate the summary”
    – and then into the summary attribute you should enter only the special tags of the fields you want to include in the shopping cart and orders. For example, if the input tags are the fieldname5 and fieldname9 and you want to display their labels in bold and values in italic, the piece of code can be similar to:

    
    <p><b><%fieldname5_label%></b>: <i><%fieldname5_value%></i></p>
    <p><b><%fieldname9_label%></b>: <i><%fieldname9_value%></i></p>
    

    More information in the following links:

    https://cff.dwbooster.com/documentation#woocommerce-addon
    https://cff.dwbooster.com/documentation#thanks-page

    I’m sorry, but if you need additional support for features in the commercial versions of the plugin you should create a ticket in my private website:

    https://cff.dwbooster.com/contact-us

    Best regards.

    • This reply was modified 6 years, 3 months ago by codepeople.
    Thread Starter gregorr64

    (@gregorr64)

    Hi,

    I’ve put the code into the summary section but it’s only showing the “:” of each line.

    Any ideas?

    Sorry about that, I’ll use the contact us area next time.

    Thanks,
    Gregor

    Plugin Author codepeople

    (@codepeople)

    Hello,

    My apologies, copy and paste with typo, bad combination, the correct code would be:

    
    <p><b><%fieldname5_label%></b>: <i><%fieldname5_value%></i></p>
    <p><b><%fieldname9_label%></b>: <i><%fieldname9_value%></i></p>
    

    But of course, you should use the names of the fields in your form, I’m using fieldname5 and fieldname9 only to describe the process.

    Best regards.

    Thread Starter gregorr64

    (@gregorr64)

    Hi,

    I’ve tried that and I’m still only getting the “:”.

    Thanks,
    Gregor

    Thread Starter gregorr64

    (@gregorr64)

    Sorry, my mistake.

    The fields are hidden by a dependency, appears to be working now.

    Thanks,
    Gregor

    Plugin Author codepeople

    (@codepeople)

    Hello @gregorr64,

    Thank you very much for letting me know that everything is working properly.

    Best regards

    Thread Starter gregorr64

    (@gregorr64)

    I’ve noticed that when a checkbox field isn’t ticked, the field name doesn’t show up. I’m using a checkbox field as a yes/no field. Is there a better way to do this so that I can see the “no” selection on the orders?

    Thanks,
    Gregor

    Plugin Author codepeople

    (@codepeople)

    Hello gregorr64,

    That is not an issue, it is the HTML standard, if the radio buttons or checkboxes are not ticked, these fields simply are not submitted. The alternative, if you need a Yes or No answer is: insert a radio button with two choices, for Yes and No, and configure this field as required, so the user must select one choice to submit the form.

    Best regards.

    Thread Starter gregorr64

    (@gregorr64)

    Right that makes sense, I’ll do that.

    Thanks,
    Gregor

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘How to Choose which fields are visible in cart and order info’ is closed to new replies.