0

I'm trying to add a static block that will display beneath each item's price on Magento's checkout page. I created a simple CMS block with the following settings in the admin area:

Title: Free Shipping Banner

Identifier: free_shipping_banner

Store View: All store views

Status: Enabled

I then added this line of code to app/design/frontend/base/default/template/checkout/onepage/review/item.phtml within the first :

<?php echo Mage::app()->getLayout()->createBlock('cms/block')->setBlockId('free_shipping_banner')->toHtml(); ?>

The code is not in a location where it is effected by any if statements or anything else that I can tell would be a problem. Am I creating and displaying the block correctly with my line of code?

4
  • What happen if you replace that code with <?php echo 'here - free shipping' ?>? Feb 29, 2016 at 20:38
  • Nothing. Should have checked that first. Looks like I've got some work ahead of me--thanks for the tip!
    – sadq3377
    Feb 29, 2016 at 20:45
  • I may be putting the code in the wrong phtml file, but I'm having trouble finding the right one. Any help would certainly be appreciated.
    – sadq3377
    Feb 29, 2016 at 20:51
  • Turn template hints. see stackoverflow.com/questions/24273443/… Feb 29, 2016 at 20:52

1 Answer 1

0

You are editing the wrong file.

Try

<?php echo 'here - free shipping' ?>

Turn on template hints to see the correct path see :

In magento 1.9.0.0 how can I Enable template path Hint?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.