We're using Business Accounts for customers who have locations throughout the country and it's working out really nicely. We'd like to show/hide Pages/features of our site according to whether the customer's Business Account has been assigned to an Availability Group.
For instance, one of our customers has about 80 locations. Each of those locations has a Customer Account, with all of those accounts added to one central Business Account. That Business Account is assigned to an Availability Group (and Price Group). In a page template, when I check to see if one of those customer's belong to the Availability Group it returns false, even though their Business Account is assigned to the Availability Group.
I would prefer not to assign each sub-customer/location to the same availability group as the Business Account, as these Availability Groups will change quarterly, and it's far easier to change Availability Groups at the Business Account level.
Can anybody suggest how I might figure out in a page template whether a specific Availability Group has the customer's Business Account assigned to it, or alternately, to figure out which Availability Groups a Business Account is assigned to? I couldn't find any mention of this in the developer docs.
Thanks!
For instance, one of our customers has about 80 locations. Each of those locations has a Customer Account, with all of those accounts added to one central Business Account. That Business Account is assigned to an Availability Group (and Price Group). In a page template, when I check to see if one of those customer's belong to the Availability Group it returns false, even though their Business Account is assigned to the Availability Group.
I would prefer not to assign each sub-customer/location to the same availability group as the Business Account, as these Availability Groups will change quarterly, and it's far easier to change Availability Groups at the Business Account level.
Can anybody suggest how I might figure out in a page template whether a specific Availability Group has the customer's Business Account assigned to it, or alternately, to figure out which Availability Groups a Business Account is assigned to? I couldn't find any mention of this in the developer docs.
Thanks!
Comment