• Resolved The Wachamacallit

    (@ineed-help)


    Hello Easy Property Listings Team

    I can’t thank you enough for this awesome plugin!

    Would you be so kind, and please tell me, how can I change the following?:

    #1 Instead of saying “Land Area” on the Admin, and “Land” on the Front End,
    I want to say: Lot Size

    #2 Instead of saying “Building Area” on the Admin, and “Floor Area” on the Front End,
    I want to say: Living Area

    #3 Instead of a single check mark on the admin for: Garage, Carport, and Shed, how can I make them a numeric amount? Some houses have more than one Garage, more than one Carport, and more than one Shed.

    #4 How can I add a field to the admin, to input the Number of Stories, so they can be displayed on the front end? You know, like: 1st floor, 2nd floor, 3rd floor etc…

    I really hope my ideas would be a good contribution to your plugin. Looking forward to your reply. Thanks!!

    https://www.ads-software.com/plugins/easy-property-listings/

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Merv Barrett

    (@mervb1)

    Hi there,

    Thanks for the feedback, if you get a chance, leave a review.

    RE: #1 & #2 Land/Building
    — All meta field labels can be adjusted with filters.

    #3 Instead of a single check mark on the admin for: Garage, Carport, and Shed, how can I make them a numeric amount? Some houses have more than one Garage, more than one Carport, and more than one Shed.
    — There are number fields for these… see listing features here.

    #4 How can I add a field to the admin, to input the Number of Stories, so they can be displayed on the front end? You know, like: 1st floor, 2nd floor, 3rd floor etc…
    — Either add a new field, or perhaps modify the Rooms field like shown above.

    Let me know how you go

    Thread Starter The Wachamacallit

    (@ineed-help)

    Thanks a lot for your reply Merv,

    This seems a little too much for me since I really do not program…
    For #1 & 2, if I understand correctly I should edit the “meta-boxes.php”
    So when the plugin gets updated, won’t I have to go there and edit them again?
    What do you recommend so the changes can be permanent even when the plugin gets updated?

    On #3 You’re right, the only numeric field missing is the “Shed” currently as a check box.

    So on #4 The Simplest thing would be to rename either: “Rooms, Ensuite or Toilet” (Since I don’t use those) “To Stories”

    Thinking about it, would it be too much to ask if you could include a new numeric field called: “Stories” and change “Sheds” to a numeric field on your next update?

    Plugin Author Merv Barrett

    (@mervb1)

    RE: 1 and 2, the best is to not edit the plugin files, but use filters. Then when you update the plugin your filters remain intact.

    We can do this for you if you provide details on an hourly rate via our support system.

    We will consider it in a future update, adding filters is quite easy, submit a support ticket for additional guidance.

    Thread Starter The Wachamacallit

    (@ineed-help)

    Ok, so on number 1 and 2
    Would the code look something like this?

    function my_edited_property_land_area($field) {
    
    	$field['label'] = __(‘Lot Size’,’epl');
    
    	return $field;
    
    }
    add_filter('epl_meta_property_land_area','my_edited_property_land_area');
    
    function my_edited_property_land_area_unit($field) {
    
    	$field['label'] = __(‘Lot Size Unit’,’epl');
    
    	return $field;
    
    }
    add_filter('epl_meta_property_land_area_unit','my_edited_property_land_area_unit');
    
    function my_edited_property_building_area($field) {
    
    	$field['label'] = __(‘Living Space’,’epl');
    
    	return $field;
    
    }
    add_filter('epl_meta_property_building_area','my_edited_property_building_area');
    
    function my_edited_property_building_area_unit($field) {
    
    	$field['label'] = __(‘Living Space Unit’,’epl');
    
    	return $field;
    
    }
    add_filter('epl_meta_property_building_area_unit','my_edited_property_building_area_unit');

    Is that right? …

    Thank you for the offer, I already went over budget on this project.

    Awesome! I would appreciate the upcoming update!!

    Plugin Author Merv Barrett

    (@mervb1)

    Looks good just make sure your apostrophe are ‘. Not slanted or you will get an error

    Thread Starter The Wachamacallit

    (@ineed-help)

    Oh my! Thanks a lot Merv!
    It did gave a horrible error that brought the whole site down but now it’s fixed with this:

    function my_edited_property_land_area($field) {
    
    	$field['label'] = __('Lot Size','epl');
    
    	return $field;
    
    }
    add_filter('epl_meta_property_land_area','my_edited_property_land_area');
    
    function my_edited_property_land_area_unit($field) {
    
    	$field['label'] = __('Lot Size Unit','epl');
    
    	return $field;
    
    }
    add_filter('epl_meta_property_land_area_unit','my_edited_property_land_area_unit');
    
    function my_edited_property_building_area($field) {
    
    	$field['label'] = __('Living Area','epl');
    
    	return $field;
    
    }
    add_filter('epl_meta_property_building_area','my_edited_property_building_area');
    
    function my_edited_property_building_area_unit($field) {
    
    	$field['label'] = __('Living Area Unit','epl');
    
    	return $field;
    
    }
    add_filter('epl_meta_property_building_area_unit','my_edited_property_building_area_unit');

    The Admin shows the changes, now, how can I change the front end?
    On the actual single listing page, these fields still read:

    “Land is #X# sqft”
    “Floor Area is #X# sqft”

    How can I make them say:

    Lot Size is: #X# sqft
    Living Area is: #X# sqft

    Plugin Author Merv Barrett

    (@mervb1)

    There are additional front end filters, API Filter reference

    epl_get_property_building_area_label
    epl_get_property_land_area_label

    to test add to your file:

    add_filter('epl_get_property_land_area_label','my_edited_property_building_area_unit');
    add_filter('epl_get_property_building_area_label','my_edited_property_land_area_unit');

    Then create additional filters for the specific label

    We can guide you further with a purchased support plan.

    Thread Starter The Wachamacallit

    (@ineed-help)

    I see, thanks for the pointer Merv,
    The support should be worth it, right now these are all the changes I need so it wouldn’t be a good investment for me, I’m actually doing this for free for a good friend of mine and I’m not making any money.

    Could you please share with me a link to the sample coding of how could I add the Label Filters?

    I tried to do use the same code I used for the Admin Fields with some tweaks but it didn’t work:

    function my_edited_property_land_area_label($label) {
    
    	$label['label'] = __('Lot Size is','epl');
    
    	return $label;
    
    }
    add_filter('epl_get_property_land_area_label','my_edited_property_land_area_label');
    
    function my_edited_property_building_area_label($label) {
    
    	$label['label'] = __('Living Area is','epl');
    
    	return $label;
    
    }
    add_filter('epl_get_property_building_area_label','my_edited_property_building_area_label');
    Plugin Author Merv Barrett

    (@mervb1)

    I’m sure you will figure it out searching the codex or API documentation or searching GitHub.

    For specific help in detail purchase support.

    Thread Starter The Wachamacallit

    (@ineed-help)

    Thank you so much again Merv!
    I did figure it out!
    Here it is, in case someone else out there needs it:

    // Changes Admin Field Labels:
    // "Land Area" and "Building Area"
    // to: Lot Size and Livable Area
    
    function my_edited_property_land_area($field) {
    
    	$field['label'] = __('Lot Size','epl');
    
    	return $field;
    
    }
    add_filter('epl_meta_property_land_area','my_edited_property_land_area');
    
    function my_edited_property_land_area_unit($field) {
    
    	$field['label'] = __('Lot Size Unit','epl');
    
    	return $field;
    
    }
    add_filter('epl_meta_property_land_area_unit','my_edited_property_land_area_unit');
    
    function my_edited_property_building_area($field) {
    
    	$field['label'] = __('Livable Area','epl');
    
    	return $field;
    
    }
    add_filter('epl_meta_property_building_area','my_edited_property_building_area');
    
    function my_edited_property_building_area_unit($field) {
    
    	$field['label'] = __('Livable Area Unit','epl');
    
    	return $field;
    
    }
    add_filter('epl_meta_property_building_area_unit','my_edited_property_building_area_unit');
    
    // Changes Front End Labels:
    // "Land Area is" and "Building Area is"
    // to: Lot Size is and Livable Area is
    
    function my_edited_property_land_area_label() {
    	return 'Lot Size is';
    }
    add_filter('epl_get_property_land_area_label','my_edited_property_land_area_label');
    
    function my_edited_property_building_area_label() {
    	return 'Livable Area is';
    }
    add_filter('epl_get_property_building_area_label','my_edited_property_building_area_label');

    Plugin Author Merv Barrett

    (@mervb1)

    Thanks for helping!

    Thread Starter The Wachamacallit

    (@ineed-help)

    You’re welcome, thank you for making this awesome plugin!

    Plugin Author Merv Barrett

    (@mervb1)

    If you get a chance, leave a review

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Changing Words and Adding Amounts’ is closed to new replies.