バージョン選択

フォーラム

メニュー

オンライン状況

55 人のユーザが現在オンラインです。 (45 人のユーザが フォーラム を参照しています。)
登録ユーザ: 2
ゲスト: 53
tattsu coinbazzar もっと...

サイト内検索

バグ報告 > 管理機能 > 商品並び替え 正常に機能しない

管理機能

新規スレッドを追加する

| 古いものから 前のトピック | 次のトピック | 下へ
投稿者 スレッド
illfrog300
投稿日時: 2009/10/14 1:15
対応状況: −−−
一人前
登録日: 2009/5/4
居住地:
投稿: 106
Re: 商品並び替え 正常に機能しない
ご返信ありがとう御座います。

かれこれこのビューの定義と格闘し始めて3日目となりました(笑

dtb_products.maker_idは既に外した状態となっています。

他にも修正前のvw_products_allclass_detailとvw_products_allclassをコミュニティ(eccube-comu)の物と見比べ、r17959を適用させた事により一体何の項目を追加させなければいけないのかと検討し試行錯誤しておりますが未だ解決の糸口をつかめていない状況となっています。
(r17959を適用させるにあたりどのようなビューの再定義がひつようとなってくるのかを宜しければご説明願えないでしょうか><)

引用:

FROM
dtb_products
LEFT JOIN
(
SELECT
product_id,
MIN(product_code) AS product_code_min,
MAX(product_code) AS product_code_max,
MIN(price01) AS price01_min,
MAX(price01) AS price01_max,
MIN(price02) AS price02_min,
MAX(price02) AS price02_max,
MIN(stock) AS stock_min,
MAX(stock) AS stock_max,
MIN(stock_unlimited) AS stock_unlimited_min,
MAX(stock_unlimited) AS stock_unlimited_max,
COUNT(*) as class_count
FROM dtb_products_class
GROUP BY product_id
) AS T4
ON dtb_products.product_id = T4.product_id
;

の呼び出し方自体が正式版2.4.0では適合しないとかはないですよね?

最新版:2.4.1のほうは今回の並び替えバグは改善されているのでしょうか?コードを見た限りでは修正されているように思えたのでご質問させて頂きました。(2.4.1のLc_Page_Products_List.phpとvw_products_allclass_detail&vw_products_allclassを入れ替えてみましたが同様のエラーにはなりました。)
seasoft
投稿日時: 2009/10/14 0:23
対応状況: −−−
登録日: 2008/6/4
居住地:
投稿: 7367
Re: 商品並び替え 正常に機能しない
私どものお客様の環境で同様の修正を行なう場合、正式版であってもビューはEC-CUBEコミュニティ(eccube-comu)のものに差し替えています。

ただし、EC-CUBEコミュニティは、テーブルに固有の追加列(確かメーカー検索絡み)があるので、その列だけは削除します。


----------------
Seasoft
こちらでの投稿は、アイディア程度に留めさせていただいております。
個別案件の作業は有償で承っております。お気軽にご相談ください。

illfrog300
投稿日時: 2009/10/13 16:57
対応状況: −−−
一人前
登録日: 2009/5/4
居住地:
投稿: 106
Re: 商品並び替え 正常に機能しない
いつもお世話になっております。

現在私も、この「商品並び替え」エラーを修正しようと
17853→17938→17959とLC_Page_Products_List.phpを修正しまして
vw_products_allclass_detailとvw_products_allclassをコミュニティバージョンのcreate_view.sqlを参考にビュー修正させて頂きました。しかし、商品一覧画面ではエラー表示。

ビューの参照が上手く処理されたいないと思いまして
ログを見ましたところ下記となつていました。

引用:
SELECT DISTINCT product_id FROM vw_products_allclass AS allcls WHERE del_flg = 0 AND status = 1 AND category_id IN ( ?,? ,? ,? ,? ,? )
DB Error: no such field

SELECT DISTINCT product_id FROM vw_products_allclass AS allcls WHERE del_flg = 0 AND status = 1 AND category_id IN ( 13,'17' ,'16' ,'15' ,'18' ,'14' ) [DB Error: no such field]

/var/www/html/products/list.php 34:LC_Page_Products_List_Ex->process
/var/www/html/data/class_extends/page_extends/products/LC_Page_Products_List_Ex.php 114:LC_Page_Products_List->lfDispProductsList
/var/www/html/data/class/pages/products/LC_Page_Products_List.php 434:SC_Query->getCol
/var/www/html/data/class/SC_Query.php 434:SC_DbConn->getCol
/var/www/html/data/class/SC_DbConn.php 133:DB_common->getCol
/var/www/html/data/module/DB/common.php 1368:DB_common->raiseError
/var/www/html/data/module/DB/common.php 1853:PEAR->raiseError
/var/www/html/data/module/PEAR.php 557:DB_Error->DB_Error
/var/www/html/data/module/DB.php 893:PEAR_Error->PEAR_Error


正直申しまして、旧ビューから今回の修正を行った上で適切となる
新ビューの必要項目がわかりきれていないためcreate_view.sqlの
SQL分をそのまま引用させて頂きビュー改訂を行った次第でございます。

現在の各ビューは下記構成となっております。
たいへん厚かましいご質問となりますが、
本修正を無事完了させるために必要なビュー項目をご教授頂けますと大変助かります。。

▼vw_products_allclass
引用:

product_id integer 変更
name text 変更
deliv_fee numeric 変更
sale_limit numeric 変更
rank integer 変更
status smallint 変更
product_flag text 変更
point_rate numeric 変更
comment1 text 変更
comment2 text 変更
comment3 text 変更
comment4 text 変更
comment5 text 変更
comment6 text 変更
note text 変更
file1 text 変更
file2 text 変更
file3 text 変更
file4 text 変更
file5 text 変更
file6 text 変更
main_list_comment text 変更
main_list_image text 変更
main_comment text 変更
main_image text 変更
main_large_image text 変更
sub_title1 text 変更
sub_comment1 text 変更
sub_image1 text 変更
sub_large_image1 text 変更
sub_title2 text 変更
sub_comment2 text 変更
sub_image2 text 変更
sub_large_image2 text 変更
sub_title3 text 変更
sub_comment3 text 変更
sub_image3 text 変更
sub_large_image3 text 変更
sub_title4 text 変更
sub_comment4 text 変更
sub_image4 text 変更
sub_large_image4 text 変更
sub_title5 text 変更
sub_comment5 text 変更
sub_image5 text 変更
sub_large_image5 text 変更
sub_title6 text 変更
sub_comment6 text 変更
sub_image6 text 変更
sub_large_image6 text 変更
del_flg smallint 変更
creator_id integer 変更
create_date timestamp without time zone 変更
update_date timestamp without time zone 変更
deliv_date_id integer 変更
product_code_min text 変更
product_code_max text 変更
price01_min numeric 変更
price01_max numeric 変更
price02_min numeric 変更
price02_max numeric 変更
stock_min numeric 変更
stock_max numeric 変更
stock_unlimited_min smallint 変更
stock_unlimited_max smallint 変更
class_count bigint 変更
category_rank integer 変更
category_id integer 変更
product_rank



▼vw_products_allclass_detail
引用:

product_id integer 変更
name text 変更
deliv_fee numeric 変更
sale_limit numeric 変更
rank integer 変更
status smallint 変更
product_flag text 変更
point_rate numeric 変更
comment1 text 変更
comment2 text 変更
comment3 text 変更
comment4 text 変更
comment5 text 変更
comment6 text 変更
note text 変更
file1 text 変更
file2 text 変更
file3 text 変更
file4 text 変更
file5 text 変更
file6 text 変更
main_list_comment text 変更
main_list_image text 変更
main_comment text 変更
main_image text 変更
main_large_image text 変更
sub_title1 text 変更
sub_comment1 text 変更
sub_image1 text 変更
sub_large_image1 text 変更
sub_title2 text 変更
sub_comment2 text 変更
sub_image2 text 変更
sub_large_image2 text 変更
sub_title3 text 変更
sub_comment3 text 変更
sub_image3 text 変更
sub_large_image3 text 変更
sub_title4 text 変更
sub_comment4 text 変更
sub_image4 text 変更
sub_large_image4 text 変更
sub_title5 text 変更
sub_comment5 text 変更
sub_image5 text 変更
sub_large_image5 text 変更
sub_title6 text 変更
sub_comment6 text 変更
sub_image6 text 変更
sub_large_image6 text 変更
del_flg smallint 変更
creator_id integer 変更
create_date timestamp without time zone 変更
update_date timestamp without time zone 変更
deliv_date_id integer 変更
product_code_min text 変更
product_code_max text 変更
price01_min numeric 変更
price01_max numeric 変更
price02_min numeric 変更
price02_max numeric 変更
stock_min numeric 変更
stock_max numeric 変更
stock_unlimited_min smallint 変更
stock_unlimited_max smallint 変更
class_count bigint 変更



seasoft
投稿日時: 2009/10/5 17:39
対応状況: −−−
登録日: 2008/6/4
居住地:
投稿: 7367
Re: 商品並び替え 正常に機能しない
> 他の質問と同じく複数の商品カテゴリを設定したところ
> 「一部の商品カテゴリ」で並べ替えが行なえなくなりました。

まさに、他の質問と同じ原因によるものかと思います。


----------------
Seasoft
こちらでの投稿は、アイディア程度に留めさせていただいております。
個別案件の作業は有償で承っております。お気軽にご相談ください。

ssyy
投稿日時: 2009/10/5 17:34
対応状況: −−−
新米
登録日: 2007/11/7
居住地:
投稿: 3
Re: 商品並び替え 正常に機能しない
他の質問と同じく複数の商品カテゴリを設定したところ
「一部の商品カテゴリ」で並べ替えが行なえなくなりました。

---------------------------------
【対象カテゴリ】
第1階層(2つ)
A
B

第1階層(2つ)
A’
B’


第3階層(4つと8つ)
A1
2
3
4

B1
2
3
4
5
6
7
8
---------------------------------

【現象】
第3階層のA3とB6内を並べ替えようとすると
テキストボックスへの番号入力と
「上へ」「下へ」ともに変更をかけても
正しく反映がされません。

【設定状況】
※全商品にAとB両方のカテゴリを1つずつ登録しています。
※登録商品=A3:14点、B6:25点

【テーブル】
dtb_category

【version】
EC-CUBE:2.4.1
PHP:PHP 5.1.6
DB:MySQL 5.1.36-community-log


ご存知でしたら
何卒ご教授のほどお願いします。
seasoft
投稿日時: 2009/9/16 18:41
対応状況: −−−
登録日: 2008/6/4
居住地:
投稿: 7367
Re: 商品並び替え 正常に機能しない
私どもでは、正式版を導入されているサイトの改修を何件か依頼を受けました。

感触的には、気づいた人は、気になるのでしょうね・・・

私も、気づいたら気になって仕方が無かったので、EC-CUBEコミュニティ(eccube-comu) は修正をコミットした次第です。


----------------
Seasoft
こちらでの投稿は、アイディア程度に留めさせていただいております。
個別案件の作業は有償で承っております。お気軽にご相談ください。

ecbg
投稿日時: 2009/9/16 18:07
対応状況: −−−
仙人
登録日: 2009/2/25
居住地: 東京
投稿: 387
Re: 商品並び替え 正常に機能しない
「vw_products_allclass_detail」はそれほど変化ないのかと思ってましたが、よくよく見てみると呼び出し方が変わってるんですね。

なんかビューからのアプローチよりphpで強引に持って行った方が早い気もしてきました・・・

このバグって正式版使ってる人はどんな対応しているんでしょうか?目を瞑ってるのかな・・・
seasoft
投稿日時: 2009/9/16 17:15
対応状況: −−−
登録日: 2008/6/4
居住地:
投稿: 7367
Re: 商品並び替え 正常に機能しない
参照しているビュー「vw_products_allclass_detail」を先行して更新する必要があります。


----------------
Seasoft
こちらでの投稿は、アイディア程度に留めさせていただいております。
個別案件の作業は有償で承っております。お気軽にご相談ください。

ecbg
投稿日時: 2009/9/16 15:50
対応状況: −−−
仙人
登録日: 2009/2/25
居住地: 東京
投稿: 387
Re: 商品並び替え 正常に機能しない
正式版とコミュ版のビュー「vw_products_allclass」が全然違っていて、手を施すのが難しいのですが、どのように変更したら正式版に影響なくコミュ版の「alldtl」が適応できるのでしょうか?

【コミュ版】
CREATE VIEW vw_products_allclass AS
SELECT
alldtl.*,
dtb_category.rank AS category_rank,
T2.category_id,
T2.rank AS product_rank
FROM
vw_products_allclass_detail AS alldtl
LEFT JOIN
dtb_product_categories AS T2
ON alldtl.product_id = T2.product_id
LEFT JOIN
dtb_category
ON T2.category_id = dtb_category.category_id
;

【正式版2.4.0(デフォルト)】
CREATE VIEW vw_products_allclass AS
SELECT T5.product_id,
product_code_min,
product_code_max,
price01_min,
price01_max,
price02_min,
price02_max,
stock_min,
stock_max,
stock_unlimited_min,
stock_unlimited_max,
category_rank,
T5.category_id,
T5.del_flg,
T5.status,
T5.name,
T5.comment1,
T5.comment2,
T5.comment3,
T5.rank,
T5.main_list_comment,
T5.main_image,
T5.main_list_image,
T5.product_flag,
T5.deliv_date_id,
T5.sale_limit,
T5.point_rate,
T5.sale_unlimited,
T5.create_date,
T5.deliv_fee
FROM
((SELECT T1.product_id,
T1.del_flg,
T1.status,
T1.name,
T1.comment1,
T1.comment2,
T1.comment3,
T1.main_list_comment,
T1.main_image,
T1.main_list_image,
T1.product_flag,
T1.deliv_date_id,
T1.sale_limit,
T1.point_rate,
T1.sale_unlimited,
T1.create_date,
T1.deliv_fee,
T2.category_id,
T1.rank
FROM dtb_products AS T1
LEFT JOIN dtb_product_categories AS T2
ON T1.product_id = T2.product_id) AS T3
RIGHT JOIN
(SELECT product_id AS product_id_sub,
MIN(product_code) AS product_code_min,
MAX(product_code) AS product_code_max,
MIN(price01) AS price01_min,
MAX(price01) AS price01_max,
MIN(price02) AS price02_min,
MAX(price02) AS price02_max,
MIN(stock) AS stock_min,
MAX(stock) AS stock_max,
MIN(stock_unlimited) AS stock_unlimited_min,
MAX(stock_unlimited) AS stock_unlimited_max
FROM dtb_products_class
GROUP BY product_id) AS T4
ON T3.product_id = T4.product_id_sub) AS T5
LEFT JOIN
(SELECT rank AS category_rank,
category_id AS sub_category_id
FROM dtb_category) AS T6
ON T5.category_id = T6.sub_category_id;

ご教授いただけませんでしょうか?

ecbg
投稿日時: 2009/9/10 18:27
対応状況: −−−
仙人
登録日: 2009/2/25
居住地: 東京
投稿: 387
Re: 商品並び替え 正常に機能しない
ご丁寧に有難うございました。

エラーを見た限りですとビューのフィールドが足りないのが問題のようなので、やはり一度コミュ版をダウンロードして、差異を見比べて、どうするかを検討してみます!
« 1 (2) 3 4 5 6 »
| 古いものから 前のトピック | 次のトピック | トップ


 



ログイン


EC-CUBE公式 Amazon Payプラグイン

統計情報

総メンバー数は88,707名です
総投稿数は109,948件です

投稿数ランキング

1
seasoft
7367
2
468
3217
3
AMUAMU
2712
4
nanasess
2313
5
umebius
2085
6
yuh
1819
7
h_tanaka
1638
8
red
1570
9
mcontact
1285
10
tsuji
958
11
fukap
907
12
shutta
835
13
tao_s
799
14 ramrun 789
15 karin 689
16 sumida 641
17
homan
633
18 DELIGHT 572
19
patapata
502
20
flealog
485


ネットショップの壺

EC-CUBEインテグレートパートナー

Copyright© EC-CUBE CO.,LTD. All Rights Reserved.