<commit_before>﻿@using TeaCommerce.Api.Models
@using TeaCommerce.Umbraco.Web
@inherits UmbracoTemplatePage
@{
  Layout = "CartStepMaster.cshtml";

  IPublishedContent currentPage = Model.Content;
  IPublishedContent prevStep = currentPage.PrecedingSibling();

  //store id
  long storeId = long.Parse( currentPage.GetPropertyValue<string>( "store", true ) );

  Order order = TC.GetCurrentFinalizedOrder( storeId );
}
@if ( order != null ) {
  <div class="container cartContainer accept">
    <h1>Thank you for your order</h1>
    <div class="alert alert-success">
      We have recieved your order. You should recieve an e-mail within a few minutes with your confirmation.
    </div>
    <div class="form-horizontal">
      <div class="row">

        <div class="col-sm-6">
          <div class="well">
            <h3>Payment information</h3>
            <div class="form-group">
              <label class="col-sm-4 col-md-3 control-label">Company</label>
              <div class="col-sm-8 col-md-9">
                <p class="form-control-static">@order.Properties[ "company" ]</p>
              </div>
            </div>

            <div class="form-group">
              <label class="col-sm-4 col-md-3 control-label">First name</label>
              <div class="col-sm-8 col-md-9">
                <p class="form-control-static">@order.Properties[ "firstName" ]</p>
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-4 col-md-3 control-label">Last name</label>
              <div class="col-sm-8 col-md-9">
                <p class="form-control-static">@order.Properties[ "lastName" ]</p>
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-4 col-md-3 control-label">Address</label>
              <div class="col-sm-8 col-md-9">
                <p class="form-control-static">@order.Properties[ "streetAddress" ]</p>
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-4 col-md-3 control-label">Zip code</label>
              <div class="col-sm-8 col-md-9">
                <p class="form-control-static">@order.Properties[ "zipCode" ]</p>
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-4 col-md-3 control-label">City</label>
              <div class="col-sm-8 col-md-9">
                <p class="form-control-static">@order.Properties[ "city" ]</p>
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-4 col-md-3 control-label">E-mail</label>
              <div class="col-sm-8 col-md-9">
                <p class="form-control-static">@order.Properties[ "email" ]</p>
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-4 col-md-3 control-label">Telephone</label>
              <div class="col-sm-8 col-md-9">
                <p class="form-control-static">@order.Properties[ "phone" ]</p>
              </div>
            </div>

            <div class="form-group">
              <label class="col-sm-4 col-md-3 control-label">Country</label>
              <div class="col-sm-8 col-md-9">
                <p class="form-control-static">@TC.GetCountry( storeId, order.PaymentInformation.CountryId ).Name</p>
              </div>
            </div>
          </div>
        </div>
        <div class="col-sm-6">
          
          <div class="well">
            <h3>Shipping information</h3>
            <div class="form-group">
              <label class="col-sm-4 col-md-3 control-label">Company</label>
              <div class="col-sm-8 col-md-9">
                <p class="form-control-static">@order.Properties[ "companyShipping" ]</p>
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-4 col-md-3 control-label">Attention</label>
              <div class="col-sm-8 col-md-9">
                <p class="form-control-static">@order.Properties[ "attentionShipping" ]</p>
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-4 col-md-3 control-label">Address</label>
              <div class="col-sm-8 col-md-9">
                <p class="form-control-static">@order.Properties[ "streetAddressShipping" ]</p>
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-4 col-md-3 control-label">Zip code</label>
              <div class="col-sm-8 col-md-9">
                <p class="form-control-static">@order.Properties[ "zipCodeShipping" ]</p>
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-4 col-md-3 control-label">City</label>
              <div class="col-sm-8 col-md-9">
                <p class="form-control-static">@order.Properties[ "cityShipping" ]</p>
              </div>
            </div>

            @if ( order.ShipmentInformation.CountryId != null ) {
              <div class="form-group">
                <label class="col-sm-4 col-md-3 control-label">Country</label>
                <div class="col-sm-8 col-md-9">
                  <p class="form-control-static">@TC.GetCountry( storeId, order.ShipmentInformation.CountryId.Value ).Name</p>
                </div>
              </div>
            }
          </div>
        </div>

      </div>
      <div class="row">
        <div class="col-sm-6">
          <div class="form-group">
            <label class="col-xs-12">Comments</label>
            <div class="col-xs-12">
              <p class="form-control-static">@order.Properties[ "comments" ]</p>
            </div>
          </div>
        </div>
      </div>
    </div>

    <div class="orderContent">
      <div class="row hidden-xs">

        <div class="col col-lg-6 col-md-5 col-sm-4">
          Product
        </div>
        <div class="col col-sm-2"><commit_msg>Extra shipping info check in cart<commit_after>﻿@using TeaCommerce.Api.Models
@using TeaCommerce.Umbraco.Web
@inherits UmbracoTemplatePage
@{
  Layout = "CartStepMaster.cshtml";

  IPublishedContent currentPage = Model.Content;
  IPublishedContent prevStep = currentPage.PrecedingSibling();

  //store id
  long storeId = long.Parse( currentPage.GetPropertyValue<string>( "store", true ) );

  Order order = TC.GetCurrentFinalizedOrder( storeId );
}
@if ( order != null ) {
  <div class="container cartContainer accept">
    <h1>Thank you for your order</h1>
    <div class="alert alert-success">
      We have recieved your order. You should recieve an e-mail within a few minutes with your confirmation.
    </div>
    <div class="form-horizontal">
      <div class="row">

        <div class="col-sm-6">
          <div class="well">
            <h3>Payment information</h3>
            <div class="form-group">
              <label class="col-sm-4 col-md-3 control-label">Company</label>
              <div class="col-sm-8 col-md-9">
                <p class="form-control-static">@order.Properties[ "company" ]</p>
              </div>
            </div>

            <div class="form-group">
              <label class="col-sm-4 col-md-3 control-label">First name</label>
              <div class="col-sm-8 col-md-9">
                <p class="form-control-static">@order.Properties[ "firstName" ]</p>
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-4 col-md-3 control-label">Last name</label>
              <div class="col-sm-8 col-md-9">
                <p class="form-control-static">@order.Properties[ "lastName" ]</p>
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-4 col-md-3 control-label">Address</label>
              <div class="col-sm-8 col-md-9">
                <p class="form-control-static">@order.Properties[ "streetAddress" ]</p>
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-4 col-md-3 control-label">Zip code</label>
              <div class="col-sm-8 col-md-9">
                <p class="form-control-static">@order.Properties[ "zipCode" ]</p>
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-4 col-md-3 control-label">City</label>
              <div class="col-sm-8 col-md-9">
                <p class="form-control-static">@order.Properties[ "city" ]</p>
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-4 col-md-3 control-label">E-mail</label>
              <div class="col-sm-8 col-md-9">
                <p class="form-control-static">@order.Properties[ "email" ]</p>
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-4 col-md-3 control-label">Telephone</label>
              <div class="col-sm-8 col-md-9">
                <p class="form-control-static">@order.Properties[ "phone" ]</p>
              </div>
            </div>

            <div class="form-group">
              <label class="col-sm-4 col-md-3 control-label">Country</label>
              <div class="col-sm-8 col-md-9">
                <p class="form-control-static">@TC.GetCountry( storeId, order.PaymentInformation.CountryId ).Name</p>
              </div>
            </div>
          </div>
        </div>
        <div class="col-sm-6">
          @if ( !string.IsNullOrEmpty( order.Properties[ "companyShipping" ] )
                || !string.IsNullOrEmpty( order.Properties[ "attentionShipping" ] )
                || !string.IsNullOrEmpty( order.Properties[ "streetAddressShipping" ] )
                || !string.IsNullOrEmpty( order.Properties[ "zipCodeShipping" ] )
                || !string.IsNullOrEmpty( order.Properties[ "cityShipping" ] ) ) {

            <div class="well">
              <h3>Shipping information</h3>
              <div class="form-group">
                <label class="col-sm-4 col-md-3 control-label">Company</label>
                <div class="col-sm-8 col-md-9">
                  <p class="form-control-static">@order.Properties[ "companyShipping" ]</p>
                </div>
              </div>
              <div class="form-group">
                <label class="col-sm-4 col-md-3 control-label">Attention</label>
                <div class="col-sm-8 col-md-9">
                  <p class="form-control-static">@order.Properties[ "attentionShipping" ]</p>
                </div>
              </div>
              <div class="form-group">
                <label class="col-sm-4 col-md-3 control-label">Address</label>
                <div class="col-sm-8 col-md-9">
                  <p class="form-control-static">@order.Properties[ "streetAddressShipping" ]</p>
                </div>
              </div>
              <div class="form-group">
                <label class="col-sm-4 col-md-3 control-label">Zip code</label>
                <div class="col-sm-8 col-md-9">
                  <p class="form-control-static">@order.Properties[ "zipCodeShipping" ]</p>
                </div>
              </div>
              <div class="form-group">
                <label class="col-sm-4 col-md-3 control-label">City</label>
                <div class="col-sm-8 col-md-9">
                  <p class="form-control-static">@order.Properties[ "cityShipping" ]</p>
                </div>
              </div>

              @if ( order.ShipmentInformation.CountryId != null ) {
                <div class="form-group">
                  <label class="col-sm-4 col-md-3 control-label">Country</label>
                  <div class="col-sm-8 col-md-9">
                    <p class="form-control-static">@TC.GetCountry( storeId, order.ShipmentInformation.CountryId.Value ).Name</p>
                  </div>
                </div>
              }
            </div>
          }
        </div>

      </div>
      <div class="row">
        <div class="col-sm-6">
          <div class="form-group">
            <label class="col-xs-12">Comments</label>
            <div class="col-xs-12">
              <p class="form-control-static">@order.Properties[ "comments" ]</p>
            </div>
          </div>
        </div>
      </div>
    </div>

    <div class="orderContent">
      <div class="row hidden-xs">

        <div class="col col-lg-6 col-md-5 col-sm-4">
          Product
        </div>
        <div class="col col-sm-2">
{'fraction_non_alphanumeric': 0.16337893732103087, 'fraction_numerical': 0.012249443207126948, 'mean_word_length': 1.6547719594594594, 'pattern_counts': {'":': 0, '<': 321, '<?xml version=': 0, '>': 321, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5698876', 'n_tokens_mistral': 3881, 'n_tokens_neox': 3783, 'n_words': 716}