0

please visit this " http://boards.newtrendzonline.com/"

this is galagiftshop theme

I need to to Put "Email us" and "phone no" on left side of shopping cart basket.

let me know if you have any queries.

please help me to find solution.

thanks in advance.

1

Please create a Static Block from admin Panel . You can use one Static Block for the both Email-us and Phone No .

Please make sure from where you are using the cart basket html .

Just before that call the Static block you had created for the Email-us and Phone No.

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

This will get the Static Block HTML of Email and Phone no before Cart Basket.

Thanks.

|improve this answer|||||
  • thanks a lot for your reply, can we gie link inside static block, please visit "boards.newtrendzonline.com" here for E-mail us, i gave href link in static block, but its working, how to give link for text, which insidestatic block.... – Baby in Magento Aug 28 '14 at 4:56
  • Can you please share me the code that you are using in the Static Block for the anchor tag to the text ? – Rahul Aug 28 '14 at 5:18
  • check here : pastebin.com/gryDGrQx <?php echo $this->getChildHtml('galagiftshop_header_ad');?> this block – Baby in Magento Aug 28 '14 at 5:20
  • Are you sure your using Static Block for the Email us in the header.phtml because in code it shows that your including the external file by getChildHtml function (<?php echo $this->getChildHtml('galagiftshop_header_ad');?>) . If your using the static block inside the (galagiftshop_header_ad) file then please share me the code of the Static Block where you had used Email us text. – Rahul Aug 28 '14 at 5:30
  • no, i am not.... – Baby in Magento Aug 28 '14 at 5:32
1

You can create two static blocks for this and put those static blocks in appropriate position in the layout.

Let us assume your static blocks are header-email and header-phone. In that case, you can use the following code in appropriate position in header.phtml(I am not sure about this template file. But most probably it should be the template file that renders those parts).

File : app/design/frontend/<package>/<theme>/template/page/html/header.phtml

<div>
    <?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('header-phone')->toHtml(); ?>
</div>
<div>
    <?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('header-email')->toHtml(); ?>
</div>

You need to invoke this code snippets in appropriate postion in header.phtml. Also you may need to do some css works in order to make them align well

Hope that helps.

|improve this answer|||||
  • hi, thanks a lot for reply, i will try, be with me, thanks.... – Baby in Magento Aug 28 '14 at 4:03
  • thanks a lot for your reply, can we gie link inside static block, please visit "boards.newtrendzonline.com" here for E-mail us, i gave href link in static block, but its working, how to give link for text, which insidestatic block.... – Baby in Magento Aug 28 '14 at 5:00
  • I think you can put link through static block itself. put <a href="some/path/to/go" title="Some text">Some text</a> inside static block. – Rajeev K Tomy Aug 28 '14 at 5:03
  • where did you insert static block? inside header.phtml ? – Rajeev K Tomy Aug 28 '14 at 5:07
  • 1
    Thanks a lot Programmer_kit and Rahul both of the answers are correct here. as Rahul spend more time on this, and Rahul is having less reputation than Programmer_rkt, I want to vote for Rahul answer as correct. – Baby in Magento Aug 28 '14 at 8:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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