Adding Newsletter Checkbox to OnePageCheckout

Hi,

I’m trying to add a checkbox for newsletter subscription below the terms and conditions checkbox on the onepagecheckout page but it’s not appearing on the frontend when I add the code to the default magento /var/www/vhosts/site/httpdocs/app/design/frontend/base/default/template/checkout/onepage/review/info.phtml file.

It’s supposed to be entered here:

</script>
<div id="checkout-review-submit">
<?php echo $this->getChildHtml(‘agreements’) ?>
<?php echo $this->getChildHtml(‘awancheckout’) ?>
<div class="buttons-set" id="review-buttons-container">
<p class="f-left"><?php echo $this->__(‘Forgot an Item?’) ?> <a href="<?php echo $this->getUrl(‘checkout/cart’) ?>"><?php echo $this->__(‘Edit Your Cart’) ?></a></p>
<?php echo $this->getChildHtml(‘button’) ?>
<span class="please-wait" id="review-please-wait" style="display:none;">
<img src="<?php echo $this->getSkinUrl(‘images/opc-ajax-loader.gif’) ?>" alt="<?php echo $this->__(‘Submitting order information…’) ?>" title="<?php echo $this->__(‘Submitting order information…’) ?>" class="v-middle" /> <?php echo $this->__(‘Submitting order information…’) ?>
</span>
</div>
<script type="text/javascript">

Does the jm_purity template use another file for rendering the checkout page? If so, can you point me in the right direction?

Thanks
Matt

1 answer

Profile photo of Saguaros 0.00 $tone March 16, 2012
Public

Hi there,
This JM Purity template use default file for rendering checkout page. Please make sure that:
-- First: create template file: awancheckout.phtml in \app\design\frontend\base\defaulttemplate\checkou t\onepage directory
-- Next: modify layout file checkout.xml to include a reference to this template file by adding st like the current ‘agreements’ block:
<block type="checkout/agreements" name="checkout.onepage.agreements" as="agreements" template="checkout/onepage/agreements.phtml"/>

-- And then add ‘getChildHtml’ function as you’ve done above.
Hope you got idea.

Regards.

#1

Please login or Register to Submit Answer

Written By

Comments