-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathBoGoModule.php
More file actions
127 lines (109 loc) · 2 KB
/
BoGoModule.php
File metadata and controls
127 lines (109 loc) · 2 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<?php
/**
* File for BoGo class.
*
* @package SBFW
*/
namespace STOREGROWTH\SPSB\Modules\BoGo;
use STOREGROWTH\SPSB\Interfaces\ModuleSkeleton;
use STOREGROWTH\SPSB\Traits\Singleton;
// If this file is called directly, abort.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Sales Pop module initiator class.
*/
class BoGoModule implements ModuleSkeleton {
use Singleton;
/**
* Unique ID for a module.
*
* @return string
*/
public function get_id() {
return 'bogo';
}
/**
* directory Name for a module.
*
* @return string
*/
public function get_dir() {
return 'BoGo';
}
/**
* Icon for a module.
*
* @return string
*/
public function get_icon() {
return sgsb_modules_url( 'BoGo/assets/images/upsell-order-bump.svg' );
}
/**
* Banner for a module.
*
* @return string
*/
public function get_banner() {
return sgsb_modules_url( 'BoGo/assets/images/bogo-module-img.webp' );
}
/**
* Unique name for a module.
*
* @return string
*/
public function get_name() {
return 'BOGO';
}
/**
* Description for the module.
*
* @return string
*/
public function get_description() {
return 'Effortlessly boost sales. Offer relevant add-ons at checkout for increased order values and profit.';
}
/**
* Category for a module.
*
* @return string
*/
public function get_module_category() {
return 'Upsell';
}
/**
* Module activation function.
*
* @return void
*/
public function activate() {
// TODO: Implement activate() method.
}
/**
* Module deactivation function.
*
* @return void
*/
public function deactivate() {
// TODO: Implement deactivate() method.
}
/**
* Starting point of the module.
*
* @return void
*/
public function init() {
Includes\OrderBogo::instance();
Includes\Ajax::instance();
Includes\EnqueueScript::instance();
/**
* Module initialized.
*
* @since 1.0.2
*/
do_action( 'storegrowth_bogo_module_init' );
}
}
// Create object and return.
return BoGoModule::instance();