Here is what I'm thinking:
we either: remove cpath completely from product_info links, rebuild later
or: we make sure the cPath will always be the same, and always be there for a specific product.
Here is what I'm thinking:
we either: remove cpath completely from product_info links, rebuild later
or: we make sure the cPath will always be the same, and always be there for a specific product.
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
My take is that we've disquised cPath in the URL so far to make things prettier while and not sacrifice speed. If we can do without cPath in the URL, then great!
The question is to choose the ultimate URL format. The code will follow.
Here is the ultimate format I've been thinking about:
cpath along with category names will be appended to all product_info links
All product info links should use only one single form of link, anything else will be redirected (301)
1. form 1:
cat1name-id/cat2name-id/cat3name-id/productname-id
2. form 2:
cat1name-cat2name-cat3name-id1_id2_id3/productname-id
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
Where is the install.sql file?
Also, I seem to get this warning error:
Warning: preg_replace() [function.preg-replace]: No ending delimiter '/' found in /home/empowerm/public_html/includes/init_includes/init_ssu.php on line 36
This mod is installed automatically, just visit admin/ssu.php
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
Is there a relatively easy way to customize it to mimic Amazon's style?
Amazon has spent tons of Research on SEO, and I like the way their URLs are user-friendly and descriptive and short. I just found this mod, so I haven't had the time to dive into the code.. but just wondering if it would be doable just to have something like this.Code:http://www.amazon.com/Zen-Cart-Building-Online-Store/dp/141206645X
Ideally, I think it's best to have:
or:Code:www.site.com/productname-id
where X is the LAST child in the category tree (deepest category level)Code:www.site.com/catXname-idX/productname-id
What do you think?
This module is commented quite well, and in the matter of fact there are users that customized it for their own link style already.
You can try to look at the class and see if you can figure it out. You should be able to mess around with it easily, of course a certain level of php knowledge is required.
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
To answer your question:
www.site.com/catXname-idX/productname-id
Yes, it is possible, but remember 1 thing: zencart needs the whole cPath string which including the parent of the cat in certain situations.
1 solution: re-build the path from the child id, which is really easy actually
a. dont rebuild it everytime, save cPath of each cat in files which can be retrieved later (so we dont waste mysql resource)
b. Another way, which is far better:
Look at my Simple Category Tree module, this module does many things, but 1 of the nice thing it does is: you can retrieve the cPath of and category easily.
https://svn.rubikintegration.com/zen...tegories_tree/
Note: I havent documented this mod well, so you will have to dig in the code. The code is commented quite well tho.
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
Alpha 2.6b is now available with a number of critical bug fixes thanks empower for notifying me. If you are either using this module or working on it to tweak it the way you want, I strongly recommend upgrading to fix these critical errors.
File affected: 1
init_ssu.php
Location:
https://svn.rubikintegration.com/zen...init_includes/
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
yellow1912,
Are you are a stable release yet? The new versions have been slower, which I interpret as a good sign.