Reordering the fields on the registration

  • alsage13
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 1 month ago #14834 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:
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.

More
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

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

  • alsage13
  • Topic Author
  • Offline
  • New Member
  • New Member
More
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!

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

More
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 Log in or Create an account to join the conversation.

  • alsage13
  • Topic Author
  • Offline
  • New Member
  • New Member
More
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.

Attachment default-20120410.zip not found



Thanks!
Attachments:

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

More
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

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

More
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

Attachment default-20120506.zip not found

Attachments:

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

  • alsage13
  • Topic Author
  • Offline
  • New Member
  • New Member
More
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