Begin
Forum Replies Created
-
Forum: Plugins
In reply to: [CMB2] The default parameter don’t work in group fieldsAlso tried removing all the readonly attributes and edit the field values manually in the edit post page. still will add the next one with the values of the last one.
- This reply was modified 7 years, 7 months ago by Begin.
Forum: Plugins
In reply to: [CMB2] The default parameter don’t work in group fieldsonly added values by using:
$my_group = get_post_meta( $propostid, 'pro_paypal_kidum', true ); $my_group[] = array( 'place' => $stickyplaceid, 'state' => 'active', 'payer_mail' => $payer_email, 'start' => $format_action_date->format('d/m/Y'), 'subscr_id' => $subscr_id, 'price' => $mc_amount3, 'fee' => $mc_fee); update_post_meta( $propostid, 'pro_paypal_kidum', $my_group );
Forum: Plugins
In reply to: [CMB2] The default parameter don’t work in group fieldsI reset the field (let’s start clean) by doing:
update_post_meta( '882', 'pro_paypal_kidum', '' );
and then hit “update” on the edit post page.Then i add values to the first (only) group. hit “update”.
Now when i add another group (no matter how many of them) they all have the same values of the first one. btw – only the text fields. the select fields are blank (like suppose to be).
- This reply was modified 7 years, 7 months ago by Begin.
Forum: Plugins
In reply to: [CMB2] The default parameter don’t work in group fieldsUpdate: even after reseting the database it seem to come back if remove all fields. weird thing ??
Forum: Plugins
In reply to: [CMB2] The default parameter don’t work in group fieldsif i reset the database it’s ok.
Forum: Plugins
In reply to: [CMB2] The default parameter don’t work in group fieldsJust to make it clearer what happens is no matter how many times i add a new group they all added with the same values of that old (removed) one.
Forum: Plugins
In reply to: [CMB2] The default parameter don’t work in group fieldsoh, ok here it is:
// PayPal Box add_action( 'cmb2_init', 'add_pro_paypal_box' ); function add_pro_paypal_box() { global $listmesettings_id; $pro_paypal_box = new_cmb2_box( array( 'id' => '_pro_paypal_box', 'title' => '???? ????? ????????', 'object_types' => array( 'post_type_pros' ), 'context' => 'normal', 'priority' => 'high', ) ); // Set places holder var (for Kidum group) foreach (get_categories('taxonomy=places_taxonomy&hide_empty=0') as $places_term ) { $places_options[$places_term->cat_ID] = $places_term->name;} // Kidum group $pro_paypal_kidum = $pro_paypal_box->add_field( array( 'id' => 'pro_paypal_kidum', 'type' => 'group', 'options' => array( 'group_title' => '??? ????? {#}', 'add_button' => '???? ??? ?????', 'remove_button' => '??? ??? ?????', ), ) ); $pro_paypal_box->add_group_field( $pro_paypal_kidum, array( 'name' => '????', 'id' => 'place', 'type' => 'select', 'show_option_none' => true, 'options' => $places_options, ) ); $pro_paypal_box->add_group_field( $pro_paypal_kidum, array( 'name' => '??? ?????', 'id' => 'state', 'type' => 'select', 'show_option_none' => true, 'options' => array( 'active' => '????', 'canceled' => '?????', ), ) ); $pro_paypal_box->add_group_field( $pro_paypal_kidum, array( 'name' => '???? ?? ????? ????', 'id' => 'payer_mail', 'type' => 'text', 'attributes' => array( 'readonly' => 'readonly', ), ) ); $pro_paypal_box->add_group_field( $pro_paypal_kidum, array( 'name' => '?????', 'id' => 'start', 'type' => 'text_small', 'attributes' => array( 'readonly' => 'readonly', ), ) ); $pro_paypal_box->add_group_field( $pro_paypal_kidum, array( 'name' => '????', 'id' => 'end', 'type' => 'text_small', 'attributes' => array( 'readonly' => 'readonly', ), ) ); $pro_paypal_box->add_group_field( $pro_paypal_kidum, array( 'name' => '???? ????? ????', 'id' => 'subscr_id', 'type' => 'text_small', 'attributes' => array( 'readonly' => 'readonly', ), ) ); $pro_paypal_box->add_group_field( $pro_paypal_kidum, array( 'name' => '????', 'id' => 'price', 'type' => 'text_small', 'attributes' => array( 'readonly' => 'readonly', ), ) ); $pro_paypal_box->add_group_field( $pro_paypal_kidum, array( 'name' => '????', 'id' => 'fee', 'type' => 'text_small', 'attributes' => array( 'readonly' => 'readonly', ), ) ); }
Forum: Plugins
In reply to: [CMB2] The default parameter don’t work in group fieldsWhat details?
Forum: Plugins
In reply to: [CMB2] The default parameter don’t work in group fieldsI updated to 2.2.5.1, Still has some buggy thing, sometimes when i remove and add new the new one has values from deleted one.
Forum: Plugins
In reply to: [CMB2] The default parameter don’t work in group fieldsGreat! Thanks!
Forum: Plugins
In reply to: [CMB2] The default parameter don’t work in group fieldsOk, i had to reset the database after updating to get rid of this last problem. thanks.
Forum: Plugins
In reply to: [CMB2] The default parameter don’t work in group fields*For some reason now that i updated my “remove this group” button is disabled. weird bug ill open up another threat though…
- This reply was modified 7 years, 7 months ago by Begin.
Forum: Plugins
In reply to: [CMB2] The default parameter don’t work in group fieldsOh, i was using 2.2.4, and now i updated to 2.2.5 and it works. Thanks!
Forum: Plugins
In reply to: [PayPal IPN for WordPress] Getting IPN but $posted and $_POST are emptyThanks, i would be using this gladly, but it’s really expensive for me, i guess ill try to make a regular IPN listener with the PayPal examples. thanks any way!
Forum: Plugins
In reply to: [PayPal IPN for WordPress] Getting IPN but $posted and $_POST are emptyI don’t do anything to affect the $posted data anywhere. also tried on another site and it was the same result so i guess it doesn’t have to do with the theme. also tried to deactivate all plugin and get the same result still.