Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
soko
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bitsoko services
soko
Commits
0e3c17f3
Commit
0e3c17f3
authored
Apr 19, 2017
by
Gaseema Ndung'u
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
loyalty settings
parent
76dd8c2f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
2 deletions
+26
-2
index.html
index.html
+16
-1
bitsoko.js
js/bitsoko.js
+10
-1
No files found.
index.html
View file @
0e3c17f3
...
...
@@ -452,9 +452,24 @@
<span
style=
"margin-top:13px;"
class=
"lever right"
></span>
</label>
</div>
</div>
</span>
<span>
<div
class=
"switch"
>
<span><svg
class=
"deliveriesIcon"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
version=
"1.1"
id=
"Capa_1"
x=
"0px"
y=
"0px"
viewBox=
"0 0 490.3 490.3"
style=
"enable-background:new 0 0 490.3 490.3;float: left;height: 40px;margin-left: 6px; margin-right:9px;padding:6px;"
xml:space=
"preserve"
><g
xmlns=
"http://www.w3.org/2000/svg"
>
<path
d=
"M275.664,105.599h-0.865c-5.89,0-10.667,4.777-10.667,10.667s4.777,10.667,10.667,10.667h0.865 c5.89,0,10.667-4.776,10.667-10.667S281.554,105.599,275.664,105.599z"
/>
<path
d=
"M466.616,219.649c-4.166-4.164-10.918-4.164-15.086,0l-6.858,6.858l-6.858-6.858c-4.166-4.164-10.918-4.164-15.086,0 c-4.165,4.165-4.165,10.919,0,15.086l6.858,6.858l-6.858,6.858c-4.164,4.166-4.164,10.921,0.002,15.086 c2.083,2.082,4.813,3.124,7.542,3.124c2.73,0,5.459-1.042,7.542-3.124l6.858-6.858l6.858,6.858 c2.083,2.082,4.813,3.124,7.542,3.124s5.459-1.042,7.542-3.124c4.165-4.165,4.165-10.919,0-15.086l-6.858-6.858l6.858-6.858 C470.781,230.57,470.781,223.816,466.616,219.649z"
/>
<path
d=
"M395.149,219.649c-4.166-4.164-10.918-4.164-15.086,0l-6.858,6.858l-6.858-6.858c-4.166-4.164-10.918-4.164-15.086,0 c-4.165,4.165-4.165,10.919,0,15.086l6.858,6.858l-6.858,6.858c-4.164,4.166-4.164,10.921,0.002,15.086 c2.083,2.082,4.813,3.124,7.542,3.124c2.73,0,5.459-1.042,7.542-3.124l6.858-6.858l6.858,6.858 c2.083,2.082,4.813,3.124,7.542,3.124s5.459-1.042,7.542-3.124c4.165-4.165,4.165-10.919,0-15.086l-6.858-6.858l6.858-6.858 C399.314,230.57,399.314,223.816,395.149,219.649z"
/>
<path
d=
"M474.667,131.727H343.706V95.619c0-14.716-6.781-28.179-18.605-36.94c-11.822-8.76-26.677-11.326-40.754-7.042 c-0.147,0.045-0.293,0.093-0.439,0.144l-67.438,23.768h-56.452L92.581,51.781c-0.146-0.051-0.292-0.099-0.44-0.144 C78.065,47.35,63.21,49.92,51.386,58.68c-11.823,8.761-18.605,22.224-18.605,36.94v36.395C14.336,134.268,0,150.016,0,169.06v256 c0,20.586,16.748,37.333,37.333,37.333h437.333c20.586,0,37.333-16.748,37.333-37.333v-256 C512,148.475,495.252,131.727,474.667,131.727z M228.961,126.938h13.312c5.89,0,10.667-4.777,10.667-10.667 s-4.776-10.667-10.667-10.667h-13.312V93.765l61.801-21.779c7.482-2.211,15.358-0.819,21.638,3.835 c6.337,4.695,9.972,11.911,9.972,19.799v41.296c0,7.888-3.634,15.103-9.972,19.799c-6.279,4.653-14.157,6.046-21.638,3.835 l-61.801-21.779V126.938z M216.469,156.986l36.774,12.96l23.868,41.34l-12.182-2.127c-5.098-0.891-10.079,1.995-11.853,6.843 l-4.247,11.614l-40.779-70.629H216.469z M168.858,96.882h38.77v38.77h-38.77V96.882z M171.25,156.987l-40.779,70.629 l-4.247-11.614c-1.773-4.848-6.768-7.733-11.853-6.843l-12.181,2.127l24.586-42.585l33.242-11.715H171.25z M54.114,95.619 c0-7.887,3.634-15.103,9.972-19.799c4.324-3.204,9.405-4.862,14.595-4.862c2.347,0,4.716,0.338,7.045,1.027l61.798,21.779V105.6 H100.82c-5.89,0-10.667,4.777-10.667,10.667s4.776,10.667,10.667,10.667h46.705v11.836l-61.798,21.779 c-7.486,2.211-15.36,0.818-21.641-3.835c-6.337-4.695-9.972-11.913-9.972-19.799V95.619z M490.667,425.06c0,8.822-7.178,16-16,16 H37.333c-8.822,0-16-7.178-16-16v-31.086h469.333V425.06z M490.667,372.641H21.333v-53.333h469.333V372.641z M490.667,297.973 H21.333V169.06c0-8.273,6.309-15.099,14.369-15.918c3.052,8.147,8.409,15.322,15.683,20.711 c8.069,5.979,17.55,9.072,27.232,9.072c4.506,0,9.054-0.67,13.524-2.03c0.147-0.045,0.293-0.093,0.44-0.144l3.268-1.152 l-23.548,40.787c-2.07,3.587-1.878,8.049,0.495,11.444c2.374,3.395,6.498,5.107,10.578,4.396l25.879-4.519l9.025,24.673 c1.423,3.889,4.97,6.604,9.097,6.962c0.309,0.026,0.617,0.039,0.923,0.039c3.787,0,7.32-2.015,9.235-5.333l52.116-90.268 l52.116,90.268c1.916,3.318,5.449,5.333,9.235,5.333c0.306,0,0.614-0.014,0.923-0.039c4.127-0.358,7.674-3.073,9.096-6.962 l9.025-24.673l25.881,4.519c4.078,0.711,8.204-1.001,10.578-4.396c2.373-3.396,2.565-7.857,0.495-11.444l-22.835-39.551 c0.061,0.02,0.121,0.042,0.181,0.06c4.47,1.361,9.018,2.03,13.523,2.03c9.682,0,19.164-3.093,27.231-9.072 c7.3-5.408,12.67-12.613,15.716-20.795h133.851c8.822,0,16,7.178,16,16V297.973z"
/>
</g></svg>
Loyalty
</span>
<label>
<input
type=
"checkbox"
id=
"loyaltyToggle"
type=
"checkbox"
style=
"background: rgb(128, 210, 147);"
class=
"js-push-button-notification"
>
<span
style=
"margin-top:13px;"
class=
"lever right"
></span>
</label>
</div>
</span>
</div>
</li>
</ul>
...
...
js/bitsoko.js
View file @
0e3c17f3
...
...
@@ -222,7 +222,7 @@ function loadPOS() {
$
(
"#switchStoreContent"
).
append
(
html
);
localStorage
.
setItem
(
'soko-store-id-'
+
services
[
i
].
id
,
JSON
.
stringify
(
services
[
i
]));
localStorage
.
setItem
(
'soko-active-store'
,
services
[
0
].
id
);
// initialisePush('soko-store-id-' + services[i].id);
// initialisePush('soko-store-id-' + services[i].id);
}
var
shroot
=
document
.
querySelectorAll
(
".closeSwitchStore"
);
for
(
var
i
=
0
;
i
<
shroot
.
length
;
++
i
)
{
...
...
@@ -1800,6 +1800,15 @@ $('#paymentsToggle').click(function () {
}).
then
(
function
(
e
)
{});
});
//Enable Loyalty
$
(
'#loyaltyToggle'
).
click
(
function
()
{
var
value
=
document
.
getElementById
(
"loyaltyToggle"
).
checked
doFetch
({
action
:
'toggleLayalty'
,
value
:
value
}).
then
(
function
(
e
)
{});
});
//Empty Promo Card
$
(
'#makeCard'
).
click
(
function
()
{
var
structure
=
$
(
'<div id="promo-card" class="card loadCard"><div class="card-image waves-effect waves-block waves-light">'
+
'<img class="activator" src="" alt="user bg"></div><div class="card-content" style="padding: 0px 20px;">'
+
'<img src="" alt="" class="circle responsive-img activator card-profile-image">'
+
'<a class="btn-floating activator btn-move-up waves-effect waves-light darken-2 right">'
+
'<svg class="activator" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 490.3 490.3" style="enable-background:new 0 0 490.3 490.3;width: 26px;margin-left: 8px;margin-top: 7px;" xml:space="preserve"><g xmlns="http://www.w3.org/2000/svg"><path d="M438.931,30.403c-40.4-40.5-106.1-40.5-146.5,0l-268.6,268.5c-2.1,2.1-3.4,4.8-3.8,7.7l-19.9,147.4 c-0.6,4.2,0.9,8.4,3.8,11.3c2.5,2.5,6,4,9.5,4c0.6,0,1.2,0,1.8-0.1l88.8-12c7.4-1,12.6-7.8,11.6-15.2c-1-7.4-7.8-12.6-15.2-11.6 l-71.2,9.6l13.9-102.8l108.2,108.2c2.5,2.5,6,4,9.5,4s7-1.4,9.5-4l268.6-268.5c19.6-19.6,30.4-45.6,30.4-73.3 S458.531,49.903,438.931,30.403z M297.631,63.403l45.1,45.1l-245.1,245.1l-45.1-45.1L297.631,63.403z M160.931,416.803l-44.1-44.1 l245.1-245.1l44.1,44.1L160.931,416.803z M424.831,152.403l-107.9-107.9c13.7-11.3,30.8-17.5,48.8-17.5c20.5,0,39.7,8,54.2,22.4 s22.4,33.7,22.4,54.2C442.331,121.703,436.131,138.703,424.831,152.403z" fill="#FFFFFF"></path></g></svg></a><p>'
+
'</p><p>'
+
'</p>'
+
'<p style="text-align: center;padding: 15px 20px;"><i style="float: left;" class="promo-state-icon mdi-notification-sync"> 0 shares</i>'
+
'<i class="promo-state-icon mdi-action-favorite"> 0 likes </i>'
+
'<i style="float: right;" class="promo-state-icon mdi-action-receipt"> 0 sales </i></p>'
+
'<label>offer subscribers</label><div class="divider" style="margin: 10px;"></div><div class="promo-'
+
'-subscribers"></div>'
+
'</div><div class="card-reveal revealOnLoad" style="">'
+
'<form class="col s12"> <div class="row"> <div class="input-field col s12"> <input id="newPromo-name" type="text" class="validate js-loc-button-notification-input" value="" value="" stitm="name" required> <label for="newPromo-name" class="">Name</label> </div></div><div class="row"> <div class="input-field col s12"> <input id="newPromo-desc" type="text" class="validate js-loc-button-notification-input" value="" stitm="msg" required> <label for="newPromo-desc" class="">Desc</label> </div></div><div class="row"> <div class="file-field input-field"> <div class="btn"><span>image</span> <input id="newPromo-image" type="file" stitm="customImage" required> </div></div></div><div class="row"> <div class="input-field col s6"> <input placeholder="" id="newPromo-discount" type="number" class="validate" min="0" max="90"> <label for="newPromo-discount" class="">% discount</label> </div><div class="input-field col s6"> <input placeholder="" id="newPromo-offers" type="number" class="validate" min="0"> <label for="newPromo-offers" class="">minimum buyers</label> </div></div><div class="row" style="overflow:auto;"> <h6 style="text-align:center;">Add an item to this promotion</h6> <ul class="promo-add-new-promotion2"></ul> </div></form>'
+
'<div class="row" style="text-align: center;margin: 20px 0px;"> <a href="#!" class="doAddNewPromo waves-effect waves-green btn-flat" style="background:#26A69A;color:white;margin-bottom:10px;">add promotion</a><br><a class="removePromo waves-effect waves-light btn" style="margin-bottom:10px;">CANCEL</a><br></div>'
+
'</div></div>'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment