View Single Post
  #2  
Old 02-25-2005, 04:33 PM
  BCSE's Avatar 
BCSE BCSE is offline
 

X-Guru
  
Join Date: Apr 2003
Location: Ohio - bcsengineering.com
Posts: 3,091
 

Default

I think what you are reading is for 4.0.x In 3.x you will need to do some php manipulation to get the data you want. You'll need to parse the category name to find the parent category name, then get the category id from there.

For example if you have this category:
Quote:
Electronics/TV's/Plasma TV's
the parent category is:
Quote:
Electronics/TV's

To get that in php you'll need to use one (or more!) of the php string functions. Once you have the parent category name, you can select from the mysql the parent categoryid.

I hope that makes sense. I did some interesting parent category manipulation in this thread:
http://forum.x-cart.com/viewtopic.php?t=11857&postdays=0&postorder=asc&hig hlight=categories&start=15

Hope that helps you get started!

Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002!

We support X-cart versions 3.x through 5.x!

Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more!


Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com

Please E-Mail us for questions/support!
Reply With Quote