Skip to content
This repository has been archived by the owner on Apr 9, 2021. It is now read-only.

Commit

Permalink
added chatbot
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasLudvik committed Sep 4, 2019
1 parent 42c3e03 commit 42aff26
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- domains and domains_url search index routing were added for german locale
- CategoryRepositoryTest was fixed for third domain
- translations were copied from en language and prefixed with (de)
- [#80 - added chatbot](https://github.com/shopsys/demoshop/pull/80)
- there is now chatbot displayed on all pages to allow visitors of demoshop to contact Shopsys directly

### Changed
- [#1 - Basic changes in docs, readme etc. after copying from project-base](https://github.com/shopsys/demoshop/pull/1) : [@LukasHeinz]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
window._chatlio = window._chatlio || [];
!function () {
var t = document.getElementById("chatlio-widget-embed");
if (t && window.ChatlioReact && _chatlio.init) return void _chatlio.init(t, ChatlioReact);
for (var e = function (t) {
return function () {
_chatlio.push([t].concat(arguments))
}
}, i = ["configure", "identify", "track", "show", "hide", "isShown", "isOnline", "page", "open", "showOrHide"], a = 0; a < i.length; a++) _chatlio[i[a]] || (_chatlio[i[a]] = e(i[a]));
var n = document.createElement("script"), c = document.getElementsByTagName("script")[0];
n.id = "chatlio-widget-embed", n.src = "https://w.chatlio.com/w.chatlio-widget.js", n.async = !0, n.setAttribute("data-embed-version", "2.3");
n.setAttribute('data-widget-id', '824874cb-7e8b-4a4e-5380-10c1697b3d08');
c.parentNode.insertBefore(n, c);
}();
3 changes: 3 additions & 0 deletions tests/ShopBundle/Acceptance/acceptance/OrderCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public function testFormRemembersPaymentAndTransportWhenClickingBack(
$orderPage->assertPaymentIsNotSelected('Cash on delivery');
$orderPage->selectPayment('Cash on delivery');
$me->waitForAjax();
$me->scrollTo(['css' => '#transport_and_payment_form_save']);
$me->clickByText('Continue in order');
$me->clickByText('Back to shipping and payment selection');

Expand Down Expand Up @@ -64,6 +65,7 @@ public function testFormRemembersPaymentAndTransportWhenGoingDirectlyToUrl(
$orderPage->assertPaymentIsNotSelected('Cash on delivery');
$orderPage->selectPayment('Cash on delivery');
$me->waitForAjax();
$me->scrollTo(['css' => '#transport_and_payment_form_save']);
$me->clickByText('Continue in order');
$me->amOnPage('/order/');

Expand All @@ -87,6 +89,7 @@ public function testFormRemembersFirstName(ProductListPage $productListPage, Ord
$orderPage->selectTransport('Czech post');
$orderPage->selectPayment('Cash on delivery');
$me->waitForAjax();
$me->scrollTo(['css' => '#transport_and_payment_form_save']);
$me->clickByText('Continue in order');

$orderPage->fillFirstName('Jan');
Expand Down

0 comments on commit 42aff26

Please sign in to comment.