Rank: Member
Joined: 3/3/2006(UTC) Posts: 1,737
|
I've changed "Customer Service" to "Customer Service / Contact Us" in site terms, but am unable to change "Checkout" to "View Cart & Checkout". It seems to be editable and the edit 'takes' in the list, but doesn't on the page. Is this site term not really editable? (SP2). MitchA attached the following image(s): Site-terms.jpg (14kb) downloaded 57 time(s).You cannot view/download attachments. Try to login or register. |
Optimists invent airplanes, Pessimists buy parachutes. |
|
|
|
Rank: Member
Joined: 6/26/2008(UTC) Posts: 38
|
You can make it an editable term by doing this: 1) Go to Admin, Options, Site Terms and add a new term. We'll call it " CheckoutOptionText". Put some text in it. 2) Create a new label on your page Code: <h2> <asp:Label ID="lblCheckoutOptionText" runat="server" Text="Label"></asp:Label> </h2>
3) In the code behind of your page, create a variable that will contain the site term: Code:Imports BVSoftware.Bvc5.Core Imports System.Collections.ObjectModel
Partial Class BVModules_Checkouts_One_Page_Checkout_Checkout Inherits BaseStoreCheckoutPage [b]Private _CheckoutOptionText As String = Content.SiteTerms.GetTerm("CheckoutOptionText")[/b]
Public Overrides ReadOnly Property RequiresSSL() As Boolean Get Return True End Get End Property ...
4) In the PageLoad, inside the "If Not Page.IsPostBack Then" statement (if possible, won't kill you if you just put it outside of that) Code: lblCheckoutOptionText.Text = _CheckoutOptionText
5) Run your page. It will call your custom value and instead of hard coded text, you'll have a custom site term. Of course, you'll want to comment your work in case you need to do a site update a year or so later. |
David Rodriguez Infinet Development, Inc. |
|
|
|
Rank: Member
Joined: 3/3/2006(UTC) Posts: 1,737
|
Thanks D, I'll have a go at it. |
Optimists invent airplanes, Pessimists buy parachutes. |
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.