Import selected fileds from ulr

  • giuseppe
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 5 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?


Attachments:

Please Log in or Create an account to join the conversation.

More
10 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
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
  • New Member
More
10 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.

More
10 years 4 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

Please Log in or Create an account to join the conversation.

Moderators: Mr. DamDũng Nguyễn Việt