[ic] Why is pricedivide not working?

ic at 3edge.com ic at 3edge.com
Thu Dec 6 02:58:37 EST 2007


> -----Original Message-----
> From: interchange-users-bounces at icdevgroup.org [mailto:interchange-
> users-bounces at icdevgroup.org] On Behalf Of David Etheredge
> Sent: woensdag 5 december 2007 23:05
> To: interchange users
> Subject: [ic] Why is pricedivide not working?
> 
> I previously posted this question but did not get any replies.
> 
> I am trying to give my customers a 50 percent discount on international
> shipping using price divide but it does not appear to work. The same
> charges
> appear to calculate at full price.
> 
> from shipping.asc
> 
> ___________________________________________________________________
> XPR UPS Worldwide Express weight 0 0 e Nothing to ship! {'at_least' =>
> "32.00",'adder' => "10.00",'ups' => "1",'PriceDivide' =>
> "2",'ui_ship_type'
> => "UPSE:XPR",}
> XPR UPS Worldwide Express weight 0 150 f [ups-query mode=XPR
> weight="@@TOTAL@@"] {'PriceDivide' => "2",}
> XDM UPS Worldwide Express Plus weight 0 0 e Nothing to ship!
> {'at_least' =>
> "32.00",'adder' => "15.00",'geo' => "zip",'ups' => "2",'PriceDivide' =>
> "2",'ui_ship_type' => "UPSE:XDM",'origin' => "35126",}
> XDM UPS Worldwide Express Plus weight 0 150 f [ups-query mode=XDM
> weight="@@TOTAL@@"] {'PriceDivide' => "2",}
> XPD UPS Worldwide Expedited weight 0 0 e Nothing to ship! {'at_least'
> =>
> "39.00",'adder' => "12.00",'ups' => "1",'PriceDivide' => "2",'origin'
> =>
> "35126",'ui_ship_type' => "UPSE:XPD",}
> XPD UPS Worldwide Expedited weight 0 150 f [ups-query mode=XPD
> weight="@@TOTAL@@" origin="35126"] {'PriceDivide' => "2",}
> _______________________________________________________________________
> __
> 
> Is there something that I have over looked or left out?
> 
> Do I need to include a statement in catalog.cfg or something?
> 
> Am I using PriceDivide incorrectly?
> 
> Any suggestions?

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)  ?

Cu,

Gert









More information about the interchange-users mailing list