Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
ecommerce
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
ecommerce
Commits
6e61e8c2
Commit
6e61e8c2
authored
Jun 04, 2015
by
Jim Abramson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #125 from edx/jsa/xcom-317
Send product.title instead of course key in segment events.
parents
432c3d7d
c4d277b8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
ecommerce/extensions/checkout/signals.py
+1
-1
ecommerce/extensions/checkout/tests/test_signals.py
+1
-1
ecommerce/extensions/refund/signals.py
+1
-1
ecommerce/tests/mixins.py
+2
-2
No files found.
ecommerce/extensions/checkout/signals.py
View file @
6e61e8c2
...
...
@@ -28,7 +28,7 @@ def track_completed_order(sender, order=None, **kwargs): # pylint: disable=unus
{
'id'
:
line
.
upc
,
'sku'
:
line
.
partner_sku
,
'name'
:
line
.
product
.
attr
.
course_key
,
'name'
:
line
.
product
.
title
,
'price'
:
str
(
line
.
line_price_excl_tax
),
'quantity'
:
line
.
quantity
,
'category'
:
line
.
product
.
get_product_class
()
.
name
,
...
...
ecommerce/extensions/checkout/tests/test_signals.py
View file @
6e61e8c2
...
...
@@ -39,7 +39,7 @@ class EdxOrderPlacementMixinTests(BusinessIntelligenceMixin, TestCase):
structure
=
'child'
,
parent
=
parent_product
,
)
child_product
.
attr
.
course_key
=
'
test
-course-key'
child_product
.
attr
.
course_key
=
'
dummy
-course-key'
child_product
.
save
()
# create test user and set up basket / order
...
...
ecommerce/extensions/refund/signals.py
View file @
6e61e8c2
...
...
@@ -31,7 +31,7 @@ def track_completed_refund(sender, refund=None, **kwargs): # pylint: disable=un
{
'id'
:
line
.
order_line
.
upc
,
'sku'
:
line
.
order_line
.
partner_sku
,
'name'
:
line
.
order_line
.
product
.
attr
.
course_key
,
'name'
:
line
.
order_line
.
product
.
title
,
'price'
:
str
(
line
.
line_credit_excl_tax
),
'quantity'
:
-
1
*
line
.
quantity
,
'category'
:
line
.
order_line
.
product
.
get_product_class
()
.
name
,
...
...
ecommerce/tests/mixins.py
View file @
6e61e8c2
...
...
@@ -180,7 +180,7 @@ class BusinessIntelligenceMixin(object):
for
line
in
lines
:
tracked_product
=
tracked_products_dict
.
get
(
line
.
partner_sku
)
self
.
assertIsNotNone
(
tracked_product
)
self
.
assertEqual
(
line
.
product
.
attr
.
course_key
,
tracked_product
[
'name'
])
self
.
assertEqual
(
line
.
product
.
title
,
tracked_product
[
'name'
])
self
.
assertEqual
(
str
(
line
.
line_price_excl_tax
),
tracked_product
[
'price'
])
self
.
assertEqual
(
line
.
quantity
,
tracked_product
[
'quantity'
])
self
.
assertEqual
(
line
.
product
.
get_product_class
()
.
name
,
tracked_product
[
'category'
])
...
...
@@ -190,7 +190,7 @@ class BusinessIntelligenceMixin(object):
for
line
in
lines
:
tracked_product
=
tracked_products_dict
.
get
(
line
.
order_line
.
partner_sku
)
self
.
assertIsNotNone
(
tracked_product
)
self
.
assertEqual
(
line
.
order_line
.
product
.
attr
.
course_key
,
tracked_product
[
'name'
])
self
.
assertEqual
(
line
.
order_line
.
product
.
title
,
tracked_product
[
'name'
])
self
.
assertEqual
(
str
(
line
.
line_credit_excl_tax
),
tracked_product
[
'price'
])
self
.
assertEqual
(
-
1
*
line
.
quantity
,
tracked_product
[
'quantity'
])
self
.
assertEqual
(
line
.
order_line
.
product
.
get_product_class
()
.
name
,
tracked_product
[
'category'
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment