我们在Magento网站上实施了BizRate商家评级代码,不幸的是,它使页面的其余部分功能消失(缩放图像无法加载,而且最重要的“添加到购物车”按钮不起作用。
这是我通过Aheadworks Z Blocks加载的代码(以及我们的BBB评级)
<table style="width: 312px; background-color: #ffffff; height: 60px; border: 0px solid #949494;" border="0" cellspacing="5" cellpadding="0" align="center">
<tbody>
<tr>
<td style="text-align: center;" colspan="2"><br /> <!-- BEGIN: Bizrate Medal (112x37 pixels) -->
<script type="text/javascript">// <![CDATA[
var bizrate={small:"true"};
<script src="//medals.bizrate.com/medals/js/16820_medal.js" type="text/javascript">
// ]]></script>
<p><a class="br-button"> <img usemap="#16820_medal" src="//medals.bizrate.com/medals/dynamic/small/16820_medal.gif" border="0" alt="See Carrot Ink Reviews at Bizrate.com" width="112" height="37" />
<map name="16820_medal">
<area title="See Carrot Ink Reviews at Bizrate.com" shape="poly" coords="1,0,1,36,61,36,61,20,111,20,111,0" href="//www.bizrate.com/ratings_guide/merchant_detail__mid--16820.html?rf=sur" target="_blank" />
<area title="Bizrate" shape="rect" coords="62,21,111,36" href="//www.bizrate.com/?rf=sur" target="_blank" />
</map>
</a></p>
<!-- END: Bizrate Medal (112x37 pixels) --></td>
<td style="text-align: center;" colspan="2"><br /> <a id="bbblink" class="rbhzbus" style="display: block; position: relative; overflow: hidden; width: 100px; height: 38px; margin: 0px; padding: 0px;" title="Carrot Ink, Ink Cartridge - Refill & Sales, Carrollton, TX" href="http://www.bbb.org/dallas/business-reviews/ink-cartridge-refill-and-sales/carrot-ink-in-carrollton-tx-37007583#bbblogo" target="_blank"><img id="bbblinkimg" style="padding: 0px; border: none;" src="http://seal-dallas.bbb.org/logo/rbhzbus/carrot-ink-37007583.png" alt="Carrot Ink, Ink Cartridge - Refill & Sales, Carrollton, TX" width="200" height="38" /></a>
<script type="text/javascript">// <![CDATA[
var bbbprotocol = ( ("https:" == document.location.protocol) ? "https://" : "http://" ); document.write(unescape("%3Cscript src='" + bbbprotocol + 'seal-dallas.bbb.org' + unescape('%2Flogo%2Fcarrot-ink-37007583.js') + "' type='text/javascript'%3E%3C/script%3E"));
// ]]></script>
</td>
</tr>
</tbody>
</table>
关于如何清洁这样的magento的任何想法继续运作?先感谢您。 ++++++++++++ 更新:嗯 - 这通过Magento HTML编辑器纠正了一些代码。
然而,现在我与它下面的“单元格”没有很好的分离 - 任何关于我没有关闭的想法可能会弄乱格式化?感谢
答案 0 :(得分:0)
试试这个
<table style="width: 312px; background-color: #ffffff; height: 60px; border: 0px solid #949494;" border="0" cellspacing="5" cellpadding="0" align="center">
<tbody>
<tr>
<td style="text-align: center;" colspan="2"><br /> <!-- BEGIN: Bizrate Medal (112x37 pixels) -->
<script type="text/javascript">
// <![CDATA[
var bizrate={small:"true"};
// ]]>
</script>
<script src="//medals.bizrate.com/medals/js/16820_medal.js" type="text/javascript">
<p><a class="br-button"> <img usemap="#16820_medal" src="//medals.bizrate.com/medals/dynamic/small/16820_medal.gif" border="0" alt="See Carrot Ink Reviews at Bizrate.com" width="112" height="37" />
<map name="16820_medal">
<area title="See Carrot Ink Reviews at Bizrate.com" shape="poly" coords="1,0,1,36,61,36,61,20,111,20,111,0" href="//www.bizrate.com/ratings_guide/merchant_detail__mid--16820.html?rf=sur" target="_blank" />
<area title="Bizrate" shape="rect" coords="62,21,111,36" href="//www.bizrate.com/?rf=sur" target="_blank" />
</map>
</a></p>
<!-- END: Bizrate Medal (112x37 pixels) --></td>
<td style="text-align: center;" colspan="2"><br /> <a id="bbblink" class="rbhzbus" style="display: block; position: relative; overflow: hidden; width: 100px; height: 38px; margin: 0px; padding: 0px;" title="Carrot Ink, Ink Cartridge - Refill & Sales, Carrollton, TX" href="http://www.bbb.org/dallas/business-reviews/ink-cartridge-refill-and-sales/carrot-ink-in-carrollton-tx-37007583#bbblogo" target="_blank"><img id="bbblinkimg" style="padding: 0px; border: none;" src="http://seal-dallas.bbb.org/logo/rbhzbus/carrot-ink-37007583.png" alt="Carrot Ink, Ink Cartridge - Refill & Sales, Carrollton, TX" width="200" height="38" /></a>
<script type="text/javascript">
// <![CDATA[
var bbbprotocol = ( ("https:" == document.location.protocol) ? "https://" : "http://" ); document.write(unescape("%3Cscript src='" + bbbprotocol + 'seal-dallas.bbb.org' + unescape('%2Flogo%2Fcarrot-ink-37007583.js') + "' type='text/javascript'%3E%3C/script%3E"));
// ]]>
</script>
</td>
</tr>
</tbody>
</table>
此代码块(脚本标记内的脚本)出现错误
<script type="text/javascript">
// <![CDATA[
var bizrate={small:"true"};
<script src="//medals.bizrate.com/medals/js/16820_medal.js" type="text/javascript">
// ]]>
</script>