お世話になります。
無事解決に至りましたので、ご報告いたします。
yuh様ありがとうございました。
次に悩まれる方のためにコードを記述しておきます。
LC_Page_Products_List_Ex.php
function OutPostSet(){
if($_POST['name']){
$_SESSION['outpost']['namae'] = htmlentities($_POST['namae'], ENT_QUOTES, mb_internal_encoding());
}
if($_POST['day'] AND preg_match('/^[0-9]+$/',$_POST['day'])){
$_SESSION['outpost']['day'] = $_POST['day'];
}
if($_POST['maker_name']){
$_SESSION['outpost']['maker_name'] = htmlentities($_POST['maker_name'], ENT_QUOTES, mb_internal_encoding());
}
SC_Helper_Session.php
function isValidToken($is_unset = false) {
// token の妥当性チェック
//不正な移動になる場合の回避
if ($_SERVER[HTTP_REFERER] == "http://hoge.com/test.html") {
SC_Helper_Session_Ex::destroyToken();
SC_Helper_Session_Ex::createToken();
return true;
}
SC_CartSession.php
// カートへの商品追加
public function addProduct($product_class_id, $quantity,$out1,$out2,$out3)
{
$objProduct = new SC_Product_Ex();
$arrProduct = $objProduct->getProductsClass($product_class_id);
$productTypeId = $arrProduct['product_type_id'];
$find = false;
$max = $this->getMax($productTypeId);
for ($i = 0; $i <= $max; $i++) {
if ($this->cartSession[$productTypeId][$i]['id'] == $product_class_id) {
$val = $this->cartSession[$productTypeId][$i]['quantity'] + $quantity;
if (strlen($val) <= INT_LEN) {
$this->cartSession[$productTypeId][$i]['quantity'] += $quantity;
}
$find = true;
}
}
if (!$find) {
$this->cartSession[$productTypeId][$max+1]['id'] = $product_class_id;
$this->cartSession[$productTypeId][$max+1]['quantity'] = $quantity;
$this->cartSession[$productTypeId][$max+1]['cart_no'] = $this->getNextCartID($productTypeId);
//追加
$this->cartSession[$productTypeId][$max+1]['namae'] = $out1;
$this->cartSession[$productTypeId][$max+1]['day'] = $out2;
$this->cartSession[$productTypeId][$max+1]['maker_name'] = $out3;
}
}
public function adjustSessionProductsClass(&$arrProductsClass)
{
$arrNecessaryItems = array(
'product_id' => true,
'product_class_id' => true,
'name' => true,
'price02' => true,
'point_rate' => true,
'main_list_image' => true,
'main_image' => true,
'product_code' => true,
'stock' => true,
'stock_unlimited' => true,
'sale_limit' => true,
'class_name1' => true,
'classcategory_name1' => true,
'class_name2' => true,
'classcategory_name2' => true,
//追加
'namae' => true,
'day' => true,
'maker_name' => true,
);
public function calculate($productTypeId, &$objCustomer, $use_point = 0,
$deliv_pref = '', $charge = 0, $discount = 0, $deliv_id = 0,
$order_pref = 0, $order_country_id = 0,$out1,$out2,$out3
) {
$results = array();
$results['namae']=$out1;
$results['day']=$out2;
$results['maker_name']=$out3;