Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
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
edx-platform
Commits
c9c53a11
Commit
c9c53a11
authored
Oct 30, 2014
by
Chris Dodge
Committed by
Zia Fazal
Apr 07, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allow for a customized region on the receipt page that is microsite brand specific
parent
0ddb19b4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
+4
-1
common/djangoapps/microsite_configuration/microsite.py
+1
-1
lms/templates/shoppingcart/receipt.html
+3
-0
No files found.
common/djangoapps/microsite_configuration/microsite.py
View file @
c9c53a11
...
...
@@ -63,7 +63,7 @@ def get_template_path(relative_path):
search_path
=
os
.
path
.
join
(
microsite_template_path
,
relative_path
)
if
os
.
path
.
isfile
(
search_path
):
path
=
'{0}/templates/{1}'
.
format
(
path
=
'
/
{0}/templates/{1}'
.
format
(
get_value
(
'microsite_name'
),
relative_path
)
...
...
lms/templates/shoppingcart/receipt.html
View file @
c9c53a11
<
%
inherit
file=
"shopping_cart_flow.html"
/>
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
%
>
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
<
%!
from
microsite_configuration
import
microsite
%
>
<
%!
from
courseware
.
courses
import
course_image_url
,
get_course_about_section
,
get_course_by_id
%
>
...
...
@@ -350,6 +351,8 @@ from courseware.courses import course_image_url, get_course_about_section, get_c
<span
class=
"pull-right"
>
${_("Total")}:
<b>
$${"{0:0.2f}".format(order.total_cost)} USD
</b></span>
</div>
</div>
## Allow for a microsite to be able to insert additional text at the bottom of the page
<
%
include
file=
"${microsite.get_template_path('receipt_custom_region.html')}"
/>
</section>
</div>
</
%
block>
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