Adding a static block on the cart page

I would like to add a static block at the cart page, in fact I need to add a Free Shipping picture. My questions are:

1) How to do it?
2) How to position to determine the position of the static block on this page

Thank you.

4 answers

Profile photo of chavan 100.00 $tone March 31, 2011
Public

I would like to add a static block at the cart page, in fact I need to add a Free Shipping picture. My questions are:

1) How to do it?
2) How to position to determine the position of the static block on this page

Thank you.

Go to this Folder :

app/design/frontend/default/jm_painite/template/

Search for contacts folder.

If you find the contacts folder then open this file

app/design/frontend/default/jm_painite/template/contacts/form.phtml

Then Add this Code

Code:

<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('contact_form_content')->toHtml() ?>

After this Line of code

[CODE]
<div class="page-title">
<h1><?php echo Mage::helper(‘contacts’)->__(‘Contact Us’) ?></h1>
</div>
[CODE]

Login to Admin then Goto CMS->Page

Then Create a CMS Block in the name "contact_form_content’"

If you do not find the contact file in the above specified folder.

upload the attached file in the JM Painte template folder app/design/frontend/default/jm_painite/

#1
Profile photo of chavan 100.00 $tone March 31, 2011
Public

It seems you misunderstood, I was not meaning the CONTACT FORM but the CART page. Can you help?

Go to this Page app\design\frontend\base\defaulttemplate\checkout

copy the cart.phtml file and place it in the below folder

app\design\frontend\default\jm_painitetemplate\ch eckout\

Then open the file and add this code after this line of code

Code:

<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>

Code:

<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('cart_content')->toHtml() ?>

Login to Admin then Goto CMS->Page

Then Create a CMS Block in the name "cart_content’"

#3

This question is now closed

Written By

Comments