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

Wiwan

Newbie
  
  • Posts

    4
  • Joined

  • Last visited

1 Follower

Wiwan's Achievements

Newbie

Newbie (1/14)

  • First Post
  • Week One Done
  • One Month Later
  • One Year In
  • Conversation Starter

Recent Badges

0

Reputation

  1. Благодарю spectre. Очень помогли. У кого будет подобная проблема, то вот данный кусок кода: if (($this->config->get('config_customer_price') && $this->customer->isLogged()) || !$this->config->get('config_customer_price')) { $price = $this->currency->format($this->tax->calculate($product_info['price'], $product_info['tax_class_id'], $this->config->get('config_tax'))); } else { $price = false; } Я заменил на: if (($this->config->get('config_customer_price') && $this->customer->isLogged()) || !$this->config->get('config_customer_price')) { $price = $this->currency->format($this->tax->calculate($product_info['price'], $product_info['tax_class_id'], $this->config->get('config_tax')), $this->session->data['currency'], '', false); } else { $price = false; }
  2. <?php class ControllerModuleAutoFeatured extends Controller { public function index($setting) { $this->load->language('module/autofeatured'); $data['text_tax'] = $this->language->get('text_tax'); $data['button_cart'] = $this->language->get('button_cart'); $data['button_wishlist'] = $this->language->get('button_wishlist'); $data['button_compare'] = $this->language->get('button_compare'); $this->load->model('catalog/product'); $this->load->model('tool/image'); $data['products'] = array(); if (!$setting['limit']) { $setting['limit'] = 4; } $this->load->model('module/autofeatured'); $product_id = isset($this->request->get['product_id']) ? $this->request->get['product_id'] : 0; $results = $this->model_module_autofeatured->getProductAutoFeatured($product_id,$setting['limit'],$setting['attribute'],$setting['category_source'],$setting['category'],$setting['sortby'],$setting['in_stock'],$setting['one_cat']); $data['heading_title'] = $setting['titleview'] ? $setting['name'] . $results['text'] : $setting['name']; foreach ($results['products'] as $product_id) { $product_info = $this->model_catalog_product->getProduct($product_id); if ($product_info) { if ($product_info['image']) { $image = $this->model_tool_image->resize($product_info['image'], $setting['width'], $setting['height']); } else { $image = $this->model_tool_image->resize('placeholder.png', $setting['width'], $setting['height']); } if (($this->config->get('config_customer_price') && $this->customer->isLogged()) || !$this->config->get('config_customer_price')) { $price = $this->currency->format($this->tax->calculate($product_info['price'], $product_info['tax_class_id'], $this->config->get('config_tax'))); } else { $price = false; } if ((float)$product_info['special']) { $special = $this->currency->format($this->tax->calculate($product_info['special'], $product_info['tax_class_id'], $this->config->get('config_tax'))); } else { $special = false; } if ($this->config->get('config_tax')) { $tax = $this->currency->format((float)$product_info['special'] ? $product_info['special'] : $product_info['price']); } else { $tax = false; } if ($this->config->get('config_review_status')) { $rating = $product_info['rating']; } else { $rating = false; } $data['products'][] = array( 'product_id' => $product_info['product_id'], 'thumb' => $image, 'name' => $product_info['name'], 'description' => utf8_substr(strip_tags(html_entity_decode($product_info['description'], ENT_QUOTES, 'UTF-8')), 0, $this->config->get('config_product_description_length')) . '..', 'price' => $price, 'special' => $special, 'tax' => $tax, 'rating' => $rating, 'href' => $this->url->link('product/product', 'product_id=' . $product_info['product_id']) ); } } if ($data['products']) { if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/module/autofeatured.tpl')) { return $this->load->view($this->config->get('config_template') . '/template/module/autofeatured.tpl', $data); } elseif (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/module/featured.tpl')) { return $this->load->view($this->config->get('config_template') . '/template/module/featured.tpl', $data); } else { return $this->load->view('default/template/module/autofeatured.tpl', $data); } } } }
  3. Вот нашел вроде бы нужный файл модуля. Пробовал менять - сайт ложиться (белый экран). Подскажите пожалуйста, где и что в документе нужно сменить. Вот:
  4. Подскажите пожалуйста как убрать слово "руб" именно в зачеркнутой цене ? В каком файле на сервере нужно удалить вывод данной валюты в старой цене (смотрите скрин) ? Версия ocStore 2.1.0.2.1 Шаблон Fastor.
Guest
×
  • 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.