Enabling guest shopping for the Ruby storefront

In the Ruby storefront, you can enable guest shopping for customers. The steps involve enabling the related policies and guest shopping flex flow in the Commerce Lab. You can then verify that guest shopping is enabled by browsing the store catalog and placing an order as a guest customer.

  • When guest shopping is enabled, customers who are not signed in can add items to their current order and place an order. The customer pays the default contract prices. By default, guest shopping is enabled for the Ruby storefront.

Procedure

Perform the following steps to enable guest shopping:
  1. Apply the following updates to the transaction server database to modify the guest shopping access control policy.
    1. Find the member_id that owns your esite:
      select member_id from storeent where identifier=*ESITE_IDENTIIFER*
    2. Find the guest shopping policy group that owns your esite:
      select acpolgrp_id from ACPOLGRP where NAME='*ESITE_IDENTIIFER* GuestShoppingEnabledPolicyGroup'
    3. If not found, find the guest shopping policy group for your storefront asset store:
      select acpolgrp_id from ACPOLGRP where NAME='*STOREFRONT_ASSET_STORE_IDENTIFIER* GuestShoppingEnabledPolicyGroup'

      Subscribe your store's organization to the policy group using the values from steps: 1.a and 1.b

    4. Subscribe your store's organization to the policy group using the values from steps a and b:
      insert into acplgpsubs (orgentity_id, acpolgrp_id) values (*member_id*, *acpolgrp_id*)
  2. Enable the guest shopping flex flow for the Ruby storefront user interface from the Commerce Lab by following the steps given below:
    1. Open Commerce Lab Tools.
    2. From the left navigation menu, go to Business tools > Store Management > Manage Stores.
    3. All the stores are listed on this page. Double-click on the Ruby storefront. The Store Properties tab displays.
    4. Navigate to the Configurations window and select optional integrations and functions to enable or disable the guest for the Ruby storefront.
    5. Click the checkbox to Enable guest shopping (when the store is served by Next.js).
      Shopper is enabled for guest shopping from the Ruby storefront.
  3. Refresh the registries in Commerce Lab for Commerce+ or restart the Commerce+ server container.

Results

You can browse the store catalog and place an order as a guest user.