Posts Tagged ‘OSCcommerce’
解決 OSCommerce 前後台錯誤訊息
星期五, 二月 5, 2010 16:54 No Comments第一次安裝OSCommerce 前台會顯示一些警示訊息,處理方式如下:
將cateloge\includes\install資料夾刪除
categloe\indludes\configure.php設成"唯讀"
在根目錄新增"tmp"資料夾
處理完後前台就不會出現警示訊息了,但後台卻出現錯誤訊息
安裝在IIS上
Fatal error: Cannot re-assign $this in C:\Inetpub\wwwroot\catalog\admin\includes\classes\upload.php on line 31
安裝在Apache上
Fatal error: Cannot re-assign $this in C:\AppServ\www\catalog\admin\includes\classes\upload.php on line 31
解決方法:把此行代碼$this = null; 改為 unset($this);
就可以嘍!!
OSCommerce商品問與答後台錯誤解決方法
星期一, 十二月 21, 2009 23:20 No Comments這好像跟php的版本有關係,之前使用php4的時候後台還沒有出現錯誤訊息,但改成php5以後就出現了下面的錯誤訊息了。
1
2
3
4
5
6
7
8
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in
/catalog/admin/product_aq.php on line 424
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in
/catalog/admin/product_aq.php on line 427
Warning: reset() [function.reset]: Passed variable is not an array or object in
/catalog/admin/includes/classes/object_info.php on line 18
Warning: Variable passed to each() is not an array or object in
/catalog/admin/includes/classes/object_info.php on [...]
在OSCommerce 中間區塊增加熱門商品
星期三, 二月 20, 2008 21:04 No Comments修改前一定要先備份喔!!
這是從best_seller.php box from 2.2MS2 所修改來的檔案
說明:
best_seller.php 是賣得最好的商品
most_viewed.php 是點閱率高的商品
附件解壓縮後:
most_viewed.php 放到/includes/boxes
most_viewed.sql 匯入到資料庫裡面
將圖片放到 /images/default 您也可以把它改成符合您網站的色調
在到 /includes/languages/tchinese.php 增加下面的code
// most_viewed box text in includes/boxes/most_viewed.php
define('BOX_HEADING_MOSTVIEWED', '熱門商品');
define('BOX_HEADING_MOSTVIEWED_IN', '熱門商品');
在將變數寫入includes/modules/sts_inc/sts_user_code.php
$sts->start_capture();
require(DIR_WS_BOXES.'most_viewed.php');
$sts->restart_capture('most_viewed','box');
$sts->stop_capture('');
把$most_viewed#變數貼到 index.php.html 您要的位置就大功告成嚕!!
效果圖
熱門商品
讓廠商名稱或圖片出現在商品頁面
星期四, 二月 14, 2008 1:04 1 Comment非常容易修改廠商名稱或圖片出現在OSCommerce 的商品資訊頁面,你只需要修改兩個檔案 catalog/includes/functions/general.php catalog/product_info.php
修改前請先備份
開啟catalog/includes/functions/general.php
將下列加到 ?> 之前 //// // Return a product's manufacturer image function tep_get_manufacturers_image($product_id) { $the_manufacturers_query = tep_db_query("select m.manufacturers_id, m.manufacturers_name, m.manufacturers_image, mi.manufacturers_url from " . TABLE_MANUFACTURERS . " m, " . TABLE_MANUFACTURERS_INFO . " mi, " . TABLE_PRODUCTS . " p where p.products_id = '" . $product_id . "' and p.manufacturers_id [...]




