Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Editing the main registration page

Editing the main registration page 15 years 9 months ago #3561

  • tjm1113
  • tjm1113's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0
I want to:

(1)
a. Remove the \"Your total Registration cost: ... \" from the main registration page. The previous post does not work. I have searched my dtregister.php file for all occurrences of TOTAL_REGISTRATION_COST and have marked the areas like this:

<!-- <tr>

.... (code) ....

</tr> -->

Is this the correct way to \"comment out\" PHP?

b. How can I edit the font color of \"Your total registration cost: ..\" ? (This was what I wanted to do before I wanted to remove it. I couldn\'t figure this out either. I\'d like to know for future use).


(2) How can I edit the spacing between Custom Fields? Right now my form looks too clustered and I would like to add space or <br> in certain areas. Is this possible?


I am running DT Register 2.4.

Thank you for your help.

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

Editing the main registration page 15 years 9 months ago #3567

  • dthadmin
  • dthadmin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 5470
  • Thank you received: 3
1) The way you are commenting is for HTML. You will also need to comment the PHP inside of the HTML you already commented. To comment out PHP code, you use // in front of each line you want to disable. Or, you can put a /* in front of a section of PHP and all lines below it will be commented out until you close it with */

2) Modify styling in the main.css file here:
/components/com_dtregister/main.css
For form fields, you\'ll find this in the CSS file:

td.contentdescription {
font-size: 12px;
padding: 0px;
}

You can modify this to style the field label and spacing of that table cell. Changing the padding here will put more space in between your form fields.

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

Editing the main registration page 15 years 9 months ago #3576

  • tjm1113
  • tjm1113's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0
I still can\'t figure out how to remove the Total Registration Cost line from the main Registration page because I can\'t figure out exactly where or how to comment out the lines.

Can you please show me where to edit the code properly so that the Total Registration cost line does not show?

I don\'t even think this is the correct code to be editing as I deleted this whole area of code and the text on the registration page is still there. The beginning of this code is line 10421 in dtregister.php for v2.4. Can you tell me on what line I should be editing?

My code right now looks like:
[BEGIN LINE 10421]
<table class=\"authorizenetformtable\">
<tr><td><?php echo $topmsg; ?></td></tr>
<!--
<tr>
<td>
<div align=\"center\">
/*<?php echo REGISTRATION_FEE?>:
<?php echo $memtot; ?> x <?php echo $currency_symbol. numberFormat(($amountCharged+$discount)/$memtot,2); ?>
<?php if( ($discount>0)||($latefee>0)) {?>
<?php if ($discount>0){?> - <?php echo $currency_symbol . numberFormat($discount,2) . \'(Member Discount)\'; } ?>
<?php if ($latefee>0){?> + Late Fee <?php echo $currency_symbol . numberFormat($latefee,2); } ?> =
<?php
if (isset($currency_symbol)){
echo $currency_symbol . \' \' . number_format($_SESSION[\'register\'][\'amountCharged\'],2);
} else {
echo number_format($_SESSION[\'register\'][\'amountCharged\'],2) . \' \' . $currency_code;
}
?>*/
<?php }?>
</div>
</td>
</tr>
-->
</table>

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

Editing the main registration page 15 years 9 months ago #3581

  • dthadmin
  • dthadmin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 5470
  • Thank you received: 3
Well, there are multiple places in the file to modify for this. Easier than commenting out, you can change a parameter. It is set to only show the cost line if the amount is greater than zero. Try just changing this to LESS than zero, which will never be the case, so this line will not ever show.

Around line 3666:

if ($totalCharged > 0){

Change to...

if ($totalCharged < 0){


Around line 6167:

if ($amountCharged+$customFee > 0){

Change to...

if ($amountCharged+$customFee < 0){


This should do the trick easier :)

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

  • Page:
  • 1
Time to create page: 0.218 seconds