-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhas tag.html
More file actions
50 lines (29 loc) · 1.41 KB
/
has tag.html
File metadata and controls
50 lines (29 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<script>
/*
has tag
License : < https://bit.ly/3MtSOLx >
Version : 0.1d0
SS Versions : 7.0, 7.1
v7.0 Templates : Brine ( Aria, Blend, Burke, Cacao, Clay, Fairfield, Feed,
Foster, Greenwich, Hatch, Heights, Hunter, Hyde, Impact,
Jaunt, Juke, Keene, Kin, Lincoln, Maple, Margot, Marta,
Mentor, Mercer, Miller, Mojave, Moksha, Motto, Nueva,
Pedro, Pursuit, Rally, Rover, Royce, Sofia, Sonora,
Stella, Thorne, Vow, Wav, West )
your template is not listed? then it is not currently
supported
Dependencies : jQuery
move product detail additional info first n blocks to end
of product details v0.3d0
By : Thomas Creedon < http://www.tomsWeb.consulting/ >
*/
const hasTag = ( ) => {
// a tag as appears in the SS product editing interface
let tag = '[enter tag here between single quotes]';
// do not change anything below, there be the borg here
tag = tag.replaceAll ( ' ', '-' );
tag = `tag-${ tag }`;
const b = $( '.ProductItem' ).hasClass ( tag );
return b;
};
</script>