Thanks for the point in the right direction! I'm not used to many of the functions so I've been digging and the solution I have come up with encase anyone comes across this thread:
In my includes/modules/pages/NEWPAGE/header_php.php I have added the following line:
PHP Code:
zen_redirect(zen_href_link(FILENAME_DEFAULT, 'cPath=' . zen_get_generated_category_path_rev(zen_get_products_category_id((int)$_GET['products_id']))));
From what I can tell this does the following
zen_redirect is a function to redirect to another link
zen_href_link is the function to generate zencart links
zen_get_generated_category_path is the function with generates the full cPath when you give it the category id
zen_get_caterogy_id gets the category id from the product id
This seems to work exactly how I need!
Bookmarks