The mortgage broker website framework we provide clients, and the associated Yabber integration, was built in such a way that various types of functionality was progressively drip-fed to the system. While this evolution hasn't had an impact on the user experience, it has certainly introduced superfluous code on the backend. To mitigate this continued messiness, we've recently introduced some 'common' functions that will progressively replace some legacy code, and the first of the slightly enhanced features is the ability to find and replace placeholder text in WordPress shortcode, or with the use of an Elementor Widget. This article describes how to use the placeholder replace functionality.
Note: Your website has always included a large number of placeholders to replace a particular string of text with the lowest interest rate of a certain type, and we use the feature everywhere. This article introduces new functionality.
Note: Rate data has evolved into one of the most important resources to provide to your clients, and while we provide tools and various lender widgets to return this data everywhere, it's the backend functionality that is able to crunch numbers and return products, recommendations, and comparison options that tends to be more functional.
Related Article: "Lending Widgets Updated to Include Business, Equipment, Personal, and Transactional Data". The lender widgets now supports business finance, equipment finance, auto finance, personal loan finance, and transactional data.
The 'Lowest of Type' API endpoint returns the lowest rate associated with each product category. This is obviously important from a website perspective because it allows us to include the 'Rates From' style of headline, and the rates may be applied to resources such as the Bankbox, BM Box, blocks of general text, and virtually anywhere else.
Rate Placeholders
Rate placeholders are listed below. The 'v
' and 'f
' indicates a fixed or variable rate, while the '_c
' indicates a comparison rate or, in the case of transactional accounts, the interest paid on credit.
Standard Home Loan Products
5.39%
6.59%*
5.69%
5.89%*
5.39%
6.59%*
5.69%
6.48%*
5.39%
6.59%*
5.39%
6.59%*
5.69%
5.89%*
5.69%
8.31%*
5.64%
5.94%*
Business, Personal, Margin, and Transactional Products
6.39%
0.00%*
6.35%
0.00%*
6.78%
7.17%*
6.54%
7.59%*
6.39%6.61%*
6.49%6.80%*
7.69%
0.00%*
8.74%
0.00%*
%
%*
2.20%
0.00%*
%
%*
14.95%
0.00%*
6.49%
0.00%*
6.50%
0.00%*
6.19%
6.79%*
6.04%
6.04%*
%
%*
%
%*
%
%*
%
%*
Each placeholder is replaced with a float value and percentage sign, and in the case of a comparison rate, we'll also include the small asterisk that directs a user to your general disclaimer and comparison warning. For example, the lowest home loan rate made available via our listed accredited lenders (of which we have none, obviously) is 5.39% (6.59%*). Shortcode used to return the rates was [rates_replace]%%rate%% (%%comparison_rate%%)[/rates_replace]
. Note that any text may be included in the shortcode, but only the placeholders are evaluated for a replacement.
Sorting on the lowest interest rate of comparison rate is a user option, and the attribute of sort_on_lowest="interest"
(or 'comparison') should be used. Additional options will made available soon.
Shortcode Attributes & Placeholders: Available shortcode attributes and the various placeholder needn't be remembered. In a forthcoming update to our plugin we'll be including the information via a tab in WP's content creation editor.
At this stage, and unlike some of our other tools, the rate does not link to the relevant product page. However, that feature is forthcoming.
Elementor Widget
The Elementor Widget options is most suitable when creating pages, or altering existing pages.
Pictured: Search for the 'BM Lender Rate Textbox' in Elementor, drag into Elementor, and apply the text. Optional text styling may be applied.
Optional styling may be applied by selecting the 'Apply Typography' toggle switch. The option applies basic styling for those cases where the text is to be used in large call-to-action areas. If not selected, the text takes on the shape of other standard (default) text on your page.
Conclusion
All text created via the shortcode or widget is cached for around 36 hours. This is done so to ensure the content is served quickly, but also to avoid repeated requests to the API. Whenever text is altered in any way a new request is made. All the cached files are located in the same directory as standard rate data, so if required, updating the Rate Cache in Yabber will purge all data.
The system is still undergoing some updates. Green Home Loans, for example, are often returned with standard home loan products, and this seriously compromises the accuracy of results. We're in talk wit the banks, and we review product data daily in order to identify these products and relegate them to green-only searches.
We understand that the feature we've described is simple. However, the mechanics of the system will change soon, and this will include the facility to link to product pages (generally only excluded at this point because we needed to avoid options and complexity).