Advertisement
Guest User

view.phtml issues

a guest
Sep 10th, 2014
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 21.87 KB | None | 0 0
  1. <?php
  2. /**
  3.  * Magento
  4.  *
  5.  * NOTICE OF LICENSE
  6.  *
  7.  * This source file is subject to the Academic Free License (AFL 3.0)
  8.  * that is bundled with this package in the file LICENSE_AFL.txt.
  9.  * It is also available through the world-wide-web at this URL:
  10.  * http://opensource.org/licenses/afl-3.0.php
  11.  * If you did not receive a copy of the license and are unable to
  12.  * obtain it through the world-wide-web, please send an email
  13.  * to license@magentocommerce.com so we can send you a copy immediately.
  14.  *
  15.  * DISCLAIMER
  16.  *
  17.  * Do not edit or add to this file if you wish to upgrade Magento to newer
  18.  * versions in the future. If you wish to customize Magento for your
  19.  * needs please refer to http://www.magentocommerce.com for more information.
  20.  *
  21.  * @category    design
  22.  * @package     base_default
  23.  * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
  24.  * @license     http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
  25.  */
  26.  
  27. /**
  28.  * Product view template
  29.  *
  30.  * @see Mage_Catalog_Block_Product_View
  31.  * @see Mage_Review_Block_Product_View
  32.  */
  33. ?>
  34. <?php $_helper = $this->helper('catalog/output'); ?>
  35. <?php $_product = $this->getProduct(); ?>
  36.  
  37.  
  38. <?php
  39.     $meigee_indigo_productpage = MAGE::helper('ThemeOptionsIndigo')->getThemeOptionsIndigo('meigee_indigo_productpage');
  40.     if ($_product->getIndigoPrcolleteral() == 0):
  41.         $productpage_collateral = $meigee_indigo_productpage['layout']['collateral'];
  42.     else:
  43.         switch ($_product->getIndigoPrcolleteral()) {
  44.             case 1:
  45.                 $productpage_collateral = 'collateral_list';
  46.             break;
  47.             case 2:
  48.                 $productpage_collateral = 'collateral_tabs';
  49.             break;
  50.             case 3:
  51.                 $productpage_collateral = 'collateral_accordion';
  52.             break;
  53.         }
  54.     endif;
  55.     $productpage_sku = $meigee_indigo_productpage['general']['product_sku'];
  56.     $productpage_additional = $meigee_indigo_productpage['additional'];
  57.     if ($_product->getIndigoPrlayout() == 0):
  58.         $productpage_pagelayout = $meigee_indigo_productpage['layout']['pagelayout'];
  59.     else:
  60.         $productpage_pagelayout = $_product->getIndigoPrlayout();
  61.         switch ($productpage_pagelayout) {
  62.             case 1:
  63.                 $productpage_pagelayout = 'productpage_small';
  64.             break;
  65.             case 2:
  66.                 $productpage_pagelayout = 'productpage_medium';
  67.             break;
  68.             case 3:
  69.                 $productpage_pagelayout = 'productpage_large';
  70.             break;
  71.             case 4:
  72.                 $productpage_pagelayout = 'productpage_extralarge';
  73.             break;
  74.         }
  75.     endif;
  76.    
  77.     switch ($productpage_pagelayout) {
  78.         case 'productpage_extralarge':
  79.             $leftcol = 'grid_12';
  80.             $rightcol = 'grid_9';
  81.             $rightcol_no_rel = 'grid_12';
  82.             break;
  83.         case 'productpage_large':
  84.             $leftcol = 'grid_3';
  85.             $rightcol = 'grid_6';
  86.             $rightcol_no_rel = 'grid_9';
  87.             break;
  88.         case 'productpage_medium':
  89.             $leftcol = 'grid_4';
  90.             $rightcol = 'grid_5';
  91.             $rightcol_no_rel = 'grid_8';
  92.             break;
  93.         case 'productpage_small':
  94.             $leftcol = 'grid_5';
  95.             $rightcol = 'grid_4';
  96.             $rightcol_no_rel = 'grid_7';
  97.             break;
  98.         default:
  99.             $leftcol = 'grid_4';
  100.             $rightcol = 'grid_5';
  101.             $rightcol_no_rel = 'grid_8';
  102.             break;
  103.     }
  104.  
  105.     if ($_product->getIndigoPrbrand() == 0) {
  106.         $pr_brand = $meigee_indigo_productpage['brand']['productbrand'];
  107.         $pr_brandsearch = $meigee_indigo_productpage['brand']['brandsearch'];
  108.         $pr_brandtarget = $meigee_indigo_productpage['brand']['brandtarget'];
  109.     }
  110.     else {
  111.         $pr_brand = $_product->getIndigoPrbrand();
  112.         $pr_brandsearch = $_product->getIndigoPrbrandlink();
  113.         $pr_brandtarget = $_product->getIndigoPrbrandtarget();
  114.     }
  115.    
  116.     if ($_product->getIndigoPrsidebar() == 0):
  117.         $productpageSidebar = $meigee_indigo_productpage['layout']['productsidebar'];
  118.     else:
  119.         $productpageSidebar = $_product->getIndigoPrsidebar();
  120.         switch ($productpageSidebar) {
  121.             case 1:
  122.                 $productpageSidebar = 'left';
  123.             break;
  124.             case 2:
  125.                 $productpageSidebar = 'right';
  126.             break;
  127.             case 3:
  128.                 $productpageSidebar = 'none';
  129.             break;
  130.         }
  131.     endif;
  132. ?>
  133. <script type="text/javascript">
  134.     var optionsPrice = new Product.OptionsPrice(<?php echo $this->getJsonConfig() ?>);
  135. </script>
  136. <div id="messages_product_view"><?php echo $this->getMessagesBlock()->getGroupedHtml() ?></div>
  137. <div class="product-view">
  138.     <?php echo MAGE::helper('ThemeOptionsIndigo')->prevnext($_product) ?>
  139.     <?php if($productpageSidebar == 'left' and $productpage_pagelayout != 'productpage_extralarge'): ?>
  140.         <aside class="grid_3 alpha">
  141.             <?php echo $this->getChildHtml('product_col'); ?>
  142.         </aside>
  143.     <?php endif; ?>
  144.    
  145.     <?php if($productpageSidebar != 'none' and $productpage_pagelayout == 'productpage_extralarge'): ?>
  146.         <div class="grid_12 alpha omega">
  147.     <?php elseif($productpageSidebar == 'left'): ?>
  148.         <div class="grid_9 omega">
  149.     <?php elseif($productpageSidebar == 'right'): ?>
  150.         <div class="grid_9 alpha">
  151.     <?php else: ?>
  152.         <div class="grid_12 alpha omega">
  153.     <?php endif; ?>
  154.    
  155.         <div class="product-essential">
  156.             <div class="<?php echo $leftcol .' '. $productpage_pagelayout; ?> alpha <?php if($productpage_pagelayout == 'productpage_extralarge' and $productpageSidebar == 'none'): ?> omega<?php endif; ?> product-img-box">
  157.                <?php echo $this->getChildHtml('media'); ?>
  158.             </div>
  159.            
  160.             <?php if($productpageSidebar == 'left' and $productpage_pagelayout == 'productpage_extralarge'): ?>
  161.                 <aside class="grid_3 alpha">
  162.                     <?php echo $this->getChildHtml('product_col'); ?>
  163.                 </aside>
  164.             <?php endif; ?>
  165.            
  166.             <div class="<?php if($productpageSidebar != 'none') echo $rightcol; else echo $rightcol_no_rel; ?> <?php if($productpage_pagelayout == 'productpage_extralarge' and $productpageSidebar == 'right'): ?> alpha<?php elseif($productpage_pagelayout == 'productpage_extralarge' and $productpageSidebar == 'none'): ?> alpha omega<?php else: ?> omega<?php endif; ?> product-shop">
  167.                
  168.                 <?php if((($_product->isSaleable() && $this->hasOptions()) and $this->getChildChildHtml('container1', '', true, true)) or !($_product->isSaleable() && $this->hasOptions())): ?>
  169.                 <form action="<?php echo $this->getSubmitUrl($_product) ?>" method="post" id="product_addtocart_form"<?php if($_product->getOptions()): ?> enctype="multipart/form-data"<?php endif; ?>>
  170.                 <div class="no-display">
  171.                     <input type="hidden" name="product" value="<?php echo $_product->getId() ?>" />
  172.                     <input type="hidden" name="related_product" id="related-products-field" value="" />
  173.                 </div>
  174.                 <?php endif; ?>
  175.                     <!--<?php echo $this->getChildHtml('manufacturer.center'); ?>-->
  176.                     <div class="product-name<?php if(!$this->getChildHtml('catalog.product.related')){echo ' no-rel';} ?>">
  177.                         <h1><?php echo $_helper->productAttribute($_product, $_product->getName(), 'name') ?></h1>
  178.                         <!-- div setting text to uppercase -->
  179.                         <span class="name2"><?php echo $_helper->productAttribute($_product, nl2br($_product->getName2()), 'name2') ?></span>
  180.                         <span class="tags">
  181.                         <?php
  182.                             $productvolume = $_product->getproductvolume();
  183.                                 if (trim($productvolume)) {    
  184.                                                                 echo "(" . $_product->getAttributeText('productvolume') . ", " . $_helper->productAttribute($_product, nl2br($_product->getAlcoholpercentage()), 'alcoholpercentage') . "%, " . $_product->getAttributeText('region') . ")";
  185.                                 }
  186.                         ?>
  187.                         </span>
  188.                        
  189.                     </div>
  190.                     <div class="clear"></div>
  191.                    
  192.                     <?php $isTypeData = ''; if(!$this->hasOptions()): ?>
  193.                         <?php echo $this->getChildHtml('product_type_data'); ?>
  194.                     <?php elseif($_product->getTypeId() == Mage_Catalog_Model_Product_Type::TYPE_BUNDLE): ?>
  195.                         <?php echo $this->getChildHtml('product_type_data'); ?>
  196.                         <?php $isTypeData = 'bundle'; ?>
  197.                     <?php else: ?>
  198.                         <?php $isTypeData = 'left'; ?>
  199.                     <?php endif; ?>
  200.                     <?php if($_product->getTypeId() == Mage_Catalog_Model_Product_Type::TYPE_GROUPED){$isTypeData = 'left';} ?>
  201.                    
  202.                     <!--
  203.                     <?php if ($this->displayProductStockStatus()): ?>
  204.                         <?php if ($_product->isAvailable()): ?>
  205.                            <p class="availability <?php echo $isTypeData; ?> in-stock"><?php echo $this->__('Availability:') ?> <span><?php echo $this->__('In stock') ?></span></p>
  206.                         <?php else: ?>
  207.                            <p class="availability <?php echo $isTypeData; ?> out-of-stock"><?php echo $this->__('Availability:') ?> <span><?php echo $this->__('Out of stock') ?></span></p>
  208.                         <?php endif; ?>
  209.                     <?php endif; ?>
  210.                     -->
  211.                     <div class="clear"></div>
  212.                        
  213.                        <?php echo $this->getChildHtml('alert_urls') ?>
  214.                        
  215.                        <?php $optionsAvailability = false; if($_product->isSaleable() && $this->hasOptions()){$optionsAvailability = true;}?>
  216.                        
  217.                        <?php if ($_product->getShortDescription()):?>
  218.                            <div class="short-description">
  219.                                <div class="std"><?php echo $_helper->productAttribute($_product, nl2br($_product->getShortDescription()), 'short_description') ?></div>
  220.                            </div>
  221.                     <?php $angelssay = $_product->getangelssay(); ?>
  222.                         <?php if (trim($angelssay)): ?>
  223.                              <div class="angelssay">
  224.                             <span class="angelssay">
  225.                                 <?php /* echo "What Our Angels Say:"; */?>
  226.                             </span>
  227.                                 <?php echo $_helper->productAttribute($_product, nl2br($_product->getAngelssay()), 'angelssay'); ?>
  228.                             </div>
  229.                     <?php endif;?>
  230.  
  231.                        <?php endif;?>
  232.  
  233. <!-- Error Block 1 -->
  234.  
  235.                                 <?php $custom = $_product->getcustom(); ?>
  236.                                     <?php if (trim($custom == 28)): ?>    
  237.                                         <div class="customproducttxt">
  238.                                             <?php echo "Design your own Label by clicking the thumbnail below or if you want to add a more personal touch, enter your message below and we will hand write the message!"; ?>
  239.                                         </div>
  240.                                            
  241.                                     <?php elseif (trim($custom == 29)): ?>    
  242.                                         <div class="customproducttxt">
  243.                                             <?php echo "Click on the thumbnail below and start designing your own personalised message!";?>
  244.                                         </div>
  245.                                     <?php endif; ?>
  246. <!-- /Error Block 1 -->
  247.                        
  248.                        <?php if (!$this->hasOptions()):?>
  249.                        <div class="product-type-block">
  250.                             <div class="add-to-box">
  251.                                 <?php if($_product->isSaleable()): ?>
  252.                                     <?php echo $this->getChildHtml('addtocart') ?>
  253.                                <?php endif; ?>
  254.                             </div>
  255.                            
  256.                             <div class="add-to-links-box">
  257.                                <?php echo $this->getChildHtml('addto') ?>
  258.                             </div>
  259.                             <div class="clear"></div>
  260.                             <?php echo $this->getChildHtml('extra_buttons') ?>
  261.                        </div>
  262.                        <?php endif; ?>
  263.                        
  264.                        <?php if ($_product->isSaleable() && $this->hasOptions()):?>
  265.                             <div class="bundled-price">
  266.                                 <?php echo $this->getChildHtml('product_type_data'); ?>
  267.                             </div>
  268.                        <?php endif;?>
  269.                        <?php echo $this->getChildHtml('extrahint') ?>
  270.                        <?php echo $this->getChildHtml('other');?>
  271.                        <?php echo $this->getTierPriceHtml() ?>
  272.                        
  273.                         <?php
  274.                         if ($_product->getIndigoPrcustom()):
  275.                             echo '<div class="product-custom">' . $_product->getIndigoPrcustom() . '</div>';
  276.                         else:
  277.                             $product_custom_blocks = explode(",", $productpage_additional['product_custom']);
  278.                             foreach ($product_custom_blocks as $product_custom_block) {
  279.                                 echo '<div class="product-custom">' . $this->getLayout()->createBlock('cms/block')->setBlockId(trim($product_custom_block))->toHtml() . '</div>';
  280.                             };
  281.                             endif;
  282.                         ?>
  283.                        
  284.                         <?php echo $this->getChildHtml('upsell_products_slider'); ?>
  285.  
  286.                     <?php if ($_product->isSaleable() && $this->hasOptions()):?>
  287.                         <?php echo $this->getChildChildHtml('container1', '', true, true) ?>
  288.                     <?php endif;?>
  289.                
  290.                 <?php if((($_product->isSaleable() && $this->hasOptions()) and $this->getChildChildHtml('container1', '', true, true)) or !($_product->isSaleable() && $this->hasOptions())): ?>
  291.                 </form>
  292.                 <?php endif; ?>
  293.                
  294.                 <?php if ($meigee_indigo_productpage['layout']['collateral_position'] == 'details'): ?>
  295.  
  296.  
  297.  
  298.  
  299.                 <div class="product-collateral"<?php if ($productpage_collateral == 'collateral_accordion') echo " id='collateral-accordion'"; ?>>
  300.  
  301.  
  302.                     <?php
  303.                     if ($productpage_collateral == 'collateral_tabs'):
  304.                        echo $this->getChildHtml('info_tabs');
  305.                     else:
  306.                         foreach ($this->getChildGroup('detailed_info', 'getChildHtml') as $alias => $html):
  307.                            if ($title = $this->getChildData($alias, 'title')):
  308.                             echo '<h2>' . $this->escapeHtml($title) . '</h2>';
  309.                            endif;
  310.                            echo $html;
  311.                         endforeach;
  312.                         echo $this->getChildHtml('upsell_products');
  313.                         echo $this->getChildHtml('product_additional_data');
  314.                        
  315.                         if ($_product->getIndigoPrtabs()):
  316.                           $productpage_additional = $this->_product->getIndigoPrtabs();
  317.                         else:
  318.                           $productpage_additional = $meigee_indigo_productpage['additional'];
  319.                           $productpage_additional = $productpage_additional['product_tabs'];
  320.                         endif;
  321.  
  322.                         $custom_tabs = array();
  323.                         $product_custom_tabs = explode(",", $productpage_additional);
  324.                         foreach ($product_custom_tabs as $product_custom_tab) {
  325.                           $custom_tabs[] = trim($product_custom_tab);
  326.                         };
  327.                         foreach ($custom_tabs as $key) {
  328.                              if(!empty($key)):
  329.                             ?>
  330.                             <h2 id="<?php echo $key; ?>"><?php echo Mage::getModel('cms/block')->setStoreId(Mage::app()->getStore()->getId())->load($key)->getTitle(); ?></h2>
  331.                             <?php endif;
  332.                         }
  333.                     endif;
  334.                     foreach ($custom_tabs as $key) {
  335.                         if(!empty($key)): ?>
  336.                         <div class="box-collateral" id="<?php echo $key; ?>_contents"><?php echo $this->getLayout()->createBlock('cms/block')->setBlockId(trim($key))->toHtml() ?></div>
  337.                         <?php endif;
  338.                     } ?>
  339.                     </div>
  340.                 <?php endif; ?>
  341.            </div>
  342.            
  343.            <?php if($productpageSidebar == 'right' and $productpage_pagelayout == 'productpage_extralarge'): ?>
  344.                 <aside class="grid_3 omega">
  345.                 <?php echo $this->getChildHtml('product_col'); ?>
  346.                 </aside>
  347.             <?php endif; ?>
  348.            <div class="clear"></div>
  349.            
  350.             <?php if ($_product->isSaleable() && $this->hasOptions()):?>
  351.             <?php if (($_product->isSaleable() && $this->hasOptions()) and !$this->getChildChildHtml('container1', '', true, true)): ?>
  352.                 <form action="<?php echo $this->getSubmitUrl($_product) ?>" method="post" id="product_addtocart_form"<?php if($_product->getOptions()): ?> enctype="multipart/form-data"<?php endif; ?>>
  353.                 <div class="no-display">
  354.                     <input type="hidden" name="product" value="<?php echo $_product->getId() ?>" />
  355.                     <input type="hidden" name="related_product" id="related-products-field" value="" />
  356.                 </div>
  357.                 <div class="bundled-price">
  358.                     <?php echo $this->getChildHtml('product_type_data'); ?>
  359.                 </div>
  360.             <?php endif; ?>
  361.                     <?php echo $this->getChildChildHtml('container2', '', true, true) ?>
  362.             <?php if (($_product->isSaleable() && $this->hasOptions()) and !$this->getChildChildHtml('container1', '', true, true)): ?>
  363.                 </form>
  364.             <?php endif; ?>
  365.             <?php endif; ?>
  366.        
  367.             <script type="text/javascript">
  368.                 //<![CDATA[
  369.                     var productAddToCartForm = new VarienForm('product_addtocart_form');
  370.                     productAddToCartForm.submit = function(button, url) {
  371.                     if (this.validator.validate()) {
  372.                         var form = this.form;
  373.                         var oldUrl = form.action;
  374.                         if (url) {
  375.                             form.action = url;
  376.                         }
  377.                         var e = null;
  378.                         // Start of our new ajax code
  379.                         if (!url) {
  380.                             url = jQuery('#product_addtocart_form').attr('action');
  381.                         }
  382.                        
  383.                         url = url.replace("checkout/cart","ajax/index"); // New Code
  384.                         var data = jQuery('#product_addtocart_form').serialize();
  385.                         data += '&isAjax=1';
  386.                         jQuery('#ajax_loader').show();
  387.                         try {
  388.                             jQuery.ajax( {
  389.                                 url : url,
  390.                                 dataType : 'json',
  391.                                 type : 'post',
  392.                                 data : data,
  393.                                 complete: function(){
  394.                                     if(jQuery('body').hasClass('product-edit')){
  395.                                        
  396.                                         jQuery.ajax({
  397.                                             url: "<?php echo $this->getUrl('meigeeactions/updatecart/') ?>",
  398.                                             cache: false
  399.                                         }).done(function(html){
  400.                                             jQuery('header#header .top-cart').remove();
  401.                                             jQuery('header#header .quick-access').prepend(html);
  402.                                         });
  403.                                        
  404.                                         jQuery('#ajax_loader').hide();
  405.                                         jQuery('body').append('<div class="add-to-cart-success"><?php echo $_helper->productAttribute($_product, $_product->getName(), 'name').' '.$this->__('Updated') ?><br/><a href="<?php echo $this->getUrl('checkout/cart'); ?>"><span><?php echo $this->__('Go to Shopping Basket') ?></span></a><a href="#" class="btn-remove"><i class="icon-remove"></i></a></div>');
  406.                                         setTimeout(function () {jQuery('.add-to-cart-success').slideUp(500)}, 5000);
  407.                                         jQuery('.add-to-cart-success a.btn-remove').click(function(){
  408.                                             jQuery(this).parent().slideUp(500);
  409.                                             return false;
  410.                                         })
  411.                                     }
  412.                                 },
  413.                                 success : function(data) {
  414.                                     jQuery('#ajax_loader').hide();
  415.                                     if(data.status == 'ERROR'){
  416.                                         alert(data.message);
  417.                                     }else{
  418.                                         if(jQuery('.top-cart')){
  419.                                             jQuery('.top-cart').replaceWith(data.sidebar);
  420.                                         }
  421.                                         /* if(jQuery('.header .links')){
  422.                                             jQuery('.header .links').replaceWith(data.toplink);
  423.                                         } */
  424.                                     }
  425.                                     jQuery('body').append('<div class="add-to-cart-success">' + data.message +' <a href="<?php echo $this->getUrl('checkout/cart'); ?>"><span><?php echo $this->__('Go to Shopping Basket') ?></span></a><a href="#" class="btn-remove"><i class="fa fa-times" /></a></div>');
  426.                                     setTimeout(function () {jQuery('.add-to-cart-success').slideUp(500)}, 5000);
  427.                                     jQuery('.add-to-cart-success a.btn-remove').click(function(){
  428.                                         jQuery(this).parent().slideUp(500);
  429.                                         return false;
  430.                                     })
  431.                                 }
  432.                             });
  433.                         } catch (e) {
  434.                         }
  435.                         // End of our new ajax code
  436.                         this.form.action = oldUrl;
  437.                         if (e) {
  438.                             throw e;
  439.                         }
  440.                     }
  441.                 }.bind(productAddToCartForm);
  442.                
  443.                 productAddToCartForm.submitLight = function(button, url){
  444.                         if(this.validator) {
  445.                             var nv = Validation.methods;
  446.                             delete Validation.methods['required-entry'];
  447.                             delete Validation.methods['validate-one-required'];
  448.                             delete Validation.methods['validate-one-required-by-name'];
  449.                             if (this.validator.validate()) {
  450.                                 if (url) {
  451.                                     this.form.action = url;
  452.                                 }
  453.                                 this.form.submit();
  454.                             }
  455.                             Object.extend(Validation.methods, nv);
  456.                         }
  457.                     }.bind(productAddToCartForm);
  458.                 //]]>
  459.             </script>
  460.         </div>
  461.     </div>
  462.  
  463.     <?php if($productpageSidebar == 'right' and $productpage_pagelayout != 'productpage_extralarge'): ?>
  464.         <aside class="grid_3 omega">
  465.         <div class="sidebarbanner">
  466.         <?php $layout = Mage::getSingleton('core/layout'); $block = $layout->createBlock('cms/block'); $block->setBlockId('sidebarbanner'); echo $block->toHtml();  ?>
  467.         </div>
  468.         </aside>
  469.     <?php endif; ?>
  470.     <div class="clear"></div>
  471.  
  472.  
  473.  
  474.         <?php $region = $_product->getAttributeText('region'); ?>
  475.         <?php $reg = strtolower("region-" . $region) ;?>
  476.  
  477.  
  478.  
  479.  
  480.  
  481.  
  482.     <?php if ($meigee_indigo_productpage['layout']['collateral_position'] == 'underdetails'): ?>
  483.  
  484.  
  485.     <div class="product-collateral"<?php if ($productpage_collateral == 'collateral_accordion') echo " id='collateral-accordion'"; ?>>
  486.     <div class="product-collateral">
  487.  
  488. <!-- Error Block 2 --> 
  489.  
  490.     <?php $iftasting = $_product->gettastingnotes(); ?>
  491.         <?php if (trim($iftasting !== false)): ?>    
  492.              <div class="box-collateral_region">
  493.                 <h2><?php echo "Tasting Notes" ; ?></h2>
  494.                     <div class="box-collateral">
  495.                         <div class="tasting-txt">
  496.                                    <?php echo $_helper->productAttribute($_product, nl2br($_product->getTastingnotes()), 'tastingnotes') ;?>
  497.                         </div>
  498.                     </div>
  499.              </div>
  500.         <?php endif; ?>
  501. <!-- /Error Block 2 -->
  502.  
  503. <!-- Error Block 3 -->
  504.  
  505.  
  506.     <?php $manufacturer = $_product->getAttributeText('manufacturer'); ?>
  507.     <?php $manu = strtolower("manufacturer-" . $manufacturer) ;?>
  508.  
  509.     <?php $ifmanufactuer = $_product->getmanufacturer(); ?>
  510.         <?php if (trim($ifmanufacturer !== false)): ?>    
  511.              <div class="box-collateral_manufacturer">
  512.                 <h2><?php echo "Distillery" ; ?></h2>
  513.                     <div class="box-collateral">
  514.                         <div class="manufacturer-img">
  515.                             <img src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA) . 'manufacturer/' . $manufacturer . ".png"; ?>" data-srcX2="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA) . 'manufacturer/' . $manufacturer . '@x2' . ".png"; ?>" alt="" >
  516.                         </div>
  517.  
  518.                         <div class="manufacturer-txt">
  519.                                     <?php echo $this->getLayout()->createBlock('cms/block')->setBlockId($manu)->toHtml() ?>
  520.                         </div>
  521.                     </div>
  522.              </div>
  523.         <?php endif; ?>
  524.  
  525.  
  526.  
  527.  
  528. <!-- /Error block 3 -->
  529.  
  530. <?php foreach ($this->getChildGroup('detailed_info', 'getChildHtml') as $alias => $html):?>
  531.         <div class="box-collateral <?php echo "box-{$alias}"?>">
  532.             <?php if ($title = $this->getChildData($alias, 'title')):?>
  533.             <h2><?php echo $this->escapeHtml($title); ?></h2>
  534.             <?php endif;?>
  535.             <?php echo $html; ?>
  536.         </div>
  537. <?php endforeach;?>
  538.         <?php echo $this->getChildHtml('product_additional_data') ?>
  539.         <?php echo $this->getChildHtml('upsell_products') ?>
  540.     </div>
  541.         </div>
  542.     <?php endif; ?>
  543.  
  544.  
  545.  
  546.  
  547.  
  548.  
  549.     <?php echo $this->getChildHtml('catalog.product.related.bottom'); ?>
  550.     <!-- <?php echo $this->getChildHtml('product.info.review_list'); ?> -->
  551. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement