<%inherit file="shopping_cart_flow.html" /> <%! from django.utils.translation import ugettext as _ %> <%! from django.core.urlresolvers import reverse %> <%! from courseware.courses import course_image_url, get_course_about_section, get_course_by_id %> <%block name="billing_details_highlight"> % if order_type == 'business':
  • ${_('Billing Details')}
  • %endif <%block name="confirmation_highlight">class="active" <%block name="custom_content">
    <% courses_url = reverse('courses') %> % if receipt_has_donation_item: ${_("Thank you for your Purchase!")} % for inst in instructions: ${inst} % endfor % elif order_type == 'personal': ## in case of multiple courses in single self purchase scenario, ## we will show the button View Dashboard <% dashboard_url = reverse('dashboard') %> ${_("View Dashboard")} ${_("You have successfully been enrolled for {appended_course_names}. The following receipt has been emailed to" " {appended_recipient_emails}").format(appended_course_names=appended_course_names, appended_recipient_emails=appended_recipient_emails)} % elif order_type == 'business': % if total_registration_codes > 1 : <% code_plural_form = 'codes' %> % else: <% code_plural_form = 'code' %> % endif ${_("You have successfully purchased {total_registration_codes} course registration codes " "for {appended_course_names}. " "The following receipt has been emailed to {appended_recipient_emails}" ).format(total_registration_codes=total_registration_codes, appended_course_names=appended_course_names, appended_recipient_emails=appended_recipient_emails)} % endif
    % if order_type == 'business':

    ${_("Please send each professional one of these unique registration codes to enroll into the course. The confirmation/receipt email you will receive has an example email template with directions for the individuals enrolling.")}.

    % for registration_code in registration_codes: <% course = get_course_by_id(registration_code.course_id, depth=0) %> <% redemption_url = reverse('register_code_redemption', args = [registration_code.code] ) %> <% enrollment_url = '{redemption_url}'.format(redemption_url=redemption_url) %> % endfor
    ${_("Course Name")} ${_("Enrollment Code")} ${_("Enrollment Link")}
    ${_("{course_name}").format(course_name=course.display_name)} ${registration_code.code}${enrollment_url}
    %endif

    ${_('Invoice')} #${order.id}${_('Date of purchase')}: ${order_purchase_date} ${_('Print Receipt')}

    % if order.total_cost > 0:

    ${_("Billed To Details")}:

    % if order_type == 'business':

    ${_('Company Name')}:

    ${_('Purchase Order Number')}:

    ${_('Company Contact Name')}:

    ${_('Company Contact Email')}:

    ${_('Recipient Name')}:

    ${_('Recipient Email')}:

    %endif

    ${_('Card Type')}:

    ${_('Credit Card Number')}:

    ${_('Name')}:

    ${_('Address 1')}:

    ${_('Address 2')}:

    ${_('City')}:

    ${_('State')}:

    ${_('Country')}:

    % endif
    % for item, course in shoppingcart_items: % if loop.index > 0 :
    %endif
    ${course.display_number_with_default | h} ${get_course_about_section(course, 'title')} Image

    ${_("Registration for")}: <% course_start_time = course.start_datetime_text() course_end_time = course.end_datetime_text() %> % if course_start_time or course_end_time: ${_("Course Dates")}: %endif

    ${_(" {course_name} ").format(course_name=course.display_name)} % if course_start_time: ${course_start_time} %endif - % if course_end_time: ${course_end_time} %endif


    % if item.status == "purchased":
    % if item.list_price != None:
    ${_('Price per student:')} ${currency_symbol}${"{0:0.2f}".format(item.list_price)}
    ${_('Discount Applied:')} ${currency_symbol}${"{0:0.2f}".format(item.unit_cost)}
    % else:
    ${_('Price per student:')} ${currency_symbol}${"{0:0.2f}".format(item.unit_cost)}
    % endif
    ${item.qty}
    % elif item.status == "refunded":
    % if item.list_price != None:
    ${_('Price per student:')} ${currency_symbol}${"{0:0.2f}".format(item.list_price)}
    ${_('Discount Applied:')} ${currency_symbol}${"{0:0.2f}".format(item.unit_cost)}
    % else:
    ${_('Price per student:')} ${currency_symbol}${"{0:0.2f}".format(item.unit_cost)}
    % endif
    ${item.qty}
    %endif
    % endfor
    % if any_refunds: ## Translators: Please keep the "" and "" tags around your translation of the word "this" in your translation. ${_("Note: items with strikethough like this have been refunded.")} % endif ${_("Total")}: ${currency_symbol}${"{0:0.2f}".format(order.total_cost)} ${currency.upper()}