Inital commit
This commit is contained in:
28
local/modules/BestSellers/Config/config.xml
Normal file
28
local/modules/BestSellers/Config/config.xml
Normal file
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
|
||||
<config xmlns="http://thelia.net/schema/dic/config"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://thelia.net/schema/dic/config http://thelia.net/schema/dic/config/thelia-1.0.xsd">
|
||||
|
||||
<loops>
|
||||
<loop name="best_selling_products" class="BestSellers\Loop\BestSellerLoop" />
|
||||
</loops>
|
||||
|
||||
<services>
|
||||
<service id="best_sellers.event_listener" class="BestSellers\EventListeners\EventManager">
|
||||
<argument id="thelia.cache" type="service"/>
|
||||
<tag name="kernel.event_subscriber"/>
|
||||
</service>
|
||||
</services>
|
||||
|
||||
<hooks>
|
||||
<hook id="best_sellers.hook.back" class="BestSellers\Hook\HookManager">
|
||||
<tag name="hook.event_listener" event="main.top-menu-tools" type="back" method="onMainTopMenuTools" />
|
||||
<tag name="hook.event_listener" event="product.modification.form-right.bottom" type="back" templates="render:product-edit.html" />
|
||||
</hook>
|
||||
|
||||
<hook id="best_sellers.hook.front">
|
||||
<tag name="hook.event_listener" event="home.body" templates="render:home-body.html" />
|
||||
</hook>
|
||||
</hooks>
|
||||
</config>
|
||||
31
local/modules/BestSellers/Config/module.xml
Normal file
31
local/modules/BestSellers/Config/module.xml
Normal file
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module xmlns="http://thelia.net/schema/dic/module"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://thelia.net/schema/dic/module http://thelia.net/schema/dic/module/module-2_2.xsd">
|
||||
<fullnamespace>BestSellers\BestSellers</fullnamespace>
|
||||
<descriptive locale="en_US">
|
||||
<title>Display your best sellers on your home page, and get information about products sales</title>
|
||||
</descriptive>
|
||||
|
||||
<descriptive locale="fr_FR">
|
||||
<title>Afficher vos produits les plus vendus sur votre page d'acceuil, et obtenez des détails sur les ventes de vos produits</title>
|
||||
</descriptive>
|
||||
<languages>
|
||||
<language>en_US</language>
|
||||
<language>fr_FR</language>
|
||||
</languages>
|
||||
<version>1.1.1</version>
|
||||
<authors>
|
||||
<author>
|
||||
<name>Franck Allimant</name>
|
||||
<company>CQFDev</company>
|
||||
<email>thelia@cqfdev.fr</email>
|
||||
<website>www.cqfdev.fr</website>
|
||||
</author>
|
||||
</authors>
|
||||
<type>classic</type>
|
||||
<thelia>2.3.4</thelia>
|
||||
<stability>prod</stability>
|
||||
<mandatory>0</mandatory>
|
||||
<hidden>0</hidden>
|
||||
</module>
|
||||
6
local/modules/BestSellers/Config/routing.xml
Normal file
6
local/modules/BestSellers/Config/routing.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
|
||||
<routes xmlns="http://symfony.com/schema/routing"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://symfony.com/schema/routing http://symfony.com/schema/routing/routing-1.0.xsd">
|
||||
</routes>
|
||||
Reference in New Issue
Block a user