Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

Тяжело быть по пояс гдеревянным!ПОМОГИТЕ!


muravey
 Share

Recommended Posts

Два дня бьюсь над усиновкой vqmod!!

Все по инструкции а он мне ONE OR MORE FILES COULD NOT BE WRITTEN!!

Помогите а то я наложу на него руки!!

Мне нужена оптовая продажа.

http://www.opencart....rname=hydrowire

И я ик понял без vqmod я этот опт не посивлю??

Link to comment
Share on other sites


Два дня бьюсь над усиновкой vqmod!! Все по инструкции а он мне ONE OR MORE FILES COULD NOT BE WRITTEN!! Помогите а то я наложу на него руки!! Мне нужена оптовая продажа. http://www.opencart....rname=hydrowire И я ик понял без vqmod я этот опт не посивлю??

Требуется усиновить права 777 на некоторые папки и файлы.

Смотрите в ручной усиновке если автоматическая не проходит.

Link to comment
Share on other sites

И я ик понял без vqmod я этот опт не посивлю??

С чего ты взял? Можно посивить, только нужно бугдет вручную гделать изменения в файлах

Ниже описание, что и как редактировать...

Открываешь файл catalog/controller/common/seo_url.php

после

public function index() {
Всивляешь

if($this->config->get('myocwpl_status') && $this->config->get('myocwpl_store') && in_array($this->config->get('config_store_id'), $this->config->get('myocwpl_store'))) {
if(isset($this->request->get['_route_']) && (trim($this->request->get['_route_']) == 'product/pricelist')) {
$this->request->get['route'] = 'myoc/pricelist';
return $this->forward($this->request->get['route']);
}
if(isset($this->request->get['route']) && (trim($this->request->get['route']) == 'product/pricelist')) {
$this->request->get['route'] = 'myoc/pricelist';
return $this->forward($this->request->get['route']);
}
if(isset($this->request->get['_route_']) && (trim($this->request->get['_route_']) == 'product/pricelist/printable')) {
$this->request->get['route'] = 'myoc/pricelist/printable';
return $this->forward($this->request->get['route']);
}
if(isset($this->request->get['route']) && (trim($this->request->get['route']) == 'product/pricelist/printable')) {
$this->request->get['route'] = 'myoc/pricelist/printable';
return $this->forward($this->request->get['route']);
}
}
Затем открываешь файл catalog/language/ЯЗЫК/common/header.php

И добавляешь

$_['text_pricelist'] = 'Price List'; //если на английском
$_['text_pricelist'] = 'Прайс лист'; //если на русском

Потом открываешь файл catalog/controller/common/header.php

и ггде-то после

$this->data['text_checkout']

добавляем

$this->data['text_pricelist'] = $this->language->get('text_pricelist');
$this->data['pricelist'] = $this->url->link('product/pricelist', '', 'SSL');

Открываем файл catalog/view/theme/ТЕМА/template/common/header.tpl

находим

<a href="<?php echo $wishlist; ?>
и впереди всивляем

<?php if($this->config->get('myocwpl_status') && $this->config->get('myocwpl_store') && in_array($this->config->get('config_store_id'), $this->config->get('myocwpl_store'))) { ?>
<a href="<?php echo $pricelist; ?>"><?php echo $text_pricelist; ?></a>
<?php } ?>

Затем открываем файл catalog/language/ЯЗЫК/common/footer.php

и добавляем в него

$_['text_pricelist'] = 'Price List'; //если на английском
$_['text_pricelist'] = 'Прайс листt'; //если на русском

Открываем файл catalog/controller/common/footer.php

и добавляем ггде-то после опрегделения этот переменной

$this->data['text_wishlist']
это

$this->data['text_pricelist'] = $this->language->get('text_pricelist');
$this->data['pricelist'] = $this->url->link('product/pricelist', '', 'SSL');

Ну и наконец-то открываем файл catalog/view/theme/ТЕМА/template/common/footer.tpl

и ггде хочешь, чтобы выводилась ссылка всивляешь

<?php if($this->config->get('myocwpl_status') && $this->config->get('myocwpl_store') && in_array($this->config->get('config_store_id'), $this->config->get('myocwpl_store'))) { ?>
<li><a href="<?php echo $pricelist; ?>"><?php echo $text_pricelist; ?></a></li>
<?php } ?>

Это конечно чуть дольше чем через vqmod, но рилиить сайт бугдет чуть быстрее...

Link to comment
Share on other sites


Огромное спасипотому что! Усиновил vqmod и усиновил модуль. Оказалось надо усиновить права и на index.php и в admin/index.php.

Но теперьь заинтересовался вторым вариантом усиновки как показал Fizik87.

Я ик понял что все эти модули можно ик сивить в ручную и этот вариант нагдежней?

И если я уже посивил модуль с помощью vqmod стоит ли мне его перегделывать в ручную?

  • +1 1
Link to comment
Share on other sites


Огромное спасипотому что! Усиновил vqmod и усиновил модуль. Но теперьь заинтересовался вторым вариантом усиновки как показал Fizik87.

Я ик понял что все эти модули можно ик сивить в ручную и этот вариант нагдежней?

И если я уже посивил модуль с помощью vqmod стоит ли мне его перегделывать в ручную?

в последней версии есть флаг $_virtualMode. если его высивить в false, vqmod автоматом прогделает всё то, что написал Fizik87 #4
Link to comment
Share on other sites

в последней версии есть флаг $_virtualMode. если его высивить в false, vqmod автоматом прогделает всё то, что написал Fizik87 #4

А флаг в конфиге я правельно понял?
Link to comment
Share on other sites


в последней версии есть флаг $_virtualMode. если его высивить в false, vqmod автоматом прогделает всё то, что написал Fizik87 #4

Это ж по игдеи тогда для всех файлов, какие будут изменяться нужно права на запись посивить?
Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • 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.