Posts

Order history read access users from same organization.

Order history read access users from same organization. Read only access to users belonging to same organization and Organization Participant role for order history related databeans, the XML policies below is from the reference link below but they have an issue where on the role Buyer (buy-side) role name so that's fixed. Buyer(buy-side) roles needs to defined on the organization using Org admin console. if there is an hierarchy of organizations and the bottom organization is the parent organization for the users. All roles have to be defined to Organizations from Top-Down. Add the xml fragments below to resource_acpolicies.xml and run ACPLoad. Add new policy to allow participants to display the order beans for others in the organization: Relation group: This defines all roles in this case Buyer(buy-side) to BuyingOrganizationalEntity      <RelationGroup Name="Buyer (buy-side)->BuyerOrganizationalEntity" OwnerID="RootOrganization">  ...

Override Access authority from Commands

Override Access authority from Commands checkResourcePermission The user does not have the authority to run this command. CMN0410E: The system failed to retrieve the message with  key "_ERR_USER_AUTHORITY" from "com.ibm.commerce.ras.properties.ecServerMessages" I am sure all of us working in commerce have seen the above error  a million times and some times it is because we didn't correctly define the access privileges when creating a new command and running ACPLoad but some times it is important to override the out of the box access policies. I would not recommend returning plain null but also find below some more restricted overrides of getResources. public AccessVector getResources() {   return null; } public AccessVector getResources() {          final String METHOD_NAME = "getResources";                         java.util.Vector r...

Directory structure : if you were creating new jsp for some customization.

https://www-01.ibm.com/support/knowledgecenter/SSZLC2_8.0.0/com.ibm.commerce.aurora-starterstore.doc/refs/rsmauroradirectories.htm

Websphere Commerce Member Subsystem

Websphere Commerce Member Subsystem Organization Structure B2C Direct Business Model B2C Direct Business model consist of root organization, default organization and seller organization. Root organization and Default organization are created during instance creation. Seller organization and B2C organization are created during store publish process. B2C Organization Structure Root organization All organizations in the business become child of the root organization. Default organization All of the online users are owned by the default organization. The default organization is a child of the Root Organization. Seller organization A seller organization is created to own all the stores (Retailer) B2C organization A B2C organization owns a single store (Retailer). B2B Direct Model B2B Direct Business model consist of root organization, default organization, seller organization and buyer organization. Root organization and Default organization are created during instance ...

Contracts

Using Contracts for eCommerce in Websphere Commerce As per the request from one of the comments on the blog, this is a high level view on contracts using Websphere commerce and by no means a complete coverage of contracts as it's such a vast topic. Contracts: This is one of the most interesting concepts when dealing with both B2B and B2C eCommerce systems. Every store published out of the box is associated with a default contract. Lot of clients use contracts on B2C site, if the requirements for a B2C site include using contracts or employment purchase programs using contracts. It is a best practice to use EliteStoreFront or if you are still using V 6.0 (Advance B2B). Why are contracts required? These are good reasons. 1. If you want to use the same offer price lists as your regular customers but provide a percentage or fixed amount off of the same prices to a subset of customers such as Employees or Students. 2. If you want include or exclude a set of categories or product...

Handel _ERR_INVALID_COOKIE(Cookie) error on Login and Redirect it to another page

Open : Stores\WebContent\GenericSystemError.jsp Search for key : _ERR_INVALID_COOKIE try {       ErrorDataBean errorBean = new ErrorDataBean ();       com.ibm.commerce.beans.DataBeanManager.activate (errorBean, request);       if (errorBean.getMessageKey().equals("_ERR_INVALID_COOKIE"))       {                   Cookie cookies [] = request.getCookies ();                   Cookie myCookie = null;                   if (cookies != null){                   System.out.println ("Cookies Issue");                         for (int i = 0; i < cookies.length; i++) {                               if (cookies [i]....

Catalog Filters with Contracts

How to create catalog filters and also mapping them with Contracts. ftp://ftp.software.ibm.com/software/iea/content/com.ibm.iea.wcs/wcs/7.0.0.2/BusinessUI/CatalogFilterOverview.pdf