バージョン選択

フォーラム

メニュー

オンライン状況

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

サイト内検索

質問 > フロント機能 > 新規に作成した「特集ページ」からワンクリックで直接カゴへ

フロント機能

新規スレッドを追加する

フラット表示 前のトピック | 次のトピック
投稿者 スレッド
qop
投稿日時: 2009/9/15 9:11
対応状況: −−−
常連
登録日: 2009/4/23
居住地:
投稿: 33
Re: 新規に作成した「特集ページ」からワンクリックで直接カゴへ
ありがとうございます。
キャンペーンページにて一度作成し、商品タグを生成して貼り付けてみましたが、動作していないようです。商品ID2113をカゴに入れる前提で生成し、カゴボタン部分に設置しました。



<!--{* ▼商品ID2113 *}-->
<!--{*
* This file is part of EC-CUBE
*
* Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
*
* http://www.lockon.co.jp/
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*}-->
<div id="cart_tag_2113">
<!--{assign var=id value=$arrProducts[2113].product_id}-->
<!--▼買い物かご-->
<div class="listarea">
<div class="in_cart">
<dl>
<!--{if $tpl_classcat_find1[$id]}-->
<!--{assign var=class1 value=classcategory_id`$id`_1}-->
<!--{assign var=class2 value=classcategory_id`$id`_2}-->
<dt><!--{$tpl_class_name1[$id]|escape}-->:</dt>
<dd><select name="<!--{$class1}-->" style="<!--{$arrErr[$class1]|sfGetErrorColor}-->" onchange="lnSetSelect('<!--{$class1}-->', '<!--{$class2}-->', '<!--{$id}-->','');">
<option value="">選択してください</option>
<!--{html_options options=$arrClassCat1[$id] selected=$arrForm[$class1]}-->
</select>
<!--{if $arrErr[$class1] != ""}-->
<br /><span class="attention">※ <!--{$tpl_class_name1[$id]}-->を入力して下さい。</span>
<!--{/if}-->
</dd>

<!--{/if}-->
<!--{if $tpl_classcat_find2[$id]}-->
<dt><!--{$tpl_class_name2[$id]|escape}-->:</dt>
<dd><select name="<!--{$class2}-->" style="<!--{$arrErr[$class2]|sfGetErrorColor}-->">
<option value="">選択してください</option>
</select>

<!--{if $arrErr[$class2] != ""}-->
<br /><span class="attention">※ <!--{$tpl_class_name2[$id]}-->を入力して下さい。</span>
<!--{/if}-->
</dd>

<!--{/if}-->
<!--{assign var=quantity value=quantity`$id`}-->

<dt>個数:</dt>
<dd><input type="text" name="<!--{$quantity}-->" size="3" class="box54" value="<!--{$arrForm[$quantity]|default:1}-->" maxlength="<!--{$smarty.const.INT_LEN}-->" style="<!--{$arrErr[$quantity]|sfGetErrorColor}-->" />
<!--{if $arrErr[$quantity] != ""}-->
<br /><span class="attention"><!--{$arrErr[$quantity]}--></span>
<!--{/if}-->
</dd>
</dl>
<div class="cartbtn">
<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;" onmouseover="chgImg('<!--{$TPL_DIR}-->img/products/b_cartin_on.gif','cart<!--{$id}-->');" onmouseout="chgImg('<!--{$TPL_DIR}-->img/products/b_cartin.gif','cart<!--{$id}-->');">
<img src="<!--{$TPL_DIR}-->img/products/b_cartin.gif" width="115" height="25" alt="カゴに入れる" name="cart<!--{$id}-->" id="cart<!--{$id}-->" />
</a>
</div>
</div>
<!--▲買い物かご-->
</div>


</div>

<!---ここまで-->

下記はボタン部分の一部ですが、
<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;" onmouseover="chgImg('<!--{$TPL_DIR}-->img/products/b_cartin_on.gif','cart<!--{$id}-->');"


<a href="<!--{$smarty.server.REQUEST_URI|escape}-->#product<!--{$id}-->"
のリンク先を一覧ページのカゴボタンのソースを見て、ID2113のものと置き換えたところで上手く動かないところからすると、
別の読み込みがあって、カゴに入れる動作があるのではないかと考えています。

キャンペーンページにはその読み込みがあり、ユーザー作成ページには無いのかな?と。。。

キャンペーンページ作成時にある、「かごに入れる」ボタンを設置にチェックを入れるとその部分が有効になる気がしています。

キャンペーンページは少々使いづらいので、何とかユーザー作成ページで実現できればと思っています。

もう少しヒントをいただければありがたいのですが、どうぞ宜しくお願いします。
フラット表示 前のトピック | 次のトピック


題名 投稿者 日時
   新規に作成した「特集ページ」からワンクリックで直接カゴへ qop 2009/9/14 18:49
     Re: 新規に作成した「特集ページ」からワンクリックで直接カゴへ seasoft 2009/9/14 21:47
     » Re: 新規に作成した「特集ページ」からワンクリックで直接カゴへ qop 2009/9/15 9:11
         Re: 新規に作成した「特集ページ」からワンクリックで直接カゴへ Masashige 2009/9/15 11:56
           Re: 新規に作成した「特集ページ」からワンクリックで直接カゴへ qop 2009/9/15 18:46
           Re: 新規に作成した「特集ページ」からワンクリックで直接カゴへ seasoft 2009/9/15 22:30
             Re: 新規に作成した「特集ページ」からワンクリックで直接カゴへ Masashige 2009/9/16 10:59
               Re: 新規に作成した「特集ページ」からワンクリックで直接カゴへ qop 2009/9/17 10:54
                 Re: 新規に作成した「特集ページ」からワンクリックで直接カゴへ seasoft 2009/9/17 13:17
                   Re: 新規に作成した「特集ページ」からワンクリックで直接カゴへ lvsa 2009/11/4 14:39
                     Re: 新規に作成した「特集ページ」からワンクリックで直接カゴへ qop 2009/12/2 14:11
                       Re: 新規に作成した「特集ページ」からワンクリックで直接カゴへ nanasess 2009/12/2 16:03

 



ログイン


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

統計情報

総メンバー数は89,903名です
総投稿数は110,251件です

投稿数ランキング

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