Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 511a512,518
- > $position = $idxAdapter->getCheckSql('ca.category_id=MIN(ce.entity_id)',
- > 'MIN(' . $idxAdapter->quoteIdentifier('cp.position') . ')',
- > 'ROUND((MIN(' . $idxAdapter->quoteIdentifier('ce.position') . ') + 1) * ' .
- > '(MIN(' . $idxAdapter->quoteIdentifier('ce.level') . ') + 1) * 10000, 0) + ' .
- > 'MIN(' . $idxAdapter->quoteIdentifier('cp.position') . ')'
- > );
- >
- 514c521
- < ca.category_id, cp.product_id
- ---
- > ca.category_id, cp.product_id, {$position} as `position`
- 522c529,530
- < $this->insertFromSelect($sql, $anchorProductsTable, array('category_id' , 'product_id'));
- ---
- > $this->insertFromSelect($sql, $anchorProductsTable, array('category_id' , 'product_id', 'position'));
- >
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement