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

proplat

Users
  
  • Posts

    1,010
  • Joined

  • Last visited

Everything posted by proplat

  1. Проблема було в тому що немає української мови. @Seofisher додайте папку з перекладом
  2. Купив встановив. При редагуванні товару помилка Fatal error: Uncaught Exception: Error: Table 'energywe_db3.oc_product_video' doesn't exist<br />Error No: 1146<br />SELECT * FROM oc_product_video WHERE product_id = '777
  3. всім привіт раніше продавався модуль є щось схоже?
  4. В чому може бути проблема? Дані про покупку не передаються
  5. чіпати можна, особливо якщо видалено багато товарів то варто видалити оригінали і почистити кеш, сайт спочатку гальмуватиме але з часом кеш перегенерується і все буде нормально дуже важливо, адже деколи контенти грузять оригінали по 20 МБ, а якщо їх ресайзнути до 1000*1000 виходить 20КБ, такі папки легко можна вигрузити на комп ресайзнути і завантажити назад без втрати якості Оптимізувати можна прямо з командної строки але для початку я б розібрався звідки проблеми з місцем буває що наприклад від однієї категорії ще буває що проблема з ватермарком, наприклад один модуль коли клеїв ватермарк збільшував png формат вдвіччі
  6. Connection failed to lightning.devs.mx, HTTP error 0 Connection failed to parsemx.com, HTTP error 0 Connection to https://bukrek.net OK
  7. Чи э можливысть задати категорыю за замовчуванням? Тобто в мене в магзины э 100 категорый все це кинги, зараз мены треба до 100 категорый зробити свівставлення, до тої самої категорії. Можна задати одну до всіх?
  8. вирішили туди ще виробників допиляти, но от біда не зберігає хоча поле в БД , може хто підкаже що не так? <?xml version="1.0" encoding="utf-8"?> <modification> <name>meta_h1 extended manufacturer</name> <code>meta_h1_extended</code> <author>spectre</author> <version>3</version> <link>https://freelancer.od.ua</link> <file path="admin/view/template/catalog/product_form.twig"> <operation error="skip"> <search><![CDATA[<label class="col-sm-2 control-label" for="input-meta-description{{ language.language_id }}">{{ entry_meta_description }}</label>]]></search> <add position="before" offset="1"><![CDATA[ <div class="form-group"> <label class="col-sm-2 control-label" for="input-meta-h1{{ language.language_id }}">H1</label> <div class="col-sm-10"> <input type="text" name="product_description[{{ language.language_id }}][meta_h1]" value="{{ product_description[language.language_id] ? product_description[language.language_id].meta_h1 }}" id="input-meta-h1{{ language.language_id }}" class="form-control" /> </div> </div> ]]></add> </operation> </file> <file path="admin/view/template/catalog/category_form.twig"> <operation error="skip"> <search><![CDATA[<label class="col-sm-2 control-label" for="input-meta-description{{ language.language_id }}">{{ entry_meta_description }}</label>]]></search> <add position="before" offset="1"><![CDATA[ <div class="form-group"> <label class="col-sm-2 control-label" for="input-meta-h1{{ language.language_id }}">H1</label> <div class="col-sm-10"> <input type="text" name="category_description[{{ language.language_id }}][meta_h1]" value="{{ category_description[language.language_id] ? category_description[language.language_id].meta_h1 }}" id="input-meta-h1{{ language.language_id }}" class="form-control" /> </div> </div> ]]></add> </operation> </file> <file path="admin/view/template/catalog/information_form.twig"> <operation error="skip"> <search><![CDATA[<label class="col-sm-2 control-label" for="input-meta-description{{ language.language_id }}">{{ entry_meta_description }}</label>]]></search> <add position="before" offset="1"><![CDATA[ <div class="form-group"> <label class="col-sm-2 control-label" for="input-meta-h1{{ language.language_id }}">H1</label> <div class="col-sm-10"> <input type="text" name="information_description[{{ language.language_id }}][meta_h1]" value="{{ information_description[language.language_id] ? information_description[language.language_id].meta_h1 }}" id="input-meta-h1{{ language.language_id }}" class="form-control" /> </div> </div> ]]></add> </operation> </file> <file path="admin/view/template/catalog/manufacturer_form.twig"> <operation error="skip"> <search><![CDATA[<label class="col-sm-2 control-label" for="input-meta-description{{ language.language_id }}">{{ entry_meta_description }}</label>]]></search> <add position="before" offset="1"><![CDATA[ <div class="form-group"> <label class="col-sm-2 control-label" for="input-meta-h1{{ language.language_id }}">{{ entry_meta_h1 }}</label> <div class="col-sm-10"> <input type="text" name="manufacturer_description[{{ language.language_id }}][meta_h1]" value="{{ manufacturer_description[language.language_id] ? manufacturer_description[language.language_id].h1 }}" placeholder="{{ entry_meta_h1 }}" id="input-meta-h1{{ language.language_id }}" class="form-control" /> </div> </div> ]]></add> </operation> </file> <file path="admin/model/catalog/{product,category,information,manufacturer}*.php"> <operation error="skip"> <search><![CDATA[meta_keyword = '" . $this->db->escape($value['meta_keyword']) . "']]></search> <add position="replace"><![CDATA[meta_keyword = '" . $this->db->escape($value['meta_keyword']) . "', meta_h1 = '" . $this->db->escape($value['meta_h1']) . "']]></add> </operation> <operation error="skip"> <search><![CDATA['meta_keyword' => $result['meta_keyword']]]></search> <add position="replace"><![CDATA[ 'meta_keyword' => $result['meta_keyword'], 'meta_h1' => $result['meta_h1'] ]]></add> </operation> <operation error="skip"> <search><![CDATA[$product_description_data = array();]]></search> <add position="after"><![CDATA[ $query = $this->db->query("DESC `" . DB_PREFIX . "product_description`"); $fields = array(); foreach($query->rows as $row) { $fields[] = $row['Field']; } if(!in_array("meta_h1", $fields)) { $this->db->query("ALTER TABLE `" . DB_PREFIX . "product_description` ADD `meta_h1` VARCHAR(255) NOT NULL AFTER `meta_keyword`"); } ]]></add> </operation> <operation error="skip"> <search><![CDATA[$category_description_data = array();]]></search> <add position="after"><![CDATA[ $query = $this->db->query("DESC `" . DB_PREFIX . "category_description`"); $fields = array(); foreach($query->rows as $row) { $fields[] = $row['Field']; } if(!in_array("meta_h1", $fields)) { $this->db->query("ALTER TABLE `" . DB_PREFIX . "category_description` ADD `meta_h1` VARCHAR(255) NOT NULL AFTER `meta_keyword`"); } ]]></add> </operation> <operation error="skip"> <search><![CDATA[$information_description_data = array();]]></search> <add position="after"><![CDATA[ $query = $this->db->query("DESC `" . DB_PREFIX . "information_description`"); $fields = array(); foreach($query->rows as $row) { $fields[] = $row['Field']; } if(!in_array("meta_h1", $fields)) { $this->db->query("ALTER TABLE `" . DB_PREFIX . "information_description` ADD `meta_h1` VARCHAR(255) NOT NULL AFTER `meta_keyword`"); } ]]></add> </operation> <operation error="skip"> <search><![CDATA[$manufacturer_description_data = array();]]></search> <add position="after"><![CDATA[ $query = $this->db->query("DESC `" . DB_PREFIX . "manufacturer_description`"); $fields = array(); foreach($query->rows as $row) { $fields[] = $row['Field']; } if(!in_array("meta_h1", $fields)) { $this->db->query("ALTER TABLE `" . DB_PREFIX . "manufacturer_description` ADD `meta_h1` VARCHAR(255) NOT NULL AFTER `meta_keyword`"); } ]]></add> </operation> </file> <file path="admin/model/catalog/manufacturer.php"> <operation error="skip"> <search><![CDATA['meta_keyword' => $result['meta_keyword'],]]></search> <add position="after"><![CDATA[ 'meta_h1' => $result['meta_h1'], ]]></add> </operation> <operation error="skip"> <search><![CDATA[public function editManufacturer($manufacturer_id, $data) {]]></search> <add position="after"><![CDATA[ $this->db->query("DELETE FROM " . DB_PREFIX . "manufacturer_description WHERE manufacturer_id = '" . (int)$manufacturer_id . "'"); foreach ($data['manufacturer_description'] as $language_id => $value) { $this->db->query("INSERT INTO " . DB_PREFIX . "manufacturer_description SET manufacturer_id = '" . (int)$manufacturer_id . "', language_id = '" . (int)$language_id . "', description = '" . $this->db->escape($value['description']) . "', meta_title = '" . $this->db->escape($value['meta_title']) . "', meta_description = '" . $this->db->escape($value['meta_description']) . "', meta_keyword = '" . $this->db->escape($value['meta_keyword']) . "', meta_h1 = '" . $this->db->escape($value['meta_h1']) . "'"); } ]]></add> </operation> <operation error="skip"> <search><![CDATA[$manufacturer_id = $this->db->getLastId();]]></search> <add position="after"><![CDATA[ foreach ($data['manufacturer_description'] as $language_id => $value) { $this->db->query("INSERT INTO " . DB_PREFIX . "manufacturer_description SET manufacturer_id = '" . (int)$manufacturer_id . "', language_id = '" . (int)$language_id . "', description = '" . $this->db->escape($value['description']) . "', meta_title = '" . $this->db->escape($value['meta_title']) . "', meta_description = '" . $this->db->escape($value['meta_description']) . "', meta_keyword = '" . $this->db->escape($value['meta_keyword']) . "', meta_h1 = '" . $this->db->escape($value['meta_h1']) . "'"); } ]]></add> </operation> </file> <file path="admin/controller/catalog/manufacturer.php"> <operation error="skip"> <search><![CDATA[if ($this->request->post['manufacturer_seo_url']) {]]></search> <add position="before"><![CDATA[ foreach ($this->request->post['manufacturer_description'] as $language_id => $value) { if ((utf8_strlen($value['meta_title']) < 0) || (utf8_strlen($value['meta_title']) > 255)) { $this->error['meta_title'][$language_id] = $this->language->get('error_meta_title'); } if ((utf8_strlen($value['meta_h1']) < 0) || (utf8_strlen($value['meta_h1']) > 255)) { $this->error['meta_h1'][$language_id] = $this->language->get('error_meta_h1'); } } ]]></add> </operation> </file> <file path="catalog/model/catalog/product.php"> <operation error="skip"> <search><![CDATA['meta_keyword' => $query->row['meta_keyword'],]]></search> <add position="after"><![CDATA[ 'meta_h1' => $query->row['meta_h1'], ]]></add> </operation> </file> <file path="catalog/controller/product/product.php"> <operation error="skip"> <search><![CDATA[$data['heading_title'] = $product_info['name'];]]></search> <add position="after"><![CDATA[ $data['heading_title'] = $product_info['meta_h1'] ? $product_info['meta_h1'] : $product_info['name']; ]]></add> </operation> </file> <file path="catalog/controller/product/category.php"> <operation error="skip"> <search><![CDATA[$data['heading_title'] = $category_info['name'];]]></search> <add position="after"><![CDATA[ $data['heading_title'] = $category_info['meta_h1'] ? $category_info['meta_h1'] : $category_info['name']; ]]></add> </operation> </file> <file path="catalog/controller/information/information.php"> <operation error="skip"> <search><![CDATA[$data['heading_title'] = $information_info['title'];]]></search> <add position="after"><![CDATA[ $data['heading_title'] = $information_info['meta_h1'] ? $information_info['meta_h1'] : $information_info['title']; ]]></add> </operation> </file> <file path="catalog/controller/product/manufacturer.php"> <operation error="skip"> <search><![CDATA[$data['heading_title'] = $manufacturer_info['name'];]]></search> <add position="after"><![CDATA[ $data['heading_title'] = $manufacturer_info['meta_h1'] ? $manufacturer_info['meta_h1'] : $manufacturer_info['name']; ]]></add> </operation> </file> </modification> meta_h1_extended.xml
×
×
  • 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.