• Resolved match858

    (@match858)


    Me again….

    Please accept my apologies for the questions I’m sending your way. I am attempting to answer some of your other users questions to compensate for the time you are spending on my issues, but I have another query.

    I wish to add more checkbox options to the Specialities section of properties that adds a banner to the main property image. Checkboxes cannot be added in the flex and when I add it via the database all listings become not visible.

    Is there a way to do this?

    https://wordpress.org/plugins/real-estate-listing-realtyna-wpl/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Realtyna

    (@realtyna)

    Hello,

    No problem at all, we are here to help you enjoy using WPL plugin.

    Adding specialties option is not as simple as adding a record on wp_wpl_dbst.
    When you add new field from flex, one record will be added to wp_wpl_dbst and one column will be added to wp_wpl_properties.
    So I guess you’ve missed the second one (adding column to properties table)
    After that you should be aware of wpl cache which should be cleared.

    Finaly you need to override this file:
    \wp-content\plugins\real-estate-listing-realtyna-wpl-pro\views\activities\listing_gallery\tmpl\default.php
    And add some codes for demonstrating new field.

    Please read this KB article for more information about overriding wpl views:
    Overriding WPL Views

    Now your property listing page seems to have sql error.
    For fixing this issue I recommend you to remove the record you’ve added to database manually and if you failed to do it please feel free to open a support ticket here.
    And also you can send us customization request for adding new options to specialties section.

    Regards,
    Realtyna support team

    Thread Starter match858

    (@match858)

    Thank you, that ½ works.

    The checkbox is now in place and records to the wpl_properties table. But, despite adding amended duplicates of the required strings to wplhtml\activities\listing_gallery\default.php and created styling for the banner, no banner is added to the image.

    Please help.

    Plugin Author Realtyna

    (@realtyna)

    Hello,

    Something is wrong with your overridden listing_galley file.
    Please check original file of WPL. in lines 17-26 we’re defining the tags string and in line 68 we’re printing them all.

    Please make sure you’re checking correct property or printing section is working fine. If you couldn’t fix it please provide us FTP access and WordPress admin access via a private ticket. Then we can check the issue.

    Regards,
    Realtyna support team

    Thread Starter match858

    (@match858)

    /** Property tags **/
    $features = '';
    $hot_offer = '';
    $open_house = '';
    $forclosure = '';
    $sold = '';
    
    if(isset($wpl_properties['current']['rendered'][400]) and $wpl_properties['current']['rendered'][400]) $features = '<div class="feature">'.$wpl_properties['current']['rendered'][400]['name'].'</div>';
    if(isset($wpl_properties['current']['rendered'][401]) and $wpl_properties['current']['rendered'][401]) $hot_offer = '<div class="hot_offer">'.$wpl_properties['current']['rendered'][401]['name'].'</div>';
    if(isset($wpl_properties['current']['rendered'][402]) and $wpl_properties['current']['rendered'][402]) $open_house = '<div class="open_house">'.$wpl_properties['current']['rendered'][402]['name'].'</div>';
    if(isset($wpl_properties['current']['rendered'][403]) and $wpl_properties['current']['rendered'][403]) $forclosure = '<div class="forclosure">'.$wpl_properties['current']['rendered'][403]['name'].'</div>';
    if(isset($wpl_properties['current']['rendered'][3019]) and $wpl_properties['current']['rendered'][3019]) $sold = '<div class="sold">'.$wpl_properties['current']['rendered'][3019]['name'].'</div>';
    
      /* Property tags */
        echo $features.$hot_offer.$open_house.$forclosure.$sold;
    Plugin Author Realtyna

    (@realtyna)

    Hello,

    Please check plisting column of [wp_prefix]_wpl_dbst table for your field (#3019) it should set to 1. It seems it is 0 now.
    After that go to WPL settings and clear listings cached data.

    Regards,

    Thread Starter match858

    (@match858)

    Hi

    plisting is set to 1, here is my entry for 3019

    (3019, 0, 3, 'Sold', 'checkbox', 'null', 1, '1', 1, 1, 1, 0, 7.00, '', '', 1, '', '', 'wpl_properties', 'field_3019', 11, 1, 60, NULL, '1', 1, ''),

    Caches are clear but no banner is displayed.

    Plugin Author Realtyna

    (@realtyna)

    Hello,

    Please provide us FTP access and WordPress admin access by creating a private ticket here.

    Regards,
    Realtyna support team

    Plugin Author Realtyna

    (@realtyna)

    Hello,

    You overrode default layout of gallery activity while gallery activity was set to simple layout!
    We overrode simple layout and as you can see now it’s working fine now.

    Regards,
    Realtyna support team

    Thread Starter match858

    (@match858)

    Erm….. Thanks.

    But now all my listings are displaying as sold. Even those not checked as sold in the specialities section.

    Plugin Author Realtyna

    (@realtyna)

    Hello,

    Don’t change anything from database. You should change it from listing wizard and after that you should finalize the property. For higher speed and better performance WPL is caching rendered data and it will update the cache on finalize of property.

    We finalized Bob’s chippy listing and it is not sold now.

    Regards,
    Realtyna support team

    Thread Starter match858

    (@match858)

    Awesome

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Checkbox Specialities’ is closed to new replies.