Suppressing the credit card option in B2B for a respective shop

Hi All,
Here the requirement is :
<h1>Suppressing the credit card option in B2B for one selected shop.</h1>
for eg: if we have shop like a, b, & c.
then for when user selects shop 'b'  then only credit card option should be supressed, other wise it should be avaiable.
Can this be done at front end or back-end as well.
Kindly, Suggest.
Thanks,
Devender

Hi Devender,
You can identify your shop with this piece of code
UserSessionData userSessionData = UserSessionData.getUserSessionData(request.getSession());
BusinessObjectManager isaBOM = (BusinessObjectManager) userSessionData.getBOM(
                    BusinessObjectManager.ISACORE_BOM);
User user = (User) isaBOM.getUser();
Shop shop = (Shop) isaBOM.getShop();
String distrChannel = shop.getDistributionChannel();
String sod = shop.getSalesOrganisation();
In order.jsp there is one include which gives the payment fields.
<%@ include file="/b2b/payment.inc.jsp" %>
Just put your validation above it.
ex:
<% if (shop.getId().equalsIgnoreCase("yourshopname")) { %>
   <%@ include file="/b2b/payment.inc.jsp" %>
<% } %>
Regards,
Arshi
Edited by: Arshi Arshi on Jul 13, 2009 10:48 AM
Edited by: Arshi Arshi on Jul 13, 2009 11:57 AM

Similar Messages

Maybe you are looking for

  • TestStand 3.0 Is Running Very Slow?

    Hi All I have built an application using TestStand 3.0 and LabVIEW 7.1. This application is running as an executable on the target machine (i.e only the TestStand deployment and LabVIEW runtime engine is installed on the target machine). The program

  • Final Cut Pro X share operation failed

    Recent error message when sharing to custom compressor settings stating Share operation [project name] Failed (com.apple.Compressor.CompressorKit.ErrorDomain error -1.). Unsure why 30sec 720 x 576, 16:9 won't share to custom settings 1024 x 576, 1:1.

  • Can't sign in OSX 10.8.2 Message for 2 OSX User Accounts

    Since upgrading from Messages Beta (OS X Lion) to Mountain Lion (10.8.2) it is impossible for me to re-sign in as a standard network user, but only under the administrator account. Date/Time is set automatically. Preference File has also been removed

  • Downgrade Acrobat Pro DC to Acrobat Pro XI

    Hi, We buy Acrobat Pro DC version because Acrobat Pro XI was no more available. It appears that some functionality we need on portfolio have disappeared. What is the way to convert our Pro DC license to a Pro XI license ? Regards

  • Photoshop elements 8 problem

    I got a computer that did not work properly and it took over a year to get this corrected. Photoshop elements 8 was preinstalled on computer. However, when I try to open it, the initial page comes up but clicking on organize or edit only results in a