Reply to: tickets(316502)

I didn’t know Code Canyon had such a crazy support policy for paying customers to not help.
If you can’t provide any code examples…maybe you could help clarify.

On #1:  I thought you could add more check boxes pretty easy. (I actually thought it was a built in feature.)
I am just a bit confused by your guide that you have. Not looking for you to write all the code for me, the guide is just a bit confusing and if you could help me figure this out that would be great.

On your first part, you say to write something like this:

add_filter(‘evoau_form_fields’, ‘evoautest_fields_to_form’, 10, 1);
function evoautest_fields_to_form($array){
$array[‘evotest’]=array(‘Test Fields’, ‘evotest’, ‘evotest’,’custom’,”);
return $array;
}

So I tried to tweak like this:

add_filter(‘evoau_form_fields’, ‘evoautest_fields_to_form’, 10, 1);
function evoautest_fields_to_form($array){
$array[‘alcoholfree’]=array(‘Alcohol Free Event’, ‘alcoholfree’, ‘alcoholfree’,’custom’,”);
return $array;
}

As you can see, I tried on that one. But all your article says is that you added the one identifier. (evotest) in your example.
But you don’t mention what the other parts are, like evoautest. because the word “test” is in there, I’m assuming that needs to be unique as well, but I don’t really get it. (I need to add two different check boxes.)

But on the front end – according to your guide in the second part I have to add this code:

// actionUser integration
add_action(‘evoau_frontform_evotest’, ‘evoautest_fields’, 10, 6);

// Frontend showing fields and saving values
function evoautest_fields($field, $event_id, $default_val, $EPMV, $opt2, $lang){
$helper = new evo_helper();
echo “<div class=’row evotest’><p>”;
$evoau_test_value = ($EPMV && !empty($EPMV[‘evoau_test_value’]) && $EPMV[‘evoau_test_value’][0]==’yes’)? true: false;
echo $helper->html_yesnobtn(array(
‘id’=>’evoau_test_value’,
‘input’=>true,
‘label’=>evo_lang_get(‘evoAULtest_1’, ‘Test Input Field’, $lang, $opt2),
‘var’=> ($evoau_test_value?’yes’:’no’),
‘lang’=>$lang,
‘afterstatement’=>’evoau_test_value_section’
));

echo “</p></div>”;
}
// save the values to event post meta
add_action(‘evoau_save_formfields’, ‘evoautest_save_values’, 10, 3);
function evoautest_save_values($field, $fn, $created_event_id){
if( $field ==’evotest’){

// for each above fields
foreach(array(
‘evoau_test_value’,
) as $field){
if(!empty($_POST[$field]))
add_post_meta($created_event_id, $field, $_POST[$field]);
}
}
}

If I just replace evotest with alcoholfree and change the name of the Test Input Field – there is still that evoautest value in there.
The word “test” in there confuses me. Maybe it has nothing to do with test at all so I don’t have to worry about it?

If you could clarify on this that would be great. Do I only need to replace the identifier and the field name to have a choice on my form?

Also, since I need to add two (The other one being “Family Friendly”) – do I just repeat all that code for the second one?

My third question is you have these numbers: 10, 1 in the first and 10, 6 and 10, 3 in the second chunk of code. Why are those all different – that is totally confusing to me.

Thanks so much for any help/clarification on all this!!!

Reply to: tickets(297336)

championshrine.org/wp-admin

user:tempsupport

pswd: fQH#0(8vqiWIAfXFB8FB52r@

I updated the wp-config file and removed the comment.

 

Reply to: tickets(316574)

Thank you so much for answering in WordPress Org and being patience, and I understand about your working hours.

I went through what you told me to do, and it’s already there (attached). It’s still not solved.

Please and thank you.

Reply to: tickets(316694)

I already have the plugin installed correctly, but it still does not let me see the events of the whole year, can you tell me how to use the same visualization but that allows me to see all the events of the year, with the highlighted image of each event.

in addition to this I have changed the language in the L2 option but in the plugin it does not change the language, both in the event cards and in the event cards.

Reply to: tickets(315595)

This checkbox shouldn’t be enabled:

EventON only allows one checkbox – Virtual.

Maybe there is a plugin that also have access to EventON’s Ticket Products and changes them automatically?

Reply to: tickets(316744)

Hello,

Unfortunately, I don’t think that downgrading will help in your case. Have you tried my suggestion from your previous ticket?