Discussion:
on the fly shipping charge in commerce v6
(too old to reply)
d***@blueyonder.co.uk
2006-10-19 11:49:23 UTC
Permalink
Hi all,

Sorry about all the posts recently, working with v6 seems I'm back on the learning curve again ;-)

Anyhow, i'm trying to apply on the fly shipping to an an order. Am developing in wc v6 ee and the model is an extended sites one. We're going to have a lot of extended / hosted stores (1000s) and have a custom table to hold extra configuration info for each. There's a simple delivery charge held in this table, which is only applied if the order is for delivery, our model allows store collection where it wouldn't apply (this is selected by the user)

I thought I'd extend the ApplyOrderShippingCharges to knock out the standard method and implement our custom code, however when I register the base commerce command as a starter in cmdreg, the checkout process no longer works, error is...

[19/10/06 11:06:28:766 BST] 0000003b CommerceSrvr I com.ibm.commerce.order.utils.ApplyCalculationUsagesCmdImpl validateParameters There was a bad or missing parameter: orderItemABArray/Enum.

..I haven't modded anything yet, just registered the standard ApplyOrderShippingCharges in cmdreg, so there's a problem

I've also noticed in the infocenter, quote...

"...Then, all the methods identified by CALMETHOD_ID_APP column are called. The following behaviours are provided for compatibility with previous versions:
...* If this flag is set for usage -2, the ApplyOrderShippingCharges task command (if it is defined in the CMDREG table) is called, instead of the method identified by the CALMETHOD_ID_APP column...."

..the bit "compatibility with previous versions" suggest to me I'm going about this wrong way now in v6, any pointer to how I should do this, as a workaround i'm writing the value in orderitems.totaladjustment for now

Many Thanks,

Dave
geo
2006-10-19 12:59:45 UTC
Permalink
If you are going to flat rate shipping charges then you are going about it
the right way, but still have not done the configuration you mention in your
posting.

Sure you can do this much more complicated with calculation usages, but my
question would be why would you want to if all you are doing is flat rate
shipping. ApplyOrderShippingCharges is the way to go if you want the KISS
principle, although you could also do the same thing a number of ways.

Keep going young Jedi you are on the path to enlightenment.
Post by d***@blueyonder.co.uk
Hi all,
Sorry about all the posts recently, working with v6 seems I'm back on the
learning curve again ;-)
Anyhow, i'm trying to apply on the fly shipping to an an order. Am
developing in wc v6 ee and the model is an extended sites one. We're going
to have a lot of extended / hosted stores (1000s) and have a custom table
to hold extra configuration info for each. There's a simple delivery
charge held in this table, which is only applied if the order is for
delivery, our model allows store collection where it wouldn't apply (this
is selected by the user)
I thought I'd extend the ApplyOrderShippingCharges to knock out the
standard method and implement our custom code, however when I register the
base commerce command as a starter in cmdreg, the checkout process no
longer works, error is...
[19/10/06 11:06:28:766 BST] 0000003b CommerceSrvr I
com.ibm.commerce.order.utils.ApplyCalculationUsagesCmdImpl
orderItemABArray/Enum.
..I haven't modded anything yet, just registered the standard
ApplyOrderShippingCharges in cmdreg, so there's a problem
I've also noticed in the infocenter, quote...
"...Then, all the methods identified by CALMETHOD_ID_APP column are
called. The following behaviours are provided for compatibility with
...* If this flag is set for usage -2, the ApplyOrderShippingCharges
task command (if it is defined in the CMDREG table) is called, instead of
the method identified by the CALMETHOD_ID_APP column...."
..the bit "compatibility with previous versions" suggest to me I'm going
about this wrong way now in v6, any pointer to how I should do this, as a
workaround i'm writing the value in orderitems.totaladjustment for now
Many Thanks,
Dave
d***@blueyonder.co.uk
2006-10-19 16:35:30 UTC
Permalink
absolutely, want to keep it as simple as possible and really don't want the complexity of larking about with the calculation framework!

any ideas why the commerce ApplyCalculationUsagesCmdImpl would fail though, with either the commerce or my ApplyOrderShippingCharges implementation registered in cmdreg I get the error, which I wouldn't expect! When I get a moment (ha ha!) i'll test in v5.6, I'm thinkig this is a v6 'issue'...
geo
2006-10-23 16:02:13 UTC
Permalink
Hi Dave,

I would guess you would have something in your command registration and
subsequent calculation framework missing or misconfigured from your note.
Check CMDREG and STENCALUSG
Post by d***@blueyonder.co.uk
absolutely, want to keep it as simple as possible and really don't want
the complexity of larking about with the calculation framework!
any ideas why the commerce ApplyCalculationUsagesCmdImpl would fail
though, with either the commerce or my ApplyOrderShippingCharges
implementation registered in cmdreg I get the error, which I wouldn't
expect! When I get a moment (ha ha!) i'll test in v5.6, I'm thinkig this
is a v6 'issue'...
Continue reading on narkive:
Loading...