This has been requested a couple times so I decided to throw one together.
This modification will add a simple word counter under the Meta description and ([COLOR=DarkRed]optional[/COLOR]) Meta keyword input fields when adding or updating products.
Tested only on version 2.1.4 with IE8 and FF3.6 and ‘not completely’ so be prepared to revert if needed.
Requires:
1 template edit
1 file upload
Known issues:
When loading a product with existing words in these fields the counter will show 0 until a key is pressed in the field…
reserved
reserved
Possible issues:
May conflict with other javascript especially if you have other product option related addons.
Instructions:
Upload jquery.meta_counter.js to the /js directory
(Option 1) [COLOR=DarkRed]Skip to Option 2 below if you want description AND keyword word counters[/COLOR]
========= Meta Description Counter Only ===========
Template Edit
Open skins/yourskin/admin/views/products/update.tpl
Add this to the top of file
```php
{script src=“js/jquery.meta_counter.js”}
{literal}
{/literal}
```find this line in same file
add this directly below it
Word Count : 0
Save file
!!! Clear Cache !!!
========
Finished
========
(Option 2)
========= Meta Description And Keyword Counters ===========
Template Edit
Open skins/yourskin/admin/views/products/update.tpl
Add this to the top of file
```php
{script src=“js/jquery.meta_counter.js”}
{literal}
{/literal} ```find this line in same file
```php {$product_data.meta_description} ```add this directly below it
```php
Word Count : 0
```find this line
```php {$product_data.meta_keywords} ```add this directly below it
```php
Word Count : 0
```Save file!!! Clear Cache !!!
========
Finished
========