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

TOPIC: Add new Tag

Add new Tag 13 years 11 months ago #11124

  • revlearning
  • revlearning's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Hi,

Is it possible to create a new tag for messages and emails?

I need a one that shows the event price without the currency sign?

Thanks

David

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

Add new Tag 13 years 11 months ago #11129

  • dthadmin
  • dthadmin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 5470
  • Thank you received: 3
You can't easily create new tag, but you can modify the [AMOUNT] tag to not show the currency. In this file:
/administrator/components/com_dtregister/lib/tagparser.php

Find this:
function amount($recipient){
        global $currency_code;
		$user  = $this->getuser($recipient);

		return DTreg::displayRate($user->TableFee->formatamount($user->TableFee->fee),$currency_code); 

	 }

Change it to this:
function amount($recipient){
        global $currency_code;
		$user  = $this->getuser($recipient);

		return $user->TableFee->formatamount($user->TableFee->fee);

	 }

That should do the trick. You could make a similar change to other tags like [AMOUNT_DUE] if you want or need to.

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

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