there is an old request to allow particular clearing option based on the uStore User group.
Those who still need something like that here something that can be used .
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="ThemedPageFullWidth.master.cs" Inherits="uStore.PageLayout.ThemedPageFullWidth" %>
<%@ Register TagPrefix="uStore" TagName="MetaTags" Src="~/UControls/MetaTags.ascx" %>
<%@ Register TagPrefix="uStore" TagName="WebEnhancerButton" Src="~/UControls/WebEnhancerButton.ascx" %>
<%
// check if we are on CheckoutPaymentSubmission page
if (Request.Url.AbsolutePath.IndexOf("CheckoutPaymentSubmission.aspx", StringComparison.OrdinalIgnoreCase)!= -1)
{ %>
<%
// get current user ID
var UserGroupsByUser = uStoreAPI.UserGroup.GetUserGroupList(uStore.Common.BLL.CustomerInfo.Current.UserID);
var serializer = new System.Web.Script.Serialization.JavaScriptSerializer();
// get list of group ID's user belong
var UserGroupsByUserArray = serializer.Serialize(UserGroupsByUser.Select(g => g.UserGroupID));
// expose Javascript variable with list of group user ID's
%>
<script type="text/javascript">
var UserGroupsByUserArray = <%= UserGroupsByUserArray %>;
</script>
<% } %>
3) you can use same master page or use Add Javascript to Store Front feature to expose Javascript
<script type="text/javascript">
var UserGroupToClearingMapping = {};
//mapping[group user id] = clearing ids
// in this example User Group with ID 1 can see clearings with ID 1 , 2 and 10000 , while User Group with ID 2 can only see clearing with ID 1 and 2
// User group ID's and Clearing ID's can be found in the uStore Admin in the URL of the page you ,by clicking on particular User group or particular Clearing
UserGroupToClearingMapping[1] = [1,2,10000];
UserGroupToClearingMapping[4] = [1,2];
if(typeof UserGroupsByUserArray !== 'undefined'){
$(document).ready(function(){
var cls = $("input[id*='rdlClearingConfig']");
if(cls.length > 0){
$(cls).parent().hide();
$.each(UserGroupToClearingMapping, function(groupId, clearings) {
if($.inArray(parseInt(groupId), UserGroupsByUserArray) >= 0){
$.each(clearings, function(index, value) {
var elem = $(cls).filter("[value="+ value +"]");
if(elem[0] != null) {
$(elem).parent().show();
}
});
}
});
var checked = $(cls).filter(":checked");
if(checked[0] != null){
if(checked.parent().is(':visible') == false){
var parent = $(cls).parent().filter(':visible')[0];
if(parent != null){
var input = $(parent).children("input[id*='rdlClearingConfig']");
$(input).click();
}
else{
$('td[class=ClearingConfigCell]').hide();
}
}
}
$("[id*=btnCheckout]").click(function(){
var checked = $(cls).filter(":checked");
if(checked[0] != null){
if(checked.parent().is(':visible') == false){
return false;
}
}
});
}
});
}
</script>