- Posts: 2
- Thank you received: 0
Import selected fileds from ulr
- giuseppe
- Topic Author
- Offline
- New Member
-
Less
More
11 years 4 months ago #39009
by giuseppe
Import selected fileds from ulr was created by giuseppe
Hello. I have to specify a value selection by default for the field "Amount". If I browse to the url
www.noleggiopellicce.com/noleggia-ora?jd_nome=firstname
I will see the filed "Nome" compiled as the urle suggest. It won't happend if i try to do the same thing with the filed Amount (I translated as "Cauzione"), and neither with the firs 2 field (first_name and email)
How can I do to generate an url that let me preselect the others field?
How can I do to generate an url that let me preselect the others field?
- Tuan Pham Ngoc
- Offline
- Administrator
-
11 years 4 months ago #39129
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Import selected fileds from ulr
Hi
There will be some modification needed in this case. Please use the steps below :
1. Open the file components/com_jdonation/views/donation/tmpl/default.php
2. Find the code below :
$rdAmount = JRequest::getFloat('rd_amount', 0, 'post');
3. Change it to :
$rdAmount = JRequest::getFloat('rd_amount', 0);
After that, on the url, you can pass rd_amount=100 and the dropdown will have 100 selected by default !
Tuan
There will be some modification needed in this case. Please use the steps below :
1. Open the file components/com_jdonation/views/donation/tmpl/default.php
2. Find the code below :
$rdAmount = JRequest::getFloat('rd_amount', 0, 'post');
3. Change it to :
$rdAmount = JRequest::getFloat('rd_amount', 0);
After that, on the url, you can pass rd_amount=100 and the dropdown will have 100 selected by default !
Tuan
The following user(s) said Thank You: giuseppe
Please Log in or Create an account to join the conversation.
- giuseppe
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 2
- Thank you received: 0
11 years 4 months ago #39426
by giuseppe
Replied by giuseppe on topic Re: Import selected fileds from ulr
I did notr find the code you seggested
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
11 years 3 months ago #39655
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Import selected fileds from ulr
Hi
That's strange. In this case, please submit a support ticket send us admin and FTP account of your site so that I can edit the code for you.
Sorry for could not reply you earlier. The internet connection is very bad for us in our country these days and I had no way to reply to customers.
Tuan
That's strange. In this case, please submit a support ticket send us admin and FTP account of your site so that I can edit the code for you.
Sorry for could not reply you earlier. The internet connection is very bad for us in our country these days and I had no way to reply to customers.
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Mr. Dam, Dũng Nguyễn Việt
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.