- Posts: 40
- Thank you received: 0
Editing campaigns module to show 10% less
- jade henry
- Topic Author
- Offline
- Senior Member
Less
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
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
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.
- Tuan Pham Ngoc
- Offline
- Administrator
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
Thanks ,
Tuan
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
Less
More
- Posts: 40
- Thank you received: 0
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.
- Tuan Pham Ngoc
- Offline
- Administrator
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
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. Dam, Dũng Nguyễn Việt
Support
Documentation
Information
Copyright © 2024 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.