Magento Recurring Payments Custom Block

When using Magento’s Recurring payments module you are given the opportunity to allow customers to select their own start day, this is a good option to use as you can’t alter the recurring date once its started.

I was then presented with need different text next to the date picker for different products.

The solution is to make a copy of YOUR_TEMPLATE/payment/catalog/product/view/profile/options.phtml

Once you have done this you can then go into the products you want to display your custom text, go into the design tab and paste the following code where optionsNEW.phtml is the name of your new template

<reference name=”product.info.options.wrapper”>
<block type=”payment/catalog_product_view_profile” name=”product.info.options.recurring” as=”recurring_options” template=”payment/catalog/product/view/profile/optionsNEW.phtml”/>
</reference>

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.


Notice: ob_end_flush(): failed to send buffer of zlib output compression (0) in /home/wwwwebam/public_html/blog/wp-includes/functions.php on line 4339