Thanks for the quick reply, it seems the problem was my svn client.
Hi,
I have a bookstore with zen cart, and I would like to include the ISBN of the book in the URL, could you please tell me which files I need to modify to achieve this? thanks.
You could include the ISBN in the product title. Just add it at the end.
Live and learn... the Zen way.
I was able to do it by modifying the init_ssu.php. Just changed this function and changed the query to make a join to concatenate the products_model, which contains my isbn, and the products_description column. Here is the code just in case someone want to do the same.
PHP Code:
function set_product_name($products_id){
$file_name = $this->build_product_filename($products_id);
$sql_query='SELECT concat(a.products_model,\' \',b.products_name) as products_name FROM zen_products a, '.TABLE_PRODUCTS_DESCRIPTION.' b WHERE a.products_id=b.products_id AND b.products_id='.$products_id.' LIMIT 1';
//$sql_query = 'SELECT products_name FROM '.TABLE_PRODUCTS_DESCRIPTION.' WHERE products_id ='.$products_id.' LIMIT 1';
$result = $this->_get_name_from_db($file_name,$sql_query,'products_name');
$result = $result.$this->product_identifier.$products_id;
// write to file EVEN if we get an empty content, that just means the productname is blank
$this->_write_to_file($this->cache_folder.$file_name, $result);
return $result;
}
@ ryudice: thank you for sharing us the solution, Im sure it will help others.
A new version is now available on svn, this version addresses several things:
1. Previously, ssu provides short-hand links for only the general product type, now it can support all 5 default product types and allow you to support your custom product type as well (with a very small tweak needed, which will be documented soon)
2. Fixed the clear cache function in admin to make sure it doesnt delete any folder
3. Several things were moved around to enhance performance
New features:
1. You can now exclude certain pages links from being changed by ssu (very useful for get form links)
2. Added the base for link alias (not available yet)
To upgrade, download the whole package from svn, upload everything, visit extras->simple seo url manager to have the patches applied automatically, then clear cache.
The exclude link setting is located under configuration->simple seo
I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me
Has anyone successfully installed Simpe SEO URL and think it's working very well?
The Team Behind DealByEthan.com | Curating unique finds for a discerning community. Committed to a seamless and inspiring shopping experience. Connect with us: https://linktr.ee/dealbyethan
I guess it depends on how you define "working well".
If you are looking for effect on search engine, you wont get it, since this module is relative new and not many ppl using it or use it long enough yet.
If well means without bug or seo problem, then that is what i would love to know as well.
Any bug report will be fixed asap.
I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me
Working well as in without bugs/problems mostly. So is anyone using it and happy with how its performance?
When you said we won't get the effect on search engine, do you mean Simple SEO will not help increase SEO ranking or what?
The Team Behind DealByEthan.com | Curating unique finds for a discerning community. Committed to a seamless and inspiring shopping experience. Connect with us: https://linktr.ee/dealbyethan
What I meant is that, any effect on search engine can only be seen within a few months.
Also, I believe beautifying links have a more user-friendly effect rather than search-engine friendly effect, since most if not all search engines will handle zc default link style just fine.
I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me
Bookmarks