Skip to content
This repository has been archived by the owner on Feb 28, 2018. It is now read-only.

Commit

Permalink
observer
Browse files Browse the repository at this point in the history
  • Loading branch information
faonni committed Jun 11, 2017
1 parent 5c82dda commit ba751b1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
7 changes: 1 addition & 6 deletions Observer/ProductListObserver.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,7 @@ public function execute(Observer $observer)
$select = $collection->getSelect();
$connection = $select->getConnection();

$select
->joinLeft(
['smart_category' => $collection->getTable('faonni_smartcategory_rule')],
'cat_index.category_id = smart_category.rule_id',
[]
)
$select
->joinLeft(
['sale_index' => $collection->getTable('faonni_catalog_product_index_sale')],
join(
Expand Down
20 changes: 18 additions & 2 deletions etc/events.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,24 @@
<?xml version="1.0"?>
<!--
/**
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Faonni
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
*
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade module to newer
* versions in the future.
*
* @package Faonni_SmartCategorySale
* @copyright Copyright (c) 2017 Karliuka Vitalii(karliuka.vitalii@gmail.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
Expand Down

0 comments on commit ba751b1

Please sign in to comment.