Skip to content

Instantly share code, notes, and snippets.

@amacgregor
Created April 4, 2013 09:23
Show Gist options
  • Save amacgregor/5309017 to your computer and use it in GitHub Desktop.
Save amacgregor/5309017 to your computer and use it in GitHub Desktop.
Add to registry form call
<?php
/**
* Product view template
*
* @see Mage_Catalog_Block_Product_View
* @see Mage_Review_Block_Product_View
*/
?>
<?php $_helper = $this->helper('catalog/output'); ?>
<?php $_product = $this->getProduct(); ?>
<script type="text/javascript">
var optionsPrice = new Product.OptionsPrice(<?php echo $this->getJsonConfig() ?>);
</script>
<div id="messages_product_view"><?php echo $this->getMessagesBlock()->getGroupedHtml() ?></div>
<div class="product-view">
<div class="product-essential">
<!--- Add to registry Block START -->
<?php echo $this->getChildHtml('registry_add') ?>
<!--- Add to registry Block END -->
<form action="<?php echo $this->getSubmitUrl($_product) ?>" method="post" id="product_addtocart_form"<?php if($_product->getOptions()): ?> enctype="multipart/form-data"<?php endif; ?>>
....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment