Re: Where is the order total field ?
Re: Only 1% of the order is sent to the gateway
Me again. If I read $order in the Atos module, I get this :
PHP Code:
order Object
(
[info] => Array
(
[order_status] => 1
[currency] => EUR
[currency_value] => 1.00000000
[payment_method] =>
[payment_module_code] =>
[coupon_code] =>
[shipping_method] => Frais de Livraison (Montant)
[shipping_module_code] => flat_flat
[shipping_cost] => 60
[subtotal] => 955
[tax] => 0
[total] => 1015
[tax_groups] => Array
(
[Taux de Taxes Inconnu] => 0
)
[comments] =>
[ip_address] => XXXXXXXXX - XXXXXXXXXXXXX
)
whereas doing the same thing with the Paypal module, I get this
PHP Code:
order Object
(
[info] => Array
(
[order_status] => 1
[currency] => EUR
[currency_value] => 1.00000000
[payment_method] =>
[payment_module_code] =>
[coupon_code] =>
[shipping_method] => Frais de Livraison (Montant)
[shipping_module_code] => flat_flat
[shipping_cost] => 60
[subtotal] => 955
[tax] => 0
[total] => 346.5
[tax_groups] => Array
(
[Taux de Taxes Inconnu] => 0
)
[comments] =>
[ip_address] => XXXXXXXXXXXXXXXX - XXXXXXXXXXXXXXX
)
The two [total] fields send different values. Why ? I want the Atos module to pick up the same total as Paypal, ie the deposit due when the order is placed. How can I get the Atos module to behave in the same way as Paypal's ?
Cheers
Pete
Re: PHP If...Else question
How about separating out the assignment and the echo by changing the whole thing to:
PHP Code:
$sips = $this->makeRequest($order->info['total'], $currency);
if ($sips > 200) {
$sips = number_format($sips*0.30,2);
}
echo $sips . '">'."\n";
Re: PHP If...Else question
Thanks. Unfortunately that doesn't work either. In fact, its even worse. Another board, someone told me that I must && statements without saying how. As I only have one variable - $sips - I don't what I'm supposed to compare with it. I'll get there in the end but this is a tad frustrating !
What do you think ?
Cheers
Re: $order->info['total']
How many more threads are you going to open on the same question?
And, which payment module is this for now? You've been talking about paypal, atos, payline ... how many modules are you altering? How many modules do you need to run on your site?
Having your disjointed questions scattered all over makes it hard to follow the "why" behind your posts. And, frankly, when I see that, I click "next" and move on to another topic, ignoring yours.
So ... you might reconsider your approach.