OS Property support center

Re-direct "Upgrade" button

  • bfrylinck
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 1 month ago #33371 by bfrylinck
Re-direct "Upgrade" button was created by bfrylinck
Hi Dam

As PayPal does not support our currency I cannot use it on my site. I would like to re-direct the visitor when they click on the "Confirm" button in this process -

<input class="btn btn-info" type="button" onclick="javascript:document.ftForm.submit();" value="Confirm">

to an article in my site.

Where can I find this code please.

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

More
12 years 1 month ago #33372 by Dang Thuc Dam
Replied by Dang Thuc Dam on topic Re: Re-direct "Upgrade" button
Hi,
You want to use another payment gateway for the purpose or you only want use to complete the confirmation form, click on submit ?
However, both 2 ways are difficult, because you can redirect to another page, but we should process the function to upgrade the properties from normal to featured.
In fact, if you want to change the submit url of the form, you only need to change the action attribute of the form.
<form method="POST" action="<?php echo JRoute::_('index.php?Itemid='.JRequest::getInt('Itemid',0))?>" name="ftForm">
in Version 2.0.9.1 it's line 5231
Thanks
Dam

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

  • bfrylinck
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 1 month ago #33382 by bfrylinck
Replied by bfrylinck on topic Re: Re-direct "Upgrade" button
Hi Dam

We'll have to process the update requests manually. It would be great if when they click on the confirm button, the form is sent via e-mail to the administrator, and the person is te-directed to an article in the site.

In which file can I find this code for the form?

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

More
12 years 1 month ago #33403 by Dang Thuc Dam
Replied by Dang Thuc Dam on topic Re: Re-direct "Upgrade" button
Hi,
You can find the code in file
components > com_osproperty > classes > listing.html.php
php function confirmUpgrade
Thanks
Dam

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

Moderators: Dang Thuc DamNguyen Phu Quan