Hi everyone. Is there a way to put a discount item...
# suitecommerce
f
Hi everyone. Is there a way to put a discount item by scriptable cart? I’m getting the next error when tried to do it: Is there a way to add the discount in the order linees ?
Copy code
Code: USER_ERROR Details: Discount line can only be added by promotion code.
Any help would be appreciate, thanks!
p
You can't use them. You might try negative "other charge" I think other charges worked... but then... they don't come up anywhere in SCA so you don't have a way to know if they were applied via SCA. Scriptable cart is ... obscure to say the least.
f
Thanks for your response. I agree with you about the scriptable functionality. I was able to do it using the body field discountitem and discountrate (global discount), but now we needed it as a line discount. The thing is that you can add the discount after the order is created but not before through Suitescript(scriptable) or at least it seems to work like this šŸ˜•
p
If you mess with discountitem and discountrate you might have issues with promotions i think.
f
Do you mean about the calculation ?
p
yup
šŸ‘ 1