Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2005
    Posts
    144
    Plugin Contributions
    0

    Default I need to put code for a badge on only the Checkout page

    Hi,

    I need to put a little bit of code on a checkout page for a badge. I'd like to put the code in the header, but it only be called on the checkout page. Is that possible? Is there a variable that tells me I'm on the checkout page?

    Thanks
    David

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: I need to put code for a badge on only the Checkout page

    I need to put a little bit of code on a checkout page for a badge.
    Which page?
    page=checkout_shipping
    page=checkout_payment
    page=checkout_confirmation
    page=checkout_success

    Create a custom tpl_header.php and in your template folder create a corresponding page folder
    checkout_shipping
    checkout_payment
    checkout_confirmation
    checkout_success

    And place your custom file in that folder

  3. #3
    Join Date
    Mar 2005
    Posts
    144
    Plugin Contributions
    0

    Default Re: I need to put code for a badge on only the Checkout page

    Kobra,

    I was just coming back to specify :)

    It's on page=checkout_success. And I''d like to put the code in the header on every page, but only have it displayed on the page=checkout_success page.

    So in the header:

    if(page==checkout_success){
    display code;
    }

    Is there a variable that I can access that will tell me that I am on page=checkout_success?

    Thanks
    David

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: I need to put code for a badge on only the Checkout page

    Just put the custom file in a folder named checkout_success in your template
    my_template/checkout_success/tpl_header.php

  5. #5
    Join Date
    Mar 2005
    Posts
    144
    Plugin Contributions
    0

    Default Re: I need to put code for a badge on only the Checkout page

    That's perfect. Thank you.

 

 

Similar Threads

  1. v151 Can I put some html content on the first page only?
    By Kevin205 in forum General Questions
    Replies: 24
    Last Post: 17 May 2013, 10:21 PM
  2. Newsletters not allowing my to put in pictures.. Put the html code via rich text..
    By bobmundo123 in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 18
    Last Post: 26 Dec 2012, 10:32 PM
  3. I'm trying to put my SSL badge below my sideboxes
    By strugglingnovice in forum General Questions
    Replies: 12
    Last Post: 8 Dec 2011, 01:06 AM
  4. Where in the product page do I put this bit of code?
    By autoace in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 9 Aug 2010, 10:08 PM
  5. Replies: 0
    Last Post: 12 Nov 2009, 03:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg