asset-share-commons icon indicating copy to clipboard operation
asset-share-commons copied to clipboard

Remove expired asset from cart

Open sumanbi opened this issue 4 years ago • 3 comments

I have few expired added in my card, I have removed the download options from all other place except from the cart. Could anyone suggest on how to achieve this functionality.

sumanbi avatar Dec 16 '21 14:12 sumanbi

IIRC whenever the cart is loaded, it makes a call to AEM to validate that the items in the local storage are infact valid items still (ie they exist and are visible to that user).

When you say "expired" how is this reflected on the asset on AEM Publish? Are you unpublishing the asset? Or are letting the asset to continue to live on AEM Publish, but with an expiry metadata property that is in the past?

davidjgonzalez avatar Dec 16 '21 15:12 davidjgonzalez

IIRC whenever the cart is loaded, it makes a call to AEM to validate that the items in the local storage are infact valid items still (ie they exist and are visible to that user).

When you say "expired" how is this reflected on the asset on AEM Publish? Are you unpublishing the asset? Or are letting the asset to continue to live on AEM Publish, but with an expiry metadata property that is in the past?

The asset is available in the publish , with the expiry metadata property that is in the past.

sumanbi avatar Dec 27 '21 05:12 sumanbi

@sumanbi Do you only want expired assets removed from the cart, but still visible on the rest of ASC (like share, direct download, asset details, etc.) .. trying to understand why just the cart?

davidjgonzalez avatar Feb 18 '22 18:02 davidjgonzalez