幾乎人人都有facebook帳號
假如購物車中也加入個連結可以讓使用者在他的facebook上加入產品的連結
這樣會讓網站流量增加不少唷
ecshop購物車的商品頁中加入facebook的"讚"
1.先到http://developers.facebook.com/docs/reference/plugins/like/#
參考like box的參數
2.在ecshop模板的good.dwt找出適當的位置加入
<script>document.write("<iframe src='http://www.facebook.com/plugins/like.php?href="+document.URL+"&layout=standard&show_faces=false&width=350&action=like&font=verdana&colorscheme=light&height=25' scrolling='no' frameborder='0' style='border:none; overflow:hidden; width:350px; height:25px;' allowTransparency='true'></iframe>")</script>3.上傳更新
http://www.mylcy.com/shop/goods-74.html
林桔園蜜餞行網誌歡迎轉載及分享,請記得標記本篇網址,謝謝!
沒有留言:
張貼留言