| @@ -2,20 +2,29 @@ | ||
| 2 | 2 | |
| 3 | 3 | namespace TierPricingTable\Addons; |
| 4 | 4 | |
| 5 | 5 | use TierPricingTable\Addons\AdvancedQuantityOptions\AdvancedQuantityOptionsAddon; |
| 6 | +use TierPricingTable\Addons\CartUpsells\CartUpsellsAddon; | |
| 7 | +use TierPricingTable\Addons\CatalogPrices\CatalogPricesAddon; | |
| 6 | 8 | use TierPricingTable\Addons\CategoryTiers\CategoryTierAddon; |
| 7 | 9 | use TierPricingTable\Addons\Coupons\CouponsAddon; |
| 8 | 10 | use TierPricingTable\Addons\CustomColumns\CustomColumnsAddon; |
| 9 | 11 | use TierPricingTable\Addons\GlobalTieredPricing\GlobalTieredPricingAddon; |
| 12 | +use TierPricingTable\Addons\LayoutConfigurator\LayoutConfiguratorAddon; | |
| 10 | 13 | use TierPricingTable\Addons\ManualOrders\ManualOrdersAddon; |
| 11 | 14 | use TierPricingTable\Addons\MinQuantity\MinQuantity; |
| 15 | +use TierPricingTable\Addons\NonLoggedInUsers\NonLoggedInUsersAddon; | |
| 12 | 16 | use TierPricingTable\Addons\PluginsRecommendations\PluginsRecommendationsAddon; |
| 17 | +use TierPricingTable\Addons\PricingSummary\PricingSummaryAddon; | |
| 13 | 18 | use TierPricingTable\Addons\ProductCatalogLoop\ProductCatalogLoop; |
| 14 | 19 | use TierPricingTable\Addons\ReactProductEditorAddon\ReactProductEditorAddon; |
| 15 | 20 | use TierPricingTable\Addons\RoleBasedPricing\RoleBasedPricingAddon; |
| 21 | +use TierPricingTable\Addons\UserBasedPricing\UserBasedPricingAddon; | |
| 22 | +use TierPricingTable\Addons\TaxSettings\TaxSettingsAddon; | |
| 23 | +use TierPricingTable\Addons\TieredPricingCart\TieredPricingCartAddon; | |
| 16 | 24 | use TierPricingTable\Addons\TierLabels\TierLabelsAddon; |
| 17 | 25 | use TierPricingTable\Addons\Tools\ToolsAddon; |
| 26 | +use TierPricingTable\Addons\YouSave\YouSaveAddon; | |
| 18 | 27 | use TierPricingTable\Core\ServiceContainerTrait; |
| 19 | 28 | class Addons { |
| 20 | 29 | use ServiceContainerTrait; |
| 21 | 30 | /** |
| @@ -26,20 +35,31 @@ | ||
| 26 | 35 | } |
| 27 | 36 | |
| 28 | 37 | public function init() { |
| 29 | 38 | $addons = array( |
| 30 | - ManualOrdersAddon::class => new ManualOrdersAddon(), | |
| 31 | - GlobalTieredPricingAddon::class => new GlobalTieredPricingAddon(), | |
| 32 | - CouponsAddon::class => new CouponsAddon(), | |
| 33 | - RoleBasedPricingAddon::class => new RoleBasedPricingAddon(), | |
| 34 | - CategoryTierAddon::class => new CategoryTierAddon(), | |
| 35 | - AdvancedQuantityOptionsAddon::class => new AdvancedQuantityOptionsAddon(), | |
| 36 | - PluginsRecommendationsAddon::class => new PluginsRecommendationsAddon(), | |
| 37 | - CustomColumnsAddon::class => new CustomColumnsAddon(), | |
| 38 | - ProductCatalogLoop::class => new ProductCatalogLoop(), | |
| 39 | - ReactProductEditorAddon::class => new ReactProductEditorAddon(), | |
| 40 | - TierLabelsAddon::class => new TierLabelsAddon(), | |
| 41 | - ToolsAddon::class => new ToolsAddon(), | |
| 39 | + ManualOrdersAddon::class => new ManualOrdersAddon(), | |
| 40 | + GlobalTieredPricingAddon::class => new GlobalTieredPricingAddon(), | |
| 41 | + CouponsAddon::class => new CouponsAddon(), | |
| 42 | + RoleBasedPricingAddon::class => new RoleBasedPricingAddon(), | |
| 43 | + UserBasedPricingAddon::class => new UserBasedPricingAddon(), | |
| 44 | + CategoryTierAddon::class => new CategoryTierAddon(), | |
| 45 | + AdvancedQuantityOptionsAddon::class => new AdvancedQuantityOptionsAddon(), | |
| 46 | + PluginsRecommendationsAddon::class => new PluginsRecommendationsAddon(), | |
| 47 | + CustomColumnsAddon::class => new CustomColumnsAddon(), | |
| 48 | + ProductCatalogLoop::class => new ProductCatalogLoop(), | |
| 49 | + ReactProductEditorAddon::class => new ReactProductEditorAddon(), | |
| 50 | + LayoutConfiguratorAddon::class => new LayoutConfiguratorAddon(), | |
| 51 | + TaxSettingsAddon::class => new TaxSettingsAddon(), | |
| 52 | + TierLabelsAddon::class => new TierLabelsAddon(), | |
| 53 | + ToolsAddon::class => new ToolsAddon(), | |
| 54 | + CatalogPricesAddon::class => new CatalogPricesAddon(), | |
| 55 | + TieredPricingCartAddon::class => new TieredPricingCartAddon(), | |
| 56 | + YouSaveAddon::class => new YouSaveAddon(), | |
| 57 | + CartUpsellsAddon::class => new CartUpsellsAddon(), | |
| 58 | + PricingSummaryAddon::class => new PricingSummaryAddon(), | |
| 59 | + NonLoggedInUsersAddon::class => new NonLoggedInUsersAddon(), | |
| 60 | + \TierPricingTable\Addons\ImportExport\ImportExportAddon::class => new \TierPricingTable\Addons\ImportExport\ImportExportAddon(), | |
| 61 | + \TierPricingTable\Addons\RequestAQuote\RequestAQuoteAddon::class => new \TierPricingTable\Addons\RequestAQuote\RequestAQuoteAddon(), | |
| 42 | 62 | ); |
| 43 | 63 | $addons = apply_filters( 'tiered_pricing_table/addons/list', $addons ); |
| 44 | 64 | foreach ( $addons as $addon ) { |
| 45 | 65 | if ( $addon->isEnabled() ) { |