-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit a6d5ce9
Showing
243 changed files
with
35,070 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# These are some examples of commonly ignored file patterns. | ||
# You should customize this list as applicable to your project. | ||
# Learn more about .gitignore: | ||
# https://www.atlassian.com/git/tutorials/saving-changes/gitignore | ||
|
||
# Node artifact files | ||
node_modules/ | ||
dist/ | ||
|
||
# Compiled Java class files | ||
*.class | ||
|
||
# Compiled Python bytecode | ||
*.py[cod] | ||
|
||
# Log files | ||
*.log | ||
|
||
# Package files | ||
*.jar | ||
|
||
# Maven | ||
target/ | ||
dist/ | ||
|
||
# JetBrains IDE | ||
.idea/ | ||
|
||
# Unit test reports | ||
TEST*.xml | ||
|
||
# Generated by MacOS | ||
.DS_Store | ||
|
||
# Generated by Windows | ||
Thumbs.db | ||
|
||
# Applications | ||
*.app | ||
*.exe | ||
*.war | ||
|
||
# Large media files | ||
*.mp4 | ||
*.tiff | ||
*.avi | ||
*.flv | ||
*.mov | ||
*.wmv | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
# This is a fix for InnoDB in MySQL >= 4.1.x | ||
# It "suspends judgement" for fkey relationships until are tables are set. | ||
SET FOREIGN_KEY_CHECKS = 0; | ||
|
||
-- --------------------------------------------------------------------- | ||
-- shopimind | ||
-- --------------------------------------------------------------------- | ||
|
||
DROP TABLE IF EXISTS `shopimind`; | ||
|
||
CREATE TABLE `shopimind` | ||
( | ||
`id` INTEGER NOT NULL AUTO_INCREMENT, | ||
`api_id` VARCHAR(255), | ||
`api_password` VARCHAR(255), | ||
`real_time_synchronization` TINYINT(1), | ||
`cache_control` TINYINT(1), | ||
`nominative_reductions` TINYINT(1), | ||
`cumulative_vouchers` TINYINT(1), | ||
`out_of_stock_product_disabling` TINYINT(1), | ||
`email_product_image_format` VARCHAR(255), | ||
`synchronize_newsletter_subscribers` TINYINT(1), | ||
`script_tag` TINYINT(1), | ||
`is_connected` TINYINT(1), | ||
`log` TINYINT(1), | ||
PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB; | ||
|
||
# This restores the fkey checks, after having unset them earlier | ||
SET FOREIGN_KEY_CHECKS = 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<?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> | ||
<!-- sample definition | ||
<loop name="MySuperLoop" class="Shopimind\Loop\MySuperLoop" /> | ||
--> | ||
</loops> | ||
|
||
<forms> | ||
<!-- | ||
<form name="MyFormName" class="Shopimind\Form\MySuperForm" /> | ||
--> | ||
</forms> | ||
|
||
<commands> | ||
<!-- | ||
<command class="Shopimind\Command\MySuperCommand" /> | ||
--> | ||
</commands> | ||
|
||
<!-- | ||
<services> | ||
</services> | ||
--> | ||
|
||
<hooks> | ||
<hook id="shopimind.hook.config"> | ||
<tag name="hook.event_listener" event="module.configuration" type="back" templates="render:module_configuration.html" /> | ||
</hook> | ||
<hook id="shopimind.hook.tagFooter" class="Shopimind\Hook\ShopimindHook"> | ||
<tag name="hook.event_listener" event="main.content-bottom" method="addScriptTagFooter" type="front"/> | ||
</hook> | ||
</hooks> | ||
|
||
<!-- | ||
<exports> | ||
</exports> | ||
--> | ||
|
||
<!-- | ||
<imports> | ||
</imports> | ||
--> | ||
|
||
</config> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?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> | ||
<!-- sample definition | ||
<loop name="MySuperLoop" class="Shopimind\Loop\MySuperLoop" /> | ||
--> | ||
</loops> | ||
|
||
<forms> | ||
<!-- | ||
<form name="MyFormName" class="Shopimind\Form\MySuperForm" /> | ||
--> | ||
</forms> | ||
|
||
<commands> | ||
<!-- | ||
<command class="Shopimind\Command\MySuperCommand" /> | ||
--> | ||
</commands> | ||
|
||
<!-- | ||
<services> | ||
</services> | ||
--> | ||
|
||
<!-- | ||
<hooks> | ||
<hook id="shopimind.hook" class="Shopimind\Hook\MySuperHook"> | ||
<tag name="hook.event_listener" event="main.body.bottom" type="front|back|pdf|email" method="onMainBodyBottom" /> | ||
</hook> | ||
</hooks> | ||
--> | ||
|
||
<!-- | ||
<exports> | ||
</exports> | ||
--> | ||
|
||
<!-- | ||
<imports> | ||
</imports> | ||
--> | ||
</config> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?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>Shopimind\Shopimind</fullnamespace> | ||
<descriptive locale="en_US"> | ||
<title>Shopimind</title> | ||
<description>Relaunch your abandoned carts, contact your prospects, build customer loyalty. Shopimind allows you to automate your customer relationships and increase your sales.</description> | ||
</descriptive> | ||
<descriptive locale="fr_FR"> | ||
<title>Shopimind</title> | ||
<description>Relancer vos paniers abandonnés, contacter vos prospects, fidéliser vos clients. Shopimind vous permet d\'automatiser votre relation client et d\'augmenter votre chiffre d\'affaires.</description> | ||
</descriptive> | ||
<!-- <logo></logo> --> | ||
<!--<images-folder>images</images-folder>--> | ||
<languages> | ||
<language>en_US</language> | ||
<language>fr_FR</language> | ||
</languages> | ||
<version>1.0.0</version> | ||
<authors> | ||
<author> | ||
<name></name> | ||
<email></email> | ||
</author> | ||
</authors> | ||
<type>classic</type> | ||
<!-- | ||
module dependencies | ||
<required> | ||
<module version=">=0.1">Front</module> | ||
<module version="~1.0">HookCart</module> | ||
<module version=">0.2">HookSearch</module> | ||
</required> | ||
--> | ||
<thelia>2.5.0</thelia> | ||
<stability>other</stability> | ||
<mandatory>0</mandatory> | ||
<hidden>0</hidden> | ||
</module> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
<?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"> | ||
|
||
<!-- Webhook --> | ||
<route id="shopimind.configuration" path="/admin/module/shopimind/configuration" methods="post"> | ||
<default key="_controller">Shopimind\Controller\ConfigurationController::saveConfiguration</default> | ||
</route> | ||
|
||
<route id="shopimind.create-customer" path="/shopimind/customers" methods="post"> | ||
<default key="_controller">Shopimind\SpmWebHook\SpmCustomers::createCustomer</default> | ||
</route> | ||
|
||
<route id="shopimind.create-voucher" path="/shopimind/vouchers" methods="post"> | ||
<default key="_controller">Shopimind\SpmWebHook\SpmVouchers::createVoucher</default> | ||
</route> | ||
|
||
<route id="shopimind.subscribe-customer" path="/shopimind/subscribe-customer" methods="post"> | ||
<default key="_controller">Shopimind\SpmWebHook\SpmSubscribeCustomer::subscribeCustomer</default> | ||
</route> | ||
|
||
<!-- Workers --> | ||
<route id="shopimind.workers.web-push-service" path="/shopimind/web-push-service-worker.js" methods="get"> | ||
<default key="_controller">Shopimind\Workers\WebPushServiceWorker::serveFile</default> | ||
</route> | ||
|
||
<route id="shopimind.workers.platform" path="/shopimind/platform.js" methods="get"> | ||
<default key="_controller">Shopimind\Workers\Platform::serveFile</default> | ||
</route> | ||
|
||
<!-- Passive synchronization --> | ||
<route id="shopimind.passive-synchronization" path="/shopimind/synchronize" methods="post"> | ||
<default key="_controller">Shopimind\PassiveSynchronization\RequestHandler::requestController</default> | ||
</route> | ||
|
||
<route id="shopimind.sync.customers" path="/shopimind/sync-customers" methods="post"> | ||
<default key="_controller">Shopimind\PassiveSynchronization\SyncCustomers::syncCustomers</default> | ||
</route> | ||
|
||
<route id="shopimind.sync.customers-addresses" path="/shopimind/sync-customers-addresses" methods="post"> | ||
<default key="_controller">Shopimind\PassiveSynchronization\SyncCustomersAddresses::syncCustomersAddresses</default> | ||
</route> | ||
|
||
<route id="shopimind.sync.newsletter-subscribers" path="/shopimind/sync-newsletter-subscribers" methods="post"> | ||
<default key="_controller">Shopimind\PassiveSynchronization\SyncNewsletterSubscribers::syncNewsletterSubscribers</default> | ||
</route> | ||
|
||
<route id="shopimind.sync.orders" path="/shopimind/sync-orders" methods="post"> | ||
<default key="_controller">Shopimind\PassiveSynchronization\SyncOrders::syncOrders</default> | ||
</route> | ||
|
||
<route id="shopimind.sync.order-status" path="/shopimind/sync-orders-statuses" methods="post"> | ||
<default key="_controller">Shopimind\PassiveSynchronization\SyncOrderStatus::syncOrderStatus</default> | ||
</route> | ||
|
||
<route id="shopimind.sync.products" path="/shopimind/sync-products" methods="post"> | ||
<default key="_controller">Shopimind\PassiveSynchronization\SyncProducts::syncProducts</default> | ||
</route> | ||
|
||
<route id="shopimind.sync.products-categories" path="/shopimind/sync-products-categories" methods="post"> | ||
<default key="_controller">Shopimind\PassiveSynchronization\SyncProductsCategories::syncProductsCategories</default> | ||
</route> | ||
|
||
<route id="shopimind.sync.products-images" path="/shopimind/sync-products-images" methods="post"> | ||
<default key="_controller">Shopimind\PassiveSynchronization\SyncProductsImages::syncProductsImages</default> | ||
</route> | ||
|
||
<route id="shopimind.sync.products-variations" path="/shopimind/sync-products-variations" methods="post"> | ||
<default key="_controller">Shopimind\PassiveSynchronization\SyncProductsVariations::syncProductsVariations</default> | ||
</route> | ||
|
||
<route id="shopimind.sync.products-manufacturers" path="/shopimind/sync-products-manufacturers" methods="post"> | ||
<default key="_controller">Shopimind\PassiveSynchronization\SyncProductsManufacturers::syncProductsManufacturers</default> | ||
</route> | ||
|
||
<route id="shopimind.sync.vouchers" path="/shopimind/sync-vouchers" methods="post"> | ||
<default key="_controller">Shopimind\PassiveSynchronization\SyncVouchers::syncVouchers</default> | ||
</route> | ||
</routes> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<database defaultIdMethod="native" name="TheliaMain" | ||
namespace="Shopimind\Model" > | ||
<table name="shopimind"> | ||
<column name="id" type="INTEGER" primaryKey="true" autoIncrement="true" /> | ||
<column name="api_id" type="VARCHAR" size="255" /> | ||
<column name="api_password" type="VARCHAR" size="255" /> | ||
<column name="real_time_synchronization" type="BOOLEAN" /> | ||
<column name="nominative_reductions" type="BOOLEAN" /> | ||
<column name="cumulative_vouchers" type="BOOLEAN" /> | ||
<column name="out_of_stock_product_disabling" type="BOOLEAN" /> | ||
<column name="script_tag" type="BOOLEAN" /> | ||
<column name="is_connected" type="BOOLEAN" /> | ||
<column name="log" type="BOOLEAN" /> | ||
</table> | ||
<external-schema filename="local/config/schema.xml" referenceOnly="true" /> | ||
</database> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
SET FOREIGN_KEY_CHECKS = 0; | ||
|
||
DROP TABLE IF EXISTS `shopimind`; | ||
|
||
SET FOREIGN_KEY_CHECKS = 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Sqlfile -> Database map | ||
TheliaMain.sql=TheliaMain |
Oops, something went wrong.