Editing campaigns module to show 10% less

  • jade henry
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
13 years 8 months ago #3837 by jade henry
Editing campaigns module to show 10% less was created by jade henry
I want to edit the campaigns module so that it shows 10% less than the ACTUAL donated amount (due to paypal fees & i don't want to charge my users the paypal fee)

I found this code
Code:
<?php echo $currencySymbol.number_format($row->donated_amount, 2); ?>

in this file mod_jd_campaigns\tmpl/default.php

Which shows the donated amount, now how do I edit that bit of code to get it to show 10% less?

Thanks Jade

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

More
13 years 8 months ago #3839 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Editing campaigns module to show 10% less
Hi Jade

You can simply change the code to
Code:
<?php echo $currencySymbol.number_format($row->donated_amount*90/100, 2); ?>

Thanks ,

Tuan

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

  • jade henry
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
13 years 8 months ago #3840 by jade henry
Replied by jade henry on topic Re: Editing campaigns module to show 10% less
Thats brilliant thank you, I knew it would be something like that but just couldn't figure it out!

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

More
13 years 8 months ago #3841 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Editing campaigns module to show 10% less
hehe .

That's because you don't know much about PHP .

You should help me by giving my extension a 5 stars rating and a nice review at

extensions.joomla.org/extensions/e-commerce/donations/7094

Thanks ,

Tuan

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

Moderators: Mr. DamDũng Nguyễn Việt