优惠贴片 **% off
来源:互联网 发布:淘宝绝对正品的文具店 编辑:程序博客网 时间:2024/05/17 03:26
\app\design\frontend\default\theme570\template\catalog\product\list.phtml
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image"> <!--优惠贴片开始--> <?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 class="sale<?php echo $saleoff;?>off"></div> <!-- 优惠贴片结束--> <img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(270,386); ?>" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /> </a>
app\design\frontend\default\theme570\template\ecommerceteam\cloud-zoom\catalog\product\view\media.phtml
<div class="product-box-customs"> <!--优惠贴片开始--> <?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> <!-- 优惠贴片结束-->
0 0
- 优惠贴片 **% off
- theme508 增加优惠贴片
- GoDaddy优惠码:Reminder: 30% OFF Ends Sunday
- 优惠
- BLE-CC2640R2F-(01)off-oad片外空中升级
- 贴片电阻封装
- 贴片元件封装
- 传感器的“贴片”
- 贴片电容
- 贴片电容
- 贴片电容颜色
- 常用贴片封装
- 贴片二极管封装
- 贴片安全.........
- SMT贴片介绍
- IXWebHosting优惠码/优惠链接
- 贴片电阻、贴片电容规格、封装、尺寸
- 贴片电阻贴片电容规格封装尺寸功率
- 去除WordPress的小工具上的 WordPress.org 版权
- Shader Storage Buffer Object
- 求链表倒数第k个节点
- ztree根据关键字模糊搜索
- 常见HTTP错误码小结
- 优惠贴片 **% off
- 人工神经网络模型
- vs2015安装--未解决
- android studio音乐播放方式
- 如何在同一页上运行不同版本的jQuery?(转)
- fflush(stdin) & fflush(stdout)
- LightOJ 1198
- C语言常见英文词汇表
- 关于FFMPEG多音频合成的命令使用