'
153 |
154 | html += '
';
155 | html += ' ';
156 |
157 | html += '
';
158 | html += '
';
159 | html += '';
160 | ]]>
161 |
162 |
163 |
164 |
165 |
166 | language->get('text_tags');]]>
167 | language->get('text_view');
169 | ]]>
170 |
171 |
172 |
173 | $option_value['name'],]]>
174 | html_entity_decode($option_value['description'], ENT_QUOTES, 'UTF-8'),
176 | ]]>
177 |
178 |
179 |
180 |
181 |
182 |
183 |
186 |
187 |
188 |
189 |
190 |
191 | $product_option_value['name'],]]>
192 | (isset($product_option_value['description']) ? $product_option_value['description'] : ''),
194 | ]]>
195 |
196 |
197 |
198 |
199 |
200 | )]]>
201 |
203 |
204 | View more
205 |
206 |
207 |
208 | ]]>
209 |
210 |
211 |
213 | ]]>
214 |
216 | $(document).ready(function(){
217 | $('.view').hover(function(){
218 | $("#desc_".concat(this.id)).fadeIn(500)
219 | },function(){
220 | $("#desc_".concat(this.id)).fadeOut(500)
221 | })
222 | });
223 |
224 | ]]>
225 |
226 |
227 |
--------------------------------------------------------------------------------
/3-things-you-can-do-to-customize-your-product-options-in-opencart-20x/prod_options_add_quantity.xml:
--------------------------------------------------------------------------------
1 |
2 | Add product quantity to product options
3 | 1.0
4 | http://isenselabs.com
5 | iSenseLabs
6 | isenselabs_quantity_to_product_options
7 |
8 |
9 |
10 |
11 | )]]>
12 | 10) { ?>
14 | [ ]
15 |
16 | []
17 | ]]>
18 |
19 |
20 |
21 |
22 |
23 | $option_value['name'],]]>
24 | $option_value['quantity'],]]>
25 |
26 |
27 |
28 | language->get('entry_qty');]]>
29 | language->get('text_pcs');
31 | $data['text_only'] = $this->language->get('text_only');
32 | ]]>
33 |
34 |
35 |
36 |
37 |
38 |
39 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
--------------------------------------------------------------------------------
/3-things-you-can-do-to-customize-your-product-options-in-opencart-20x/prod_options_remove_price.xml:
--------------------------------------------------------------------------------
1 |
2 | Remove option price
3 | 1.0
4 | http://isenselabs.com
5 | iSenseLabs
6 | isenselabs_remove_option_price
7 |
8 |
9 |
10 | ]]>
11 | ]]>
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/How to Enable and Disable Multiple Products:
--------------------------------------------------------------------------------
1 |
2 | Enable/Disable Bundle of Products in OpenCart
3 | 1.0
4 | http://isenselabs.com
5 | iSenseLabs
6 | isenselabs_enable_disable_bundle_products
7 |
8 |
9 |
10 | language->get('button_delete');]]>
11 | language->get('button_enable');
13 | $data['button_disable'] = $this->language->get('button_disable');
14 | ]]>
15 |
16 |
17 |
18 | url->link('catalog/product/delete', 'token=' . $this->session->data['token'] . $url, 'SSL');]]>
19 | url->link('catalog/product/enable', 'token=' . $this->session->data['token'] . $url, 'SSL');
21 | $data['disable'] = $this->url->link('catalog/product/disable', 'token=' . $this->session->data['token'] . $url, 'SSL');
22 | ]]>
23 |
24 |
25 |
26 | url->link('catalog/product/delete', 'token=' . $this->session->data['token'] . $url, true);]]>
27 | url->link('catalog/product/enable', 'token=' . $this->session->data['token'] . $url, true);
29 | $data['disable'] = $this->url->link('catalog/product/disable', 'token=' . $this->session->data['token'] . $url, true);
30 | ]]>
31 |
32 |
33 |
34 | load->language('catalog/product');
39 |
40 | $this->document->setTitle($this->language->get('heading_title'));
41 |
42 | $this->load->model('catalog/product');
43 |
44 | if (isset($this->request->post['selected']) && $this->validateDelete()) {
45 | foreach ($this->request->post['selected'] as $product_id) {
46 | $product_info = $this->model_catalog_product->getProduct($product_id);
47 |
48 | if ($product_info && !$product_info['status']) {
49 | $this->model_catalog_product->enableProduct($product_id);
50 | }
51 | }
52 |
53 |
54 | $this->session->data['success'] = $this->language->get('text_success');
55 |
56 | $url = '';
57 |
58 | if (isset($this->request->get['filter_name'])) {
59 | $url .= '&filter_name=' . urlencode(html_entity_decode($this->request->get['filter_name'], ENT_QUOTES, 'UTF-8'));
60 | }
61 |
62 | if (isset($this->request->get['filter_model'])) {
63 | $url .= '&filter_model=' . urlencode(html_entity_decode($this->request->get['filter_model'], ENT_QUOTES, 'UTF-8'));
64 | }
65 |
66 | if (isset($this->request->get['filter_price'])) {
67 | $url .= '&filter_price=' . $this->request->get['filter_price'];
68 | }
69 |
70 | if (isset($this->request->get['filter_quantity'])) {
71 | $url .= '&filter_quantity=' . $this->request->get['filter_quantity'];
72 | }
73 |
74 | if (isset($this->request->get['filter_status'])) {
75 | $url .= '&filter_status=' . $this->request->get['filter_status'];
76 | }
77 |
78 | if (isset($this->request->get['sort'])) {
79 | $url .= '&sort=' . $this->request->get['sort'];
80 | }
81 |
82 | if (isset($this->request->get['order'])) {
83 | $url .= '&order=' . $this->request->get['order'];
84 | }
85 |
86 | if (isset($this->request->get['page'])) {
87 | $url .= '&page=' . $this->request->get['page'];
88 | }
89 |
90 | $this->response->redirect($this->url->link('catalog/product', 'token=' . $this->session->data['token'] . $url, true));
91 | }
92 |
93 | $this->getForm();
94 | }
95 |
96 |
97 | public function disable() {
98 | $this->load->language('catalog/product');
99 |
100 | $this->document->setTitle($this->language->get('heading_title'));
101 |
102 | $this->load->model('catalog/product');
103 |
104 | if (isset($this->request->post['selected']) && $this->validateDelete()) {
105 | foreach ($this->request->post['selected'] as $product_id) {
106 | $product_info = $this->model_catalog_product->getProduct($product_id);
107 |
108 | if ($product_info && $product_info['status']) {
109 | $this->model_catalog_product->disableProduct($product_id);
110 | }
111 | }
112 |
113 |
114 | $this->session->data['success'] = $this->language->get('text_success');
115 |
116 | $url = '';
117 |
118 | if (isset($this->request->get['filter_name'])) {
119 | $url .= '&filter_name=' . urlencode(html_entity_decode($this->request->get['filter_name'], ENT_QUOTES, 'UTF-8'));
120 | }
121 |
122 | if (isset($this->request->get['filter_model'])) {
123 | $url .= '&filter_model=' . urlencode(html_entity_decode($this->request->get['filter_model'], ENT_QUOTES, 'UTF-8'));
124 | }
125 |
126 | if (isset($this->request->get['filter_price'])) {
127 | $url .= '&filter_price=' . $this->request->get['filter_price'];
128 | }
129 |
130 | if (isset($this->request->get['filter_quantity'])) {
131 | $url .= '&filter_quantity=' . $this->request->get['filter_quantity'];
132 | }
133 |
134 | if (isset($this->request->get['filter_status'])) {
135 | $url .= '&filter_status=' . $this->request->get['filter_status'];
136 | }
137 |
138 | if (isset($this->request->get['sort'])) {
139 | $url .= '&sort=' . $this->request->get['sort'];
140 | }
141 |
142 | if (isset($this->request->get['order'])) {
143 | $url .= '&order=' . $this->request->get['order'];
144 | }
145 |
146 | if (isset($this->request->get['page'])) {
147 | $url .= '&page=' . $this->request->get['page'];
148 | }
149 |
150 | $this->response->redirect($this->url->link('catalog/product', 'token=' . $this->session->data['token'] . $url, true));
151 | }
152 |
153 | $this->getForm();
154 | }
155 | ]]>
156 |
157 |
158 |
159 | url->link('catalog/product/delete', 'token=' . $this->session->data['token'] . $url, true);]]>
160 | url->link('catalog/product/enable', 'token=' . $this->session->data['token'] . $url, true);
162 | $data['disable'] = $this->url->link('catalog/product/disable', 'token=' . $this->session->data['token'] . $url, true);
163 | ]]>
164 |
165 |
166 |
167 |
168 |
169 |
170 | getProduct($product_id);
173 |
174 | if ($product_id) {
175 | $this->db->query("UPDATE " . DB_PREFIX . "product SET status = '1' WHERE product_id = '" . (int)$product_id . "'");
176 | }
177 |
178 | $this->cache->delete('product');
179 | }
180 |
181 | public function disableProduct($product_id) {
182 | $product_info = $this->getProduct($product_id);
183 |
184 | if ($product_id) {
185 | $this->db->query("UPDATE " . DB_PREFIX . "product SET status = '0' WHERE product_id = '" . (int)$product_id . "'");
186 | }
187 |
188 | $this->cache->delete('product');
189 | }
190 | ]]>
191 |
192 |
193 |
194 |
195 |
196 | ]]>
197 |
199 |
200 |
201 |
202 | ]]>
203 |
204 |
205 |
206 |
207 |
--------------------------------------------------------------------------------
/cookie-consent-notification-in-opencart/cookie_consent_notification.ocmod.xml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/cookie-consent-notification-in-opencart/cookie_consent_notification.ocmod_bottom.xml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/cookie-consent-notification-in-opencart/cookie_consent_notification.xml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/cookie-consent-notification-in-opencart/cookie_consent_notification_bottom.xml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/enable-disable-products-oc302:
--------------------------------------------------------------------------------
1 |