Query a value of a custom field in file register_payment_amount.php

  • Roland Grillenberger
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
4 days 10 hours ago - 4 days 10 hours ago #117413 by Roland Grillenberger
Hi everybody,

I want to change the value of JText::_('EB_AMOUNT'); depending on the value of a custom field in the file themes/default/register/register_payment_amount.php.
How can I query the value of a custom field in this file?

For example something like:
<?php
if (my_custom_field=='1') {
$value_of_eb_amount=x;
} else {
$value_of_eb_amount=x;
}
?>

I would replace
<?php echo JText::_('EB_AMOUNT'); ?>
with
<?php echo $value_of_eb_amount; ?>
afterwards.

Anybody an idea?

Thanks in advance and best regards,
Roland
Last edit: 4 days 10 hours ago by Roland Grillenberger.

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

More
4 days 5 hours ago #117421 by Tuan Pham Ngoc
Hello Roland

I am not sure if it's possible. Maybe you can send us the link to the registration form on your site and explain how it should work so that I can understand your requirement and answer you further

Tuan

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

Moderators: Tuan Pham Ngoc