• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

MitchA
#1 Posted : Wednesday, January 23, 2008 1:08:29 PM(UTC)
MitchA

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.
drodriguez
#2 Posted : Friday, July 18, 2008 12:31:04 PM(UTC)
drodriguez

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.
MitchA
#3 Posted : Friday, July 18, 2008 7:43:57 PM(UTC)
MitchA

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.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012