You are not logged in.
Basically, I use a lookup table to get my product details, weight is set per product, but the W,D,L fields are empty
When I create the Shipping Rule to determine service to use, I have it set to create default Weight and size dimensions (e.g SH=Royal Mail 48 XT=N Q=1 EX=2D Label CRL49 Parcel 1 350 450 600)
As Weight is set in the Lookup table but W,D,L are not then when label is created it uses the weight from the Lookup table but the default size dimensions from the shipping rule (i.e. 350x450x600)
So far so good and it works
However, I now have a situation where I need to override the sizes (either in Script or via Rules). Basically I sell an item that is rolled into a Tube of 10x10x800. The length is greater than normally allowed for a Parcel but as its a Tube with small diameter this is allowed. I used to allow it to default to my Shipping Rule size of 350x450x600 and have done for years, but Royal Mail have recently started to surcharge me for this so I need to now set size of these items to 10x10x800.
I did think of just changing the the W,D,L values in the Lookup table for just these items so that the default size set by the Shipping Rule is overridden by the size in the Lookup. However, this cause problems on International orders where my max dimensions is 900 when W,D,L are added together.
When I use Shipping Rules for an International service I set the default dimensions as 150x300x450 - but if I have set the dimensions in the lookup for these Tube items to be 10x10x800 these will now override the Shipping Rule dimensions meaning the label will error.
So is there a way to use Script or a Shipping Rule to override the dimensions in the Lookup table?
Offline
You can use the Records_AfterShipping event from scripting. I think it's the least complex way to do it, there is documentation here.
The documentation is for V4.0, but that event is the same in V3.5.4
Offline