Product URI and product catalogs. Get product from different catalogs?
Posted by
rohit on
Aug 11, 2006; 5:42am
URL: http://ofbiz.116.s1.nabble.com/Product-URI-and-product-catalogs-Get-product-from-different-catalogs-tp141340.html
Hi,
How do we get full product links, to get products from different catalogs.
For eg. a link to a product in a catalog, other than the first catalog, returns a product not found error.
http://www.mysite.com/ecommerce/control/product/~category_id=10090/~product_id=8178085739I guess the catalogworker.java file is used to call products. It only works if the catalog ID is included in the URI,
http://www.mysite.com/ecommerce/control/product/~category_id=10090/~product_id=8178085739/~CURRENT_CATALOG_ID=MARKETPLACEIn the catalogworker.java it is mentioned as:
/**
* Retrieves the current prodCatalogId. First it will attempt to find it from a special
* request parameter or session attribute named CURRENT_CATALOG_ID. Failing that, it will
* get the first catalog from the database as specified in getCatalogIdsAvailable().
* If this behavior is undesired, give the user a selectable list of catalogs.
*/
I am not sure if this logic is correct. Should it not get catalod ID for the product instead of getting the first catalod ID from the database. I am not aware if there are any other reasons for doing this.
But this also causes the link in the last products viewed box to break, when a browser views product from different catalogs.
Any suggestions on can we get this fixed.
Rohit