Hi Everyone,
I want to add a new array in smarty global variables $cart.subtotals
The array now is like this:
array (size=4)
'products' =>array (size=4)
'type' => string 'products' (length=8)
'label' => string 'Sous-total' (length=10)
'amount' => float 29
'value' => string '29,00 €' (length=10)
'discounts' => null
'shipping' =>array (size=4)
'type' => string 'shipping' (length=8)
'label' => string 'Livraison' (length=9)
'amount' => float 10
'value' => string '10,00 €' (length=10)
'tax' => array (size=4)
'type' => string 'tax' (length=3)
'label' => string 'Taxes' (length=5)
'amount' => float 8.19
'value' => string '8,19 €' (length=9)
Required array is like this (pleace see bold and italic phrase):
array (size=4)
'products' =>array (size=4)
'type' => string 'products' (length=8)
'label' => string 'Sous-total' (length=10)
'amount' => float 29
'value' => string '29,00 €' (length=10)
'discounts' => null
'shipping' =>array (size=4)
'type' => string 'shipping' (length=8)
'label' => string 'Livraison' (length=9)
'amount' => float 10
'value' => string '10,00 €' (length=10)
'handling_cost_enabled' =>boolean true|false
'handling_cost' => float 5
'tax' => array (size=4)
'type' => string 'tax' (length=3)
'label' => string 'Taxes' (length=5)
'amount' => float 8.19
'value' => string '8,19 €' (length=9)
I spent hours on searching how to do but I couldn't find it. Which class have I to modify to achieve desired result?
Anyone an idea?
With kind regards, Erkan