View Single Post
  #4  
Old 01-27-2013, 05:25 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Passing Category Clean URL

Okay. Now I understand. That is going to be difficult, I'm afraid.

You are going to have to query the DB, and assign the product's category's clean URL to an array. I think I can put you on the right track. On the product page, it looks like the $location array is being built near line 292, with this snippet of code:
Code:
// Get category location if ( $cat > 0 && $current_category = func_get_category_data($cat) ) { if (is_array($current_category['category_location'])) { foreach ($current_category['category_location'] as $k => $v) { $location[] = $v; } } }
Recursively search your files for that function "func_get_category_data", hopefully you can understand it's operation enough to add the Clean URL to the array, rather than the home.php?cat=123 that is currently being passed.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote