-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhas ask for price button.html
More file actions
48 lines (28 loc) · 1.38 KB
/
has ask for price button.html
File metadata and controls
48 lines (28 loc) · 1.38 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
<script>
/*
has ask for price button
License : < https://bit.ly/3MtSOLx >
Version : 0.1d0
SS Versions : 7.1, 7.0
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 hasAskForPriceButton = ( ) => {
const urlBeginsWith = '[enter beginning of url here between single quotes]';
// do not change anything below, there be the borg here
const $elements =
$( `.ProductItem-additional [href^="${ urlBeginsWith }"]` );
const b = Boolean ( $elements.length );
return b;
};
</script>