Dzie艅 dobry potrzebuje wyci膮gn膮膰 zmienne do js kt贸ry to synchronizuje z zewn臋trznym systemem marketingowym. Zmienne kt贸re potrzebuje to numer zam贸wienia, ilo艣膰 produkt贸w, id zakupionych produkt贸w oraz sum臋 zam贸wienie brutto bez dostawy.聽
聽
Puki co testuj臋 i my艣l臋 偶eby to wrzuci膰 do ko艅cowej strony zam贸wienia podsumowania. ~/order-confirmation.tpl
聽
Dumpuje sobie zmienne dla test贸w ale ci膮gle otrzymuje nieporawne dane lub warto艣ci null.聽
聽
{$order.details['reference']|var_dump} zamiast numery zam贸wienia typu 23463 otrzymuje?
Question
dsxsoft
Dzie艅 dobry potrzebuje wyci膮gn膮膰 zmienne do js kt贸ry to synchronizuje z zewn臋trznym systemem marketingowym. Zmienne kt贸re potrzebuje to numer zam贸wienia, ilo艣膰 produkt贸w, id zakupionych produkt贸w oraz sum臋 zam贸wienie brutto bez dostawy.聽
聽
Puki co testuj臋 i my艣l臋 偶eby to wrzuci膰 do ko艅cowej strony zam贸wienia podsumowania. ~/order-confirmation.tpl
聽
Dumpuje sobie zmienne dla test贸w ale ci膮gle otrzymuje nieporawne dane lub warto艣ci null.聽
聽
{$order.details['reference']|var_dump} zamiast numery zam贸wienia typu 23463 otrzymuje?
array(2) { ["tax_short"]=> string(8) "(brutto)" ["tax_long"]=> string(8) "(brutto)" } string(5) "23463"
{$order.totals.total.amount|var_dump}
Otrzymuje ca艂kowit膮 sum臋 wraz z dostaw膮...
{$order.subtotals|var_dump} otrzymuje聽
聽
object(PrestaShop\PrestaShop\Adapter\Presenter\Order\OrderSubtotalLazyArray)#204 (9) { ["order":"PrestaShop\PrestaShop\Adapter\Presenter\Order\OrderSubtotalLazyArray":private]=> object(Order)#186 (67) { ["id_address_delivery"]=> string(5) "43068" ["id_address_invoice"]=> string(5) "43068" ["id_shop_group"]=> string(1) "1" ["id_shop"]=> string(1) "1" ["id_cart"]=> string(5) "60113" ["id_currency"]=> string(1) "1" ["id_lang"]=> string(1) "1" ["id_customer"]=> string(5) "23387" ["id_carrier"]=> string(3) "214" ["current_state"]=> string(1) "9" ["secure_key"]=> string(32) "ec11ee675d89334490811487e0b6bc5f" ["payment"]=> string(25) "P艂atno艣膰 przy odbiorze" ["module"]=> string(17) "ps_cashondelivery" ["conversion_rate"]=> string(8) "1.000000" ["recyclable"]=> string(1) "0" ["gift"]=> string(1) "0" ["gift_message"]=> string(0) "" ["mobile_theme"]=> string(1) "0" ["shipping_number"]=> string(0) "" ["total_discounts"]=> string(8) "0.000000" ["total_discounts_tax_incl"]=> string(8) "0.000000" ["total_discounts_tax_excl"]=> string(8) "0.000000" ["total_paid"]=> string(10) "101.940000" ["total_paid_tax_incl"]=> string(10) "101.940000" ["total_paid_tax_excl"]=> string(9) "82.880000" ["total_paid_real"]=> string(10) "101.940000" ["total_products"]=> string(9) "62.560000"..............
w tym interesuje mnie聽["total_paid_tax_excl"]=> string(9) "82.880000" TU MAM KWOTE SAMYCH PRODUKT脫W z TAX bez WYSY艁KI
Jak dumpuje聽{$order.subtotals["total_paid_tax_excl"]|var_dump}
lub
{$order.subtotals['total_paid_tax_excl']|var_dump}
聽
To otrzymuje null Jak mog臋 wyci膮gn膮膰 te warto艣膰? oraz pozosta艂e?
聽
Link to comment
Share on other sites
0 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now