Делаю всё по гайду с курса. Версия опенкарта и модуля работают друг с другом, у меня уже была эта проблема, я ее как то решил, но вспомню как(раз 6й всё заново начинаю). Суть:
Открываю папку с модулем > upload, копирую папку admin, захожу в админку жму загрузить файл выбираю autourl.ocmod.xml пишет error undefined
Скрин:
Код autourl.ocmod.xml :
<?xml version="1.0" encoding="UTF-8"?>
<modification>
<name>Auto URL by WDM</name>
<code>autourl</code>
<version>1.0</version>
<author>WebDesign Master</author>
<link>http://webdesign-master.ru</link>
<file path="admin/view/template/common/header.tpl">
<operation>
<search><![CDATA[</head>]]></search>
<add position="before">
<![CDATA[
<script type="text/javascript" src="view/javascript/stringToSlug/speakingurl.min.js"></script>
<script type="text/javascript" src="view/javascript/stringToSlug/jquery.stringToSlug.min.js"></script>
]]>
</add>
</operation>
</file>
<file path="admin/view/template/catalog/product_form.tpl">
<operation>
<search index="0"><![CDATA[<?php foreach ($languages as $language) { ?>]]></search>
<add position="after">
<![CDATA[
<?php
switch($language['code']) {
case 'ru-ru':
$langC[$language['language_id']] = 'ru';
break;
default:
$langC[$language['language_id']] = $language['code'];
}
?>
]]>
</add>
</operation>
<operation>
<search><![CDATA[<?php echo $footer; ?>]]></search>
<add position="before">
<![CDATA[
<script>
$(function() {
$("[data-id=title-slug<?php echo $langC[$language['language_id']]; ?>]").stringToSlug({
setEvents: 'keyup keydown blur',
getPut: '[data-slug=slug-result<?php echo $langC[$language['language_id']]; ?>]',
options: {
lang: '<?php echo $langC[$language['language_id']]; ?>',
titleCase: false
}
});
$("[data-id=title-slug<?php echo $langC[$language['language_id']]; ?>]").stringToSlug({
setEvents: 'keyup keydown blur',
space: ' ',
options: {
lang: '<?php echo $langC[$language['language_id']]; ?>',
titleCase: true
},
callback: function(str) {
$('.cMeta<?php echo $langC[$language['language_id']]; ?>').val($("[data-id=title-slug<?php echo $langC[$language['language_id']]; ?>]").val());
}
});
});
</script>
]]>
</add>
</operation>
<operation>
<search><![CDATA[name="product_description[<?php echo $language['language_id']; ?>][name]"]]></search>
<add position="replace">
<![CDATA[data-id="title-slug<?php echo $langC[$language['language_id']]; ?>" name="product_description[<?php echo $language['language_id']; ?>][name]"]]>
</add>
</operation>
<operation>
<search><![CDATA[id="input-meta-title<?php echo $language['language_id']; ?>" class="form-control"]]></search>
<add position="replace">
<![CDATA[id="input-meta-title<?php echo $language['language_id']; ?>" class="form-control cMeta<?php echo $langC[$language['language_id']]; ?>"]]>
</add>
</operation>
<operation>
<search><![CDATA[name="keyword"]]></search>
<add position="replace"><![CDATA[data-slug="slug-result<?php echo $langC[$language['language_id']]; ?>" name="keyword"]]></add>
</operation>
</file>
<file path="admin/view/template/catalog/category_form.tpl">
<operation>
<search index="0"><![CDATA[<?php foreach ($languages as $language) { ?>]]></search>
<add position="after">
<![CDATA[
<?php
switch($language['code']) {
case 'ru-ru':
$langC[$language['language_id']] = 'ru';
break;
default:
$langC[$language['language_id']] = $language['code'];
}
?>
]]>
</add>
</operation>
<operation>
<search><![CDATA[<?php echo $footer; ?>]]></search>
<add position="before">
<![CDATA[
<script>
$( function() {
$("[data-id=title-slug<?php echo $langC[$language['language_id']]; ?>]").stringToSlug({
setEvents: 'keyup keydown blur',
getPut: '[data-slug=slug-result<?php echo $langC[$language['language_id']]; ?>]',
options: {
lang: '<?php echo $langC[$language['language_id']]; ?>',
titleCase: false
}
});
$("[data-id=title-slug<?php echo $langC[$language['language_id']]; ?>]").stringToSlug({
setEvents: 'keyup keydown blur',
space: ' ',
options: {
lang: '<?php echo $langC[$language['language_id']]; ?>',
titleCase: true
},
callback: function(str) {
$('.cMeta<?php echo $langC[$language['language_id']]; ?>').val($("[data-id=title-slug<?php echo $langC[$language['language_id']]; ?>]").val());
}
});
});
</script>
]]>
</add>
</operation>
<operation>
<search><![CDATA[name="category_description[<?php echo $language['language_id']; ?>][name]"]]></search>
<add position="replace">
<![CDATA[data-id="title-slug<?php echo $langC[$language['language_id']]; ?>" name="category_description[<?php echo $language['language_id']; ?>][name]"]]>
</add>
</operation>
<operation>
<search><![CDATA[id="input-meta-title<?php echo $language['language_id']; ?>" class="form-control"]]></search>
<add position="replace">
<![CDATA[id="input-meta-title<?php echo $language['language_id']; ?>" class="form-control cMeta<?php echo $langC[$language['language_id']]; ?>"]]>
</add>
</operation>
<operation>
<search><![CDATA[name="keyword"]]></search>
<add position="replace"><![CDATA[data-slug="slug-result<?php echo $langC[$language['language_id']]; ?>" name="keyword"]]></add>
</operation>
</file>
<file path="admin/controller/catalog/manufacturer.php">
<operation>
<search><![CDATA[protected function getForm() {]]></search>
<add position="after">
<![CDATA[$data['lang'] = $this->language->get('code');]]>
</add>
</operation>
</file>
<file path="admin/view/template/catalog/manufacturer_form.tpl">
<operation>
<search><![CDATA[<?php echo $column_left; ?>]]></search>
<add position="after">
<![CDATA[
<?php
switch($lang) {
case 'ru-ru':
$langC = 'ru';
break;
default:
$langC = $lang;
}
?>
]]>
</add>
</operation>
<operation>
<search><![CDATA[<?php echo $footer; ?>]]></search>
<add position="before">
<![CDATA[
<script>
$(function() {
$("[data-id=title-slug<?php echo $langC; ?>]").stringToSlug({
setEvents: 'keyup keydown blur',
getPut: '[data-slug=slug-result<?php echo $langC; ?>]',
options: {
lang: '<?php echo $langC; ?>',
titleCase: false
}
});
});
</script>
]]>
</add>
</operation>
<operation>
<search><![CDATA[name="name"]]></search>
<add position="replace"><![CDATA[data-id="title-slug<?php echo $langC; ?>" name="name"]]></add>
</operation>
<operation>
<search><![CDATA[name="keyword"]]></search>
<add position="replace"><![CDATA[data-slug="slug-result<?php echo $langC; ?>" name="keyword"]]></add>
</operation>
</file>
<file path="admin/view/template/catalog/information_form.tpl">
<operation>
<search index="0"><![CDATA[<?php foreach ($languages as $language) { ?>]]></search>
<add position="after">
<![CDATA[
<?php
switch($language['code']) {
case 'ru-ru':
$langC[$language['language_id']] = 'ru';
break;
default:
$langC[$language['language_id']] = $language['code'];
}
?>
]]>
</add>
</operation>
<operation>
<search><![CDATA[<?php echo $footer; ?>]]></search>
<add position="after">
<![CDATA[
<script>
$(function() {
$("[data-id=title-slug<?php echo $langC[$language['language_id']]; ?>]").stringToSlug({
setEvents: 'keyup keydown blur',
getPut: '[data-slug=slug-result<?php echo $langC[$language['language_id']]; ?>]',
options: {
lang: '<?php echo $langC[$language['language_id']]; ?>',
titleCase: false
}
});
$("[data-id=title-slug<?php echo $langC[$language['language_id']]; ?>]").stringToSlug({
setEvents: 'keyup keydown blur',
space: ' ',
options: {
lang: '<?php echo $langC[$language['language_id']]; ?>',
titleCase: true
},
callback: function(str) {
$('.cMeta<?php echo $langC[$language['language_id']]; ?>').val($("[data-id=title-slug<?php echo $langC[$language['language_id']]; ?>]").val());
}
});
});
</script>
]]>
</add>
</operation>
<operation>
<search><![CDATA[name="information_description[<?php echo $language['language_id']; ?>][title]"]]></search>
<add position="replace">
<![CDATA[data-id="title-slug<?php echo $langC[$language['language_id']]; ?>" name="information_description[<?php echo $language['language_id']; ?>][title]"]]>
</add>
</operation>
<operation>
<search><![CDATA[id="input-meta-title<?php echo $language['language_id']; ?>" class="form-control"]]></search>
<add position="replace">
<![CDATA[id="input-meta-title<?php echo $language['language_id']; ?>" class="form-control cMeta<?php echo $langC[$language['language_id']]; ?>"]]>
</add>
</operation>
<operation>
<search><![CDATA[name="keyword"]]></search>
<add position="replace"><![CDATA[data-slug="slug-result<?php echo $langC[$language['language_id']]; ?>" name="keyword"]]></add>
</operation>
</file>
</modification>