Complete Page

  • Michael Wilke
  • Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 4 months ago #148416 by Michael Wilke
Complete Page was created by Michael Wilke
Hi, i'd like to customize the Complete Page, cause we don't need the table with price. Where can i find this? What does the 'content.prepare', $this->message)?
Thanks for your help.

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

More
2 years 4 months ago #148442 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Complete Page
Hello

Could you please attach a screenshot of the current page so that I can understand exactly what you are trying to customize before giving you instructions

Regards,

Tuan

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

  • Michael Wilke
  • Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 4 months ago #148446 by Michael Wilke
Replied by Michael Wilke on topic Complete Page
Hi Tuan, thanks for your help. I like to delete or customize the table, because we don't need the prices.The override of the complete page includes only the content.prepare and I don't know where to change the called page.
Attachments:

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

More
2 years 4 months ago #148447 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Complete Page
I think you are using shopping cart, correct? If so, the file you need to edit is components/com_eventbooking/themes/default/emailtemplates/email_cart.php .

Once the modification is done, please move the modified file to PATH_TO_TEMPLATE/html/com_eventbooking/emailtemplates folder so that the change won't be lost when you update to future releases of the extension.

Please do that and let us know if you need more help

Regards,

Tuan

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

  • Michael Wilke
  • Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 4 months ago #148448 by Michael Wilke
Replied by Michael Wilke on topic Complete Page
i already changed the mail-template, thats fine for me, but these changes don't effect the complete page.
<table class="table table-striped table-bordered table-condensed" cellspacing="0" cellpadding="0">
    
    <tbody>
    <?php
        $total = 0 ;
        $k = 0 ;                    
        for ($i = 0 , $n = count($items) ; $i < $n; $i++)
        {
            $item = $items[$i] ;            
            $rate = EventbookingHelper::getRegistrationRate($item->event_id, $item->number_registrants);
            $total += $item->number_registrants*$rate ;
            $url = JUri::getInstance()->toString(array('scheme', 'user', 'pass', 'host')).JRoute::_(EventbookingHelperRoute::getEventRoute($item->event_id, 0, $Itemid));
        ?>
            <tr>                                
                <td width="33%" class="col_event">
                    <a href="<?php echo $url; ?>"><?php echo $item->title; ?></a>                                
                </td>                
                <?php
                    if ($config->show_event_date)
                    {
                    ?>
                        <td class="col_event_date text-center">
                            <?php
                                if ($item->event_date == EB_TBC_DATE)
                                {
                                    echo JText::_('EB_TBC');
                                }
                                else
                                {
                                    if (strpos($item->event_date, '00:00:00') !== false)
                                    {
                                        $dateFormat = $config->date_format;
                                    }
                                    else
                                    {
                                        $dateFormat = $config->event_date_format;
                                    }

                                    echo JHtml::_('date', $item->event_date,  $dateFormat, null);
                                }    
                            ?>                            
                        </td>    
                    <?php    
                    }
                ?>
            
                <td class="col_quantity text-center">
                    <?php echo $item->number_registrants ; ?>
                </td>                                                                                                        
                                        
            </tr>
        <?php                
            $k = 1 - $k ;                
        }
    ?>            
    </tbody>                    
</table>   

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

More
2 years 4 months ago #148449 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Complete Page
Ah, for complete page, the file is components/com_eventbooking/themes/default/emailtemplates/cart.php

Tuan

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

  • Michael Wilke
  • Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 4 months ago #148450 by Michael Wilke
Replied by Michael Wilke on topic Complete Page
Wonderfull, that's the one i needed... merry christmas and thank you.

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

More
2 years 4 months ago #148451 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Complete Page
Great. Happy to hear that. Merry Christmas

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