-fixed missing czech characters
-added SKU after product seo url (product-name-model-sku), for more recognizable path
OC 2.2.0.0
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
Code: Select all
<file name="admin/view/template/common/header.tpl">
<operation>
<search position="after"><![CDATA[$(document).ready(function(){]]></search>
<add><![CDATA[
var keyword = $("input[name=keyword]").val();
if(!keyword){
$("input[name^='product_description'],input[name^='category_description'],input[name='name'],input[name^='information_description']").keyup(function(){
var text = $(this).val();
text = text.toLowerCase();
text = text.replace(/[^a-zA-Z0-9]+/g,'-');
$("input[name=keyword]").val(text);
});
}]]></add>
</operation>
</file>
Advanced Professional Email Template
Customers Pre-Sale. Inc abandoned cart email
Order Follow-Up Email. Inc request review
Email Validation with ZeroBounce
CID, VAT ID / ICO, DIC (vQmod) for OC 1.5.x
Autofill SEO field (vQmod) for OC 1.4.x-1.5.x
I normally just deal with the English language so your code would be overkill for my sites. Although how about this? Merging both together both our code and it means you do not need to add the ID to the inputs in the vqmod xml.5ulo wrote:Good idea, but try with your vqmod this product name "Kľúče", which means in my lanugage "Keys". I want to have in seo field word "kluce" and this mod gives me "k-e" and that's not good. We need to substitute latin characters to relative characters (č > c, ĺ > l .... )
Code: Select all
var keyword = $("input[name=keyword]");
if(!keyword.val()){
$("input[name^='product_description'],input[name^='category_description'],input[name='name'],input[name^='information_description']").keyup(function(){
var SEOlink = $(this).val();
SEOlink = SEOlink.replace(/^\s+|\s+$/g, ''); // trim
SEOlink = SEOlink.toLowerCase();
// remove accents, swap, etc
var from = "àáäâèéëêìíïîòóöôùúüûñcçčlľštžýnrrd·/_,:;";
var to = "aaaaeeeeiiiioooouuuuncccllstzynrrd------";
for (var i=0, l=from.length ; i<l ; i++) {
SEOlink = SEOlink.replace(new RegExp(from.charAt(i), 'g'), to.charAt(i));
}
SEOlink = SEOlink.replace(/[^a-z0-9 -]/g, '') // remove invalid chars
.replace(/\s+/g, '-') // collapse whitespace and replace by -
.replace(/-+/g, '-'); // collapse dashes
// return SEOlink;
keyword.val(SEOlink);
});
}
Advanced Professional Email Template
Customers Pre-Sale. Inc abandoned cart email
Order Follow-Up Email. Inc request review
Email Validation with ZeroBounce
CID, VAT ID / ICO, DIC (vQmod) for OC 1.5.x
Autofill SEO field (vQmod) for OC 1.4.x-1.5.x
EDIT: /admin/view/template/common/header.tplhipvilla wrote:How can i do? Please tell me....
FIND:
Code: Select all
$(document).ready(function(){
Code: Select all
var keyword = $("input[name=keyword]");
if(!keyword.val()){
$("input[name^='product_description'],input[name^='category_description'],input[name='name'],input[name^='information_description']").keyup(function(){
var SEOlink = $(this).val();
SEOlink = SEOlink.replace(/^\s+|\s+$/g, ''); // trim
SEOlink = SEOlink.toLowerCase();
// remove accents, swap, etc
var from = "àáäâèéëêìíïîòóöôùúüûñcçčlľštžýnrrd·/_,:;";
var to = "aaaaeeeeiiiioooouuuuncccllstzynrrd------";
for (var i=0, l=from.length ; i<l ; i++) {
SEOlink = SEOlink.replace(new RegExp(from.charAt(i), 'g'), to.charAt(i));
}
SEOlink = SEOlink.replace(/[^a-z0-9 -]/g, '') // remove invalid chars
.replace(/\s+/g, '-') // collapse whitespace and replace by -
.replace(/-+/g, '-'); // collapse dashes
// return SEOlink;
keyword.val(SEOlink);
});
}
Advanced Professional Email Template
Customers Pre-Sale. Inc abandoned cart email
Order Follow-Up Email. Inc request review
Email Validation with ZeroBounce

Diagonal. Tires for 2-wheelers.
http://www.diagonal-opony.pl
OC 1.4.9.4
i am new in opencart .opencart-templates wrote:I prefer to use the power of Jquery by adding this inside the Doc ready, this will filth out anything that is not URL friendly allowing only: "A-Z+a-z+0-9"
Code: Select all
<file name="admin/view/template/common/header.tpl"> <operation> <search position="after"><![CDATA[$(document).ready(function(){]]></search> <add><![CDATA[ var keyword = $("input[name=keyword]").val(); if(!keyword){ $("input[name^='product_description'],input[name^='category_description'],input[name='name'],input[name^='information_description']").keyup(function(){ var text = $(this).val(); text = text.toLowerCase(); text = text.replace(/[^a-zA-Z0-9]+/g,'-'); $("input[name=keyword]").val(text); }); }]]></add> </operation> </file>
please quickly guide me how i can use this code .
or where should i place this code so i can fill my product apple cinema 30 with - automatically.
Why we need to place this code in admin but we need to fill out the product " apple cinema 30 "opencart-templates wrote:EDIT: /admin/view/template/common/header.tplhipvilla wrote:How can i do? Please tell me....
FIND:ADD BELOW:Code: Select all
$(document).ready(function(){
Code: Select all
var keyword = $("input[name=keyword]"); if(!keyword.val()){ $("input[name^='product_description'],input[name^='category_description'],input[name='name'],input[name^='information_description']").keyup(function(){ var SEOlink = $(this).val(); SEOlink = SEOlink.replace(/^\s+|\s+$/g, ''); // trim SEOlink = SEOlink.toLowerCase(); // remove accents, swap, etc var from = "àáäâèéëêìíïîòóöôùúüûñcçčlľštžýnrrd·/_,:;"; var to = "aaaaeeeeiiiioooouuuuncccllstzynrrd------"; for (var i=0, l=from.length ; i<l ; i++) { SEOlink = SEOlink.replace(new RegExp(from.charAt(i), 'g'), to.charAt(i)); } SEOlink = SEOlink.replace(/[^a-z0-9 -]/g, '') // remove invalid chars .replace(/\s+/g, '-') // collapse whitespace and replace by - .replace(/-+/g, '-'); // collapse dashes // return SEOlink; keyword.val(SEOlink); }); }
like apple-cinema-30.
please help i need to put automatically - sign in every product name.

Downloaded and installed the latest version from you sig. "autofill_seo_field_1.4.x-1.5.x.xml", it seems to be putting the product name successfully into the SEO Keyword box but not the Model or SKU.
Any ideas?
Dark Flare Design :: http://www.darkflaredesign.co.uk :: Web, Print and Logo Design, Ayr
CID, VAT ID / ICO, DIC (vQmod) for OC 1.5.x
Autofill SEO field (vQmod) for OC 1.4.x-1.5.x
That would be awesome. I'll just continue manually adding the model numbers until then.

Dark Flare Design :: http://www.darkflaredesign.co.uk :: Web, Print and Logo Design, Ayr

CID, VAT ID / ICO, DIC (vQmod) for OC 1.5.x
Autofill SEO field (vQmod) for OC 1.4.x-1.5.x
use dead cow module google itiain_darkflare wrote:Wow, that was quick!
That would be awesome. I'll just continue manually adding the model numbers until then.Just trying to get a site launched for a friend.
it will do everything for your model product category. and tag keyword all .
this seo plugin is beyond my understanding we need to place code in admin
and we require front end url rewriting i tried so much but not able to do any thing with it.
finally using deadcow module which is running easy with multiputl options/
Users browsing this forum: No registered users and 3 guests