Defect HC-8940
WCSCatalogEntry do not cache for store information
Software
Customer case | Applies to | Corrected in |
---|---|---|
CS0201289 | V9.0.1.13 | 9.0.1.17 |
Observed behavior
When a product is shared between two stores, a promotion for the product in one store works correctly but a promotion in the other store does not work correctly.
Expected behavior
Promotions in effect on one store should not have an effect on promotions available to a shopper in another store.
Resolution
The code did not include the store id when caching category relationships. The product was being cached against the categories (from Store A) that it was first found to belong to. When the product was being evaluated for Store B, it did not belong to cached categories (from Store A) so was not eligible for Store B's promotion.</p> <p>The WCSCatalogEntry class was modified to consider the store id when determining and caching the category relationships for a product.