get_started.php
4 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<?php
/**
* The template for displaying the Get Started page .
*
* Template name: Get Started page
*
* @package storefront
*/
/**
*
* @author Phuong An
*/
remove_filter('the_content', 'wpautop');
get_header();
$users = get_users_of_blog();
$total_member_paid = 0;
foreach ($users as $user) {
$user_id = $user->ID;
if ((float) wc_get_customer_total_spent($user_id) > 0) {
$total_member_paid++;
}
}
?>
<div class="shop-step-1">
<h5 class="shop-step-title">STEP 1 OF 3</h5>
<h1 class="page-title shop-page-title">CHOOSE YOUR QUANTITY</h1>
<p><b>JOIN <?php echo number_format(10430 + $total_member_paid); ?> HAPPY CUSTOMERS</b></p>
</div>
<p style="padding: 0px 15px; margin-bottom: 0px;" class="mobile">
<img class="img-below-slider" src="/wp-content/uploads/2016/03/img-shop-page.png" alt="" scale="0">
</p>
<div class="outbox-slider" slider="1">
<div class="fgc-box-slider">
<div class="fgc-slider">
<?php
if (class_exists('Fgc_Google_Experiments')) {
$hasRequestSku = false;
if (isset($_REQUEST['sku'])) {
if ($_REQUEST['sku'] == 'REIZEA' || $_REQUEST['sku'] == 'REIZEB' || $_REQUEST['sku'] == 'REIZEC') {
Fgc_Google_Experiments::get_subscription_product_for_slider($_REQUEST['sku']);
$hasRequestSku = true;
}
}
if (!$hasRequestSku) {
Fgc_Google_Experiments::get_products_for_slider(true);
}
$sku = Fgc_Google_Experiments::get_sku_for_get_started_page();
$variation_key = Fgc_Google_Experiments::get_var_key_for_get_started_page();
$experimentID = get_option('woocommerce_google_experiment_id');
$googleExperimentCookie = Fgc_Google_Experiments::get_cookie_for_get_started_page();
echo "<!--OPT:SKU:" . $sku . ", WPUSER:" . get_current_user_id() . ", USER:" . $googleExperimentCookie . ", VAR:" . $variation_key . ", REQUEST-SKU: " . $hasRequestSku . "-->";
if (!$hasRequestSku && $variation_key != -1) {
echo "<script>";
echo "window.gaData = {";
echo " expId: '" . $experimentID . "',";
echo " expVar: '" . $variation_key . "'";
echo "};";
echo "</script>";
}
}
?>
</div>
</div>
<span class="navigation-box pre-box"><span class="pre-button">_</span></span><span class="navigation-box next-box"><span class="next-button">+</span></span>
<span class="nav-text-pre">Lower Volumes</span> <span class="nav-text-next">Higher Volumes</span>
</div>
<img class="img-below-slider desktop" src="/wp-content/uploads/2016/03/img-shop-page.png" alt="" />
<div class="satisfation-guaranteed">
<div class="text-satisfation-guaranteed">
<p>
SATISFACTION
GUARANTEED
</p>
<hr />
<p>
NO CONTRACTS,
NO COMMITMENT,
CANCEL ANYTIME
</p>
</div>
<div class="img-satisfation-guaranteed"><img src="/wp-content/uploads/2016/03/ribbonleft.png" alt="" />
<img src="/wp-content/uploads/2016/03/ribbonright.gif" alt="" /></div>
</div>
<div class="context-below text-center full-width">
<!--<img src="/wp-content/themes/reize/assets/images/img-shop-page-2.png" alt="" />-->
<div class="text">
<img src="/wp-content/uploads/2016/03/nhaytrai.png" />
<div class="text-content">I have now told EVERYONE I know about your product and exceptional service!</div>
<img src="/wp-content/uploads/2016/03/nhayphai.png" />
<div class="text-author">Lauren N</div>
</div>
<div class="let-do-this ">
<a href="/single-purchase/">
Not Ready to Join the Club?
<br/>
<b>Click here</b>
<br/>
for a one off purchase</a>
</div>
</div>
<?php get_footer(); ?>