到货日期功能修改

来源:互联网 发布:淘宝上买到假酒犯法吗 编辑:程序博客网 时间:2024/04/27 13:42

app\design\frontend\base\default\template\catalog\product\view\options\wrapper.phtml

<?php/** * Magento * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE_AFL.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@magentocommerce.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade Magento to newer * versions in the future. If you wish to customize Magento for your * needs please refer to http://www.magentocommerce.com for more information. * * @category    design * @package     base_default * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com) * @license     http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0) */ /** * @deprecated  after 1.4.0.0-alpha3 */?><div class="product-options" id="product-options-wrapper">  <?php echo $this->getChildHtml('', true, true);?>  <?php if ($this->hasRequiredOptions()):?>  <p class="required"><?php echo $this->__('* Required Fields') ?></p>  <?php endif;?></div><script type="text/javascript">decorateGeneric($$('#product-options-wrapper dl'), ['last']);</script><!--到货日期--><?php $tailoring_difficulty_level = $this->getProduct()->getResource()->getAttribute('tailoring_difficulty_level')->getFrontend()->getValue($this->getProduct());?><?php if($tailoring_difficulty_level === 'hard'): echo $this->getLayout()->createBlock('cms/block')->setBlockId('latestarrivaldateishard')->toHtml(); endif?><?php if($tailoring_difficulty_level === 'easy'): echo $this->getLayout()->createBlock('cms/block')->setBlockId('latestarrivaldateiseasy')->toHtml(); endif?><?php if(!($tailoring_difficulty_level === 'hard') && !($tailoring_difficulty_level === 'easy')): echo $this->getLayout()->createBlock('cms/block')->setBlockId('latestarrivaldate')->toHtml(); endif?><!--尺码选择--><script type="text/javascript" src="../../../../../../../../../../skin/frontend/default/theme130k/js/customSize.js"></script><!--如图选择--><script type="text/javascript" src="../../../../../../../../../../skin/frontend/default/theme130k/js/theSameAspicture.js"></script>



app\design\frontend\default\theme508\template\ecommerceteam\cloud-zoom\catalog\product\view\media.phtml

<?php/** * Cloud Image Zoom - Magento Extension * * @package     CloudZoom * @category    EcommerceTeam * @copyright   Copyright 2011 EcommerceTeam Inc. (http://www.ecommerce-team.com) * @version:    1.1.3 *//** @var $this Mage_Catalog_Block_Product_View_Media *//** @var $product Mage_Catalog_Model_Product */$product      = $this->getProduct();/** @var $helper EcommerceTeam_CloudZoom_Helper_Data */$helper       = Mage::helper('ecommerceteam_cloudzoom');/** @var $outputHelper Mage_Core_Block_Abstract */$outputHelper = $this->helper('catalog/output');$position       = $helper->getConfigData('position');$showTitle      = intval($helper->getConfigFlag('show_title'));$titleOpacity   = intval($helper->getConfigData('title_opacity')) / 100;$lensOpacity    = intval($helper->getConfigData('lens_opacity')) / 100;$tintColor      = trim($helper->getConfigData('tint_color'));$tintOpacity    = intval($helper->getConfigData('tint_opacity')) / 100;$zoomWidth      = intval($helper->getConfigData('zoom_width'));$zoomHeight     = intval($helper->getConfigData('zoom_height'));$bigImageWidth  = intval($helper->getConfigData('big_image_width'));$bigImageWidth  = 500;$bigImageHeight = intval($helper->getConfigData('big_image_height'));$bigImageHeight = 750;$config = array(    "position:'{$position}'",    "showTitle:{$showTitle}",    "titleOpacity:{$titleOpacity}",    "lensOpacity:{$lensOpacity}",);    if ($position == 'inside') {    $config[] = 'adjustX: -4,adjustY:-4';} elseif ($position == 'right') {    $config[] = 'adjustX: 10,adjustY:-4';} elseif ($position == 'bottom') {    $config[] = 'adjustX: -4,adjustY:10';} elseif ($position == 'left') {    $config[] = 'adjustX: -18,adjustY:-4';} elseif ($position == 'top') {    $config[] = 'adjustX: -4,adjustY:-18';}if ($tintColor) {    $config[] = "tint:'{$tintColor}',tintOpacity:{$tintOpacity}";}if ($zoomWidth) {    $config[] = "zoomWidth:{$zoomWidth}";}if ($zoomHeight) {    $config[] = "zoomHeight:{$zoomHeight}";}?>    <script type="text/javascript">    jQuery(document).ready(function() {        jQuery('.tumbSlider').jcarousel({                vertical: false,                visible:3,                scroll: 1            });    });    </script>  <!--优惠贴片开始-->  <?php $cost = $product->getResource()->getAttribute('cost')->getFrontend()->getValue($product);  $price = $product->getResource()->getAttribute('price')->getFrontend()->getValue($product);  $saleoff = ($cost - $price) / $cost;  $saleoff = number_format($saleoff, 2, '.', '');  $saleoff = intval($saleoff*100);  ?>  <div style="position:relative"><div class="sale<?php echo $saleoff;?>off"></div></div>  <!--  优惠贴片结束-->      <?php $ships_in_24hrs_catalog = $product->getResource()->getAttribute('shipsin24hrs')->getFrontend()->getValue($product);?>    <?php if($ships_in_24hrs_catalog === 'Yes'): echo $this->getLayout()->createBlock('cms/block')->setBlockId('ships_in_24hrs_catalog')->toHtml(); endif?><?php if ($product->getImage() != 'no_selection' && $product->getImage()): ?><p class="product-image">    <a href='<?php echo $this->helper('catalog/image')->init($product, 'image')->resize($bigImageWidth, $bigImageHeight);?>' class = 'cloud-zoom' id='zoom1' rel="<?php echo implode($config, ',');?>"><img class="small" src="<?php echo $this->helper('catalog/image')->init($product, 'image')->resize(106, 106);?>" alt='' title="<?php echo $this->htmlEscape($this->getImageLabel());?>" /><img class="big" src="<?php echo $this->helper('catalog/image')->init($product, 'image')->resize(308, 462);?>" alt='' title="<?php echo $this->htmlEscape($this->getImageLabel());?>" />    </a></p><?php else: ?><p class="product-image">    <?php        $_img = '<img src="'.$this->helper('catalog/image')->init($product, 'image')->resize(308,462).'" alt="'.$this->htmlEscape($this->getImageLabel()).'" title="'.$this->htmlEscape($this->getImageLabel()).'" />';        echo $outputHelper->productAttribute($product, $_img, 'image');    ?></p><?php endif; ?><?php if (count($this->getGalleryImages()) > 0): ?> <?php if (count($this->getGalleryImages()) > 3)  {$carous='tumbSlider'; } else {  $carous='tumbSlider-none';}            ?><div class="more-views">    <h2><?php echo $this->__('More Views') ?></h2><div class="container-slider"><div class="<?php echo $carous;?>"><ul class="slider"><?php foreach ($this->getGalleryImages() as $_image): ?><li><a href='<?php echo $this->helper('catalog/image')->init($product, 'image', $_image->getFile())->resize($bigImageWidth, $bigImageHeight);?>' class='cloud-zoom-gallery' title='<?php echo $this->htmlEscape($_image->getLabel()) ?>'rel="useZoom: 'zoom1', smallImage: '<?php echo $this->helper('catalog/image')->init($product, 'image', $_image->getFile())->resize(308, 462);?>' "><img src="<?php echo $this->helper('catalog/image')->init($product, 'thumbnail', $_image->getFile())->resize(100);?>" alt="<?php echo $this->htmlEscape($_image->getLabel()) ?>"/></a></li><?php endforeach; ?></ul></div></div></div><?php endif; ?><!--到货日期--><?php $tailoring_difficulty_level = $this->getProduct()->getResource()->getAttribute('tailoring_difficulty_level')->getFrontend()->getValue($this->getProduct());?><?php if($tailoring_difficulty_level === 'hard'): echo $this->getLayout()->createBlock('cms/block')->setBlockId('latestarrivaldateishard')->toHtml(); endif?><?php if($tailoring_difficulty_level === 'easy'): echo $this->getLayout()->createBlock('cms/block')->setBlockId('latestarrivaldateiseasy')->toHtml(); endif?><?php if(!($tailoring_difficulty_level === 'hard') && !($tailoring_difficulty_level === 'easy')): echo $this->getLayout()->createBlock('cms/block')->setBlockId('latestarrivaldate')->toHtml(); endif?><!--尺码选择--><script type="text/javascript" src="../../../../../../../../../../skin/frontend/default/theme130k/js/customSize.js"></script><!--如图选择--><script type="text/javascript" src="../../../../../../../../../../skin/frontend/default/theme130k/js/theSameAspicture.js"></script>

app\design\frontend\default\theme508\template\catalog\product\view\media.phtml

<?php/** * Magento * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE_AFL.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@magentocommerce.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade Magento to newer * versions in the future. If you wish to customize Magento for your * needs please refer to http://www.magentocommerce.com for more information. * * @category    design * @package     base_default * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com) * @license     http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0) *//** * Product media data template * * @see Mage_Catalog_Block_Product_View_Media */?><?php    $_product = $this->getProduct();    $_helper = $this->helper('catalog/output');?><?php if ($_product->getImage() != 'no_selection' && $_product->getImage()): ?><p class="product-image product-image-zoom default-zoom">    <?php        $_img = '<img id="image" src="'.$this->helper('catalog/image')->init($_product, 'image').'" alt="'.$this->htmlEscape($this->getImageLabel()).'" title="'.$this->htmlEscape($this->getImageLabel()).'" />';        echo $_helper->productAttribute($_product, $_img, 'image');    ?></p><p class="zoom-notice" id="track_hint"><?php echo $this->__('Double click on above image to view full picture') ?></p><div class="zoom">    <img id="zoom_out" src="<?php echo $this->getSkinUrl('images/slider_btn_zoom_out.gif') ?>" alt="<?php echo $this->__('Zoom Out') ?>" title="<?php echo $this->__('Zoom Out') ?>" class="btn-zoom-out" />    <div id="track">        <div id="handle"></div>    </div>    <img id="zoom_in" src="<?php echo $this->getSkinUrl('images/slider_btn_zoom_in.gif') ?>" alt="<?php echo $this->__('Zoom In') ?>" title="<?php echo $this->__('Zoom In') ?>" class="btn-zoom-in" /></div><script type="text/javascript">//<![CDATA[    Event.observe(window, 'load', function() {        product_zoom = new Product.Zoom('image', 'track', 'handle', 'zoom_in', 'zoom_out', 'track_hint');    });//]]></script><?php else: ?><p class="product-image">    <?php        $_img = '<img src="'.$this->helper('catalog/image')->init($_product, 'image')->resize(265).'" alt="'.$this->htmlEscape($this->getImageLabel()).'" title="'.$this->htmlEscape($this->getImageLabel()).'" />';        echo $_helper->productAttribute($_product, $_img, 'image');    ?></p><?php endif; ?><?php if (count($this->getGalleryImages()) > 0): ?>     <?php if (count($this->getGalleryImages()) > 3)  {$carous='tumbSlider'; } else {  $carous='tumbSlider-none';}  ?><div class="more-views container-slider">    <h2><?php echo $this->__('More Views') ?></h2>    <div class="<?php echo $carous;?>">        <ul class="slider">        <?php foreach ($this->getGalleryImages() as $_image): ?>            <li>                <a href="#" onclick="popWin('<?php echo $this->getGalleryUrl($_image) ?>', 'gallery', 'width=300,height=300,left=0,top=0,location=no,status=yes,scrollbars=yes,resizable=yes'); return false;" title="<?php echo $this->htmlEscape($_image->getLabel()) ?>"><img src="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize(94); ?>" alt="<?php echo $this->htmlEscape($_image->getLabel()) ?>" /></a>            </li>        <?php endforeach; ?>        </ul>    </div></div><?php endif; ?>    <script type="text/javascript">    jQuery(document).ready(function() {        jQuery('.tumbSlider').jcarousel({                vertical: false,                visible:3,                scroll: 1            });    });    </script><!--到货日期--><?php $tailoring_difficulty_level = $this->getProduct()->getResource()->getAttribute('tailoring_difficulty_level')->getFrontend()->getValue($this->getProduct());?><?php if($tailoring_difficulty_level === 'hard'): echo $this->getLayout()->createBlock('cms/block')->setBlockId('latestarrivaldateishard')->toHtml(); endif?><?php if($tailoring_difficulty_level === 'easy'): echo $this->getLayout()->createBlock('cms/block')->setBlockId('latestarrivaldateiseasy')->toHtml(); endif?><?php if(!($tailoring_difficulty_level === 'hard') && !($tailoring_difficulty_level === 'easy')): echo $this->getLayout()->createBlock('cms/block')->setBlockId('latestarrivaldate')->toHtml(); endif?><!--尺码选择--><script type="text/javascript" src="../../../../../../../../../../skin/frontend/default/theme130k/js/customSize.js"></script><!--如图选择--><script type="text/javascript" src="../../../../../../../../../../skin/frontend/default/theme130k/js/theSameAspicture.js"></script>


0 0