Forum


Set property owner listing default

More
9 months 1 week ago - 9 months 1 week ago #46761 by iain
Hi
As my site will only list properties in on region (Isle of wight)
Can you please tell me if there is a way to
1 - set this region as default when a new property owner adds their listing
2 - Disable adding of properties to other regions

Thought this might be possible by removing the regions in
Jomres admin > Settings > List regions'
But do not want to do so in case this removes regions from Booking' user location'

Hopefully they are two different tables and I can restrict property listings regions without restricting user location region

I hope I have written this clearly to understand my query.....
Last edit: 9 months 1 week ago by iain . Reason: Marked as solved (Tick)
More
9 months 1 week ago #46763 by Vince Wooll
Iain,

Edit j06005new_property.class.php

L60 it says

$propertyRegion = '';

change that to

$propertyRegion = '1138';

Does that work for you?

Follow me on twitter
Do not send me PMs, if you need to contact me use the ticket system.
Read this before you customise Jomres files
More
9 months 1 week ago #46766 by iain
Hi Vince
Thank you
I will give this a try in the week when I am at the desk a bit more

Regards
Iain
More
9 months 1 week ago #46767 by iain
Can you please provide the path to the file
wordpress
Just making sure I edit the correct one :)
Thanks
Iain
More
9 months 1 week ago #46768 by iain
Found the file in - jomres/core-minicomponents
Made the suggested edit
This has set the correct region as default - Excellent, Thank you

is it possible to not display the other regions in the drop down
If not, no worries - Just asking as this would be the ideall but realise it may not be too simple or possible

regards
Iain
More
9 months 1 week ago #46771 by Vince Wooll
Not really no. If you delete the regions then people who live there wouldn't be able to set their addresses when they make bookings.

Follow me on twitter
Do not send me PMs, if you need to contact me use the ticket system.
Read this before you customise Jomres files
More
9 months 1 week ago #46773 by iain
Ok, Thank you for the first solution, That works great so I will stick with that then

ABOUT US

Vince portrait smallaladar

Developed and maintained by Vince Wooll and Aladar Barthi, Jomres was initially conceived in early 2005 as a Mambo based solution to a client’s hotel management needs. While it wasn't originally expected to be an online booking system it quickly morphed into one as users requested more and more features.

As the number of feature requests grew Vince knew that he would need to dedicate more time to the project and in July 2005 Jomres was formally released as a commercial project. Since then, Jomres has become one of Mambo’s, and now Joomla’s, longest running projects. It has survived various versions of Mambo, then Joomla 1.0, 1.5, 1.6, 1.7, 2.5 and 3.

Aladar joined the project in 2010 after using Jomres for his own projects. He was active on the forum, helping other members of the community and eventually Vince invited him to join the team. He has since become an integral part of the project and has contributed significantly to it's development over the years.

Whilst not formally part of the Jomres project, Rodrigo Rocco and the team have become firm friends. Rod is a freelancer who specialises in doing custom work for Jomres users and developing custom plugins for the system that take advantage of it's modular design. He has built many useful extensions including his fabulous new Valentina Template Package.

 

Jomres and the Jomres Logo is trademarked and can't be used without written consent from the owner.

www.jomres.net is not affiliated with or endorsed by the Joomla! Project, Open Source Matters or the WordPress project. The Joomla! & WordPress names and logos are used under a limited license granted by Open Source Matters and the WordPress Projects.

© Copyright 2005 - 2018 Woollyinwales IT.