How to make if work with mod checkout

Discussion in 'Customizations' started by tango, Mar 10, 2011.

  1. tango Customer

    I am trying to do this on the sidebar:

    {if $mod=='quick_checkout'}
    <div class="one"></div>
    {else}
    <div class="two"></div>
    {/if}

    It doesn't work becasue i am unsure how to call the module quick checkout. Thanks for reading.
  2. Mike-N-Tosh Developer & Moderator

    If you are using the Quick Checkout Module then it is active, so it would probably be easier to check for the script being run, which is usercheckout.php.

    Use the smarty Debug to see the exact variable name.
  3. tango Customer

    Great that did it, thanks. Here is the code i used for any one who is interested

    Code:
    {if $body=='quick_checkout/checkout/container.tpl'}
    <div class="one"></div>
    {else}
    <div class="two"></div>
    {/if}

Share This Page