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

sich1111

Newbie
  
  • Posts

    5
  • Joined

  • Last visited

sich1111's Achievements

Newbie

Newbie (1/14)

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

Recent Badges

3

Reputation

  1. В "admin/controller/catalog/product.php" (линии 881 - 883) найти и удалить: if ((strlen(utf8_decode($this->request->post['model'])) < 3) || (strlen(utf8_decode($this->request->post['model'])) > 24)) { $this->error['model'] = $this->language->get('error_model'); } Далее в admin/view/template/catalog/product_form.tpl" (линии 38 - 42) найти: <td><input type="text" name="model" value="<?php echo $model; ?>" /> <br /> <?php if ($error_model) { ?> <span class="error"><?php echo $error_model; ?></span> <?php } ?></td> и заменить на: <td><input type="text" name="model" value="<?php echo $model; ?>" /></td> И последнее, в "catalog/view/theme/имя шаблона/template/product/product.tpl"(линии 25 - 28) найти и удалить: <tr> <td><b><?php echo $text_model; ?></b></td> <td><?php echo $model; ?></td> </tr> Взято отсюда В результате у меня получилось следующее: поле "модель" перестает быть обязательным к заполнению, при просмотре товара вообще нет категории "модель", но в корзине она видна. Еще у меня возникла проблема с поиском последнего кода в product.tpl в шаблоне greenstore. Этого кода там просто нет. На свой страх скопировал product.tpl из шаблона default, произвел изменения и залил в greenstore заместо родного. Вродь как получилось :) Будут ошибки - отпишу.
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.