Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Magento - split options of container1 and container2

In the default layout the options and add-to-cart-button are called by

<?php echo $this->getChildChildHtml('container1', '', true, true) ?>

I would like to split the configurable options from the add-to-cart and quantity field to show them on a different position in my layout. Any ideas or ready to use workarounds?

like image 479
npostulart Avatar asked Sep 06 '12 09:09

npostulart


1 Answers

You can split it very easy (but I spent a lot of time to find it :) ) - if you look to the app/code/core/Mage/Core/Block/Abstract.php to PHPDoc of public function getChildChildHtml, you will see that the second parameter determined child block name. So, you can call first before the price block render

<?php echo $this->getChildChildHtml('container1', 'product.info.options.wrapper', true, true) ?>

and after price block rendered, call

<?php echo $this->getChildChildHtml('container1', 'product.info.options.wrapper.bottom', true, true) ?>
like image 63
Vladishev Avatar answered Oct 23 '22 06:10

Vladishev