A common question that comes up is if we support restricting products based on an "availability group" or can show different pricing based on a "price group". The short answer is "yes". There are a few different ways we can do it and I will outline a couple of them below.
Data feed
The easiest way is to introduce a new field to your feed to support availability and/or price groups. Each availability group the product is assigned to would be comma separated in one field. Then additional fields would be created for each price group.
Example:
sku | availability | price_group1 | price_group2 | price_group3 |
XK49 | 1,3 | 4.99 | 5.49 | |
JB23 | 1 | 12.99 | ||
PQ42 | 1,2,3 | 9.99 | 8.99 | 9.99 |
- Item XK49 is only available to groups 1 and 3. It's price is 4.99 for group 1 and 5.49 for group 3.
- Item JB23 is only available to group 1 and it's price is 12.99.
- Item PQ42 is available to all three groups. It's price is 9.99 for groups 1 and 3, and 8.99 for group2.
When executing a query, a predetermined background filter can be set to determine the customers availability and/or price group.
Comments
0 comments
Please sign in to leave a comment.