- Posts: 17
- Thank you received: 0
OS Property support center
Calling rent_time from Joomla Random Pro Module
- Aaron Fisher
- Topic Author
- Offline
- New Member
-
Less
More
9 years 6 months ago #71820
by Aaron Fisher
Calling rent_time from Joomla Random Pro Module was created by Aaron Fisher
Hi Dam..
From within the OS Component it is easy to call the rent_time for the property by echo price_raw. However, the template I use calls the properties by using the standard Joomla Random Properties module.
No matter what I try, despite it already displaying the price, I cannot get it to display the rent_time on the main screen.
Everything I have tried so far simply returns 'OS_PER_WEEK' and not the actual Value of the rent_time field. (I hope this makes sense)
If you go to the website (officetolet) you will see the price displays on the homepage - it is hear I would also like it to show whether it is per month, week, year etc.
The login details I set up for you are still valid if you need to take a look.
Thanks very much
From within the OS Component it is easy to call the rent_time for the property by echo price_raw. However, the template I use calls the properties by using the standard Joomla Random Properties module.
No matter what I try, despite it already displaying the price, I cannot get it to display the rent_time on the main screen.
Everything I have tried so far simply returns 'OS_PER_WEEK' and not the actual Value of the rent_time field. (I hope this makes sense)
If you go to the website (officetolet) you will see the price displays on the homepage - it is hear I would also like it to show whether it is per month, week, year etc.
The login details I set up for you are still valid if you need to take a look.
Thanks very much
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
9 years 6 months ago #71853
by Mr. Dam
Replied by Mr. Dam on topic Calling rent_time from Joomla Random Pro Module
Hi Aaron,
I have just visited your site, but i don't see the language constants like OS_PER_WEEK, can you please send me the screenshot?
Thanks
Dam
I have just visited your site, but i don't see the language constants like OS_PER_WEEK, can you please send me the screenshot?
Thanks
Dam
Please Log in or Create an account to join the conversation.
- Aaron Fisher
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 17
- Thank you received: 0
9 years 6 months ago #71875
by Aaron Fisher
Replied by Aaron Fisher on topic Calling rent_time from Joomla Random Pro Module
Hi Dam
I have added a screenshot but also left it live on the website...ignoring the position of the 'os-per-week' etc.
In order to display what you see I am using
echo $property->rent_time;
Although the same result can be obtained by using other code too. This is done in templates/jsn_reta_pro/html/mod_ospropertyrandom/default
As you can see, it is showing the OS Property Value, rather than the individual property value, which is what I need.
Thanks in advance Dam
I have added a screenshot but also left it live on the website...ignoring the position of the 'os-per-week' etc.
In order to display what you see I am using
echo $property->rent_time;
Although the same result can be obtained by using other code too. This is done in templates/jsn_reta_pro/html/mod_ospropertyrandom/default
As you can see, it is showing the OS Property Value, rather than the individual property value, which is what I need.
Thanks in advance Dam
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
9 years 6 months ago #71876
by Mr. Dam
Replied by Mr. Dam on topic Calling rent_time from Joomla Random Pro Module
Hi Aaron,
In that file, please change
echo $property->rent_time;
to
echo JText::_($property->rent_time);
Good luck
Dam
In that file, please change
echo $property->rent_time;
to
echo JText::_($property->rent_time);
Good luck
Dam
Please Log in or Create an account to join the conversation.
- Aaron Fisher
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 17
- Thank you received: 0
9 years 6 months ago - 9 years 6 months ago #71877
by Aaron Fisher
Replied by Aaron Fisher on topic Calling rent_time from Joomla Random Pro Module
Hi Dam
Same result unfortunately - still shows os-per-week etc
Is this due to the file being outside the OS component?
Thanks in advance
Same result unfortunately - still shows os-per-week etc
Is this due to the file being outside the OS component?
Thanks in advance
Last edit: 9 years 6 months ago by Aaron Fisher. Reason: missed a bit off
Please Log in or Create an account to join the conversation.
- Aaron Fisher
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 17
- Thank you received: 0
9 years 6 months ago #71889
by Aaron Fisher
Replied by Aaron Fisher on topic Calling rent_time from Joomla Random Pro Module
Sorry, I don't know if you seen my last message.
Is there something else I can try to display the rent_time?
Thank you
Is there something else I can try to display the rent_time?
Thank you
Please Log in or Create an account to join the conversation.
Moderators: Mr. Dam, Nguyen Phu Quan
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.