国际电子商务技术 & Magento开发公司

Magento technologies

Welcome visitor! You canlogin orcreate an account.

热线:+86-0532-58973093

麦神电子商务
Mygod Technologies

官方认证开发工程师

网站头部购物车显示价格和产品数量以及货币符号获取

2013年1月11日星期五 Asia/Shanghai下午6:07:39

网站头部购物车页面修改如下:

<?php $_cartQty = $this->getSummaryCount() ?>
<div class="block-mini-cart" id="goodter">       <?php if ($_cartQty>0): ?>        <?php //echo $this->__('Shopping Cart(Empty)')?>                        <?php echo $_cartQty; ?>item -                 <?php echo Mage::helper('checkout')->formatPrice($this->getSubtotal()) ?>       <?php else: ?>    <?php  $symbol= Mage::app()->getLocale()->currency(Mage::app()->getStore()->getCurrentCurrencyCode())->getSymbol(); ?>      <?php echo  '<span class="empty">0 item - <span class="price">'.$symbol.'0.00</span> </span>';?>          <?php endif ?> <div class="actions"> <a href="<?php echo Mage::getBaseUrl('web');?>checkout/cart/" rel="nofollow">View Bag</a><span>|</span> <a class="checkout" href="<?php echo Mage::getBaseUrl('web');?>checkout/onepage/" rel="nofollow">Checkout</a> </div></div> 

网站的获取货币的方法

<script type="text/javascript">var urlAddress=parent.document.location;var pageName=document.title; function addfavorite(){try {window.external.addFavorite(urlAddress, pageName);}catch(e){try{window.sidebar.addPanel(pageName,urlAddress,"");}catch(e){alert('Unfortunately, your browser does not support this action,' + ' please bookmark this page manually by pressing Ctrl + D on PC or Cmd + D on Mac.');}}}function killErrors(){return true;}window.onerror=killErrors;</script> 
<?php if($this->getCurrencyCount()>1): ?><div class="currency-view-switcher"><ul  class="langandbookmark"> <li class="bookmark"><a class="bookmarka" onclick="addfavorite()" href="javascript:void(0)" rel="nofollow">Bookmark Page</a></li> <li class="home"><a href="http:///" title="home" rel="nofollow">Home</a></li> </ul><ul><li style="margin-top:5px;"><a rel="nofollow"  class="c_currency"><img style="margin-top:6px;margin-right:8px" src="<?php echo $this->getSkinUrl('') ?>images/terry/<?php echo $this->getCurrentCurrencyCode(); ?>.jpg" /><?php echo  Mage::app()->getLocale()->currency($this->getCurrentCurrencyCode())->getSymbol()."&nbsp;&nbsp;"; echo $this->getCurrentCurrencyCode(); ?></a><div class="ddkk"><?php $i=0; foreach ($this->getCurrencies() as $_code => $_name): ?><?php if($_code==$this->getCurrentCurrencyCode()){continue;}if($i==0){ $cClass='';}else{ $cClass='code_Class';}?>
<a rel="nofollow" class="rr<?php echo $_code ?> <?php echo $cClass;?>" href="<?php echo $this->getSwitchCurrencyUrl($_code) ?>"><span><img style="margin-right: 10px;margin-top: 3px;" src="<?php echo $this->getSkinUrl('') ?>images/terry/<?php echo $_code; ?>.jpg" /><?php echo Mage::app()->getLocale()->currency($_code)->getSymbol()."&nbsp;&nbsp;";echo $_code ?></span></a><br /><?php $i++; endforeach; ?></div></li></ul></div><?php endif; ?>

0 Comments | Posted in Magento教程 By lei sheng

magento js问题

2012年12月27日星期四 Asia/Shanghai下午6:01:36

好久没有写js了,不知道为什么在magento里面用jquery写法也是标准的,有时就是不能加载 for判断执行jquery,最好用each来代替for执行,这是一个选项卡的代码
  • Springfield Curl Plastic Grass from Evergreens UK

    Springfield Curl

    For Events, Displays

    £6.95 ex vat

    Fresh from Evergreens UK

    Fresh   NEW

    For Events, Displays

    £12.95 ex vat

    Funky artificial grass colours by Evergreens UK

    Funky Blue

    For Play, Events, Displays

    £25.00 ex vat

    Logo Mats

    Logo Mats

    For Events, entrances

    Promotional Sport Flooring

    Promotional Football Pitches

    For Events, promotions

    Entrance Mats

    Entrance Mats

    For shops, offices

    View all artificial grass products >

    Display & Point Of Sale Flooring

    We supply a range of artificial grass, carpet and vinyl flooring specifically for displays, events, exhibitions, point of sale, VIP nights, award evenings and in-store promotions. We offer a number of different colours, styles and grades to meet your budget.

    We also offer a 24hr / 7 days a week professional UK wide install service and within our installation teams we have specialist installers of vinyl, laminate and ceramics as well as artificial turf and expo carpet.

    Our clients include worldwide brands and department stores such as Nike, Adidas, Santander, Harrords, John Lewis & Selfridges.

    Please view this section for more information on our display flooring services or call 01572 768208.  

View Regional Offices » We offer a UK wide installation
service via our licensee network

Keep in touch…

  • Twitter
  • Facebook
  • Youtube

and stay up to date with our latest developments with our email newsletter

css文件代码省略.
0 Comments | Posted in Magento教程 By lei sheng

在您的网站上添加人人,微博的分享按钮

2012年6月18日星期一 Asia/Shanghai上午7:15:25

譬如本篇文章下面的分享按钮,单个搞比较麻烦,可以通过一段小js实现这个分享功能

只要把下面的代码拷贝,然后复制到你想要显示的地方即可

<!-- Baidu Button BEGIN -->
    <div id="bdshare" class="bdshare_t bds_tools get-codes-bdshare">
        <span class="bds_more">分享到:</span>
        <a class="bds_qzone"></a>
        <a class="bds_tsina"></a>
        <a class="bds_tqq"></a>
        <a class="bds_renren"></a>
        <a class="shareCount"></a>
    </div>
<script type="text/javascript" id="bdshare_js" data="type=tools&amp;uid=256116" ></script>
<script type="text/javascript" id="bdshell_js"></script>
<script type="text/javascript">
    document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + new Date().getHours();
</script>
<!-- Baidu Button END -->

里面是float:left的方式,可能添加上会有点乱,自己在调一下样式就好了!

0 Comments | Posted in Magento教程 By terry water
 
  • Mygod Technologies
  • 青岛麦神网络有限公司
  • 香港中路8号
  • 中铁青岛中心大厦A3001
  • 市南区, 青岛, 266000
  • 电话: 0532-5897-3093

订阅我们的最新消息。

我们将严格尊重您的隐私。

关注我们的微信
获取外贸电子商务最新资讯;跨境推广最新策略;电子商务网站技术最新趋势。

2018 Mygod Technologies. 保留所有权. Privacy Policy