Login or create new account.

By registering on joomprod.com, you will have immediate access to all our free products and to the public side of our support forum.

Enjoy our subscriptions.

Each of our subscriptions allow you to enjoy the private side of the support forum and all the update of our products for a period ranging from 3 months to 1 year.

Payment And immediate download.

After subscribing to one of our subscription, the products are immediately downloadable.

Accueil / forum / Public Forum / Main Forum / field ad_location should be a filter like date

Support Availability Because we must sleep sometimes

Working days: Monday to Friday.
Reply time: Depending on the complexity of your support issue it's usually between a few hours to 48 hours.

Support is only guaranteed to paid subscribers

AdsManager - End of life

It is with great regrets that we have chosen to end the developpement of Adsmanager and its other associated components.

AdsManager is born 10 years ago and, as of today, the number of new subscriptions and downloads have fallen and we cannot maintain the component anymore.

All active subscribers will be able to continue enjoying support until the end of their subscription.

The components will be free and no support will be provided anymore for the other users.

×

Notice

The forum is in read only mode.

× OLD Forum post could be checked here : forum.joomprod.com

field ad_location should be a filter like date

More
10 years 5 months ago #20331 by waheed146
thanks on all the messages I have tried your queries.
that is the list view for a selected category
frrntl4.hemsida.eu/index.php/ads-manager/6-verktyg-foer-fordon
when i use your query
index.php?option=com_adsmanager&view=search&new_search=1&catid=".$this->catid."&ad_location=".$fields->fieldvalueid

i was gone to advance search form page with this url
[url=http://frrntl4.hemsida.eu/index.php/ads-manager/advance-search2/6-verktyg-foer-fordon/search?new_search=1&ad_location=67
]frrntl4.hemsida.eu/index.php/ads-manager...rch=1&ad_location=67
[/url]when i change view=result then i go to the following result page but it have no data. the result should have one ad with same category and city.
frrntl4.hemsida.eu/index.php/ads-manager...tid=6&ad_location=67
Report This
More
10 years 5 months ago #20342 by loic
Hello,

Try this link:
index.php?option=com_adsmanager&view=result&new_search=1&catid=".$this->catid."&ad_location=".$fields->fieldvalueid

I made a mistake in one of my previous post, the correct view is result, not search.

Best regards.
Report This
More
10 years 5 months ago #20348 by waheed146
thanks for quick reply.
i have already used this query
index.php?option=com_adsmanager&view=result&new_search=1&catid=".$this->catid."&ad_location=".$fields->fieldvalueid

but actual problem is that result is not same as it should be. for example if we search from advance search form prntscr.com/b886x7 then we have one ads result. while the result from our query is no ads.

frrntl4.hemsida.eu/index.php/ads-manager/advance-search2

frrntl4.hemsida.eu/index.php/ads-manager/6-verktyg-foer-fordon and select paris locatoin

thanks
Report This
More
10 years 5 months ago #20360 by loic
Hello,

I made the same test you've made in your screenshot.
The url I used is this one -> frrntl4.hemsida.eu/index.php?option=com_...atid=6&ad_location=0

It works well.

For the ad_location, you must enter the value of the option and not the label displayed in the list. In you list, for Paris, you must use 0.

Best regards.
Report This
More
10 years 5 months ago #20375 by waheed146
thanks for your reply the problem is solved. :)

issue was taking a wrong value in the query
TRoute::_("index.php?option=com_adsmanager&view=result&new_search=1&catid=".$this->catid."&ad_location=".$fields->fieldvalueid);

i was not picking the correct field value id that i have got from your idea that paris should have a 0 id while i was picking up 47 now when i have pick the correct location id result is good now. and now my query becomes like that.
<?php echo TRoute::_("index.php?option=com_adsmanager&view=result&new_search=1&catid=".$this->catid."&ad_location=".$fields->fieldvalue); ?>


Is there will be a way so that if a user goes to result page by selecting a location we should add categories to select and vice versa?
prntscr.com/b8k9p6

like now we have selection of category and sorting via location. i need alternate as well if a user select locatoin then there should be sorting on the bases of category as well? may be i need to create a new topic?
Report This
More
10 years 5 months ago #20389 by loic
Hello,

You need to custom the searhc module to do that, if you change the name of the search select to match the name in the url, the value will be set correctly.

Best regards.
Report This
The following user(s) said Thank You: waheed146
Moderators: perry
Time to create page: 0.079 seconds
Powered by Kunena Forum