Public feed
#601222
confero@madrid:~/www/shop/templates/confero/content$ diff product_info.tpl.php product_info.tpl.php_withchanges
1c1,27
< <?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">
---
> <script type="text/javascript">
> function toggleLayer( whichLayer )
> {
> var elem, vis;
> element=document.getElementById('shippingMessage');
> if( document.getElementById ) // this is the way the standards work
> elem = document.getElementById( whichLayer );
> else if( document.all ) // this is the way old msie versions work
> elem = document.all[whichLayer];
> else if( document.layers ) // this is the way nn4 works
> elem = document.layers[whichLayer];
> vis = elem.style;
> // if the style.display value is blank we try to figure it out here
> if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
> vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none';
> vis.display = (vis.display==''||vis.display=='block')?'none':'block';
>
> if((vis.display==''|| vis.display=='block')) {
> element.innerHTML = 'Hide Shipping Rates';
> }
> else {
> element.innerHTML = 'View Shipping Rates';
> }
> }
>
> </script>
> <?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">
104c130,139
< <p><?php echo stripslashes($product_info['products_description']); ?></p>
---
> <p><?php echo stripslashes($product_info['products_description']); ?>
> <br>
>
> <h3><a href="javascript:toggleLayer('shippingRates');" title="shippingRates"><div id="shippingMessage">View Shipping Rates</div></a></h3>
> <div id="shippingRates" style="display: none;">
> <?php
> require('shipping_rates.php');
> ?>
> </div>
> </p>