クール便の料金は誰も使っていないようだったので廃止したのです。 <input type="hidden" name="cool" value="2"> この部分は <input type="hidden" name="cool" value="1"> でいいです。
cart.cgiの 194行の @keys_cart=("number","name","price","amount","postage","tax","image","weight","pack","stock","cid","op"); を
@keys_cart=("number","name","price","amount","postage","tax","image","weight","pack","stock","cid","op","cool");
と変更して
552行の ($O_PCHS->{'total'},$O_PCHS->{'postage_all'})=&Functions::PostageCal2($O_PCHS->{'total'},$O_PCHS->{'subtotal'},$O_PCHS->{'weight_all'},$O_PCHS->{'pack_all'},$deliver,$ar,$O_PCHS->{'a_total'}); を
($O_PCHS->{'total'},$O_PCHS->{'postage_all'})=&Functions::PostageCal2($O_PCHS->{'total'},$O_PCHS->{'subtotal'},$O_PCHS->{'weight_all'},$O_PCHS->{'pack_all'},$deliver,$ar,$O_PCHS->{'a_total'},$O_PCHS->{'cool_count'});
と変更して
lib/functions.plの 260行の $a_total=$_[6]; の下に $co=$_[7]; と追加して
281行の $p=&Cal("sa",$weight_all,$vol_all,$ar,$a_total); を $p=&Cal("sa",$weight_all,$vol_all,$ar,$a_total,$co); と変更
326行の $a_total=$_[4]; の下に $co=$_[5]; と追加
394行あたりの $ryoukin=$ryoukin_w + $ryoukin_v; の下に
if($co){ if($i > $#Deliver::cool){ $j=$#Deliver::cool; } $co_ch=$Deliver::cool[$j]; $ryoukin+=$co_ch; }
と追加 以上です。
|