Skip Navigation

[Resolved] Cred commerce

This thread is resolved. Here is a description of the problem and solution.

Problem:

The issue here is that the user wanted too use a multi select field to offer different membership levels With CRED commerce.

Solution:

Unfortunately only a simple select field will work with CRED Commerce and users can only select one option.

This support ticket is created 6 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 7 replies, has 2 voices.

Last updated by Steve 6 years, 9 months ago.

Assisted by: Shane.

Author
Posts
#616514

I have a cred form where artists apply to be in a show. There is a fee and also they must be members of the museum

So i want them to be able to pick one or the other product or in some cases both or neither ( may be a member and the fee is waived if they are a student)

Ive made a mutli select field like this below. However when i check "The form specifies the product according to the value of this custom field:" The field doesnt sho up in the drop down so i can select it.

Am i misunderstanding how this works perhaps?

Thanks

[cred_generic_field field='Purchase' type='multiselect' class='' urlparam='']
{
"required":0,
"validate_format":0,
"default":[],
"options":[
{"value":"3520","label":"Membership"},
{"value":"15808","label":"Fee"}
]
}
[/cred_generic_field]

#616543

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Steve,

Thank you for contacting our support forum.

Could you try adding persist:1, to the fields.

So it should look like this.

[cred_generic_field field='Purchase' type='multiselect' class='' urlparam='']
{
"required":0,
"persist":1,
"validate_format":0,
"default":[],
"options":[
{"value":"3520","label":"Membership"},
{"value":"15808","label":"Fee"}
]
}
[/cred_generic_field]

Please add this and then save the form and check again to see if the fields so up.

Thanks,
Shane

#616551

Shane I have done that but the issue remains.

Thanks very much

Steve

#616560

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Steve,

Would you mind providing me with admin access to the site so that I can have a look at this for you ?

The private fields have been enabled for your next response.
Thanks,
Shane

#616819

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Steve,

Thank you for the credentials.

The issue was that you set the field as a multiselect. Our documentation says that this will only work with a select field or a radio button field.

I changed the field type to a select field and it should work now.

Thanks,
Shane

#616869

Thanks Shane I did read the docs which say "A select or radio input would be great for this purpose." I incorrectly assumed other types would work.

Am i to understand then there is no way for me to offer several products and have someone select one or multiple products.

Thanks for clarifying

#616880

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Steve,

Unfortunately no there isn't a way because this feature is just a simple one to allow our customers to plugin into woocommerce to charge for subscriptions so its not possible to have multiple selected options.

Thanks,
Shane

#616881

Ok Shane thanks for clarifying that and your help

Steve