Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,11 @@ public function getItemCategoryIds($pid)
*/
public function getItemCategoryPaths($pid)
{
$sql = "SELECT cce.path as cpath,SUBSTR(cce.path,LOCATE('/',cce.path,3)+1) as cshortpath,csg.default_store_id as store_id,cce.entity_id as catid
$sql = "SELECT cce.path as cpath,SUBSTR(cce.path,LOCATE('/',cce.path,3)+1) as cshortpath,cs.store_id,cce.entity_id as catid
FROM {$this->tns["ccp"]} as ccp
JOIN {$this->tns["cce"]} as cce ON cce.entity_id=ccp.category_id
JOIN {$this->tns["csg"]} as csg ON csg.root_category_id=SUBSTR(SUBSTRING_INDEX(cce.path,'/',2),LOCATE('/',SUBSTRING_INDEX(cce.path,'/',2))+1)
JOIN {$this->tns["cs"]} as cs ON cs.group_id=csg.group_id
WHERE ccp.product_id=?";
$result = $this->selectAll($sql, $pid);
$cpaths = array();
Expand Down