Oops! It appears that you have disabled your Javascript. In order for you to see this page as it is meant to appear, we ask that you please re-enable your Javascript!


It is a new project, and I wish I cnn record some important modification here.

1. Fatal error: Call to a member function add_rewrite_tag() on a non-object in …/taxonomy.php on line 289
=> sol: commented line 289 and 290 from wp-includes/taxonomy.php
2. 購物車商品圖片顯示error:
=> sol: 路徑問題 wp-content/plugins/wp-e-commerce/wp-shopping-cart.php LINE:170
// $upload_url = get_option(‘siteurl’).’/files’;
$upload_url = get_option(‘siteurl’);
3. WP e-Commerce 的小數點設定
=> sol: 開啟 wp-e-commerce/wpsc-includes/processing_functions.php, 找到 $price_out,修改此處 -> $price_out = number_format($price_in, 0, ‘.’, ‘,’); 為想顯示的位數

=> sol: 開啟 wp-e-commerce/wpsc-includes/cart.class.php LINE 1206  改成$price =  number_format($price, 0, ‘.’, ‘,’);

4.購買通告CSS 位置
wp-e-commerce/themes/default/default.css LINE 874 #fancy_notification

wp-e-commerce\themes\default\shopping_cart_page.php LINE 153~ 162 註解起來

因為亂碼 所以改用shaindi 購物車來改

6. 無法正確顯示以購物成功是因為URL

7 修改產品的URL 用ID 而非name(未實作)
meta_value: 網址小字串


8. 鎖右鍵
請在 貼上下面內容:
onDragStart="return false" onContextmenu="return false" onSelectStart="return false"

9. IE 重複送出 form

由於我使用default theme
修改 themes/default/products_page.php LINE: 230
將 type="submit" 改為 type="button" onclick="submit();return false;"

10. 網址分頁action 錯誤網址
wpsc-includes/wpsc_query.php LINE:72
$output = $output."page/{$wpsc_query->query_vars['page']}/";

11. checkout要秀出description 但不是依序每一個項目!!
title='echo wpsc_the_product_description(); '

12. 訂購完成要秀出description, 但不是依序每一個項目!!
transaction_result_function.php 約LINE:277

13. widget 描述長度縮短

href='' title=''>

$string = mb_substr(wpsc_cart_item_name(),0,30, "UTF8");
echo $string;

14. 重覆products-page
資料庫 wp_options 表格的 option_value 有多products-page

15. 修改內建標籤雲的數量上限與大小上下限

16. 讓wp-e-commerce也將購物明細寄至自己信箱(廠商信箱)
transaction_result_functions.php 約四百行附近
在此行 wp_mail($email, TXT_WPSC_ORDER_PENDING_PAYMENT_REQUIRED, $message);下方加入 wp_mail(get_option('return_email'), TXT_WPSC_ORDER_PENDING_PAYMENT_REQUIRED, $message);

在此行wp_mail($email, TXT_WPSC_PURCHASERECEIPT, $message);下方加入 wp_mail(get_option('return_email'), TXT_WPSC_PURCHASERECEIPT, $message);

17. 留言區增加一個’清除重來’
其實只要增加 < input type="reset" value="清除重來" >, 在依據你當時的版型作修正

18. wp-e-comerce 連結失效(link error)
就是我將外掛關閉又啟用後, 發現產品連結失效, 分類連結也失效, 我認為是資料庫的問題!
但是就在我誤打誤撞, 就修好了!! 特此紀錄一下, 我做了兩件事1)新增分類 2)將product catogories放在側欄

2 thoughts on “dbelu-lucky