EC-CUBEは2.13.5です。(インストールしたまま「EC-立方隊」のページのままです)
EC-CUBE[クレジットカード決済番号入力]画面でカートの数量を表示したいです。
現在、LC_Page_Ex.phpに以下のソースコードでヘッダにカート数量を表示しています。
(手を入れたのはこのphpとヘッダのtplのみです。)
class LC_Page_Ex extends LC_Page
{
public function process()
{
parent::process();
$objCartSess = new SC_CartSession_Ex(); $product_type_ids = $objCartSess->getKeys(); $quantity_total = 0; foreach($product_type_ids as $product_type_id){ $objCartSess->checkProducts($product_type_id); $quantity_total += $objCartSess->getTotalQuantity($product_type_id); } $this->tpl_cart_quantity_total = $quantity_total; }
}
$tpl_cart_quantity_totalをヘッダのtplで呼び出し表示しています。
[クレジットカード決済番号入力]画面に遷移すると数量が表示されません。
あなたの回答
tips
プレビュー