<%inherit file="shopping_cart_flow.html" /> <%! from django.utils.translation import ugettext as _ from django.utils.translation import ungettext 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")} ${_(u"You have successfully been enrolled for {course_names}. " u"The following receipt has been emailed to {receipient_emails}").format( course_names=u"{course_names}".format( course_names=appended_course_names ), receipient_emails=u"{receipient_emails}".format( receipient_emails=appended_recipient_emails ), )} % elif order_type == 'business': ${ungettext( "You have successfully purchased {number} course registration code for {course_names}.", "You have successfully purchased {number} course registration codes for {course_names}.", total_registration_codes ).format( number=total_registration_codes, course_names=u"{course_names}".format( course_names=appended_course_names ) )} ${_("The following receipt has been emailed to {receipient_emails}").format( receipient_emails=u"{receipient_emails}".format( receipient_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 reg_code_info in reg_code_info_list: % if reg_code_info['is_redeemed']: % else: % endif % endfor
    ${_("Course Name")} ${_("Enrollment Code")} ${_("Enrollment Link")} ${_("Status")}
    ${reg_code_info['course_name']} ${reg_code_info['code']}${reg_code_info['redemption_url']}${reg_code_info['redemption_url']} % if reg_code_info['is_redeemed']: ${_("Used")} % else: ${_("Available")} % endif
    %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()}