Actually, while this can be done, there is no logic to it.
The Product Info page is there to ADD a product to a cart. If you also have a button that goes to checkout, then your shoppers could go to checkout "by accident", and before they have a chance to ADD the product they are currently viewing...
They will be offered TWO buttons. Either they:-
1. ADD the product on display to the cart, OR
2. Don't add it - but go to checkout
You would do better to invoke the shopping cart sidebox and put some buttons in there. I have done this, with the sidebox to show ONLY when there is something in the cart, and ONLY when not on the shopping cart main page.
GO HERE and add the product you see to the cart, then look at the top left column.
Tell me if this is a better idea.
If you are determined to have the button on the INFO page (which I think is a bad idea) then the following code in tpl_product_info_display.php may be what you are after:
The above DIV is given a style ID of checkoutOnInfoPage, allowing you set a style in the CSS.PHP Code:<?php if ($_SESSION['cart']->count_contents() != 0) { ?>
<div id="checkoutOnInfoPage"><?php echo '<a href="' . zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . zen_image_button(BUTTON_IMAGE_CHECKOUT, BUTTON_CHECKOUT_ALT) . '</a>'; ?></div>
<?php
}
?>




