第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機(jī)立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

Prestashop模板-下劃線字符的smarty無法正常工作

Prestashop模板-下劃線字符的smarty無法正常工作

PHP
暮色呼如 2021-05-07 18:23:54
我需要將轉(zhuǎn)換代碼添加到order-confirmation.tpl模板中。但是,如果變量名稱中包含下劃線(也許我只嘗試幾個)字符,則輸出為空array()。例如:{$order.details.payment} <- this works{$order.details.id_customer} <- this do NOT works{$order.details.total_paid_tax_incl} <- this do NOT works also我的目標(biāo)是將產(chǎn)品的總價格輸出到template($order.details.total_paid_tax_incl} 任何建議?有這個問題的經(jīng)驗嗎?我嘗試打印輸出,{$order.details}所以所有數(shù)據(jù)都應(yīng)該在這里。輸出: PrestaShop\PrestaShop\Adapter\Presenter\Order\OrderDetailLazyArray Object(    [order:PrestaShop\PrestaShop\Adapter\Presenter\Order\OrderDetailLazyArray:private] =&gt; Order Object        (            [id_address_delivery] =&gt; 21013            [id_address_invoice] =&gt; 21013            [id_shop_group] =&gt; 1            [id_shop] =&gt; 1            [id_cart] =&gt; 1189            [id_currency] =&gt; 1            [id_lang] =&gt; 1            [id_customer] =&gt; 8673            [id_carrier] =&gt; 43            [current_state] =&gt; 10            [secure_key] =&gt; a69d00482b1df2d13bd9a424c3a71f08            [payment] =&gt; Platba bankovním p?evodem            [module] =&gt; ps_wirepayment            [conversion_rate] =&gt; 1.000000            [recyclable] =&gt; 0            [gift] =&gt; 0            [gift_message] =&gt;             [mobile_theme] =&gt; 0            [shipping_number] =&gt;             [total_discounts] =&gt; 0.000000            [total_discounts_tax_incl] =&gt; 0.000000            [total_discounts_tax_excl] =&gt; 0.000000            [total_paid] =&gt; 312.000000            [total_paid_tax_incl] =&gt; 312.000000            [total_paid_tax_excl] =&gt; 274.000000            [total_paid_real] =&gt; 0.000000            [total_products] =&gt; 179.000000            [total_products_wt] =&gt; 217.000000            [total_shipping] =&gt; 95.000000            [total_shipping_tax_incl] =&gt; 95.000000
查看完整描述

2 回答

?
慕無忌1623718

TA貢獻(xiàn)1744條經(jīng)驗 獲得超4個贊

嘗試: {$order.totals.total.value}


查看完整回答
反對 回復(fù) 2021-05-21
?
揚帆大魚

TA貢獻(xiàn)1799條經(jīng)驗 獲得超9個贊

似乎您嘗試從對象獲取數(shù)據(jù),但對數(shù)組使用語法。嘗試$order->id_customer$order->id_carrier等等。


查看完整回答
反對 回復(fù) 2021-05-21
  • 2 回答
  • 0 關(guān)注
  • 206 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號