Zenid must be there in the first visit, so it is not really a bug.
But product type not working is a bug, let me know what did you do to fix it.
Regards
Printable View
I have custom product types defined. In the old SSU there was init_ssu.php with this code:
Editing this worked ok. The link contained a correct products_identifiersCode:function simple_seo_url(){
// This is here to support multiple product types shorthand links
// if you want to add support for your custom type, first you have to go to your database and check table products_types
$this->products_handlers = array('1'=> 'product_info',
'2'=> 'product_some_info',
'3'=> 'product_some_other_info',
'4'=> 'document_product_info',
'5'=> 'product_free_shipping_info'
);
$this->products_identifiers = array('1'=> SSU_ID_DELIMITER.'p'.SSU_ID_DELIMITER,
'2'=> SSU_ID_DELIMITER.'m'.SSU_ID_DELIMITER,
'3'=> SSU_ID_DELIMITER.'e'.SSU_ID_DELIMITER,
'4'=> SSU_ID_DELIMITER.'d'.SSU_ID_DELIMITER,
'5'=> SSU_ID_DELIMITER.'f'.SSU_ID_DELIMITER
);
After upgrading to 3.3.6 editing this part of config.php:
didn't have any affect. 'p' kept appearing in all product links and product types were not switching. All product displayed under "product_info" type template. Maybe i missed something in the upgrade process, could be.Code:'identifiers' => array( 'products' => array( 'product_info' => 'p',
'product_some_info' => 'e',
'product_some_other_info' => 'm',
'document_product_info' => 'd',
'product_free_shipping_info' => 'f',
'document_website_info' => 'w',
I didn't go deep into figuring out how parsers work, but editing "getName" function in products.php helped my case. i replaced the "$identifiers[self::$main_page]" with a small "case ..." structure with correct identifiers. This is a weird way to fix this i guess
Got ya. I wasn't sure about the purpose of zenid.
A bug it is, but the fix is much more simpler. I have updated the products.php parser for you here.
I will also update SSU to add this fix. Thank you very much for letting me know the bug and the solution.
PS: anyone who is using 3+ version is encouraged to upgrade to 3.3.7 to have the latest fixes, but some of these bugs wont affect your site unless:
1. You are not using multi language mode(fixed in 3.3.6)
2. You are not using any other product types (other that the default general one) (fixed in 3.3.7)
@ Chris Rama: changing local.config.php will be better than changing the default config file btw. In later versions I will not include local.config.php in there so this file will not be overwriten when you upgrade.
While torturing my test site, i've noticed another thing: Old SSU took care of inappropriate symvols when converting product name to url. If a product name contained commas, brackets and stuff like that, it ignored that in order to make clean url. The 3.3.x just passes that along into the link. Some sort of a bug too
Also i had a test product with a blank name. in Old SSU the link looked like [category]/-p-[product_num] . The 3.3.x converts it differently [category]/product_name-p-[product_num]
This is a more appropriate way to handle it (from my pov), instead of leaving a blank field there.
SSU 3+ leaves much parsing job in your hand (since removing non alphanumeric characters can destroy the names of those sites that use multi-lang names). But I will make sure those names are handled more properly in the future.
No, it doesnt have to be in the links (Assuming you are using 3.3.7)
You can use link-alias to do that. The only drawback is that you have to do it manually for each link.
The id in the categories can go away if you want to, assuming you dont have too many categories.
An automate process is planned for future release.
BTW, I meant to say "manually for each name", not link. Watch the link-alias video tutorial and you will understand.