Samples > Sample stores > B2B direct business model > Up and running with the advanced B2B direct starter store > Configure the advanced B2B direct store


Enable guest shopping in an advanced B2B direct store


Procedure

  1. To enable guest shopping in a B2B direct store, Seller Administrator should perform the following tasks

    1. Login to Organization Administration Console

    2. Select Access Management>Find Organizations

    3. Enter the organization's short name or parent organization name and click Find

      If no values are entered in the fields, all the available organizations will be listed.

    4. Select the check box next to B2B Organization and click Policy Subscription

    5. Select AdvancedB2BDirectGuestShoppingEnabledPolicyGroup under Available policy groups and click Add to add it under Selected policy groups

    6. Stop the WebSphere Commerce Server

    7. Make a backup of the following file:

      WC_EAR/Stores.war/WEB-INF/struts-config-ext.xml

    8. Open following file in an editor:

      WC_EAR/Stores.war/WEB-INF/struts-config-ext.xml Search for path="/OrderItemAdd"

    9. Change the authenticate flag for the store from 1 to 0 for the OrderItemAdd command. For example, if the storeId is 10001.

      <action 
      parameter="com.ibm.commerce.orderitems.commands.OrderItemAddCmd" 
      path="/OrderItemAdd" 
      type="com.ibm.commerce.struts.BaseAction"> 
      <set-property property="https" value="10001:1,10104:1,10655:1"/> 
      <set-property property="authenticate" value="10001:0,10104:1,10655:1"/> 
      </action>
      

    10. Open

      WC_EAR/Stores.war/WEB-INF/struts-config-ext.xml
      

      in an editor. Search for path="/OrderItemDisplay"

    11. Change the authenticate flag for the store from 1 to 0 for the OrderItemDisplay command. For example, if the storeId is 10001.

      <action 
      parameter="com.ibm.commerce.orderitems.commands.OrderItemDisplayCmd" 
      path="/OrderItemDisplay" 
      type="com.ibm.commerce.struts.BaseAction"> 
      <set-property property="https" value="10001:1,10104:1,10655:1"/> 
      <set-property property="authenticate" value="10001:0,10104:1,10655:1"/> 
      </action>
      

    12. Change the authenticate flag for the store from 1 to 0 for the OrderItemDisplayView command. For example, if the storeId is 10001.

      <action path="/OrderItemDisplayView" type="com.ibm.commerce.struts.BaseAction"> 
      <set-property property="https" value="10001:1,10104:1,10655:1"/> 
      <set-property property="authenticate" value="10001:0,10104:1,10655:1"/> 
      </action>
      

    13. Save the file and start the WebSphere Commerce Server.

    14. Go to the store as a guest, http://host/webapp/wcs/stores/servlet/TopCategoriesDisplay?storeId=xxx&catalogId=yyy

    15. Complete shopping flow.

  2. Disable guest shopping in an advanced B2B direct store To disable guest shopping in an advanced B2B direct store, Seller Administrator should perform the following tasks.

    1. Login to the Organization Administration Console.

    2. Select Access Management>Find Organizations.

    3. Enter the organization's short name or parent organization name and click Find Note: If no values are entered in the fields, all the available organizations will be listed.

    4. Select the check box next to B2B Organization and click Policy Subscription.

    5. Select AdvancedB2BdirectGuestShoppingEnabledPolicyGroup and click Remove.

    6. Restore the WC_EAR/Stores.war/WEB-INF/struts-config-ext.xml file that you created a backup file for when you enabled guest shopping in an advanced B2B direct store.


Related concepts

B2B direct business model


+

Search Tips   |   Advanced Search