Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion integrations/klaviyo/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ Klaviyo.prototype.orderCompleted = function(track) {
$value: track.revenue(),
Categories: products.categories,
ItemNames: products.names,
Items: products.items
Items: products.items,
total: track.total()
};

var whitelist = [
Expand Down
3 changes: 3 additions & 0 deletions integrations/klaviyo/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ describe('Klaviyo', function() {
$value: 25,
Categories: ['Games', 'Interwebs'],
ItemNames: ['Monopoly: 3rd Edition', 'Suh dude'],
total: 30,
Items: [
{
id: '507f1f77bcf86cd799439011',
Expand Down Expand Up @@ -291,6 +292,7 @@ describe('Klaviyo', function() {
$value: 25,
Categories: ['Games'],
ItemNames: ['Monopoly: 3rd Edition'],
total: 30,
Items: [
{
id: '507f1f77bcf86cd799439011',
Expand Down Expand Up @@ -452,6 +454,7 @@ describe('Klaviyo', function() {
$value: 25,
Categories: ['Games', 'Interwebs'],
ItemNames: ['Monopoly: 3rd Edition', 'Suh dude'],
total: 30,
Items: [
{
id: '507f1f77bcf86cd799439011',
Expand Down