rdyar / LabWOES

Unofficial ROES and LabWorks support for Photo Labs
https://rdyar.github.io/LabWOES/
1 stars 1 forks source link

Shipping to old address when customer moves #24

Closed rdyar closed 9 years ago

rdyar commented 9 years ago

We have an ongoing issue where when someone moves LabWorks does not update the shipping address - it does update the billing address (use billing as shipping is checked), and on a second order it will have both the bill and ship addresses correct. But the first one is always shipped to the old address.

For the POF we have roes only set the ship to address for drop ship - I think it should really be a IF statement - if dropship = nothing, then use the myaccount address. IF dropship = something then use dropship address.

I just don't know how to do the if statement.

rdyar commented 9 years ago

this works for the name: [BEGIN_IF(""!= "Dropship")][SET_MACRO( SNAME, "")][][BEGIN_IF("" != "")][][SET_MACRO( SNAME, "")][][END_IF][][SNAME][END_IF]

[SET_MACRO_FROM_SHIPPING_METHOD_ATTRIBUTE(SHIP_NAME,ship_to_name)][SHIP_NAME] [SET_MACRO_FROM_SHIPPING_METHOD_ATTRIBUTE(SHIP_ATTENTION,ship_to_attention)] [SHIP_ATTENTION]

rdyar commented 9 years ago

this doesn't quite work.

I tried putting the shipto address in there no matter what - right now it is only populated by the dropship address, but if there is anything in the shipto fields then LW assumes it is dropship, which prints the packing slip style work order and also sets the return address to their address.

It looks like the workorder report could check shipnotes, and we could populate that in the pof.

We could also hard code the return address in endicia to get around the return address = recipient address.

I was able to view/edit the report using i-net Designer (free trial), but I could not save it and have it work in LW - the file size is way smaller, and LW says error loading report.

rdyar commented 9 years ago

it looks like their is an upgrade to LabWorks that adds a field: DropShip: {Yes or No} to the pof file, and this allows you to always put the shipping info into the ShipTo: fields, rather than only doing that when dropshipping.

This is our new ShipTo section:

ROESDropShip=[BEGIN_IF("<SHIPPING_ID>"!= "Dropship")]No[END_IF][BEGIN_IF("<SHIPPING_ID>"== "Dropship")]Yes[END_IF]
ShipToName=[BEGIN_IF(("<SHIPPING_ID>" == "Standard")||("<SHIPPING_ID>" == "Express"))][CUSTOMER_FIRSTNAME] [CUSTOMER_NAME][END_IF][SET_MACRO_FROM_SHIPPING_METHOD_ATTRIBUTE

(SHIP_NAME,ship_to_name)][SHIP_NAME][SET_MACRO_FROM_SHIPPING_METHOD_ATTRIBUTE(SHIP_ATTENTION,ship_to_attention)][SHIP_ATTENTION]
ShipToAddress1=[BEGIN_IF(("<SHIPPING_ID>" == "Standard")||("<SHIPPING_ID>" == "Express"))][CUSTOMER_ADDRESS][END_IF][SET_MACRO_FROM_SHIPPING_METHOD_ATTRIBUTE(SHIP_ADDRESS,ship_to_address)]

[SHIP_ADDRESS]
ShipToAddress2=[BEGIN_IF(("<SHIPPING_ID>" == "Standard")||("<SHIPPING_ID>" == "Express"))][CUSTOMER_ADDRESS2][END_IF][SET_MACRO_FROM_SHIPPING_METHOD_ATTRIBUTE(SHIP_ADDRESS2,ship_to_address2)]

[SHIP_ADDRESS2]
ShipToCity=[BEGIN_IF(("<SHIPPING_ID>" == "Standard")||("<SHIPPING_ID>" == "Express"))][CUSTOMER_CITY][END_IF][SET_MACRO_FROM_SHIPPING_METHOD_ATTRIBUTE(SHIP_CITY,ship_to_city)][SHIP_CITY]
ShipToState=[BEGIN_IF(("<SHIPPING_ID>" == "Standard")||("<SHIPPING_ID>" == "Express"))][CUSTOMER_STATE][END_IF][SET_MACRO_FROM_SHIPPING_METHOD_ATTRIBUTE(SHIP_STATE,ship_to_state)][SHIP_STATE]
ShipToZip=[BEGIN_IF(("<SHIPPING_ID>" == "Standard")||("<SHIPPING_ID>" == "Express"))][CUSTOMER_ZIP][END_IF][SET_MACRO_FROM_SHIPPING_METHOD_ATTRIBUTE(SHIP_ZIP,ship_to_zip)][SHIP_ZIP]
rdyar commented 9 years ago

after upgrading LW we had issues with the extended price and non dropship return address - something about some missing SP's during the upgrade.

rdyar commented 9 years ago

This upgrade and the dropship flag have solved our shipping to the wrong address issue.