I have the Terms & Conditions checkbox cheked in the dashboard but the text for terms and conditions is not showing apart from this (read) the only thing i have changed is the Topic title name to: Terms & Conditions and the system name to: TermsAndConditions in the topics section of the dashboard, am i missing something?
Code from OrderSummary.cshtml (changes made are in italic below:
<div class="totals">
@Html.Action("OrderTotals", "ShoppingCart", new { isEditable = Model.IsEditable })
@if (Model.IsEditable)
{
<div class="clear">
</div>
if (Model.TermsOfServiceEnabled)
{
<script language="javascript" type="text/javascript">
function accepttermsofservice() {
if (!$('#termsofservice').is(':checked')) {
$("#terms-of-service-warning-box").dialog();
return false;
}
else
return true;
}
</script>
<div id="terms-of-service-warning-box" title="@T("Checkout.TermsOfService")" style="display:none;">
<p>@T("Checkout.TermsOfService.PleaseAccept")</p>
</div>
<div class="terms-of-service">
<input id="termsofservice" type="checkbox" name="termsofservice" />
@T("Checkout.TermsOfService.IAccept")
@*uncomment below to how simple pop-up*@
<span class="read" onclick="javascript:OpenWindow('@Url.RouteUrl("TopicPopup", new { SystemName = "termsandconditions" })', 450, 500, true)">@T("Checkout.TermsOfService.Read")</span>
@*use fancybox to how nice pop-up*@
@{
Html.AddScriptParts(@Url.Content("~/Scripts/jquery.fancybox-1.3.4.pack.js"));
Html.AddCssFileParts(@Url.Content("~/Content/fancybox/jquery.fancybox-1.3.4.css"));
}
<a class="read" href='@Url.RouteUrl("TopicPopup", new { SystemName = "conditionsofUse" })'>@T("Checkout.TermsOfService.Read")</a>
<script type="text/javascript">
$(".terms-of-service .read").fancybox({
'speedIn': 600,
'speedOut': 200,
'width': 450,
'height': 500,
'type': 'iframe',
'centerOnScroll': true
});
</script>
</div>
}
<div class="clear">
</div>
<div class="checkout-buttons">
@if (String.IsNullOrEmpty(Model.MinOrderSubtotalWarning))
{
<script language="javascript" type="text/javascript">
function startcheckout() {
//terms of services
var termOfServiceOk = true;
@if (Model.TermsOfServiceEnabled)
{
<text>
termOfServiceOk = accepttermsofservice();
</text>
}
if (termOfServiceOk)
{
$('#startcheckout').trigger("click");
}
}
</script>
<input type="submit" name="checkout" value="@T("Checkout.Button")" id="checkout" class="button-1 checkout-button" onclick="startcheckout()" />
}
</div>
<div class="addon-buttons">
@*Payment method buttons (e.g. GoogleCheckoutButton, Paypal Express)*@
@Html.Partial("_ButtonPaymentMethod", Model)
</div>
}
</div>