not displaying a catalog in an order guide, when the cat item has user criteria...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2024 08:41 AM
Bit of an odd one that we cant figure out easily, and I am sure we're not the only one to face this issue....
We have a catalog item that has some Available For user criteria on it, restricting the visibility to a fairly narrow audience. that catalog item has been placed in an order guide, but it still displays for everyone in the OG. When someone who does NOT meet the user criteria selects the item and clicks next, they get an error message "order guide has no items to order". this is effective at preventing the user from submitting an item they don't have access to, but isn't the best experience.
Is there any way to have the order guide simply not display the item in the order guide, if the user doesn't have access to that item?
We've tried almost everything we can think of from a scripting standpoint...on the order guide and the catalog item. we really don't want to get into DOM manipulation, which is apparently an option. The order guide simply doesn't respect the user criteria on the item itself.
Appreciate any and all suggestions...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2024 08:51 AM
Hi @pbostian,
I recommend to use the onload Catalog client scripts to verify whether the user has access to the catalog item. You can refer the User criteria for logic.
If the logged-in user lacks access to the catalog item, it is recommended to remove the selection options. This solution is expected to effectively resolve the issue.
Thanks,
Sagar Pagar