Variable To Show Product ID on CC Page

Discussion in 'Customization & add-ons' started by scott_sm, Jul 7, 2011.

  1. scott_sm

    scott_sm New Member

    Joined:
    Aug 22, 2006
    Messages:
    26
    I'd like to be able to show content on the "cc_info.html" page depending on the product being purchased.

    For example: (this doesn't work)

    Code:
    {if $p.product_id eq 1}
    You Are Purchasing Product #1
    {/if}
    Problem is, none of the product_id variables seem to work on the cc_info.html page.

    What is the variable I can use to identify the "product_id" inside the cc_info.html page?
  2. scott_sm

    scott_sm New Member

    Joined:
    Aug 22, 2006
    Messages:
    26
    nevermind..

    Funny I've been trying to figure this out for months... and I just got it after posting above.

    This Works:

    Code:
    {if $payment.product_id eq 1}
    You are purchasing Product #1
    {/if}
  3. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    @scott_sm: Glad we could help. ;-)

Share This Page