Skip to content

Commit

Permalink
Merge pull request #383 from HotcakesCommerce/development
Browse files Browse the repository at this point in the history
Release 03.06.00
  • Loading branch information
WillStrohl authored Dec 7, 2021
2 parents 4b7bf82 + 09e6bd8 commit 9543718
Show file tree
Hide file tree
Showing 63 changed files with 1,175 additions and 1,379 deletions.
10 changes: 7 additions & 3 deletions Build.proj
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="15.0">
<PropertyGroup>
<LangVersion>C# 7.0</LangVersion>
</PropertyGroup>

<PropertyGroup>
<MSBuildCommunityTasksPath>$(MSBuildProjectDirectory)\.build</MSBuildCommunityTasksPath>
</PropertyGroup>
Expand All @@ -8,14 +12,14 @@

<!-- Version Number -->
<PropertyGroup Condition=" '$(BUILD_NUMBER)' == '' ">
<Version>03.05.00</Version>
<Version>03.06.00</Version>
<FileVersion>01.00.00</FileVersion>
<InformationalVersion>01.00.00</InformationalVersion>
</PropertyGroup>

<PropertyGroup Condition=" '$(BUILD_NUMBER)' != '' ">
<!-- Build Server Number -->
<Version>03.05.00</Version>
<Version>03.06.00</Version>
<FileVersion>$(BUILD_NUMBER)</FileVersion>
<InformationalVersion>$(BUILD_NUMBER)</InformationalVersion>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion CommonAssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
[assembly: CLSCompliant(false)]
[assembly: ComVisible(false)]

[assembly: AssemblyVersion("3.05.00")]
[assembly: AssemblyVersion("3.06.00")]
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile("")]
[assembly: AssemblyKeyName("")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,4 +201,7 @@
<data name="AffiliateIdHelp.Text" xml:space="preserve">
<value>Letters and numbers only, please</value>
</data>
<data name="ValMessage_ConfirmTerms.Text" xml:space="preserve">
<value>Please agree to the Terms and Conditions</value>
</data>
</root>
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,10 @@
</label>
<div class="col-sm-6 offset-sm-0">
<div class="form-check dnnFormRequired">
@Html.CheckBoxFor(model => model.ConfirmTerms, new { data_bind = "checked: model.confirmterms", @class="form-check-input" })
@Html.CheckBoxFor(model => model.ConfirmTerms, new { data_bind = "checked: model.confirmterms", @class = "form-check-input" })
<label class="form-check-label" for="ConfirmTerms">@Localization.GetString("lblIAgreeTo")</label>
@Html.ValidationMessageFor(model => model.ConfirmTerms, Localization.GetString("ValMessage_ConfirmTerms"), new { @class = "alert alert-danger" })
@Html.HiddenFor(model => model.IsTrue)
</div>
<a href="#hcAffiliateTermsPopup" data-min-width="600" data-min-height="350" title="@Localization.GetString("TermsTitle")" class="btn btn-outline-info btn-sm hc-popup">
<i class="fas fa-book"></i>@Localization.GetString("lblAffiliateTerms")
Expand Down Expand Up @@ -218,7 +220,9 @@
</div>
}
else{
Html.Raw(Model.AgreementText);
<text>
@Html.Raw(Model.AgreementText)
</text>
}
</div>
<p class="text-right mt-3">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,4 +189,7 @@
<data name="lblLastName.Text" xml:space="preserve">
<value>Last Name:</value>
</data>
<data name="ValMessage_ConfirmTerms.Text" xml:space="preserve">
<value>Please agree to the Terms and Conditions</value>
</data>
</root>
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@
</label>
<label>
@Html.CheckBoxFor(model => model.ConfirmTerms, new { data_bind = "checked: model.confirmterms" })
@Localization.GetString("lblIAgreeTo")
@Localization.GetString("lblIAgreeTo")
@Html.ValidationMessageFor(model => model.ConfirmTerms, Localization.GetString("ValMessage_ConfirmTerms"), new { @class = "dnnFormMessage hcFormError" })
@Html.HiddenFor(model => model.IsTrue)
</label>
<a href="#hcAffiliateTermsPopup" data-min-width="600" data-min-height="350" title="@Localization.GetString("TermsTitle")" class="hc-popup">@Localization.GetString("lblAffiliateTerms") </a>
</div>
Expand Down Expand Up @@ -164,7 +166,16 @@
@* Affiliate Terms Popup *@
<div id="hcAffiliateTermsPopup" style="display: none;">
<div class="hc-affiliate-terms">
@Html.Raw(@Model.AgreementText)
@if (Model.AgreementText == ""){
<div class="alert alert-warning">
@Localization.GetString("NoAgreement")
</div>
}
else{
<text>
@Html.Raw(Model.AgreementText)
</text>
}
</div>
<ul class="dnnActions dnnRight">
<li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,9 @@
<div class="checkbox dnnFormRequired">
<label>
@Html.CheckBoxFor(model => model.ConfirmTerms, new { data_bind = "checked: model.confirmterms" })
@Localization.GetString("lblIAgreeTo")
@Localization.GetString("lblIAgreeTo")
@Html.ValidationMessageFor(model => model.ConfirmTerms, Localization.GetString("ValMessage_ConfirmTerms"), new { @class = "alert alert-danger" })
@Html.HiddenFor(model => model.IsTrue)
</label>
</div>
<a href="#hcAffiliateTermsPopup" data-min-width="600" data-min-height="350" title="@Localization.GetString("TermsTitle")" class="btn btn-default btn-sm hc-popup">
Expand Down Expand Up @@ -214,7 +216,9 @@
</div>
}
else{
Html.Raw(Model.AgreementText);
<text>
@Html.Raw(Model.AgreementText)
</text>
}
</div>
<p class="text-right margin-top-md">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,4 +201,7 @@
<data name="AffiliateIdHelp.Text" xml:space="preserve">
<value>Letters and numbers only, please</value>
</data>
<data name="ValMessage_ConfirmTerms.Text" xml:space="preserve">
<value>Please agree to the Terms and Conditions</value>
</data>
</root>
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,8 @@
<div class="form-check dnnFormRequired">
@Html.CheckBoxFor(model => model.ConfirmTerms, new { data_bind = "checked: model.confirmterms", @class="form-check-input" })
<label class="form-check-label" for="ConfirmTerms">@Localization.GetString("lblIAgreeTo")</label>
@Html.ValidationMessageFor(model => model.ConfirmTerms, Localization.GetString("ValMessage_ConfirmTerms"), new { @class = "alert alert-danger" })
@Html.HiddenFor(model => model.IsTrue)
</div>
<a href="#hcAffiliateTermsPopup" data-min-width="600" data-min-height="350" title="@Localization.GetString("TermsTitle")" class="btn btn-outline-info btn-sm hc-popup">
<i class="fas fa-book"></i>@Localization.GetString("lblAffiliateTerms")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,4 +189,7 @@
<data name="lblLastName.Text" xml:space="preserve">
<value>Last Name:</value>
</data>
<data name="ValMessage_ConfirmTerms.Text" xml:space="preserve">
<value>Please agree to the Terms and Conditions</value>
</data>
</root>
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@
</label>
<label>
@Html.CheckBoxFor(model => model.ConfirmTerms, new { data_bind = "checked: model.confirmterms" })
@Localization.GetString("lblIAgreeTo")
@Localization.GetString("lblIAgreeTo")
@Html.ValidationMessageFor(model => model.ConfirmTerms, Localization.GetString("ValMessage_ConfirmTerms"), new { @class = "dnnFormMessage hcFormError" })
@Html.HiddenFor(model => model.IsTrue)
</label>
<a href="#hcAffiliateTermsPopup" data-min-width="600" data-min-height="350" title="@Localization.GetString("TermsTitle")" class="hc-popup">@Localization.GetString("lblAffiliateTerms") </a>
</div>
Expand Down Expand Up @@ -164,7 +166,16 @@
@* Affiliate Terms Popup *@
<div id="hcAffiliateTermsPopup" style="display: none;">
<div class="hc-affiliate-terms">
@Html.Raw(@Model.AgreementText)
@if (Model.AgreementText == ""){
<div class="alert alert-warning">
@Localization.GetString("NoAgreement")
</div>
}
else{
<text>
@Html.Raw(Model.AgreementText)
</text>
}
</div>
<ul class="dnnActions dnnRight">
<li>
Expand Down
Binary file modified DevSamples/References/Hotcakes.Commerce.Dnn.dll
Binary file not shown.
Binary file modified DevSamples/References/Hotcakes.Commerce.dll
Binary file not shown.
Binary file modified DevSamples/References/Hotcakes.CommerceDTO.dll
Binary file not shown.
Binary file modified DevSamples/References/Hotcakes.Modules.dll
Binary file not shown.
Binary file modified DevSamples/References/Hotcakes.Payment.dll
Binary file not shown.
Binary file modified DevSamples/References/Hotcakes.Web.dll
Binary file not shown.
5 changes: 5 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<Project>
<PropertyGroup>
<LangVersion>latestMajor</LangVersion>
</PropertyGroup>
</Project>
12 changes: 6 additions & 6 deletions GlobalAssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,25 @@
// </auto-generated>
//------------------------------------------------------------------------------

[assembly: System.Reflection.AssemblyCopyright("Copyright © 2020. All rights reserved.")]
[assembly: System.Reflection.AssemblyInformationalVersion("01.00.00")]
[assembly: System.Reflection.AssemblyConfiguration("Release")]
[assembly: System.Reflection.AssemblyVersion("03.05.00")]
[assembly: System.Reflection.AssemblyCopyright("Copyright © 2021. All rights reserved.")]
[assembly: System.Reflection.AssemblyFileVersion("01.00.00")]
[assembly: System.Reflection.AssemblyInformationalVersion("01.00.00")]
[assembly: System.Reflection.AssemblyVersion("03.06.00")]



internal sealed partial class ThisAssembly {

internal const string AssemblyCopyright = "Copyright © 2020. All rights reserved.";
internal const string AssemblyInformationalVersion = "01.00.00";

internal const string AssemblyConfiguration = "Release";

internal const string AssemblyVersion = "03.05.00";
internal const string AssemblyCopyright = "Copyright © 2021. All rights reserved.";

internal const string AssemblyFileVersion = "01.00.00";

internal const string AssemblyInformationalVersion = "01.00.00";
internal const string AssemblyVersion = "03.06.00";

private ThisAssembly() {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,12 @@ private bool ProcessTransaction(OrderTaskContext context, OrderTransaction p)
try
{
var payManager = new OrderPaymentManager(context.Order, context.HccApp);
var orderNumber = !string.IsNullOrEmpty(p.OrderNumber) ? p.OrderNumber : context.Order.OrderNumber;
Transaction t = payManager.CreateEmptyTransaction();
t.Card = p.CreditCard;
t.Card.SecurityCode = context.Inputs.GetProperty("hcc", "CardSecurityCode");
t.Amount = p.Amount;
t.Items = GetLineItemsForTransaction(context, p.OrderNumber);
t.Items = GetLineItemsForTransaction(context, orderNumber);

if (context.HccApp.CurrentStore.Settings.PaymentCreditCardAuthorizeOnly)
{
Expand Down
5 changes: 5 additions & 0 deletions Libraries/Hotcakes.Commerce/Data/EF/HccDbContext.Context.cs
Original file line number Diff line number Diff line change
Expand Up @@ -355,5 +355,10 @@ public virtual int DeleteStoreOrders(Nullable<long> storeId)

return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("DeleteStoreOrders", storeIdParameter);
}

public virtual int hcc_RefreshStoreSettings()
{
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("hcc_RefreshStoreSettings");
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9543718

Please sign in to comment.