HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/MBoogaard/oosting-horseriding.com/CMS/CMSTemplates/CorporateSite/Root.master.cs
using System;

using CMS.DataEngine;
using CMS.Ecommerce;
using CMS.Helpers;
using CMS.SiteProvider;
using CMS.UIControls;

public partial class CMSTemplates_CorporateSite_Root : TemplateMasterPage
{
    protected override void CreateChildControls()
    {
        base.CreateChildControls();

        PageManager = manPortal;
    }


    protected override void OnPreRender(EventArgs e)
    {
        base.OnPreRender(e);

        ltlTags.Text = HeaderTags;
        SetupShoppingCartPreview();
    }


    private void SetupShoppingCartPreview()
    {
        lnkShoppingCart.NavigateUrl = URLHelper.ResolveUrl(ECommerceSettings.ShoppingCartURL(SiteContext.CurrentSiteID));
        lnkMyAccount.NavigateUrl = URLHelper.ResolveUrl(SettingsKeyInfoProvider.GetValue("CMSMyAccountURL", SiteContext.CurrentSiteID));
        lnkMyWishList.NavigateUrl = URLHelper.ResolveUrl(ECommerceSettings.WishListURL(SiteContext.CurrentSiteID));

        lblPrice.Text = ECommerceContext.CurrentShoppingCart.GetFormattedPrice(ECommerceContext.CurrentShoppingCart.TotalPrice);
    }
}