在 Zen Cart 產品頁面插入 facebook「讚」按鈕

修改 \includes\templates\CUSTOM_TEMPLATE\templates\tpl_product_info_display.php,在 <!–bof Form start–> 之前加上這一行:

<iframe src="http://www.facebook.com/widgets/like.php?href=<?php echo urlencode(zen_href_link(zen_get_info_page((int)$_GET['products_id']),'cPath='.(int)$_GET['cPath'].'&products_id=' . (int)$_GET['products_id'])); ?>&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:40px"></iframe>

原始說明來自:Add Facebook ‘Like’ button to your Zen Cart product pages

Zen Cart v1.3.9 升級問題

在下列幾個檔案中

  1. /admin/includes/configure.php
  2. /admin/includes/languages/english.php
  3. /includes/configure.php
  4. /includes/functions/functions_email.php
  5. /includes/languages/english.php

加上一行指定店面所在時區的參數:

      date_default_timezone_set('America/Los_Angeles');

另外 /includes/languages/english.php 裡,在 // Shipping Estimator 分類裡少了一行:

     define('CART_ITEMS_CN','item(s) in cart');