Where to edit and how to edit. So when a user gives no price or price is 0. It will write "Ask seller for price"
Printable View
Where to edit and how to edit. So when a user gives no price or price is 0. It will write "Ask seller for price"
Hopefully this will help you
http://forum.flynax.com/showthread.p...ty-show-a-word
http://forum.flynax.com/showthread.p...field-is-empty
The first one i have seen. But only work on details page. And not other places.
The second link is my topic. Which i started for this help. But ended up about something completely different. So i thought i will start a new topic with my need of help.
Hello Fadil,
Open file: ftp://includes>>classes>>rlListings.class.php
find line:
and add new code in the end of foreach:PHP Code:
Only registered members can view the code.
in methods: getListings, getRecentlyAdded, getFeatured, getRandomPHP Code:
Only registered members can view the code.
The same in file rlSearch.class.php in mehod: search
Hello Fadil,
I think you added 'code ...' as wrote in my example.
but you should add my new code below all code in foreach
PHP Code:
Only registered members can view the code.
[QUOTE=Viktor;22569]Hello Fadil,
I think you added 'code ...' as wrote in my example.
but you should add my new code below all code in foreach
/QUOTE]PHP Code:
Only registered members can view the code.
this is how i have added the code
the code is an example from the getListings method in that life.Code:Only registered members can view the code.
Hello Fadil,
That's right. Where do you see error?
I hope you added new phrase with key: ask_for_price
into Admin Panel >> Languages
Strange. I re-added them and now everything seems fine. hmmm
Thank you Viktor
Hi Viktor
I have added and testet the code. but it does not show the words.
I have added a little like this hoping to add style.
But it only shows the "" and nothing on listing details page. and with only your code it shows nothing on any part.Code:Only registered members can view the code.
and that code messes up the footer in pages the code is called for.
and that code messes up the footer in pages the code is called for.
Tried this code i tested and it worked ok
just have to locate the places the price tag is locatedCode:Only registered members can view the code.
I managed to fix it.
For those who might need to do the same. Here is the solution:
In theme > tpl > controllers > listing_details.tpl
find this
replace withCode:Only registered members can view the code.
Code:Only registered members can view the code.
In theme > tpl > blocks > listing.tpl
find this
replace withCode:Only registered members can view the code.
In theme > tpl > controllers > print.tplCode:Only registered members can view the code.
find this
replace with thisCode:Only registered members can view the code.
Code:Only registered members can view the code.
now go to your language and add this language phrase: ask_for_price
and you are done.
Make your price non required. And if someone add 0 it will see it as no price and show the text "Ask For Price"
Hello Fadil, sharing the solutions is a great approach for all members of the forum. Thanks.
I do this change but at listings with no price field (at add listing page, price field is not appear),
i take the message "ask for price". any solution for this?
I do the changes for price but i have one problem.I have one listing type with no price field.
when make an ad,after that appears "ask for price" in the listing page details.
Any solution?
Can anyone help me guys?
I have asked for a customization regarding this, flynax just dont want to add this option in their updates.
So now ill pay for it, but yet to receive an invoice from them.
I ask for this because Viktor's code it is not complete for this change at Price. At listing types without field Price is not work correct.
Hi Victor,
Can you make this code linked to another field?
my solution, instead of adding new language phrase key
make a new field with drop down menu or whatever option you want to show for the price tag
I tried it on listing.tpl only
replace $lang.ask_for_price
with this
$listing.fields.Your_Field_Name.value
ATTACH]4411[/ATTACH]PHP Code:
Only registered members can view the code.
Going to try this tonight.
But i think it will need more code.
Heres how i think it should work:
In price field you should have a dropdown with 2 options, fixed and other.
If you select "fixed" then another field should popup and you enter the numerical price.
If you select "other" then a drop down field linked to a data entry will all your text values should popup and you select what you want.