Welcome, Guest
Username: Password: Remember me

TOPIC: Issues trying to move text

Issues trying to move text 14 years 11 months ago #5842

  • coreyallen
  • coreyallen's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
Hello there

I'm attempting to move the "Your total Registration cost:" text from the first registration page to the page where the user enters their credit card information. We don't want it displayed on the first registration page since the total isn't accurate until after they've completed the form and all of the content.

We would also like to remove the "( Event Fees = 100.00; Additional Fees = -50.00)" tex and only display the total.

I've been racking my brain for a number of days now but no such luck.

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

Issues trying to move text 14 years 11 months ago #5844

  • dthadmin
  • dthadmin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 5470
  • Thank you received: 3
We just answered your ticket, but as someone else may be interested in this, here it is again :) The instructions I give here will be based on the latest build of 2.5.9 at this point. Open this file:
/components/com_dtregister/dtregister.php

Around line 4681 is the cost as displayed on the initial form. To remove this code from this location, you should remove line 4635 which starts with:

<table class="authorizenetformtable">

and go through line 4749 with the closing </table> Everything inside of that table you can remove.

Now, the total cost that is displayed INCLUDING custom fields and any other fees or discounts is found in a separate location...

Around line 7454 is the start of the price calculations showing on the confirmation page. To remove the breakdown of Event Fees and Additional Fees, remove or comment out line 7474 which you'll see includes language tags DT_EVENT_FEES and DT_ADDITIONAL_FEES. Your line numbers might be different, so just remove the line that includes these two language tags.

Hope that helps.

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

Issues trying to move text 14 years 7 months ago #7666

  • 88keyman
  • 88keyman's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 12
  • Thank you received: 0
Where is this now located in DT Register 2.6. I can't seem to find it and am needing to remove this for a site I am doing.

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

Issues trying to move text 14 years 7 months ago #7804

  • pkolm
  • pkolm's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
I'm attempting to remove this text again but the line numbers don't match up in the latest version. Please advise on how to remove it.

Thanks

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

Issues trying to move text 14 years 7 months ago #7808

  • dthadmin
  • dthadmin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 5470
  • Thank you received: 3
Based on version 2.6.6, go to the same file... /components/com_dtregister/dtregister.php

To remove the initial price display at the top of the registration form, remove the section of code start at line 5174. It is the start of a new table row. Look for this:
<tr><td><br /><?php

		if ((int)$totalCharged > 0){

			echo JText::_( 'TOTAL_REGISTRATION_COST' ) . ': ';

Remove or comment out the code starting there and continue through line 5244 which ends with:
</td></tr>

Removing that will keep the price from displaying until the confirmation page.

Around line 7224 you'll find this line:
<?php echo JText::_( 'TOTAL_REGISTRATION_COST' );?>:

This is a display of the total registration cost on the confirmation page. A few lines down you'll see code for displaying tax amount (lines 7241-7243), or status of Member Discount / Early Bird Discount (lines 7244-7254). You can comment out or edit the display as needed. To remove the breakdown of "Event Fees" and "Additional Fees", you can comment out (or remove) lines 7258-7264.

Be aware that the upcoming 2.7 series will include some built in options for this. The price calculation will be dynamic on the registration form and there will be an option to show a breakdown of charges in the total (like each custom field fee / discount) instead of putting them all together. But, for now, you can modify this code :)

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

Issues trying to move text 14 years 7 months ago #7814

  • 88keyman
  • 88keyman's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 12
  • Thank you received: 0
Cool, thanks for the instructions and for a small preview of 2.7. It will be nice to have those features! This extension rocks! It was so easy to set up. :D

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

Time to create page: 0.127 seconds