Quick trick or Macro build needed

Virgil Carroll asked on July 14, 2015 19:54

All,

Just wondering if anyone knows of any quick trick (existing Macro) where during the checkout process I can determine whether a product type is in the cart, if it is not I will show a 'Continue as Guest' option on the Create an Account screen so users can bypass registration. If the product type is present in the cart, I want that button disabled so I can force them to create an account.

I know I can write a custom webpart or my own macro to check the condition, but mostly just want to know if there is something existing I don't know about.

Tx, Virgil

Recent Answers


Brenden Kehren answered on July 14, 2015 20:00

You can get a list of the items by using this macro: ECommerceContext.CurrentShoppingCart.ShoppingCartItems

0 votesVote for this answer Mark as a Correct answer

Virgil Carroll answered on July 14, 2015 20:20

Thanks Brenden. I wasn't quite sure if I could use that, but I will take a look.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.