In certain cases, the Add to Cart button may not appear for logged-in users, even when viewing an item that is available for purchase. This behavior can vary across customers for the same item and is typically linked to the PCV (Price and Customer Visibility) setup.
Key Points:
- The visibility of the Add to Cart button is controlled by the
itemAPIresponse, specifically the_ispurchasableflag. - For the button to be displayed,
_ispurchasablemust be set totrue. - If the PCV configuration is incorrect or incomplete for a given customer or item,
_ispurchasablemay returnfalse, resulting in the button being hidden. - This issue can affect only specific users, depending on how PCV rules are applied.
Recommended Action:
If you encounter a scenario where the Add to Cart button is missing:
- Verify the PCV setup for the affected customer and item.
- Check the
itemAPIresponse to confirm the value of_ispurchasable. - If
_ispurchasableisfalsedue to PCV misconfiguration, update the PCV rules to ensure proper visibility.
Proper PCV configuration ensures consistent purchasing behavior across customer segments and prevents confusion during the shopping experience.