Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • questbg Friend
    #136773

    Hi Everyone

    This is not JoomlArt specific so thought I would post it here.

    I’ve just downloaded a Component from the extensions.joomla.org site and installed it. Everything is fine and I’ve managed to find a few bits in various CSS files and customise the front end module a bit. The component allows a simple search and returns results as real estate listings.

    However, I have a problem as I need to change one part of the front end module and can’t find the appropriate bit of code, even trying to ‘inspect’ with FireBug.

    I tried to e-mail the developer, but the mail has bounced back undelivered, so I’m stuck! :((

    So, if any of you code gurus could assist I would be extremely grateful. 🙂

    Here’s the component:
    http://www.sphilip.com/rubrique/15-Joomla_Estate_Agency.html

    (site and backend CP in French, let me know if you need translation)

    What I need to do is change ‘Département’ on the front end search module:

    To ‘Price’ and then have various price bands in the drop down menu:

    Under 25,000
    25,000 to 50,000
    50,000 to 75,000
    75,000 to 100,000
    100,000 to 150,000
    150,000 to 200,000
    Over 200,000

    I don’t even mind entering these price bands as ‘Département’ in the back end, so long as it says ‘price’ for the user!

    I’ve managed to change ‘Renting’ and ‘Selling’ to ‘For Rent’ and ‘For Sale’ in one of the files, but I just can’t find which CSS to edit for the ‘Département’ menu!

    This could be such a great little component, but if the developer can’t be contacted for updates, support, etc., then I could have a big problem!

    As usual, any help would be greatly appreciated.

    Many Thanks
    Chris

    scotty Friend
    #284858

    Check to see if there is a language file included with the extensions. The word for that list could be defined there.

    Do you have a link to a demo or even better, a live URL?

    questbg Friend
    #284859

    Hi Scotty

    I’ve got the component installed on a test site:

    http://www.joomla.questbg.com

    I did find a few things in the language file, but not for that particular menu!

    Many Thanks
    Chris

    scotty Friend
    #284860

    It’s certainly not defined in the CSS so it’s either hardcoded into the module or, most likely, defined in a language file.

    scotty Friend
    #284861

    In site>language>en_GB.com_jea.ini

    ;front office
    ADD NEW PROPERTY=Add new property
    ADVANCED SEARCH=Advanced search
    ADVANTAGES=Advantages
    ADRESS=Adress
    AVAILABILITY DATE=Availability date
    ARE YOU SURE YOU WANT TO DELETE THIS ITEM?=Are you sure you want to delete this item?
    AREA=Area
    BUDGET MAX=Maximum budget
    BUDGET MIN=Minimum budget
    CHARGES=Charges
    CONSULT US=Consult us
    DEPARTMENT=Départment
    DESCRIPTION=Description
    DETAIL=Detail
    EMAIl=Email

    questbg Friend
    #284883

    Hi Scotty

    Thanks for that, I’ll take a look and try it.

    I guess if that changes ‘Département’ to ‘Price’ then I can just use ‘Département’ in Admin but use price bands instead?

    Thanks again for you help with this. I really don’t want to ditch this component and start again with a new one!

    Cheers
    Chris

    questbg Friend
    #284894

    Thanks Scotty

    Spot On! That’s changed the front end module, so I’ll try modify the backend to suit and let you know.

    Cheers
    Chris

    scotty Friend
    #284896

    You’re welcome. There is possibly another language file in admin/components or modules for the back end.

    Also… Adress in the file above is wrong – should be Address

    scotty Friend
    #284897

    Actually it looks like a fantastic mod and could really enhance what is already a great site you have.

    questbg Friend
    #284899

    Hi Scotty

    <em>@scotty 104174 wrote:</em><blockquote>
    Also… Adress in the file above is wrong – should be Address</blockquote>

    Yeah, noticed that whilst I was in there and fixed it.

    Quite right, if I can get this sorted it will be a really good component for the site.

    Two more problems now which I have no idea how to fix! :-[

    After the search (which now works on price!), the returned results have a problem:

    Even though I searched on ‘Sales’ the price says ‘Rental’? Very odd. I’d rather not have ‘Sale’ or ‘Rental’, just ‘Price’.

    Any idea where to look for that one?

    Also, in the actual property detail view here:

    I would like to remove the ‘Charges’ and ‘Fees’ as this module is for private property sales only, not Real Estate Agents.

    Again, any idea where to look for that?

    Thanks again.
    Chris

    scotty Friend
    #284914

    RE: Renting Price:

    This is a long shot as I’m a PHP noob! but try opening siteviewspropertiestmpldefault.php

    and find on line 79…

    [php]<?php echo $this->cat == ‘renting’ ? JText::_(‘Renting price’) : JText::_(‘Selling price’) ?> :[/php]and REPLACE with…

    [php]<?php echo $this->cat->is_renting ? JText::_(‘Renting price’) : JText::_(‘Selling price’) ?> :[/php]This new code is how the page is structured on the Property page so it might work.

    Re: Fees & Charges
    :

    This is defined in siteviewspropertiestmpldefault_item.php line 85…
    [php] <?php if ( $this->row->charges ): ?>
    <tr>
    <td><?php echo JText::_(‘Charges’) ?></td>
    <td> : <strong><?php echo $this->formatPrice( floatval($this->row->charges), JText::_(‘Consult us’) ) ?></strong></td>
    </tr>
    <?php endif ?>

    <?php if ($this->row->fees): ?>
    <tr>
    <td><?php echo JText::_(‘Fees’) ?></td>
    <td> : <strong><?php echo $this->formatPrice( floatval($this->row->fees), JText::_(‘Consult us’) ) ?></strong></td>
    </tr>
    <?php endif ?>[/php]You could just delete the text above from the file but as the PHP has an ‘if’ that would suggest that there is an option to turn ‘Charges’ and ‘Fees’ off in the module manager or component manager.

    Also… bear in mind that the component is still a BETA. So expect a few bugs.

    scotty Friend
    #285456

    Any joy with this questbg?

    questbg Friend
    #285462

    Haven’t tried this just yet. Had a few ‘Bulgarian Winter’ problems, ie no running water in the house for the last 11 days.

    Sorted that yesterday (long story including electric fires and hairdryers) but we now have water, internet connection, a roaring log fire and a nice pork roast in the oven!!!

    I hope tomorrow normality will return and I’ll try the hack and let you know!

    Thanks again
    Chris

    questbg Friend
    #285551

    Hi Scotty

    Well, one out of the two worked!

    I modified the default.php file to try change ‘renting price’ to ‘selling price’ when the results are returned, but got the following:

    “Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting T_STRING or T_VARIABLE or ‘{‘ or ‘$’ in /var/www/joomla/components/com_jea/views/properties/tmpl/default.php on line 79”

    😮 Don’t know what it means, but looks scary to me, so I uploaded the backed up original.

    I then modified the default_item.php file to remove the Charges and Fees in the detail property view, this worked fine, many thanks!

    I checked in the module, but the only parameters I have is ‘Use Ajax’ which was set to ‘Yes’ so I left it alone!

    Cheers
    Chris

    scotty Friend
    #285583

    Good good! Getting there…

    questbg;104970I modified the default.php file to try change ‘renting price’ to ‘selling price’ when the results are returned, but got the following:

    “Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting T_STRING or T_VARIABLE or ‘{‘ or ‘$’ in /var/www/joomla/components/com_jea/views/properties/tmpl/default.php on line 79”

    I think you removed a character that you shouldn’t have.

    Did you try changing the code I posted above? Changing $this->cat == ‘renting’ ? to $this->cat->is_renting ?

    It may work.

Viewing 15 posts - 1 through 15 (of 16 total)

This topic contains 16 replies, has 2 voices, and was last updated by  questbg 15 years, 10 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum