text change to cbtn.io for stealth faxes orders so drivers don't say they're there for the CB order #2691

This commit is contained in:
Daniel Camargo 2014-04-14 16:59:19 -03:00
parent 45aad28c3d
commit 2e860d3bf7
2 changed files with 21 additions and 0 deletions

View File

@ -753,6 +753,16 @@ class Crunchbutton_Restaurant extends Cana_Table_Trackchange {
return $this->_notifications;
}
public function hasNotification( $verify ){
$types = $this->notification_types();
foreach( $types as $type ){
if( $type == $verify ){
return true;
}
}
return false;
}
public function notification_types(){
$types = array();
$notifications = $this->notifications();

View File

@ -104,6 +104,17 @@
<div class="divider"></div>
<div class="divider dots"></div>
<?php if( $this->order->restaurant()->hasNotification( 'stealth' ) ){ ?>
<div class="order-item-block-big">
Tell restaurant: <i>"I'm here to pick up a faxed order for <?php echo $this->order->id_order ?></i>".
</div>
<div class="divider"></div>
<div class="divider dots"></div>
<?php } ?>
<br><br>
<div class="order-icon"><i class="icon-user"></i></div>