Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

chukcha

Users
  • Posts

    20,717
  • Joined

  • Last visited

Everything posted by chukcha

  1. prev next вже не працює!!! NOINDEX - Мені важко сказати/придумати де це потрібно
  2. Це повне д..е...р...ь..м...о Окремими рішеннями (редіректи (з підтримкою), 404 ((з підтримкою) , мікро розміткою (з підтримкою), генераторами (з підтримкою) А .. ото втручання в сео...урл - то ппц
  3. ну, можно подію на onchange - знимати disabled
  4. var cart = { ... success: function(json) { if (json['success']) { let search = new URLSearchParams(this.data); let pr_id = search.get('product_id') // далее найти кнопку и disabled
  5. $('#button-cart').on('click', function() { success: $('#button-cart').prop('disabled',true);
  6. а що в цьому не так? наприклад breadcrumbs а також header footer ...
  7. $_['action_default'] = 'common/home'; $this->response->redirect($this->url->link($this->config->get('action_default')), 301);
  8. ні разу MVC це не послідовність до речі у ОС - С - M - V У OC може бути С (c-m-v) - M (v) - V
  9. там проблема в зовсім іншому $product_data = [ 'product_id' => $result['product_id'], 'name' => $result['name'], 'description' => $description, 'thumb' => $image, 'price' => $price, 'special' => $special, 'tax' => $tax, 'minimum' => $result['minimum'] > 0 ? $result['minimum'] : 1, 'rating' => $result['rating'], 'href' => $this->url->link('product/product', 'language=' . $this->config->get('config_language') . '&product_id=' . $result['product_id'] . $url) ]; $data['products'][] = $this->load->controller('product/thumb', $product_data); Ідея передавати product_id у контролер, а в ньому вже getProduct, краще ніж у моделі getProducts Або зовсім не $product_data, а краще увесь $result без усяких попередніх змін, типу цього $description = trim(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8'))); if (oc_strlen($description) > $this->config->get('config_product_description_length')) { $description = oc_substr($description, 0, $this->config->get('config_product_description_length')) . '..'; } if (is_file(DIR_IMAGE . html_entity_decode($result['image'], ENT_QUOTES, 'UTF-8'))) { $image = $this->model_tool_image->resize(html_entity_decode($result['image'], ENT_QUOTES, 'UTF-8'), $this->config->get('config_image_product_width'), $this->config->get('config_image_product_height')); } else { $image = $this->model_tool_image->resize('placeholder.png', $this->config->get('config_image_product_width'), $this->config->get('config_image_product_height')); } if ($this->customer->isLogged() || !$this->config->get('config_customer_price')) { $price = $this->currency->format($this->tax->calculate($result['price'], $result['tax_class_id'], $this->config->get('config_tax')), $this->session->data['currency']); } else { $price = false; } if ((float)$result['special']) { $special = $this->currency->format($this->tax->calculate($result['special'], $result['tax_class_id'], $this->config->get('config_tax')), $this->session->data['currency']); } else { $special = false; } if ($this->config->get('config_tax')) { $tax = $this->currency->format((float)$result['special'] ? $result['special'] : $result['price'], $this->session->data['currency']); } else { $tax = false; }
  10. не завжди, кожна сторінка має свій view 404
  11. Куди, пробачте, не ссуть? Що ви там таке робите, що вони не сумісні.
×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.