Hi,
I've got this mod installed and running. Works great. I've also created a custom Product Type because the products we're going to be selling have some fairly specific information that we need to list. The mod isn't working for the new Product Type.
I see that the documentation states that it works for all the standard Zencart product types and the new Book product type. Is there any documentation that points out what files need changing (and what needs changing on those files) to get the mod working for custom product types?
Happy to have a bash at it myself, but would rather not jump in without even a hint of which files I should / shouldn't be looking at. Is there documentation available on this at all?
Thanks.
If it were me, I'd start with comparing all the files that comprise your custom product type and comparing them with their default equivalents that are in the Ceon URI package.. Be nice if you shared details of your outcome with the community.. Some of us may find the information useful..
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
You will need to create appropriate files in a folder named like:Hi,
I've got this mod installed and running. Works great. I've also created a custom Product Type because the products we're going to be selling have some fairly specific information that we need to list. The mod isn't working for the new Product Type.
I see that the documentation states that it works for all the standard Zencart product types and the new Book product type. Is there any documentation that points out what files need changing (and what needs changing on those files) to get the mod working for custom product types?
Happy to have a bash at it myself, but would rather not jump in without even a hint of which files I should / shouldn't be looking at. Is there documentation available on this at all?
Thanks.
admin/modules/custom_product
if you look at the code for this mod you'll see what you need to do. Also it's all very well commented :)
Hi,
I've actually done both of the above already, going through the new product type files and updating similarly to the default product type files - and double checking against the music product type files.
Part of it is working ... I should have mentioned that. If I go in via the admin, add some product info, select the URI auto-generation checkbox and save, it all seems to work i.e. no errors, and when I go back in and look at the product, it has indeed saved a friendly URL.
When I go directly to that URL in my browser, typing in the friendly URL, the product also loads, so that part works as well.
It's the bit in the middle that doesn't seem to be working. It doesn't auto update the link on the website. If I click on that product on the front end, it loads the old URL, not the new one. The more I'm thinking about it, the more it seems like I've probably missed something in one of the custom prod type files, but i've been through several times now and they look identical to the standard types.
I wondered therefor if there was another step I've perhaps missed. Maybe something to do with declaring a new product type in the URI tool itself?
I notice, for example, that there is a file called "ceon_uri_mapping_filenames.php" which appears to list product types. Should I be adding something in here? and are there other files like this that I should be editing.
My main check has been to search all the CEON files for "FILENAME_PRODUCT_MUSIC_INFO" which is one of the lines in the above file. The theory being that if I then customise it in all files that are found, then it might work. I'm just not sure if that'd be the case, so hoped someone might have some input.
Success ... it's now working. I followed through on my idea of searching for instances of FILENAME_PRODUCT_MUSIC_INFO in the CEON files and, on each instance, added an instance for my own Product Type. So, if your product type was Juice, you'd want to be adding in instances of FILENAME_PRODUCT_JUICE_INFO.
For those interested in creating a new Product Type, I used a mixture of following the instructions on here: http://www.zen-cart.com/wiki/index.php/Product_Types and by looking at the Music Type databases.
From above, take a note of all the extra files you've had to create (both in admin and front end). Once done, install the CEON URI module as normal. Then, under all your new custom product type files, ensure you copy in the required lines of code in the same place as they've been copied in the default product type files.
After that, all I did was search the CEON module for instances of "FILENAME_PRODUCT_MUSIC_INFO", which is where the mod looks for instances of the music product type (and all others), and added in my own. In total I found 9 instances. There were actually another 8, but these were under the "modified_core_files" directory and relate to historic versions of ZenCart. I only update the one relevant to me.
At this point, it all seems to work exactly as expected.
Dear Conor,
many thanks for your great mod! really.
we are using 4.08 on 1.39h with multi-languages. so the problem is that,
how to set the rewirte rules in .htaccess file for sub-folder installation?
as we want to use www.aaa.com(installed in root folder) for english, and www.aaa.com/sub-folder/ for french
appreciated again![]()
Hi Conor
If I disable your mod via configuration do I need to remove anything fro m my .htaccess file as when I create a new sitemap.xml it comes back as a blank file.
Thank you in advance.
Bookmarks