Skip to content

Commit

Permalink
Top Products Widget, Caching and Number Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
bymayo committed Oct 30, 2018
1 parent 79c508b commit 4ec182f
Show file tree
Hide file tree
Showing 28 changed files with 415 additions and 128 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Commerce Widgets Changelog

## 2.0.9 - 2018-10-30
### Added
- *New Widget* Top Products Widget - See your top products ordered by Revenue or # Ordered
- Cache to queries to speed up the CMS
- `cacheDuration` setting in plugin settings.
- Added FontAwesome to some widget templates

### Changed
- Changed the class of the `RecentProducts` to `ProductsRecent` to keep widgets organised going forward.

### Fixed
- Number formatting across all widgets now formats when the value is more than 2 numbers

## 2.0.8 - 2018-10-15
### Changed
- Charts are now flexible to larger browsers
Expand Down
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,20 @@ Most of the widgets come with settings. Make sure you check the settings on each
</td>
</tr>
<tr>
<td>Recent Products</td>
<td>RecentProducts</td>
<td>See what products were recently added to your store.</td>
<td>
Limit
</td>
</tr>
<tr>
<td>Top Products</td>
<td>See what products have been ordered the most based on # revenue or # orders.</td>
<td>
Order By<br>
Limit
</td>
</tr>
<tr>
<td>Subscription Plans</td>
<td>An overview of your subscription plans</td>
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "bymayo/commerce-widgets",
"description": "Insightful dashboard widgets for your Craft Commerce 2 store.",
"type": "craft-plugin",
"version": "2.0.8",
"version": "2.0.9",
"keywords": [
"craft",
"cms",
Expand Down
142 changes: 67 additions & 75 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"gulp-concat": "^2.6.1",
"gulp-notify": "^3.2.0",
"gulp-plumber": "^1.2.0",
"gulp-sass": "^4.0.1",
"gulp-sass": "^4.0.2",
"gulp-sourcemaps": "^2.6.4"
}
},
"devDependencies": {}
}
5 changes: 3 additions & 2 deletions src/CommerceWidgets.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class CommerceWidgets extends Plugin
/**
* @var string
*/
public $schemaVersion = '2.0.0';
public $schemaVersion = '2.0.1';

// Public Methods
// =========================================================================
Expand All @@ -67,7 +67,8 @@ public function init()
Dashboard::EVENT_REGISTER_WIDGET_TYPES,
function (RegisterComponentTypesEvent $event) {

$event->types[] = \bymayo\commercewidgets\widgets\RecentProducts::class;
$event->types[] = \bymayo\commercewidgets\widgets\ProductsRecent::class;
$event->types[] = \bymayo\commercewidgets\widgets\ProductsTop::class;
$event->types[] = \bymayo\commercewidgets\widgets\CartAbandonment::class;
$event->types[] = \bymayo\commercewidgets\widgets\TotalRevenueOrders::class;
$event->types[] = \bymayo\commercewidgets\widgets\TopCustomers::class;
Expand Down
Loading

0 comments on commit 4ec182f

Please sign in to comment.