[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ic] Why is pricedivide not working?


Gave it a quick look and it appears PriceDivide cannot be used in this way.

In lib/Vend/Ship.pm:

$final /= $Vend::Cfg->{PriceDivide}
               If $o->{PriceDivide} and $Vend::Cfg->{PriceDivide} != 0;

The $o->{PriceDivide} in your case is set to 2 but I expect that you do not
have a $Vend::Cfg->{PriceDivide} ?
But still if you had the $final would be based on the CFG and not on the
'PriceDivide=2' ...
So PriceDivide is more/less a Boolean yes/no PriceDivide

But can you not do ([ups-query mode ....] / 2)  ?

Thanks Gert,

Tried that ...

XPD UPS Worldwide Expedited weight 0 0 e Nothing to ship! {'at_least' => "5",'adder' => "3.00",'ups' => "0",'ui_ship_type' => "UPSE:XPD",'PriceDivide' => "1",} XPD UPS Worldwide Expedited weight 0 150 f [ups-query zip="[either][value zip][or][var SHIP_DEFAULT_ZIP][/either]" mode="XPD" weight="@@TOTAL@@"]/2 {'PriceDivide' => "1",}

Does not work.

David

_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.