Welcome, Guest
Username: Password: Remember me

TOPIC: Issues trying to move text

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

  • Ammonite
  • Ammonite's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0

dthadmin wrote: 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.


My line numbers were different, presumably because the config had changed them. I found the correct table row and removed it but it only seems to work for individual registrants, not for groups.

Registration Fee: 2 x £7.00
Member 2 Information

Any thoughts please?

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

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

  • pkolm
  • pkolm's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
My lines in the php file in 2.6.6 aren't the same as you list.

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

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

  • dthadmin
  • dthadmin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 5470
  • Thank you received: 3
pkolm - that doesn't matter. You may have a text editor that is adding extra lines or something. Just search for code that is shown in this post and don't worry so much about the line numbers.

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

Issues trying to move text 14 years 5 months ago #8505

  • wibadd
  • wibadd's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
This code only appears to remove the initial totals for an individual registration; however, it also disables the following fields:

Organization
Address
Address2
City
State
Zip Code
Country

What changes should be made to maintain these fields? Also, what code should I delete/comment from this file to remove the total from the group registration pages?

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

Issues trying to move text 14 years 3 months ago #9046

  • breezeboogie
  • breezeboogie's Avatar
  • Visitor
  • Visitor
How do I remove this text in 2.8? I dont see the setting in the config and am not sure where it to find it in the dtregister.php file. Thx in advance.

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

Issues trying to move text 14 years 3 months ago #9048

  • dthadmin
  • dthadmin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 5470
  • Thank you received: 3
Don't worry about line numbers guys... just search for TOTAL_REGISTRATION_COST. This is the language tag that pulls in "Total Registration Cost". Once you find it in the php file, comment as desired. Anything you see onscreen that you want to move or remove, check your language file:
/language/en-GB/en-GB.com_dtregister.ini

Search for the text that shows and you'll find the language tag that is actually used in the file... as no displayed text is actually hard-coded in any of the php files. Then search the php file for the language tag... modify as needed.

You'll find code like this in more than one place. Modify in each location. There is no config for this... but the upcoming 2.7 makes many improvements related to this, so you won't have to dig in the code like this when you want to change the pricing display.

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

Time to create page: 0.151 seconds