發表回覆建立主題發起投票

> Twe-commerce3.03 BUG 修正
oldpa
發表於: 2012-10-29, 05:27 PM
引用文章


超級會員
*****

所屬群組: 管理群組
發表總數: 5454
會員編號: 1
註冊日期: --



如果下載日為以下修正所標示的日期前
可以更改檔案修正BUG
如為標示日期之後下載則免

2012-10-29 修正商品詳細頁,放入購物車功能

開啟
templates/twe/module/product_info/product_info_v1.html
找出
{if $SHIPPING_NAME}
<div id="productsInfo">
修改成
<div id="productsInfo">
{if $SHIPPING_NAME}

2012-10-30修正商品排序遞減

開啟inc/twe_sorting.inc.php
找出
basename($_SERVER['PHP_SELF'])
更改成
FILENAME_DEFAULT
共三處


2012-11-01修正
商品上架圖片上傳後無立即顯示

開啟admin/includes/modules/categories/new_product.php
找出
332-341行
CODE

if ($pInfo->products_image){  
 echo '<tr><td colspan="4"><table><tr><td align="center" class="main" width="'.(PRODUCT_IMAGE_THUMBNAIL_WIDTH+15).'"><div id="view">' . twe_image(DIR_WS_CATALOG_THUMBNAIL_IMAGES.$pInfo->products_image, 'Standard Image') . '<br>' . $pInfo->products_image .'</div></td>';
   }
      echo '<form id="upload" method="post" action="categories.php?rType=ajax" enctype="multipart/form-data" ><td class="main">'.TEXT_PRODUCTS_IMAGE.'<br>'.twe_draw_file_field('products_image', 'id="products_image"') . '<br>' . twe_draw_separator('pixel_trans.gif', '24', '15') . twe_draw_hidden_field('products_previous_image_0', $pInfo->products_image).twe_draw_hidden_field('action', 'uploadimg').twe_draw_hidden_field('pid', $_GET['pID']).'</form>';
       if ($pInfo->products_image){
 echo '</td></tr></table>';
 } else {
 echo '</td></tr>';
 }

更改成
CODE

echo '<form id="upload" method="post" action="categories.php?rType=ajax" enctype="multipart/form-data" ><td class="main">'.TEXT_PRODUCTS_IMAGE.'<br>'.twe_draw_file_field('products_image', 'id="products_image"') . '<br>' . twe_draw_separator('pixel_trans.gif', '24', '15') . twe_draw_hidden_field('products_previous_image_0', $pInfo->products_image).twe_draw_hidden_field('action', 'uploadimg').twe_draw_hidden_field('pid', $_GET['pID']).'</form>';
       echo '<div id="view">';
 if ($pInfo->products_image){
 echo '<tr><td colspan="4"><table><tr><td align="center" class="main" width="'.(PRODUCT_IMAGE_THUMBNAIL_WIDTH+15).'">' . twe_image(DIR_WS_CATALOG_THUMBNAIL_IMAGES.$pInfo->products_image, 'Standard Image') . '<br>' . $pInfo->products_image .'</td>';
 echo '</td></tr></table>';
 } else {
 echo '</td></tr>';
 }
 echo '</div>';


如果編輯完想回到上一層目錄
但此鈕並非儲存鈕也沒有儲存功能,只是一個單純連結


開啟admin/includes/modules/categories/new_product.php
找出檔案尾
CODE

</table>
</td>
</tr>

更改成
CODE

<tr>
     <td class="main" align="right"><?php echo '<a href="' . twe_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $_GET['pID']) . '">' . twe_image_button('button_confirm_red.gif', IMAGE_CONFIRM) . '</a>' ?></td>
  </tr>
</table>
</td>
</tr>


2012-11-02修正按下商品說明的"更新商品說明"鈕
可能會跳到根目錄的問題

此次修改"現貨" "缺貨" 與上架日期方式
建議更新

下載
http://www.twecommerce.org/commerceload_tw...new_product.zip
解壓縮後覆蓋
admin/includes/modules/categories/new_product.php

開啟admin/includes/products.js.php
找出
CODE

$(document).ready(function(){

下方加入
CODE

$('#seldateAvailable').submit(function() {
 var pID = <?php echo $_GET['pID']?>;
 var pVal = $('.cal-TextBox').val();  
 var pName = 'products_date_available';  
  $.ajax({
               url: 'categories.php?rType=ajax',
               data: 'action=saveP&pid='+pID+'&val='+pVal+'&key='+pName,    
               type: 'post',  
   beforeSend: function(){
        $.blockUI({ message: '<img src="images/spinner.gif">' });
               setTimeout($.unblockUI, 500);
      },                          
               success: function (data){
               }
            });
   return false;
    });


找出
CODE

$("#products_image").live("change", function() {

下方加入
CODE

$(".display").hide();



2012-11-02
修正圖片上傳問題

開啟admin/categories.php
找出210-212行
CODE

$dup_check_query = "SELECT count(*) as total, products_image FROM ".TABLE_PRODUCTS." WHERE products_id = '".(int)$pID."'";
         $dup_check = $db->Execute($dup_check_query);
         if ($dup_check->fields['total'] < 2) { @twe_del_image_file($dup_check->fields['products_image']); }


更改成

CODE

$dup_check_query = "SELECT count(*) as total FROM ".TABLE_PRODUCTS." WHERE products_id = '".(int)$pID."'";
         $dup_check = $db->Execute($dup_check_query);
         if ($dup_check->fields['total'] < 2) { @twe_del_image_file($products_image_name); }


233-235
CODE

$dup_check_query = "SELECT count(*) as total, image_name FROM ".TABLE_PRODUCTS_MORE_IMAGES." WHERE products_id = '".$pID."' and image_nr = '".($lan_id+1)."'";
         $dup_check = $db->Execute($dup_check_query);
         if ($dup_check->fields['total'] < 2) @twe_del_image_file($dup_check->fields['image_name']);

更改成
CODE

$dup_check_query = "SELECT count(*) as total FROM ".TABLE_PRODUCTS_MORE_IMAGES." WHERE products_id = '".$pID."' and image_nr = '".($lan_id+1)."'";
         $dup_check = $db->Execute($dup_check_query);
         if ($dup_check->fields['total'] < 2) @twe_del_image_file($products_image_name);


修正圖片上傳後,原始圖片沒有更新問題
下載
http://www.twecommerce.org/commerceload_tw...new_product.zip
http://www.twecommerce.org/commerceload_tw...products.js.zip

解壓縮後覆蓋
admin/includes/modules/categories/new_product.php
admin/includes/products.js.php


2012-12-11修正出貨時程
開啟admin/includes/modules/categories/new_product.php

找出
CODE

       <td><span class="main"><?php echo twe_draw_pull_down_menu('shipping_status', $shipping_statuses, $pInfo->products_shippingtime,'id="pChange"'); ?></span></td>

更改成
CODE

       <td><span class="main"><?php echo twe_draw_pull_down_menu('products_shippingtime', $shipping_statuses, $pInfo->products_shippingtime,'id="pChange"'); ?></span></td>


2013-01-04
修正後台群組全現在IE下操作不正常現象
下載更新檔案
http://www.twecommerce.org/commerceload_tw...p_price_fix.zip

解壓縮後
依目錄路徑覆蓋檔案

2013-01-23
修正購物籃無法顯示缺貨警語

開啟includes/buynow/cart.php
找出
CODE

$stockCheck = twe_check_stock($order->products[$i]['id'], $order->products[$i]['qty']);

下方加入
CODE

if ($stockCheck) $_SESSION['any_out_of_stock']=1;


2013-04-26
修正上價商品時系統移除特殊字元問題
下載修正檔案覆蓋
http://www.twecommerce.org/downloads/twecommerce3.03-fix.zip

2013-06-03
修正商品屬性庫存不足仍可結帳問題

開啟includes/buynow/cart.php
找出

CODE

$productAttributes = '';
    if (isset($order->products[$i]['attributes']) && sizeof($order->products[$i]['attributes']) > 0) {
        for ($j=0, $n2=sizeof($order->products[$i]['attributes']); $j<$n2; $j++) {


下方加入
CODE

if (ATTRIBUTE_STOCK_CHECK == 'true' && STOCK_CHECK == 'true') {
           $attribute_stock_check = twe_check_stock_attributes($order->products[$i]['attributes'][$j]['attributes_id'], $order->products[$i]['qty']);
           if ($attribute_stock_check) $_SESSION['any_out_of_stock']=1;
         }

找出
CODE

echo $stockCheck . $productAttributes;

更改成
CODE

echo $stockCheck . $productAttributes . $attribute_stock_check;


開啟shopping_cart.php
找出
require_once(DIR_FS_INC . 'twe_check_stock.inc.php');
下方加入
 require_once(DIR_FS_INC . 'twe_check_stock_attributes.inc.php');

開啟includes/classes/order.php
找出
CODE

pa.options_values_price, pa.price_prefix from

更改成
CODE

pa.options_values_price, pa.price_prefix, pa.products_attributes_id from

找出

CODE

'price' => $attributes->fields['options_values_price']);

更改成
CODE

'price' => $attributes->fields['options_values_price'],
                 'attributes_id' => $attributes->fields['products_attributes_id']);


2013-07-05
修正商品特價+商品屬性價格總計有誤
開啟checkout_confirmation.php
找出
CODE

'<td class="main" align="right" valign="top">' .twe_get_products_price($order->products[$i]['id'],$price_special=1,$quantity=$order->products[$i]['qty'],$order->products[$i]['s_price'],$order->products[$i]['discount_allowed'],$order->products[$i]['tax_class_id']). '</td></tr>' . "\n";

更改成
CODE

'<td class="main" align="right" valign="top">' .twe_get_products_price(twe_get_prid($order->products[$i]['id']),$price_special=1,$quantity=$order->products[$i]['qty'],$order->products[$i]['s_price'],$order->products[$i]['discount_allowed'],$order->products[$i]['tax_class_id']). '</td></tr>' . "\n";

開啟
includes/classes/order.php
找出
CODE

'final_price' => twe_get_products_price($products[$i]['id'],$price_special=0,$quantity=$products[$i]['quantity'],$products[$i]['s_price'],$products[$i]['discount_allowed'],$products[$i]['tax_class_id']) + twe_get_products_attribute_price_checkout($_SESSION['cart']->attributes_price($products[$i]['id']),0,0,1,'',false)*$products[$i]['quantity'],

更改成
CODE

'final_price' => twe_get_products_price(twe_get_prid($products[$i]['id']),$price_special=0,$quantity=$products[$i]['quantity'],$products[$i]['s_price'],$products[$i]['discount_allowed'],$products[$i]['tax_class_id']) + twe_get_products_attribute_price_checkout($_SESSION['cart']->attributes_price($products[$i]['id']),0,0,1,'',false)*$products[$i]['quantity'],


2013-10-01
修正FCK編輯器IE10顯示問題
開啟admin/includes/modules/fckeditor/fckeditor.js

找出
CODE

var sAgent = navigator.userAgent.toLowerCase();

下方加入
CODE

if(sAgent.indexOf("msie 1") != -1) return true;

修正IE10商品詳細頁面,商品圖顯示問題
開啟templates/twe/module/product_info/product_info_v1.html
找出
CODE

<div style="float: left; margin:5px 10px 5px 0px; padding: 1px; border: 1px solid #ddd;">

更改成
CODE

<div style="margin:5px 10px 5px 0px; padding: 1px; border: 1px solid #ddd;">


2014-08-09
修正更新購物車總計歸零問題
開啟shopping_cart.php
找出$cart更改成$listcart

開啟inc/twe_get_news.inc.php
找出
CODE

$customers_status_array=twe_get_customers_statuses();
   for ($i=0,$n=sizeof($customers_status_array);$i<$n;$i++) {
    $db->Execute("delete from personal_offers_by_customers_status_" . $i . " where products_id = '" . twe_db_input($product_id) . "'");
   }

移除


--------------------
Twecommerce 崴騰科技有限公司
台中市西區五權五街264號 統一編號:86168702
電話:04-23781970 FAX:04-23781969 liang.ishiang@msa.hinet.net
傳送簡訊個人網站
Top
0 位使用者正在閱讀本主題 (0 位訪客及 0 位匿名使用者)
0 位會員:

主題選項 發表回覆建立主題發起投票