CodeExplorer sCategoryPathByProductId example
public function sSmartyCategoryPath($params) { $parts = null;
if (!
empty($params['articleID'
])) { $parts =
$this->
sCategoryPathByProductId( $params['articleID'
],
isset($params['categoryID'
]) ?
$params['categoryID'
] : null
);
} elseif (!
empty($params['categoryID'
])) { $parts =
$this->
sCategoryPath($params['categoryID'
]);
} if (empty($params['separator'
])) { $params['separator'
] = '/';
} if (!
empty($parts)) { foreach ($parts as &
$part) {