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
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
Which page?I need to put a little bit of code on a checkout page for a badge.
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
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
Just put the custom file in a folder named checkout_success in your template
my_template/checkout_success/tpl_header.php
That's perfect. Thank you.