- Posts: 17
- 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
14 years 9 months ago - 14 years 9 months ago #13144
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Registration Confirmation Button Not working
@All : This issue only happens on some templates. I will include a config option to fix this issue in the next release. For now, if you have this issue, the instruction is at follow :
1. If you have Activate Shopping cart feature config option set to No:
- Open the file components/com_eventbooking/views/confirmation/tmpl/default.php .
- Find the code below :
- CHange it to :
- Do the same for the file components/com_eventbooking/views/confirmation/tmpl/group.php
- Or you can get the file below (if you are using version 1.4.3), unzip it, get the two files, upload it to components/com_eventbooking/view/confirmation/tmpl folder. After that, the issue should be solved .
1. If you have Activate Shopping cart feature config option set to No:
- Open the file components/com_eventbooking/views/confirmation/tmpl/default.php .
- Find the code below :
Code:
if ($this->config->accept_term ==1) {
$articleId = $this->event->article_id ? $this->event->article_id : $this->config->article_id ;
$db = & JFactory::getDbo() ;
$sql = 'SELECT id, catid, sectionid FROM #__content WHERE id='.$articleId ;
$db->setQuery($sql) ;
$rowArticle = $db->loadObject() ;
$catId = $rowArticle->catid ;
$sectionId = $rowArticle->sectionid ;
require_once JPATH_ROOT.'/components/com_content/helpers/route.php' ;
$termLink = ContentHelperRoute::getArticleRoute($articleId, $catId, $sectionId).'&tmpl=component&format=html' ;
?>
<tr>
<td colspan="2">
<input type="checkbox" name="accept_term" value="1" class="inputbox" />
<?php echo JText::_('EB_ACCEPT'); ?> <a class="modal" title="<?php echo JText::_('EB_TERM_AND_CONDITION'); ?>" href="<?php echo JText::_($termLink); ?>"><strong><?php echo JText::_('EB_TERM_AND_CONDITION'); ?></strong></a>
</td>
</tr>
<?php
}
- CHange it to :
Code:
if ($this->config->accept_term ==1) {
$articleId = $this->event->article_id ? $this->event->article_id : $this->config->article_id ;
$db = & JFactory::getDbo() ;
$sql = 'SELECT id, catid, sectionid FROM #__content WHERE id='.$articleId ;
$db->setQuery($sql) ;
$rowArticle = $db->loadObject() ;
$catId = $rowArticle->catid ;
$sectionId = $rowArticle->sectionid ;
require_once JPATH_ROOT.'/components/com_content/helpers/route.php' ;
$termLink = ContentHelperRoute::getArticleRoute($articleId, $catId, $sectionId).'&format=html' ;
?>
<tr>
<td colspan="2">
<input type="checkbox" name="accept_term" value="1" class="inputbox" />
<?php echo JText::_('EB_ACCEPT'); ?> <a target="_blank" title="<?php echo JText::_('EB_TERM_AND_CONDITION'); ?>" href="<?php echo JText::_($termLink); ?>"><strong><?php echo JText::_('EB_TERM_AND_CONDITION'); ?></strong></a>
</td>
</tr>
<?php
}
- Or you can get the file below (if you are using version 1.4.3), unzip it, get the two files, upload it to components/com_eventbooking/view/confirmation/tmpl folder. After that, the issue should be solved .