Skip to content
Snippets Groups Projects

Message System

Merged William Sutanto requested to merge message_system into 2.2-develop
Viewing commit 6c877903
Show latest version
1 file
+ 11
2
Preferences
Compare changes
<div class="box">
<div class = "chat-title">
<span class="name"></span>
<span class="name">
<?php
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$customerSession = $objectManager->get('Magento\Customer\Model\Session');
if ($customerSession->isLoggedIn()) {
echo $customerSession->getCustomer()->getEmail(); // get Last Name
} else {
echo "Kosong";
}
?>
</span>
</div>
<div class="chat-form" >
<div id="chatbox" class="chat-box">
@@ -16,7 +26,6 @@
</div>
</div>
<script>
console.log(<?php $this->getEmail() ?>);
var myFirebase = new Firebase('https://magentochat.firebaseio.com/');
require(['jquery'], function($) {
$(document).ready(function() {