Post by kudykam » Wed May 18, 2011 9:36 pm

UPDATE 1.0.3:
-fixed missing czech characters
-added SKU after product seo url (product-name-model-sku), for more recognizable path

Attachments


OC 2.2.0.0


New member

Posts

Joined
Sat May 14, 2011 4:16 am

Post by msmith » Thu May 26, 2011 11:16 pm

Hi, how could I keep the letter "ñ" ? I've tried writing ñ instead of n, but the "ñ" disappears from the SEO field... Thanks for the great mod !!

Active Member

Posts

Joined
Mon Oct 18, 2010 8:57 pm

Post by kmg_123 » Wed Jul 13, 2011 2:59 pm

Guyz Auto SEO is not working does it related to Settings> Use SEO > enable function ? because I can't already use this function as mod_rewrite is not enabled in my Hosting Account...


regards

New member

Posts

Joined
Tue Jul 12, 2011 12:21 am
Location - UAE, Abu Dhabi

Post by uksitebuilder » Fri Jul 15, 2011 11:46 pm

Sorry it wont work unless your server is running mod_rewrite

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by Xsecrets » Fri Jul 15, 2011 11:55 pm

yes seo urls are not functional at all and never will be without mod_rewrite. If your hosting does not have mod_rewrite I would look for another host without hesitation. mod_rewrite is one of the most basic apache mods and every hosting should have it available. If your host does not you NEED to find different hosting.

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US

Post by opencart-templates » Sat Jul 16, 2011 2:17 am

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>

Advanced Professional Email Template
Customers Pre-Sale. Inc abandoned cart email
Order Follow-Up Email. Inc request review
Email Validation with ZeroBounce


User avatar
Active Member

Posts

Joined
Mon May 16, 2011 7:24 pm
Location - UK

Post by 5ulo » Sat Jul 16, 2011 3:01 am

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 .... )

CID, VAT ID / ICO, DIC (vQmod) for OC 1.5.x
Autofill SEO field (vQmod) for OC 1.4.x-1.5.x


User avatar
New member

Posts

Joined
Thu Oct 21, 2010 6:47 am
Location - Trnava, Slovakia, EU

Post by opencart-templates » Sat Jul 16, 2011 3:50 am

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 .... )
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.

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


User avatar
Active Member

Posts

Joined
Mon May 16, 2011 7:24 pm
Location - UK

Post by 5ulo » Sat Jul 16, 2011 4:04 am

Perfect!

CID, VAT ID / ICO, DIC (vQmod) for OC 1.5.x
Autofill SEO field (vQmod) for OC 1.4.x-1.5.x


User avatar
New member

Posts

Joined
Thu Oct 21, 2010 6:47 am
Location - Trnava, Slovakia, EU

Post by hipvilla » Tue Sep 13, 2011 4:24 am

How can i do? Please tell me....

Introduced to innovative Hay Wardrobe


Newbie

Posts

Joined
Tue Sep 13, 2011 4:12 am
Location - Central Asia

Post by 5ulo » Tue Sep 13, 2011 4:29 am

Just grab the SEO mod in my sign.

CID, VAT ID / ICO, DIC (vQmod) for OC 1.5.x
Autofill SEO field (vQmod) for OC 1.4.x-1.5.x


User avatar
New member

Posts

Joined
Thu Oct 21, 2010 6:47 am
Location - Trnava, Slovakia, EU

Post by opencart-templates » Tue Sep 13, 2011 4:31 am

hipvilla wrote:How can i do? Please tell me....
EDIT: /admin/view/template/common/header.tpl
FIND:

Code: Select all

$(document).ready(function(){
ADD BELOW:

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


User avatar
Active Member

Posts

Joined
Mon May 16, 2011 7:24 pm
Location - UK

Post by bald » Tue Sep 13, 2011 3:09 pm

Keep up the good work guys! Well done :)

Diagonal. Tires for 2-wheelers.
http://www.diagonal-opony.pl
OC 1.4.9.4


User avatar
Newbie

Posts

Joined
Sat Feb 26, 2011 5:35 am
Location - Olsztyn, Poland

Post by opencarthamza » Fri Sep 16, 2011 1:14 pm

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>
i am new in opencart .
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.

Newbie

Posts

Joined
Fri Sep 16, 2011 1:04 pm

Post by opencarthamza » Fri Sep 16, 2011 1:16 pm

opencart-templates wrote:
hipvilla wrote:How can i do? Please tell me....
EDIT: /admin/view/template/common/header.tpl
FIND:

Code: Select all

$(document).ready(function(){
ADD BELOW:

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);       
       });
    }
Why we need to place this code in admin but we need to fill out the product " apple cinema 30 "
like apple-cinema-30.
please help i need to put automatically - sign in every product name.

Newbie

Posts

Joined
Fri Sep 16, 2011 1:04 pm

Post by iain_darkflare » Sat Sep 17, 2011 11:13 pm

Awesome idea. :)

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


User avatar
New member

Posts

Joined
Wed Dec 09, 2009 12:39 am
Location - Ayr, Scotland

Post by 5ulo » Sat Sep 17, 2011 11:18 pm

I will do an update on monday.

CID, VAT ID / ICO, DIC (vQmod) for OC 1.5.x
Autofill SEO field (vQmod) for OC 1.4.x-1.5.x


User avatar
New member

Posts

Joined
Thu Oct 21, 2010 6:47 am
Location - Trnava, Slovakia, EU

Post by iain_darkflare » Sat Sep 17, 2011 11:34 pm

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.

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


User avatar
New member

Posts

Joined
Wed Dec 09, 2009 12:39 am
Location - Ayr, Scotland

Post by 5ulo » Sat Sep 17, 2011 11:40 pm

I've it done few days ago, but at this time I'm on (mini)holiday.. So enjoy your weekend and continue working on monday.. ;)

CID, VAT ID / ICO, DIC (vQmod) for OC 1.5.x
Autofill SEO field (vQmod) for OC 1.4.x-1.5.x


User avatar
New member

Posts

Joined
Thu Oct 21, 2010 6:47 am
Location - Trnava, Slovakia, EU

Post by opencarthamza » Sat Sep 17, 2011 11:44 pm

iain_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.
use dead cow module google it
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/

Newbie

Posts

Joined
Fri Sep 16, 2011 1:04 pm
Who is online

Users browsing this forum: No registered users and 3 guests