xw7
Forum Replies Created
-
Hi @shellbeezy
Thank you for your reply.
You are correct it is used for connect accounts, we have a main platform account with over 300 custom connect accounts and each one needs to have a fee deducted based on what we have agreed with them as we get volume pricing and we needed to send these values over as well which we have managed to do using the abstract file.
It’s quite unique what we were trying to do and understand the plugin isn’t exactly designed to do that but we wanted the latest version for SCA.
As we have managed to complete this task I will now mark it as resolved.
- This reply was modified 5 years, 4 months ago by xw7. Reason: Resolved
Forum: Plugins
In reply to: [CMB2] Repeatable Group Field Default RepeatsNo problem Michael, I’ll post both short term fix and final coding to help others.
Forum: Plugins
In reply to: [CMB2] Repeatable Group Field Default RepeatsThanks Michael,
I’ll write my own code to get this task done, just thought I’d ask incase it already had this function.
Forum: Plugins
In reply to: [CMB2] Input – onchange event?I didn’t even know this was possible without hardcoding! Saved me a lot of time.
Keep up the good work, CMB2 is excellent.
Forum: Plugins
In reply to: [Simple Locator] Add More Search FieldsManaged to fix it! Simple mistake to make, got it working now and it’s pulling it all in.
Forum: Plugins
In reply to: [Simple Locator] Add More Search FieldsKyle, we made the usual changes but assume we are going wrong somwhere as it isnt working. We changed the following files and added into the sections stated – are we missing anything obvious?
Field is called property_bedrooms in the database and the file being pulled in is pyb but it doesn’t seem to pull the value through.
If we set the code below to the following manually it works property_bedrooms >= ‘3’
I have a feeling some of the edits below may not be required but trying everything to get it to work.
Any help would be appreciated.
LocationSearch.php - Sanitize and set the user-submitted data 'pyb' => sanitize_text_field($_POST['pyb']), - added this to SET QUERY DATA $this->query_data['pyb'] = $this->data['pyb']; - Added this to set the query AND property_bedrooms >= 'pyb'
simple-locator-form.php / FORM <select name="pyb"> <option value="1">1</option> <option value="6">6</option> <option value="9">9</option> </select>
Forum: Plugins
In reply to: [CMB2] Frontend FieldsI’ve found another way around it, thank you for your help.
Forum: Plugins
In reply to: [CMB2] Frontend FieldsYes, we looked at that but couldn’t quite get what it was on about, at the moment it uses another plugin to create the form and submit the post and it works fine, we just need to pull in more fields using CMB2, we managed to get it working correctly using the dashboard to submit the information but can’t get it on frontend. Below is the code to make it work on the backend, if you can give any pointers on how to get those fields on the front it would be much appreciated, we have access to the files but no sure how we get them all to work.
Thanks again.
add_action( 'cmb2_init', 'wp_register_repeatable_group_field_metabox' ); /** * Hook in and add a metabox to demonstrate repeatable grouped fields */ function wp_register_repeatable_group_field_metabox() { // Start with an underscore to hide fields from custom fields list $prefix = '_wp_group_'; /** * Repeatable Field Groups */ $cmb_group = new_cmb2_box( array( 'id' => $prefix . 'metabox', 'title' => __( 'Add Rooms', 'cmb2' ), 'object_types' => array( 'property', ), ) ); // $group_field_id is the field id string, so in this case: $prefix . 'demo' $group_field_id = $cmb_group->add_field( array( 'id' => $prefix . 'demo', 'type' => 'group', 'description' => __( 'Please add rooms below.', 'cmb2' ), 'options' => array( 'group_title' => __( 'Room {#}', 'cmb2' ), // {#} gets replaced by row number 'add_button' => __( 'Add Another Room', 'cmb2' ), 'remove_button' => __( 'Remove Room', 'cmb2' ), 'sortable' => true, // beta // 'closed' => true, // true to have the groups closed by default ), // 'on_front' => true, // Optionally designate a field to wp-admin only ) ); /** * Group fields works the same, except ids only need * to be unique to the group. Prefix is not needed. * * The parent field's id needs to be passed as the first argument. */ $cmb_group->add_group_field( $group_field_id, array( 'name' => __( 'Room Name', 'cmb2' ), 'id' => 'room_name', 'type' => 'text', // 'repeatable' => true, // Repeatable fields are supported w/in repeatable groups (for most types) ) ); $cmb_group->add_group_field( $group_field_id, array( 'name' => __( 'Room Length', 'cmb2' ), 'id' => 'room_length', 'type' => 'text', // 'repeatable' => true, // Repeatable fields are supported w/in repeatable groups (for most types) ) ); $cmb_group->add_group_field( $group_field_id, array( 'name' => __( 'Room Width', 'cmb2' ), 'id' => 'room_width', 'type' => 'text', // 'repeatable' => true, // Repeatable fields are supported w/in repeatable groups (for most types) ) ); $cmb_group->add_group_field( $group_field_id, array( 'name' => __( 'Description', 'cmb2' ), 'description' => __( 'Write a short description for this entry', 'cmb2' ), 'id' => 'description', 'type' => 'textarea_small', ) ); $cmb_group->add_group_field( $group_field_id, array( 'name' => __( 'Entry Image', 'cmb2' ), 'id' => 'image', 'type' => 'file', ) ); }
Forum: Plugins
In reply to: [Simple Locator] Add More Search FieldsWe are able to update the search Query and PHP just need to know which files control the search. We have managed to update the SQL to include more fields from database but only if input manually into SQL Query. When we try and pull in the value from the form it doesn’t pull our extra values in, only the values from your initial fields which made us think there is another file controlling what is pulled through the form. Hope this makes sense.
Forum: Plugins
In reply to: [Simple Locator] Add More Search FieldsThanks for your response Kyle, which file(s) control the search fields as we have managed to add more select boxes but the values are not pulling through at the moment and is pinging back as null.
Any help would be appreciated.
Forum: Plugins
In reply to: [Easy Property Listings] Frontend SubmissionIs it possible to hide certain parts of the property submission on the front-end for example we dont want to allow the end user to add files and links and some others.
Forum: Plugins
In reply to: [Easy Property Listings] Frontend SubmissionAny help would be much appreciated on this one.
Forum: Plugins
In reply to: [Easy Property Listings] Front-EndTrue to your word it’s been fixed! Thank you again Merv, couldn’t recommend your plugin/service more highly! Second to none!
Forum: Plugins
In reply to: [Easy Property Listings] Custom FieldsManaged to fix this on my own. Thank you.
Forum: Plugins
In reply to: [Easy Property Listings] Listing UnlimitedThanks Merv,
I am not importing at the moment, but may need to in the near future.
https://easypropertylistings.com.au/docs/epl_listing_meta_boxes-filter-all-available-meta-fields/
The link above was exactly what I was looking for at the minute! Thank you.