Skip to content

Commit 5e5b56e

Browse files
Closes smartstore#559 Paypal Express: checkout button should be hidden if min. order amount is not reached
1 parent 24b3e8a commit 5e5b56e

2 files changed

Lines changed: 23 additions & 21 deletions

File tree

src/Plugins/SmartStore.PayPal/Views/PayPalExpress/PaymentInfo.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@{
22
Layout = "";
3-
Html.AddCssFileParts(true, "~/Plugins/SmartStore.PayPal/Content/smartstore.paypal.css");
3+
Html.AddCssFileParts(true, Url.Content("~/Plugins/SmartStore.PayPal/Content/smartstore.paypal.css"));
44
}
55
@model SmartStore.PayPal.Models.PayPalExpressPaymentInfoModel
66
@using SmartStore.Web.Framework;

src/Presentation/SmartStore.Web/Views/ShoppingCart/OrderSummary.cshtml

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -367,27 +367,29 @@
367367

368368
@if (Model.IsEditable)
369369
{
370-
<div class="checkout-buttons">
371-
@if (String.IsNullOrEmpty(Model.MinOrderSubtotalWarning))
372-
{
373-
<button type="button"
374-
class="btn btn-primary btn-large pull-right checkout-button"
375-
id="checkout"
376-
name="checkout"
377-
onclick="$('#startcheckout').trigger('click'); return false;">
378-
@T("Checkout.Button")&nbsp;
379-
<i class="fa fa-arrow-right" style="font-size: 18px"></i>
380-
</button>
381-
}
382-
</div>
370+
if (String.IsNullOrEmpty(Model.MinOrderSubtotalWarning))
371+
{
372+
<div class="checkout-buttons">
373+
374+
<button type="button"
375+
class="btn btn-primary btn-large pull-right checkout-button"
376+
id="checkout"
377+
name="checkout"
378+
onclick="$('#startcheckout').trigger('click'); return false;">
379+
@T("Checkout.Button")&nbsp;
380+
<i class="fa fa-arrow-right" style="font-size: 18px"></i>
381+
</button>
382+
383+
</div>
383384

384-
<div class="addon-buttons">
385-
@*Payment method buttons (e.g. GoogleCheckoutButton, Paypal Express, Pay with Amazon)*@
386-
@foreach(var item in Model.ButtonPaymentMethods.Items)
387-
{
388-
@Html.Action(item.ActionName, item.ControllerName, item.RouteValues)
389-
}
390-
</div>
385+
<div class="addon-buttons">
386+
@*Payment method buttons (e.g. GoogleCheckoutButton, Paypal Express, Pay with Amazon)*@
387+
@foreach(var item in Model.ButtonPaymentMethods.Items)
388+
{
389+
@Html.Action(item.ActionName, item.ControllerName, item.RouteValues)
390+
}
391+
</div>
392+
}
391393
}
392394
</div>
393395
</div>

0 commit comments

Comments
 (0)