掲示板に戻る




Cart Z 17 クール便と追記したい 投稿者: ねぎま
cart Z 17 で、cart.html内、送料の隣に「※クール便料金含む」を表記したいのですが、
うまくいきません。文法の間違いだと思うのですが、何かいい方法はありますでしょうか。

cart.cgi 1083行あたりに、

if($cool_count > 0 && $cool == 1){
     ${$footer_ref} =~ s/<!--coolbin-->/※クール便料金含む/;

cart.htmlには、<!--cartpos--><!--coolbin-->を記載。
お忙しいところよろしくお願いいたします。
No.290292025/10/25(Sat) 13:17:48 Res


Re: Cart Z 17 クール便と追記したい 投稿者: えふ
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");
のように
,"cool"
を追加

商品ページには
<input type="hidden" name="cool" value="1">
のように記入

cart.cgiの643行の
return $O_PCHS;
の上などに

if($O_PCHS->{'cool_count'}){
     ${$footer_ref} =~ s/<!--coolbin-->/※クール便料金含む/;
}

と追加
以上です。


No.290302025/10/26(Sun) 5:04:44 Res


Re^2: Cart Z 17 クール便と追記したい 投稿者: ねぎま
出来ました!ありがとうございました!!!
Cart Z ver.12.2の頃から使わせていただいております。

if($O_PCHS->{'cool_count'}){
    ${$footer_ref} =~ s/<!--coolbin-->/※クール便料金含む/;
}
正解は、これだったのですね。
No.290312025/10/26(Sun) 5:49:38 Res