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

chukcha

Users
  • Posts

    20,535
  • Joined

  • Last visited

Technical support

  • Status
    Работаю

Information

  • Gender
    Мужчина
  • City:
    Харків - це Україна

Recent Profile Visitors

82,333 profile views

chukcha's Achievements

Grand Master

Grand Master (14/14)

  • Dedicated Rare
  • First Post
  • Collaborator
  • Posting Machine Rare
  • Week One Done

Recent Badges

3.1k

Reputation

  1. ну, можно подію на onchange - знимати disabled
  2. var cart = { ... success: function(json) { if (json['success']) { let search = new URLSearchParams(this.data); let pr_id = search.get('product_id') // далее найти кнопку и disabled
  3. $('#button-cart').on('click', function() { success: $('#button-cart').prop('disabled',true);
  4. а що в цьому не так? наприклад breadcrumbs а також header footer ...
  5. $_['action_default'] = 'common/home'; $this->response->redirect($this->url->link($this->config->get('action_default')), 301);
  6. ні разу MVC це не послідовність до речі у ОС - С - M - V У OC може бути С (c-m-v) - M (v) - V
  7. там проблема в зовсім іншому $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; }
  8. не завжди, кожна сторінка має свій view 404
×
×
  • 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.