DannyVarley:
Custom Product Types
Hi Guys,
Just want to put this in here in case it helps anyone in the future as I could not find the answer in the docs.
If you have made any custom product types (e.g product_car) you will need to add that into the file /includes/extra_datafiles/ceon_uri_mapping_product_pages.php or else these will not output on your page correctly.
For Example
$ceon_uri_mapping_product_pages = array_merge(array(
FILENAME_DOCUMENT_GENERAL_INFO,
FILENAME_DOCUMENT_PRODUCT_INFO,
FILENAME_PRODUCT_INFO,
[B]FILENAME_PRODUCT_CAR_INFO,[/B]
FILENAME_PRODUCT_BOOK_INFO,
FILENAME_PRODUCT_FREE_SHIPPING_INFO,
FILENAME_PRODUCT_MUSIC_INFO
), $ceon_uri_mapping_product_pages);
Or you could do something that doesn't require modifying the existing code (which would likely be included on some future update) like adding another file: includes/extra_datafiles/ceon_uri_mapping_added_product_pages.php or:
includes/extra_datafiles/ceon_uri_mapping_car_product_pages.php
<?php
/**
* These are pages in addition to those assigned to support Ceon URI Mapping.
**/
// ensure the variable is declared with expectation of it being an array already.
if (empty($ceon_uri_mapping_product_pages)) $ceon_uri_mapping_product_pages = array();
$ceon_uri_mapping_product_pages[] = FILENAME_PRODUCT_CAR_INFO;
```
Regardless which order the files are loaded, the information would be added together and when/if the Ceon software is updated again in the future, no file merge specifically necessary. For a Zen Cart rebuild, would be an additional file to review for necessity in transferring based on what is installed to the new site. But guess everyone has their preferred method and style.
I like to look for changes and then the impact those changes have on other things, in this area of code if there are no changes that seem to affect the loading of product type pages, then I would not expect to have to search for things that I may have modified/added to support additional product types.