[Tep-j-general] Re: 商品をカートに入れるときに数量を決めたい

Back to archive index

hideto@maegami confr****@s9*****
2006年 9月 27日 (水) 22:53:19 JST


$B$=$J!<$G$9!#(B
Margy$B$5$s!#$O$^$@$5$s!#!!%l%9!"K\Ev$K$"$j$,$H$&$4$6$$$^$7$?!#(B

$B-!(Bcatalog/includes/application_top.php $B$N5-=R$rJQ$($k(B

 $HTTP_POST_VARS['id']))+1

$B"-(B

 $HTTP_POST_VARS['id']))+$quantity


$B-"(B /catalog/product_info.php $B$N5-=R$rJQ$($k(B

<td align="right" class="main"><?php echo
tep_draw_hidden_field('products_id', $product_info['products_id']) .
tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></td>

$B"-(B

<td class="main" align="right"><?php echo '<b>$B?tNL(B:</b> <SELECT
name="quantity"><OPTION selected value="1">1$B8D(B</OPTION><OPTION value="2">2$B8D(B
</OPTION><OPTION value="3">3$B8D(B</OPTION><OPTION value="4">4$B8D(B</OPTION><OPTION
value="5">5$B8D(B</OPTION></SELECT>' . tep_draw_hidden_field('products_id',
$product_info['products_id']) . tep_image_submit('button_in_cart.gif',
IMAGE_BUTTON_IN_CART); ?></td>




$B0J>e$N$h$&$K=q$-49$($k;v$G%+!<%H$rF~$l$k%"%$%3%s$N2#$K%W%k%@%&%s%a%K%e!<$G?t(B
$BNL$r(B
$B7h$a$k;v$,$G$-$k$h$&$K$J$j$^$7$?!#(B
$BK\Ev$K$"$j$,$H$&$4$6$$$^$7$?!#(B

$B$?$@!"!"$9$4$$$G$9$M!(<ALd$7$?D>8e$K$3$l$@$1E*3N$J%l%9$,$b$i$($k$J$s$F!&!&!&(B
$B$A$H!"B:7I$G$9!#(B




Tep-j-general メーリングリストの案内
Back to archive index