Child pages
  • [in-commerce] Login Before Checkout Conditional Check
Skip to end of metadata
Go to start of metadata

Imported From: http://groups.google.com/group/in-portal-dev/browse_thread/thread/eeada54ad758907f#

There is <inp2:m_RequireLogin condition="Comm_RequireLoginBeforeCheckout" login_template="in-commerce/checkout/login"/> tag in checkout pages, and it works well.

How could I use it for a conditional check inside an m_if ? My tries haven't been successful...

5 Comments

  1. Here is how to do this:

    <inp2:m_if check="m_GetConfig" name="Comm_RequireLoginBeforeCheckout">
     <!--## only goes here, when "Comm_RequireLoginBeforeCheckout"
    configuration setting is enabled ##-->
     <inp2:m_ifnot check="m_LoggedIn">
    <!--## only goes here, when user isn't logged in ##-->
     .....
    </inp2:m_ifnot>
    </inp2:m_if>

    On Mon, May 28, 2012 at 3:46 PM, Phil <p...@wbtc.fr> wrote:
    > Hi guys,

    > there's <inp2:m_RequireLogin condition="Comm_RequireLoginBeforeCheckout"
    > login_template="in-commerce/checkout/login"/> tag in checkout pages, and it
    > works well.
    > How could I use it for a conditional check inside an m_if ? My tries
    > haven't been successful...

    > thanks
    > p

  2. thanks for fast reply :)

    Envoy

  3. oh, by the way, I forgot to ask, is it possible to detect pending status too? In order to permit users to checkout, even before validating their email...

    Envoy

  4. Nope, since any <inp2:m_if check="u_Field" ...> tag, that can be used for
    that purpose can only operate on logged-in user, but Pending user can't
    login.