[Extension] AutoMetaTagTitle
Posted: Sun May 10, 2015 2:17 am
Hello everyone... im new here.
the user "fabiom7" post is AutoMetaTagTitle Extension here:
http://www.opencart.com/index.php?route ... AGS&page=2

but have 2 problems...
1. its Requirement: vQmod.
2. have bugs with multiple languages..
3. doesn't work when u want to add a new product.
so this is how to install it without vQmod and without the bug:
go to the file:
and add this before:
what was the bug in "fabiom7" code? he try to run the same function with all of the languages and u most to change the name od the function for every language. about the but when u want to add a new product its because the system not recognize the $product_description arry.
good luck
the user "fabiom7" post is AutoMetaTagTitle Extension here:
http://www.opencart.com/index.php?route ... AGS&page=2

but have 2 problems...
1. its Requirement: vQmod.
2. have bugs with multiple languages..
3. doesn't work when u want to add a new product.
so this is how to install it without vQmod and without the bug:
go to the file:
search this:admin/view/template/catalog/product_form.tpl
Code: Select all
//--></script></div>
Code: Select all
<?php foreach ($languages as $language) {
if ((!isset($product_description[$language['language_id']]['meta_title'])) || (!$product_description[$language['language_id']]['meta_title'])) { ?>
var autoInputName<?php echo $language['language_id']; ?> = $('#input-name<?php echo $language['language_id']; ?>');
var autoInputMetaTitle<?php echo $language['language_id']; ?> = $('#input-meta-title<?php echo $language['language_id']; ?>');
autoInputName<?php echo $language['language_id']; ?>.on('keyup', function() {
autoInputMetaTitle<?php echo $language['language_id']; ?>.val(autoInputName<?php echo $language['language_id']; ?>.val());
});
<? }
} ?>
good luck
