- Posts: 41
- Thank you received: 1
custom field question
- Christian Rieger
- Topic Author
- Offline
- Senior Member
-
Less
More
8 years 7 months ago #86445
by Christian Rieger
custom field question was created by Christian Rieger
Hi there!
I've read about creating a new custom field in your docs. But I don't know how to place it directly after the terms and conditions validation of the checkout process. I need to have another checkbox validating another disclaimer document with a short juristic description.
The same as with the terms and conditions you can see.
Thanks for any assistance!
Regards
Christian
I've read about creating a new custom field in your docs. But I don't know how to place it directly after the terms and conditions validation of the checkout process. I need to have another checkbox validating another disclaimer document with a short juristic description.
The same as with the terms and conditions you can see.
Thanks for any assistance!
Regards
Christian
- Tuan Pham Ngoc
- Offline
- Administrator
-
8 years 7 months ago #86469
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic custom field question
Hi Christian
Unfortunately, there is no option to place a custom field in that position. I think the easiest way would be modify the subscription form layout components/com_eventbooking/view/register/tmpl/default.php
Look at that file, you can see the code for terms and conditions, duplicate that section of code and modify it to meet your need
Tuan
Unfortunately, there is no option to place a custom field in that position. I think the easiest way would be modify the subscription form layout components/com_eventbooking/view/register/tmpl/default.php
Look at that file, you can see the code for terms and conditions, duplicate that section of code and modify it to meet your need
Tuan
Please Log in or Create an account to join the conversation.
- Christian Rieger
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 41
- Thank you received: 1
8 years 7 months ago #86495
by Christian Rieger
Replied by Christian Rieger on topic custom field question
Hi Tuan,
thanks a lot. So far I got this. Not very elegant but it works…
/*
<?php
}
$articleId = $this->plan->terms_and_conditions_article_id > 0 ? $this->plan->terms_and_conditions_article_id : $this->config->article_id;
if ($articleId > 0)
{
$db = JFactory::getDbo();
$query = $db->getQuery(true);
$query->select('*')
->from('#__content')
->where('id = '. (int) $articleId);
$db->setQuery($query);
$rowArticle = $db->loadObject() ;
$catId = $rowArticle->catid ;
require_once JPATH_ROOT.'/components/com_content/helpers/route.php' ;
?>
<div class="<?php echo $controlGroupClass ?>">
<input type="checkbox" name="accept_term" value="1" class="validate[required] osm_inputbox inputbox" />
<strong><?php echo JText::_('Hiermit stimme ich ausdrücklich zu, dass vor Ablauf der Widerrufsfrist mit der Ausführung des Vertrages begonnen wird. Mir ist bekannt, dass ich durch meine Zustimmung mit Beginn der Ausführung des Vertrags mein Widerrufsrecht verliere.'); ?> <a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($articleId, $catId).'&tmpl=component&format=html'); ?>" class="osm-modal" rel="{handler: 'iframe', size: {x: 700, y: 500}}"><?php echo JText::_('Widerufsrechtsbelehrung'); ?></a></strong>
</div>
*/
I put the text directly in the php file because I don’t know how to get it in the translation. And I need the document named „Wideruffsbelehrung“ calling the right document. Actually same as terms and conditions is called.
Regards
Christian
thanks a lot. So far I got this. Not very elegant but it works…
/*
<?php
}
$articleId = $this->plan->terms_and_conditions_article_id > 0 ? $this->plan->terms_and_conditions_article_id : $this->config->article_id;
if ($articleId > 0)
{
$db = JFactory::getDbo();
$query = $db->getQuery(true);
$query->select('*')
->from('#__content')
->where('id = '. (int) $articleId);
$db->setQuery($query);
$rowArticle = $db->loadObject() ;
$catId = $rowArticle->catid ;
require_once JPATH_ROOT.'/components/com_content/helpers/route.php' ;
?>
<div class="<?php echo $controlGroupClass ?>">
<input type="checkbox" name="accept_term" value="1" class="validate[required] osm_inputbox inputbox" />
<strong><?php echo JText::_('Hiermit stimme ich ausdrücklich zu, dass vor Ablauf der Widerrufsfrist mit der Ausführung des Vertrages begonnen wird. Mir ist bekannt, dass ich durch meine Zustimmung mit Beginn der Ausführung des Vertrags mein Widerrufsrecht verliere.'); ?> <a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($articleId, $catId).'&tmpl=component&format=html'); ?>" class="osm-modal" rel="{handler: 'iframe', size: {x: 700, y: 500}}"><?php echo JText::_('Widerufsrechtsbelehrung'); ?></a></strong>
</div>
*/
I put the text directly in the php file because I don’t know how to get it in the translation. And I need the document named „Wideruffsbelehrung“ calling the right document. Actually same as terms and conditions is called.
Regards
Christian
- Christian Rieger
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 41
- Thank you received: 1
8 years 7 months ago - 8 years 7 months ago #86604
by Christian Rieger
Replied by Christian Rieger on topic custom field question
Hi Tuan,
there's still a problem with the checkbox I've copied from the terms and conditions checkbox. The checkbox beneath the terms and conditions checkbox musst also be an obligatory checkbox. Actually the checkout works with or without confirming the checkbox.
And I just need the text beside the checkbox. the link „Widerufsrechtsbelehrung" has to disappear.
In germany we have a two-weeks consumer right for disagreeing a sales. But it in case of selling the rights of using digital content it can be excluded. That's what the second checkbox in my case necessarily has to work for.
Here's a link:
www.mathelike2016.mathelike.de/pricing-t...llizenz/sign-up.html
It's very important for me. Without the second checkbox working I can't go on using membership pro.
Thanks for any assistance!
Christian
there's still a problem with the checkbox I've copied from the terms and conditions checkbox. The checkbox beneath the terms and conditions checkbox musst also be an obligatory checkbox. Actually the checkout works with or without confirming the checkbox.
And I just need the text beside the checkbox. the link „Widerufsrechtsbelehrung" has to disappear.
In germany we have a two-weeks consumer right for disagreeing a sales. But it in case of selling the rights of using digital content it can be excluded. That's what the second checkbox in my case necessarily has to work for.
Here's a link:
www.mathelike2016.mathelike.de/pricing-t...llizenz/sign-up.html
It's very important for me. Without the second checkbox working I can't go on using membership pro.
Thanks for any assistance!
Christian
Last edit: 8 years 7 months ago by Christian Rieger.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
8 years 7 months ago #86700
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic custom field question
Hi Christian
In this case, we will need to edit the code for you, then. Please submit a support ticket sending us super admin account of your site and tell us what text should be displayed next to the checkbox. I will ask my dev to modify code to make it works for you
Tuan
In this case, we will need to edit the code for you, then. Please submit a support ticket sending us super admin account of your site and tell us what text should be displayed next to the checkbox. I will ask my dev to modify code to make it works for you
Tuan
Please Log in or Create an account to join the conversation.
- Christian Rieger
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 41
- Thank you received: 1
8 years 7 months ago #86709
by Christian Rieger
Replied by Christian Rieger on topic custom field question
Hi Tuan,
thank you very much for making this possible! I've sent the ticket.
Christian
thank you very much for making this possible! I've sent the ticket.
Christian
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
8 years 7 months ago #86758
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic custom field question
Update: We worked together via support ticket and had it works as expected. Also, I asked my dev to use template override, so this change won't be lost when you upgrade to future release of the extension
Tuan
Tuan
The following user(s) said Thank You: Christian Rieger
Please Log in or Create an account to join the conversation.
- Christian Rieger
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 41
- Thank you received: 1
8 years 7 months ago #86789
by Christian Rieger
Replied by Christian Rieger on topic custom field question
Thanks a lot for your outstanding support!
Christian
Christian
Please Log in or Create an account to join the conversation.
- Christian Rieger
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 41
- Thank you received: 1
8 years 5 months ago #89365
by Christian Rieger
Replied by Christian Rieger on topic custom field question
Hi Tuan,
I've a question concerning the custom checkbox you where coding for me.
www.mathelike.de/testlizenz/sign-up.html
Is there a way to hide the second custom coded checkbox and the belonging text for a specific subscription plan? In this case my free subscription plan doesn't need the massage to be confirmed. It's rather irritating potential free subscribers. For all payed plans the message is due to german law absolutely necessary.
Maybe for future versions you can think in general of a custom field similar to the terms and conditions checkbox which is handled in the way like the registration custom fields? Just a suggestion ...
Regards,
Christian
I've a question concerning the custom checkbox you where coding for me.
www.mathelike.de/testlizenz/sign-up.html
Is there a way to hide the second custom coded checkbox and the belonging text for a specific subscription plan? In this case my free subscription plan doesn't need the massage to be confirmed. It's rather irritating potential free subscribers. For all payed plans the message is due to german law absolutely necessary.
Maybe for future versions you can think in general of a custom field similar to the terms and conditions checkbox which is handled in the way like the registration custom fields? Just a suggestion ...
Regards,
Christian
Please Log in or Create an account to join the conversation.
Support
Documentation
Information
Copyright © 2025 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.