バージョン選択

フォーラム

メニュー

オンライン状況

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

サイト内検索

質問 > 管理機能 > 商品一覧ページからカートへ移行

管理機能

新規スレッドを追加する

スレッド表示 | 新しいものから 前のトピック | 次のトピック | 下へ
投稿者 スレッド
DDR
投稿日時: 2009/8/8 18:48
対応状況: −−−
仙人
登録日: 2008/6/21
居住地: 大阪
投稿: 307
商品一覧ページからカートへ移行
いつもお世話になります
個人的内容をいつもアドバイスいただいてとても助かっております

運営中に商品一覧ページから突然カートへ入れる事が出来なくなってしまい
どこが間違っているのか調べている最中なのですが、どうしても入れ替えなどしているのですが原因が分かりません;;

デフォルトのテンプレなどですと一覧からもカートへ入ります

「変更箇所有り」
一覧ページから商品をカートに入れるとカートページにはいかず
カートに入っている状態のみにしてリロードするようにしてあります



<!--{section name=cnt loop=$arrProducts}-->
<!--{assign var=id value=$arrProducts[cnt].product_id}-->

<dl class="productCell">
<dt>

<a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrProducts[cnt].product_id}-->.html" class="imghover">
<img src="/myshop/resize_image.php?image=<!--{$arrProducts[cnt].main_list_image}-->&width=200&height=127" />					
<!--{$arrProducts[cnt].name|escape}-->
</a>
</dt>
<dd>
<p class="price">
<span>
 <!--{if $arrProducts[cnt].price02_min == $arrProducts[cnt].price02_max}-->
           <!--{$arrProducts[cnt].price02_min|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->
         <!--{else}-->
           <!--{$arrProducts[cnt].price02_min|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->〜<!--{$arrProducts[cnt].price02_max|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->
         <!--{/if}-->円</span>(税込)</p>

<ul class="iconList">
 <!--商品ステータス-->
       <!--{if count($arrProducts[cnt].product_flag) > 0}-->
                 <!--{section name=flg loop=$arrProducts[cnt].product_flag|count_characters}-->
                 <!--{if $arrProducts[cnt].product_flag[flg] == "1"}-->
                 <!--{assign var=key value="`$smarty.section.flg.iteration`"}-->
             <li><img src="<!--{$TPL_DIR}--><!--{$arrSTATUS_IMAGE[$key]}-->" width="48" height="17" alt="<!--{$arrSTATUS[$key]}-->"/></li>
             <!--{assign var=sts_cnt value=$sts_cnt+1}-->
           <!--{/if}-->
        		 <!--{/section}-->
       </ul>
       <!--{/if}-->
<!--商品ステータス-->

<p class="productMeta">
<!--メーカー名-->
メーカー:<!--{$arrProducts[cnt].comment1}--><br>

<!--納期-->
<!--{assign var=deliv_date_id value=$arrProducts[cnt].deliv_date_id}-->

納期:
<!--{$arrDELIVERYDATE[$deliv_date_id]}-->
</p>
	
<!--一覧コメント部分-->
				
<p class="productDetail">
<!--{$arrProducts[cnt].main_list_comment}-->
</p>
</dd>


<!--カート部-->					
<!--{if $arrProducts[cnt].stock_max == 0 && $arrProducts[cnt].stock_unlimited_max != 1}-->
      <p class="soldout"><em>只今品切れ中です。</em>
 <!--{else}-->
<dd class="productOrder">
<!--個数-->
<!--{assign var=quantity value=quantity`$id`}-->			
<p class="orderNum">
<input name="<!--{$quantity}-->" type="text" size="4" maxlength="4" value="<!--{$arrForm[$quantity]|default:1}-->" style="<!--{$arrErr[$quantity]|sfGetErrorColor}-->" /> 個</p>
   <!--{if $arrErr[$quantity] != ""}-->
<span class="attention"><!--{$arrErr[$quantity]}--></span>
   <!--{/if}-->

<!--▼買い物かご-->
<!--{assign var=class1 value=classcategory_id`$id`_1}-->
<!--{assign var=class2 value=classcategory_id`$id`_2}-->
<!--{if $tpl_classcat_find1[$id]}-->
        <!--{$tpl_class_name1[$id]|escape}-->:</p>
        <select name="<!--{$class1}-->" style="<!--{$arrErr[$class1]|sfGetErrorColor}-->" onchange="lnSetSelect('<!--{$class1}-->', '<!--{$class2}-->', '<!--{$id}-->','');">
          <option value="">選択してください</option>
          <!--{html_options options=$arrClassCat1[$id] selected=$arrForm[$class1]}-->
        </select><br>
             <!--{if $arrErr[$class1] != ""}--><br />
        <span class="attention">※ 入力して下さい。</span>
             <!--{/if}-->
        <!--{/if}-->
      <!--▲買い物かご-->
      <p class="orderBtn">
             

<a href="<!--{$smarty.server.REQUEST_URI|escape}-->#product<!--{$id}-->" onclick="fnChangeAction('<!--{$smarty.server.REQUEST_URI|escape}-->#product<!--{$id}-->'); fnModeSubmit('cart','product_id','<!--{$id}-->'); return false;" alt="カゴに入れる" name="cart<!--{$id}-->" id="cart<!--{$id}-->" class="imghover">
<img src="/myshop/common/img/btn_cart.gif" width="109" height="23" alt="カゴに入れる"></a>
      
      <!--{/if}-->

</p>					
</dd>			
</dl>

<!--{ if $smarty.section.cnt.index%3 == 1 }-->
<div style="clear:both;"></div>
<!--{ /if }-->
<!--{/section}-->
</div>



長文で申し訳ありません
どこかおかしいって所があったら教えていただけたら幸いです

またこういうソースで、どこまでが値が入ってますよー
なんて調べるようなソフトなどはないものでしょうか?
デバックっていうやつですかね


----------------
------------------------------------------------------------------------------------------
EC-CUBE 3.0.17
DBサーバー mariaDB
WEBサーバー apache (CentOS)
PHP 7.1
-----------------------...

DDR
投稿日時: 2009/8/8 19:03
対応状況: −−−
仙人
登録日: 2008/6/21
居住地: 大阪
投稿: 307
Re: 商品一覧ページからカートへ移行
このカートの部分に問題があると思ってましたが

エディタで開いてみたら
<form>タグの部分で問題が出ているようでした

一番最後に</form>を閉め忘れていたようでした

単発自己解決で汚して申し訳ないです

また、ありがとうございました


----------------
------------------------------------------------------------------------------------------
EC-CUBE 3.0.17
DBサーバー mariaDB
WEBサーバー apache (CentOS)
PHP 7.1
-----------------------...

スレッド表示 | 新しいものから 前のトピック | 次のトピック | トップ


 



ログイン


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

統計情報

総メンバー数は88,972名です
総投稿数は110,019件です

投稿数ランキング

1
seasoft
7367
2
468
3217
3
AMUAMU
2712
4
nanasess
2314
5
umebius
2085
6
yuh
1819
7
h_tanaka
1646
8
red
1570
9
mcontact
1296
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.