Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create rewrites for all stores in the "On the fly indexer" plugin when using categories #186

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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