- Posts: 33
- Thank you received: 0
Need help with Joomla? We are available for hire to help with Joomla customization, upgrades, maintenance, and custom development.
Explore our services Possible to add 2 commands for fee formula?
- cork
- Topic Author
- Offline
- Junior Member
-
Less
More
15 years 2 weeks ago #10002
by cork
Possible to add 2 commands for fee formula? was created by cork
Hi,
I need to add a second command to the fee formula. For example, 1-10 shirts are €10 each, 11+ are €8 each.
I used [FIELD_VALUE]*10 by itself and it works fine.
If I use [FIELD_VALUE]*10 && [FIELD_VALUE > 10]*8, this does not work.
How would I do this?
I need to add a second command to the fee formula. For example, 1-10 shirts are €10 each, 11+ are €8 each.
I used [FIELD_VALUE]*10 by itself and it works fine.
If I use [FIELD_VALUE]*10 && [FIELD_VALUE > 10]*8, this does not work.
How would I do this?
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
15 years 2 weeks ago #10005
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Possible to add 2 commands for fee formula?
Hi
Try to use this formular, it should work :
Try to use this formular, it should work :
Code:
([FIELD_VALUE] > 10) ? [FIELD_VALUE]*8 : [FIELD_VALUE]*10
Please Log in or Create an account to join the conversation.
- cork
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 33
- Thank you received: 0
15 years 2 weeks ago #10033
by cork
Replied by cork on topic Re: Possible to add 2 commands for fee formula?
admin wrote:
This code just calculates each shirt to be €10 each, with no discount after 11 shirts.
Hi
Try to use this formular, it should work :
Code:([FIELD_VALUE] > 10) ? [FIELD_VALUE]*8 : [FIELD_VALUE]*10
This code just calculates each shirt to be €10 each, with no discount after 11 shirts.
Please Log in or Create an account to join the conversation.
- cork
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 33
- Thank you received: 0
15 years 2 weeks ago #10042
by cork
Replied by cork on topic Re: Possible to add 2 commands for fee formula?
admin wrote:
Do you have another formula that works?
Hi
Try to use this formular, it should work :
Code:([FIELD_VALUE] > 10) ? [FIELD_VALUE]*8 : [FIELD_VALUE]*10
Do you have another formula that works?
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2026 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.