frontend.checkout.postcoderequired CSS Fix

Posted By jcosmo Sat 28 Nov 2015
Rated 5 stars based on 1 vote.
Add to Favorites0
Author Message
jcosmo
 Posted Sat 28 Nov 2015
Supreme Being

Supreme Being - (10,477 reputation)Supreme Being - (10,477 reputation)Supreme Being - (10,477 reputation)Supreme Being - (10,477 reputation)Supreme Being - (10,477 reputation)Supreme Being - (10,477 reputation)Supreme Being - (10,477 reputation)Supreme Being - (10,477 reputation)Supreme Being - (10,477 reputation)

Group: Forum Members
Last Active: Tue 16 Feb 2016
Posts: 19, Visits: 117
When setting the frontend.checkout.postcoderequired configuration setting to require the Postal Code, Kartris correctly requires that an entry is made but doesn't update the label to visually indicate it is a required field...

I'd suggest changing the CustomerAddress.ascx.vb file, at line 72 to the following:
If KartSettingsManager.GetKartConfig("frontend.checkout.postcoderequired") = "y" AndAlso value = True Then
valZipCodeRequired.Enabled = True
lblPostcode.CssClass = "requiredfield"
Else
valZipCodeRequired.Enabled = False
lblPostcode.CssClass = ""
End If


This fixes the issue so that the label visually indicates it as a required field based on the configuration setting.


Similar Topics

Expand / Collapse

Reading This Topic

Expand / Collapse

Back To Top