Out of the box, Commerce sets the /atg/commerce/order/OrderLookup component’s siteScope setting to null, so that the OrderLookup servlet bean returns all orders in a customer’s history. You can modify this setting to return only orders for the current site, or only orders for the sites in a sharing group. See ATG Commerce Guide to Setting Up a Store for more details.