- Posts: 19
- Thank you received: 0
Reordering the fields on the registration
- alsage13
- Topic Author
- Offline
- New Member
-
Less
More
13 years 1 month ago #14834
by alsage13
Reordering the fields on the registration was created by alsage13
I'm trying to reorder the fields on the registration form using template overrides but I'm running into a problem.
I've tried moving the Coupon field down beneath the E-mail field, moving this string of code:
but when I upload it to Joomla, the form returns nothing but a blank screen. Any thoughts? I'm also attaching my default.php file. Thanks in advance.
I've tried moving the Coupon field down beneath the E-mail field, moving this string of code:
Code:
<?php
if ($this->enableCoupon) {
?>
<tr class="coupon_row">
<td class="title_cell" width="30%">
<?php echo JText::_('EB_COUPON') ?>
</td>
<td class="field_cell">
<input type="text" class="inputbox" name="coupon_code" value="<?php echo $this->couponCode; ?>" size="18" />
<?php
if ($this->errorCoupon) {
?>
<span class="invalid"><?php echo JText::_('EB_INVALID_COUPON'); ?></span>
<?php
}
?>
</td>
</tr>
but when I upload it to Joomla, the form returns nothing but a blank screen. Any thoughts? I'm also attaching my default.php file. Thanks in advance.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
13 years 1 month ago #14850
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Reordering the fields on the registration
Hi
I think the file was broken when you uploaded it (this sometime happens when you uploaded file via FTP). Please try to upload file via cpanel of your hosting account (or simply use Joomla explorer component to upload file) and it should work as expected .
Regards,
Tuan
I think the file was broken when you uploaded it (this sometime happens when you uploaded file via FTP). Please try to upload file via cpanel of your hosting account (or simply use Joomla explorer component to upload file) and it should work as expected .
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- alsage13
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 19
- Thank you received: 0
13 years 1 month ago #14872
by alsage13
Replied by alsage13 on topic Re: Reordering the fields on the registration
Hi Tuan,
My host doesn't have cPanel, but I tried uploading it through the file management component of their website and I'm still having the same problems.
Could you take a look at the file and see if I've broken something inside the file itself? PHP isn't my strong suit so it's quite possible I did something wrong.
THANKS!
My host doesn't have cPanel, but I tried uploading it through the file management component of their website and I'm still having the same problems.
Could you take a look at the file and see if I've broken something inside the file itself? PHP isn't my strong suit so it's quite possible I did something wrong.
THANKS!
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
13 years 1 month ago #14873
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Reordering the fields on the registration
Hi
Please attach the file here (need to zip the file first before upload). I will look at it and check it for you.
Regards,
Tuan
Please attach the file here (need to zip the file first before upload). I will look at it and check it for you.
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- alsage13
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 19
- Thank you received: 0
13 years 1 month ago #14884
by alsage13
Replied by alsage13 on topic Re: Reordering the fields on the registration
Hi Tuan,
Sorry, though I already uploaded it - it must not have uploaded properly.
Thanks!
Sorry, though I already uploaded it - it must not have uploaded properly.
Attachment default-20120410.zip not found
Thanks!
- Tuan Pham Ngoc
- Offline
- Administrator
-
13 years 1 week ago #15394
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Reordering the fields on the registration
Hi
You had some syntax error when moving the code (lack some "}" in the code). I corrected it and It works well now .
Tuan
You had some syntax error when moving the code (lack some "}" in the code). I corrected it and It works well now .
Tuan
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
13 years 1 week ago #15395
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Reordering the fields on the registration
Here is the corrected file in case you want to compare the two files to see what were wrong .
Tuan
Tuan
Attachment default-20120506.zip not found
- alsage13
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 19
- Thank you received: 0
13 years 1 week ago #15396
by alsage13
Replied by alsage13 on topic Re: Reordering the fields on the registration
Oh, ooops. Thanks Tuan!
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
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.