Hello. I would like to ask if anyone can help me with a custom macro script?
My aim is to change the payment method for future orders to "Transferwise EUR" if Source is "CDISCOUNT" and Subsource is "Redmman1".
This is what I did so far:
namespace linnworks.finaware.CommonData // leave untouched
{ // leave untouched
public class ScriptMacroClass : linnworks.scripting.core.IMacroScript // leave untouched
public void Initialize(linnworks.scripting.core.Debugger debug, System.Data.SqlClient.SqlConnection ActiveConnection) // leave untouched
}
public void Initialize(linnworks.finaware.CommondData.Objects.Order order, linnworks.scripting.core.Debugger debug, System.Data.SqlClient.SqlConnection ActiveConnection)
{
if (order.Source == "CDISCOUNT" && order.Subsource == "Redmman1"){
order.PaymentMethod(?) = "Transferwise EUR";
order.Save(0);}
} // leave untouched
Hi,
Did you ever get this working via Macro? We are looking to do the identical thing on our Linnworks.
Thank you
Redmman LTD
Hello. I would like to ask if anyone can help me with a custom macro script?
My aim is to change the payment method for future orders to "Transferwise EUR" if Source is "CDISCOUNT" and Subsource is "Redmman1".
This is what I did so far:
namespace linnworks.finaware.CommonData // leave untouched
{ // leave untouched
public class ScriptMacroClass : linnworks.scripting.core.IMacroScript // leave untouched
{ // leave untouched
public void Initialize(linnworks.scripting.core.Debugger debug, System.Data.SqlClient.SqlConnection ActiveConnection) // leave untouched
{ // leave untouched
}
public void Initialize(linnworks.finaware.CommondData.Objects.Order order, linnworks.scripting.core.Debugger debug, System.Data.SqlClient.SqlConnection ActiveConnection)
{
if (order.Source == "CDISCOUNT" && order.Subsource == "Redmman1"){
order.PaymentMethod(?) = "Transferwise EUR";
order.Save(0);}
} // leave untouched
} // leave untouched
} // leave untouched
1 person has this question