├── 3-things-you-can-do-to-customize-your-product-options-in-opencart-20x ├── prod_options_add_descr.xml ├── prod_options_add_quantity.xml └── prod_options_remove_price.xml ├── How to Enable and Disable Multiple Products ├── cookie-consent-notification-in-opencart ├── cookie_consent_notification.ocmod.xml ├── cookie_consent_notification.ocmod_bottom.xml ├── cookie_consent_notification.xml └── cookie_consent_notification_bottom.xml ├── enable-disable-products-oc302 ├── how-to-add-store-logo-and-product-images-to-invoices-in-opencart-2x └── invoice.ocmod.xml ├── how-to-hide-your-add-to-cart-button-and-your-product-price-in-opencart-20x ├── hide_add_to_cart.xml └── hide_product_price.xml ├── how-to-remove-compare-this-product-and-add-to-wish-list-in-opencart-20 └── remove_wishlist_and_compare_buttons.ocmod.xml └── show-a-default-image-for-products └── default_product_image.xml /3-things-you-can-do-to-customize-your-product-options-in-opencart-20x/prod_options_add_descr.xml: -------------------------------------------------------------------------------- 1 | 2 | Add description to product options 3 | 1.0 4 | http://isenselabs.com 5 | iSenseLabs 6 | isenselabs_add_description_to_product_options 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | language->get('entry_sort_order');]]> 18 | language->get('entry_description'); 20 | ]]> 21 | 22 | 23 | 24 | 25 | db->query("DESC " . DB_PREFIX . "option_value_description description"); 27 | if (!$query->num_rows) { 28 | $this->db->query("ALTER TABLE " . DB_PREFIX . "option_value_description ADD description TEXT CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL"); 29 | } 30 | ]]> 31 | 32 | 33 | 34 | 35 | 36 | db->query("INSERT INTO " . DB_PREFIX . "option_value_description SET option_value_id = '" . (int)$option_value_id . "', language_id = '" . (int)$language_id . "', option_id = '" . (int)$option_id . "', name = '" . $this->db->escape($option_value_description['name']) . "'"); 38 | ]]> 39 | db->query("INSERT INTO " . DB_PREFIX . "option_value_description SET option_value_id = '" . (int)$option_value_id . "', language_id = '" . (int)$language_id . "', option_id = '" . (int)$option_id . "', name = '" . $this->db->escape($option_value_description['name']) . "', description = '" . $this->db->escape($option_value_description['description']) . "'"); 41 | ]]> 42 | 43 | 44 | 45 | $option_value_description['name']); 47 | ]]> 48 | $option_value_description['name'], 'description' => $option_value_description['description']); 50 | ]]> 51 | 52 | 53 | 54 | 55 | 56 | 58 | ]]> 59 | 61 | ]]> 62 | 63 | 64 | 65 | 67 | ]]> 68 | 70 | ]]> 71 | 72 | 73 | 74 | 76 | ]]> 77 | Option Value Description 79 | ]]> 80 | 81 | 82 | 83 | 85 | ]]> 86 | 88 | ]]> 89 | 90 | 91 | 92 | 94 | ]]> 95 | 97 | 98 | $("#description--").summernote({height: 100}); 99 | 100 | 101 | ]]> 102 | 103 | 104 | 105 | 106 | 108 | ]]> 109 | 111 | 112 |
113 |
114 | 119 |
120 |
121 | 122 |
123 | 124 | 125 |
126 |
127 | 128 | 133 | 134 | ]]> 135 | 136 | 137 | 138 | '; 140 | ]]> 141 | '; 143 | html += '
'; 144 | html += '
'; 145 | html += ' '; 150 | html += '
'; 151 | 152 | html += '
' 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 | 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 | 2 | cookie_consent_notification 3 | Cookie consent in OpenCart 4 | 1.0 5 | http://isenselabs.com 6 | iSenseLabs 7 | 8 | 9 | ]]> 10 | 12 | #cookie_consent_notification, 13 | #cookie_consent_notification *, 14 | #cookie_consent_notification *:before, 15 | #cookie_consent_notification *:after { 16 | font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; 17 | font-weight: 300; 18 | font-size: 16px; 19 | line-height: 1.6; 20 | -webkit-box-sizing: border-box; 21 | -moz-box-sizing: border-box; 22 | box-sizing: border-box; 23 | } 24 | 25 | #cookie_consent_notification { 26 | position: fixed; 27 | top: 0; 28 | left: 0; 29 | right: auto; 30 | bottom: auto; 31 | margin: 0; 32 | padding: 12px 24px; 33 | color: white; 34 | background: rgba(0,0,0,.9); 35 | z-index: 999999; 36 | width: 100%; 37 | text-align: center; 38 | -webkit-transition: all ease-out 0.3s; 39 | -moz-transition: all ease-out 0.3s; 40 | -ms-transition: all ease-out 0.3s; 41 | -o-transition: all ease-out 0.3s; 42 | transition: all ease-out 0.3s; 43 | -webkit-transform: translate3d(0,-100%,0); 44 | -moz-transform: translate3d(0,-100%,0); 45 | -ms-transform: translate3d(0,-100%,0); 46 | -o-transform: translate3d(0,-100%,0); 47 | transform: translate3d(0,-100%,0); 48 | -webkit-backface-visibility: hidden; /* Chrome, Safari, Opera */ 49 | backface-visibility: hidden; 50 | } 51 | 52 | #cookie_consent_notification.active { 53 | -webkit-transform: translate3d(0,0,0); 54 | -moz-transform: translate3d(0,0,0); 55 | -ms-transform: translate3d(0,0,0); 56 | -o-transform: translate3d(0,0,0); 57 | transform: translate3d(0,0,0); 58 | } 59 | 60 | #cookie_consent_notification .disable_cookie_consent_notification { 61 | display: inline-block; 62 | text-decoration: none; 63 | text-align: center; 64 | font-weight: bold; 65 | margin: 0 10px; 66 | padding: 0 6px; 67 | color: #32C0F4; 68 | } 69 | 70 | 102 | ]]> 103 | 104 | 105 | -------------------------------------------------------------------------------- /cookie-consent-notification-in-opencart/cookie_consent_notification.ocmod_bottom.xml: -------------------------------------------------------------------------------- 1 | 2 | cookie_consent_notification_bottom 3 | Cookie consent in OpenCart - bottom 4 | 1.0 5 | http://isenselabs.com 6 | iSenseLabs 7 | 8 | 9 | ]]> 10 | 12 | #cookie_consent_notification, 13 | #cookie_consent_notification *, 14 | #cookie_consent_notification *:before, 15 | #cookie_consent_notification *:after { 16 | font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; 17 | font-weight: 300; 18 | font-size: 16px; 19 | line-height: 1.6; 20 | -webkit-box-sizing: border-box; 21 | -moz-box-sizing: border-box; 22 | box-sizing: border-box; 23 | } 24 | 25 | #cookie_consent_notification { 26 | position: fixed; 27 | top: auto; 28 | left: 0; 29 | right: auto; 30 | bottom: 0; 31 | margin: 0; 32 | padding: 12px 24px; 33 | color: white; 34 | background: rgba(0,0,0,.9); 35 | z-index: 999999; 36 | width: 100%; 37 | text-align: center; 38 | -webkit-transition: all ease-out 0.3s; 39 | -moz-transition: all ease-out 0.3s; 40 | -ms-transition: all ease-out 0.3s; 41 | -o-transition: all ease-out 0.3s; 42 | transition: all ease-out 0.3s; 43 | -webkit-transform: translate3d(0,100%,0); 44 | -moz-transform: translate3d(0,100%,0); 45 | -ms-transform: translate3d(0,100%,0); 46 | -o-transform: translate3d(0,100%,0); 47 | transform: translate3d(0,100%,0); 48 | -webkit-backface-visibility: hidden; /* Chrome, Safari, Opera */ 49 | backface-visibility: hidden; 50 | } 51 | 52 | #cookie_consent_notification.active { 53 | -webkit-transform: translate3d(0,0,0); 54 | -moz-transform: translate3d(0,0,0); 55 | -ms-transform: translate3d(0,0,0); 56 | -o-transform: translate3d(0,0,0); 57 | transform: translate3d(0,0,0); 58 | } 59 | 60 | #cookie_consent_notification .disable_cookie_consent_notification { 61 | display: inline-block; 62 | text-decoration: none; 63 | text-align: center; 64 | font-weight: bold; 65 | margin: 0 10px; 66 | padding: 0 6px; 67 | color: #32C0F4; 68 | } 69 | 70 | 102 | ]]> 103 | 104 | 105 | -------------------------------------------------------------------------------- /cookie-consent-notification-in-opencart/cookie_consent_notification.xml: -------------------------------------------------------------------------------- 1 | 2 | Cookie consent in OpenCart 3 | 1.4.x and above 4 | 2.5.0 5 | isenselabs.com 6 | 7 | 8 | ]]> 9 | 11 | #cookie_consent_notification, 12 | #cookie_consent_notification *, 13 | #cookie_consent_notification *:before, 14 | #cookie_consent_notification *:after { 15 | font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; 16 | font-weight: 300; 17 | font-size: 16px; 18 | line-height: 1.6; 19 | -webkit-box-sizing: border-box; 20 | -moz-box-sizing: border-box; 21 | box-sizing: border-box; 22 | } 23 | 24 | #cookie_consent_notification { 25 | position: fixed; 26 | top: 0; 27 | left: 0; 28 | right: auto; 29 | bottom: auto; 30 | margin: 0; 31 | padding: 12px 24px; 32 | color: white; 33 | background: rgba(0,0,0,.9); 34 | z-index: 999999; 35 | width: 100%; 36 | text-align: center; 37 | -webkit-transition: all ease-out 0.3s; 38 | -moz-transition: all ease-out 0.3s; 39 | -ms-transition: all ease-out 0.3s; 40 | -o-transition: all ease-out 0.3s; 41 | transition: all ease-out 0.3s; 42 | -webkit-transform: translate3d(0,-100%,0); 43 | -moz-transform: translate3d(0,-100%,0); 44 | -ms-transform: translate3d(0,-100%,0); 45 | -o-transform: translate3d(0,-100%,0); 46 | transform: translate3d(0,-100%,0); 47 | -webkit-backface-visibility: hidden; /* Chrome, Safari, Opera */ 48 | backface-visibility: hidden; 49 | } 50 | 51 | #cookie_consent_notification.active { 52 | -webkit-transform: translate3d(0,0,0); 53 | -moz-transform: translate3d(0,0,0); 54 | -ms-transform: translate3d(0,0,0); 55 | -o-transform: translate3d(0,0,0); 56 | transform: translate3d(0,0,0); 57 | } 58 | 59 | #cookie_consent_notification .disable_cookie_consent_notification { 60 | display: inline-block; 61 | text-decoration: none; 62 | text-align: center; 63 | font-weight: bold; 64 | margin: 0 10px; 65 | padding: 0 6px; 66 | color: #32C0F4; 67 | } 68 | 69 | 101 | ]]> 102 | 103 | 104 | -------------------------------------------------------------------------------- /cookie-consent-notification-in-opencart/cookie_consent_notification_bottom.xml: -------------------------------------------------------------------------------- 1 | 2 | Cookie consent in OpenCart - bottom 3 | 1.4.x and above 4 | 2.5.0 5 | isenselabs.com 6 | 7 | 8 | ]]> 9 | 11 | #cookie_consent_notification, 12 | #cookie_consent_notification *, 13 | #cookie_consent_notification *:before, 14 | #cookie_consent_notification *:after { 15 | font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; 16 | font-weight: 300; 17 | font-size: 16px; 18 | line-height: 1.6; 19 | -webkit-box-sizing: border-box; 20 | -moz-box-sizing: border-box; 21 | box-sizing: border-box; 22 | } 23 | 24 | #cookie_consent_notification { 25 | position: fixed; 26 | top: auto; 27 | left: 0; 28 | right: auto; 29 | bottom: 0; 30 | margin: 0; 31 | padding: 12px 24px; 32 | color: white; 33 | background: rgba(0,0,0,.9); 34 | z-index: 999999; 35 | width: 100%; 36 | text-align: center; 37 | -webkit-transition: all ease-out 0.3s; 38 | -moz-transition: all ease-out 0.3s; 39 | -ms-transition: all ease-out 0.3s; 40 | -o-transition: all ease-out 0.3s; 41 | transition: all ease-out 0.3s; 42 | -webkit-transform: translate3d(0,100%,0); 43 | -moz-transform: translate3d(0,100%,0); 44 | -ms-transform: translate3d(0,100%,0); 45 | -o-transform: translate3d(0,100%,0); 46 | transform: translate3d(0,100%,0); 47 | -webkit-backface-visibility: hidden; /* Chrome, Safari, Opera */ 48 | backface-visibility: hidden; 49 | } 50 | 51 | #cookie_consent_notification.active { 52 | -webkit-transform: translate3d(0,0,0); 53 | -moz-transform: translate3d(0,0,0); 54 | -ms-transform: translate3d(0,0,0); 55 | -o-transform: translate3d(0,0,0); 56 | transform: translate3d(0,0,0); 57 | } 58 | 59 | #cookie_consent_notification .disable_cookie_consent_notification { 60 | display: inline-block; 61 | text-decoration: none; 62 | text-align: center; 63 | font-weight: bold; 64 | margin: 0 10px; 65 | padding: 0 6px; 66 | color: #32C0F4; 67 | } 68 | 69 | 101 | ]]> 102 | 103 | 104 | -------------------------------------------------------------------------------- /enable-disable-products-oc302: -------------------------------------------------------------------------------- 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 | 11 | url->link('catalog/product/delete', 'user_token=' . $this->session->data['user_token'] . $url, true);]]> 12 | url->link('catalog/product/enable', 'user_token=' . $this->session->data['user_token'] . $url, true); 14 | $data['disable'] = $this->url->link('catalog/product/disable', 'user_token=' . $this->session->data['user_token'] . $url, true); 15 | ]]> 16 | 17 | 18 | 19 | 20 | load->language('catalog/product'); 25 | 26 | $this->document->setTitle($this->language->get('heading_title')); 27 | 28 | $this->load->model('catalog/product'); 29 | 30 | if (isset($this->request->post['selected']) && $this->validateDelete()) { 31 | foreach ($this->request->post['selected'] as $product_id) { 32 | $product_info = $this->model_catalog_product->getProduct($product_id); 33 | 34 | if ($product_info && !$product_info['status']) { 35 | $this->model_catalog_product->enableProduct($product_id); 36 | } 37 | } 38 | 39 | 40 | $this->session->data['success'] = $this->language->get('text_success'); 41 | 42 | $url = ''; 43 | 44 | if (isset($this->request->get['filter_name'])) { 45 | $url .= '&filter_name=' . urlencode(html_entity_decode($this->request->get['filter_name'], ENT_QUOTES, 'UTF-8')); 46 | } 47 | 48 | if (isset($this->request->get['filter_model'])) { 49 | $url .= '&filter_model=' . urlencode(html_entity_decode($this->request->get['filter_model'], ENT_QUOTES, 'UTF-8')); 50 | } 51 | 52 | if (isset($this->request->get['filter_price'])) { 53 | $url .= '&filter_price=' . $this->request->get['filter_price']; 54 | } 55 | 56 | if (isset($this->request->get['filter_quantity'])) { 57 | $url .= '&filter_quantity=' . $this->request->get['filter_quantity']; 58 | } 59 | 60 | if (isset($this->request->get['filter_status'])) { 61 | $url .= '&filter_status=' . $this->request->get['filter_status']; 62 | } 63 | 64 | if (isset($this->request->get['sort'])) { 65 | $url .= '&sort=' . $this->request->get['sort']; 66 | } 67 | 68 | if (isset($this->request->get['order'])) { 69 | $url .= '&order=' . $this->request->get['order']; 70 | } 71 | 72 | if (isset($this->request->get['page'])) { 73 | $url .= '&page=' . $this->request->get['page']; 74 | } 75 | 76 | $this->response->redirect($this->url->link('catalog/product', 'user_token=' . $this->session->data['user_token'] . $url, true)); 77 | 78 | } 79 | 80 | $this->getForm(); 81 | } 82 | 83 | 84 | public function disable() { 85 | $this->load->language('catalog/product'); 86 | 87 | $this->document->setTitle($this->language->get('heading_title')); 88 | 89 | $this->load->model('catalog/product'); 90 | 91 | if (isset($this->request->post['selected']) && $this->validateDelete()) { 92 | foreach ($this->request->post['selected'] as $product_id) { 93 | $product_info = $this->model_catalog_product->getProduct($product_id); 94 | 95 | if ($product_info && $product_info['status']) { 96 | $this->model_catalog_product->disableProduct($product_id); 97 | } 98 | } 99 | 100 | 101 | $this->session->data['success'] = $this->language->get('text_success'); 102 | 103 | $url = ''; 104 | 105 | if (isset($this->request->get['filter_name'])) { 106 | $url .= '&filter_name=' . urlencode(html_entity_decode($this->request->get['filter_name'], ENT_QUOTES, 'UTF-8')); 107 | } 108 | 109 | if (isset($this->request->get['filter_model'])) { 110 | $url .= '&filter_model=' . urlencode(html_entity_decode($this->request->get['filter_model'], ENT_QUOTES, 'UTF-8')); 111 | } 112 | 113 | if (isset($this->request->get['filter_price'])) { 114 | $url .= '&filter_price=' . $this->request->get['filter_price']; 115 | } 116 | 117 | if (isset($this->request->get['filter_quantity'])) { 118 | $url .= '&filter_quantity=' . $this->request->get['filter_quantity']; 119 | } 120 | 121 | if (isset($this->request->get['filter_status'])) { 122 | $url .= '&filter_status=' . $this->request->get['filter_status']; 123 | } 124 | 125 | if (isset($this->request->get['sort'])) { 126 | $url .= '&sort=' . $this->request->get['sort']; 127 | } 128 | 129 | if (isset($this->request->get['order'])) { 130 | $url .= '&order=' . $this->request->get['order']; 131 | } 132 | 133 | if (isset($this->request->get['page'])) { 134 | $url .= '&page=' . $this->request->get['page']; 135 | } 136 | 137 | $this->response->redirect($this->url->link('catalog/product', 'user_token=' . $this->session->data['user_token'] . $url, true)); 138 | } 139 | 140 | $this->getForm(); 141 | } 142 | ]]> 143 | 144 | 145 | 146 | 147 | 148 | 149 | getProduct($product_id); 152 | 153 | if ($product_id) { 154 | $this->db->query("UPDATE " . DB_PREFIX . "product SET status = '1' WHERE product_id = '" . (int)$product_id . "'"); 155 | } 156 | 157 | $this->cache->delete('product'); 158 | } 159 | 160 | public function disableProduct($product_id) { 161 | $product_info = $this->getProduct($product_id); 162 | 163 | if ($product_id) { 164 | $this->db->query("UPDATE " . DB_PREFIX . "product SET status = '0' WHERE product_id = '" . (int)$product_id . "'"); 165 | } 166 | 167 | $this->cache->delete('product'); 168 | } 169 | ]]> 170 | 171 | 172 | 173 | 174 | 175 | {{ heading_title }}]]> 176 | 178 | {{ button_enable }} 179 | {{ button_disable }} 180 |
181 | ]]>
182 |
183 | 184 | 185 | 186 | -------------------------------------------------------------------------------- /how-to-add-store-logo-and-product-images-to-invoices-in-opencart-2x/invoice.ocmod.xml: -------------------------------------------------------------------------------- 1 | 2 | Add images to invoice by iSenseLabs 3 | 1.0 (Initial) 4 | http://isenselabs.com 5 | isense_invoice 6 | iSenseLabs 7 | 8 | 9 | 10 | 11 | load->model('catalog/product'); 15 | $this->load->model('tool/image'); 16 | 17 | // ISENSELABS.COM CODE ENDS HERE 18 | ]]> 19 | 20 | 21 | 22 | 23 | model_catalog_product->getProduct($product['product_id']); 28 | if ($product_info['image']) { 29 | $image = $this->model_tool_image->resize($product_info['image'], $width, $height); 30 | } else { 31 | $image = $this->model_tool_image->resize('placeholder.png', $width, $height); 32 | } 33 | // ISENSELABS.COM CODE ENDS HERE 34 | ]]> 35 | 36 | 37 | 38 | 39 | $image, // ISENSELABS.COM 41 | ]]> 42 | 43 | 44 | 45 | response->setOutput($this->load->view('sale/order_invoice.tpl', $data));]]> 46 | request->server['HTTPS']) && (($this->request->server['HTTPS'] == 'on') || ($this->request->server['HTTPS'] == '1'))) { 50 | $server = $this->config->get('config_ssl'); 51 | } else { 52 | $server = $this->config->get('config_url'); 53 | } 54 | 55 | if ($this->config->get('config_logo') && file_exists(DIR_IMAGE . $this->config->get('config_logo'))) { 56 | $data['logo'] = $server . 'image/' . $this->config->get('config_logo'); 57 | } else { 58 | $data['logo'] = ''; 59 | } 60 | 61 | // ISENSELABS.COM CODE ENDS HERE 62 | ]]> 63 | 64 | 65 | 66 | 67 | 68 | ]]> 69 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | ]]> 78 | 79 | 80 | 81 | ]]> 82 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | ]]> 91 | 92 | 93 | -------------------------------------------------------------------------------- /how-to-hide-your-add-to-cart-button-and-your-product-price-in-opencart-20x/hide_add_to_cart.xml: -------------------------------------------------------------------------------- 1 | 2 | Hide Add to Cart Button 3 | 1.0 4 | http://isenselabs.com 5 | iSenseLabs 6 | isenselabs_hide_add_to_cart 7 | 8 | 9 | 10 | " class="btn btn-primary btn-lg btn-block">]]> 11 | " class="btn btn-primary btn-lg btn-block"> 13 | ]]> 14 | 15 | 16 | 17 | ');"> ]]> 18 | ');"> 20 | ]]> 21 | 22 | 23 | 24 | 25 | " onclick="wishlist.add('');">]]> 26 | " onclick="wishlist.add('');"> 28 | ]]> 29 | 30 | 31 | 32 | " onclick="compare.add('');">]]> 33 | " onclick="compare.add('');"> 35 | ]]> 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | ');"> ]]> 44 | ');"> 46 | ]]> 47 | 48 | 49 | 50 | " onclick="wishlist.add('');">]]> 51 | " onclick="wishlist.add('');"> 53 | ]]> 54 | 55 | 56 | 57 | " onclick="compare.add('');">]]> 58 | " onclick="compare.add('');"> 60 | ]]> 61 | 62 | 63 | 64 | 65 | 66 | ');"> ]]> 67 | ');"> 69 | ]]> 70 | 71 | 72 | 73 | " onclick="wishlist.add('');">]]> 74 | " onclick="wishlist.add('');"> 76 | ]]> 77 | 78 | 79 | 80 | " onclick="compare.add('');">]]> 81 | " onclick="compare.add('');"> 83 | ]]> 84 | 85 | 86 | 87 | 88 | 89 | ]]> 90 | 92 | ]]> 93 | 94 | 95 | 96 |
]]> 97 |
99 | ]]>
100 |
101 | 102 | 103 |
104 | 105 | 106 | 107 |
-------------------------------------------------------------------------------- /how-to-hide-your-add-to-cart-button-and-your-product-price-in-opencart-20x/hide_product_price.xml: -------------------------------------------------------------------------------- 1 | 2 | Hide Product Price 3 | 1.0 4 | http://isenselabs.com 5 | iSenseLabs 6 | isenselabs_hide_product_price 7 | 8 | 9 | 10 | ]]> 11 | 13 | ]]> 14 | 15 | 16 | 17 | ]]> 18 | 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 | -------------------------------------------------------------------------------- /how-to-remove-compare-this-product-and-add-to-wish-list-in-opencart-20/remove_wishlist_and_compare_buttons.ocmod.xml: -------------------------------------------------------------------------------- 1 | 2 | Remove wishlist and compare buttons 3 | 1.1 4 | http://isenselabs.com 5 | iSenseLabs 6 | remove_wishlist__and_compare 7 | 8 | 9 | 10 | " onclick="wishlist.add('');">]]> 11 | 12 | 13 | 14 | " onclick="compare.add('');">]]> 15 | 16 | 17 | 18 | 19 | 20 | 21 | " onclick="wishlist.add('');">]]> 22 | 23 | 24 | 25 | " onclick="compare.add('');">]]> 26 | 27 | 28 | 29 | 30 | 31 | 32 | " onclick="wishlist.add('');">]]> 33 | 34 | 35 | 36 | " onclick="compare.add('');">]]> 37 | 38 | 39 | 40 | 41 | 42 | 43 | " onclick="wishlist.add('');">]]> 44 | 45 | 46 | 47 | " onclick="compare.add('');">]]> 48 | 49 | 50 | 51 | 52 | 53 | 54 | ]]> 55 | 56 | 57 | 58 | 59 | 60 | 61 | " class="list-group-item"> ]]> 62 | " class="list-group-item"> ]]> 63 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /show-a-default-image-for-products/default_product_image.xml: -------------------------------------------------------------------------------- 1 | 2 | Show a default image for products 3 | 1.4.x and above 4 | 2.5.0 5 | isenselabs.com 6 | 7 | 8 | 9 | 13 | 14 | 15 | row['image']]]> 16 | row['image']) && file_exists(DIR_IMAGE . $query->row['image']) && !empty($this->default_image) && file_exists(DIR_IMAGE . $this->default_image)) ? $this->default_image : $query->row['image'])]]> 17 | 18 | 19 | db->query("SELECT * FROM " . DB_PREFIX . "product_image WHERE product_id = '" . (int)$product_id . "' ORDER BY sort_order ASC");]]> 20 | rows)) { foreach ($query->rows as $k => $query_row) { 22 | $query->rows[$k]['image'] = ((empty($query_row['image']) && file_exists(DIR_IMAGE . $query_row['image']) && !empty($this->default_image) && file_exists(DIR_IMAGE . $this->default_image)) ? $this->default_image : $query_row['image']); 23 | } } 24 | ]]> 25 | 26 | 27 | --------------------------------------------------------------------------------