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:
parent
45aad28c3d
commit
2e860d3bf7
@ -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();
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user