Checkout Page Issue

Discussion in 'Templates customization' started by max937, Mar 19, 2010.

  1. max937

    max937 New Member

    Joined:
    Aug 16, 2009
    Messages:
    8
    Hello,

    I need the cc_info page to show different text depending on which product is purchased.

    For example, if product 1 is purchased the user will see on cc_info:

    1. The receipt
    2. Custom text for product 1
    3. The rest of the payment fields etc.

    If product 2 is purchased, the user will see on cc_info:

    1. The receipt
    2. Custom text for product 2
    3. The rest of the payment fields etc.


    So what I am looking for I think is a IF command that will let me display different text depending on which product is purchased.

    Support told me to try this:

    {if $product.product_id eq 1}
    text for product 1
    {elseif $product.product_id eq 2}
    text for product 2
    {/if}

    But it didn't work.. anyone know how to achieve this? Basically I want different images showing up depending on what package the customer is buying.

    Thank you!
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    This should work:
    Code:
    {if $payment.product_id == 1}
    text1
    {elseif $payment.product_id ==2}
    text2
    {/if}
    

Share This Page