PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 7/13/2017 1:59 PM by  Adam Bernstein
Hide PayPal Express from Cart view if not logged in
 0 Replies
 0 Subscribed to this topic
 1 Subscribed to this forum
Sort:
You are not authorized to post a reply.
Author Messages





New Member






--
7/13/2017 1:59 PM
    Is there a way to hide PayPal Express from the Cart view if the user is not logged in? In Views/Cart/Index.cshtml, I see:
    [code=csharp]@if (Model.PayPalExpressAvailable) {
    [PayPal Express button gets added here]
    }
    [/code]
    However, is there anything I can add to the logic to check for logged in status? I don't see anything in CartViewModel.

    Or is there another way to achieve this?

    FYI, the reason for hiding it is that if the non-registered user purchases via PayPal Express, they do not get prompted to create an account during the checkout process, so it appears it would require a support request to connect them to their order information after purchase.

    We are using Hotcakes version 1.10.4 Pro, and our store is [url=https://www.practicewise.com/Store]here[/url].

    Thanks in advance!
    You are not authorized to post a reply.


    Loading
    • Sign-up for the Hotcakes Community Newsletter: