wendallsan Posted October 28, 2007 Posted October 28, 2007 Hi all, I am developing a store using OSCommerce and my customer has a request to add descriptions to categories other than the 'main' or 'home' category. I see that the querystring argument "cPath" seems to be the thing that identifies what category the user is viewing, and without that argument, osCommerse defaults to the "main" page. Now I see in the /index.php code (main oscommerce store page) where it pulls content from the TEXT_MAIN variable defined in /includes/languages/english/index.php. What I'd like to do is add several other variables similar to TEXT_MAIN and then test to see if the user is at the "root" level of some of the subcategories. If they are, and the don't have a product selected, I'd like to display a description of the store category above the items listed in the category, somewhat similar to how the "main" page looks (except the main area has no products in it, so only the "new items" are displayed below). Only problem is I can't figure out how /index.php handles the cPath argument and how to add another bit of script to handle if the cPath points to a category to add that exta description. I would greatly appreciate any help in doing this. Thanks!
Guest Posted October 28, 2007 Posted October 28, 2007 If you check this contribution http://www.oscommerce.com/community/contri...Description+v.2 Although it doesn't do exactly what you want, I found that it helped me see how I could do many other changes in Oscommerce and think it'll help you out.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.