To set up the redirect (if it is simple) so when customers click on the coupon picture it goes to the website and will automatically add in the code.
Jira code: SQUIP-345
Requirement
When coupon code is clicked in the Bronto we have redirect it to the website and apply the coupon code in the account.
Solution
For adding this we need all values on click as parameters and pass it to the model of the checkout bundle to pass it to the shopping cart. For this, we have to store it in the NetSuite to get it in the model file. From this, we can pass it to the model file and then to the shopping cart pages. We need to pass all the details of the coupon and we need to calculate the discount based on this. This has to be done in the checkout and in the backend also.
We can use a suitelet for transferring value. We need to alter the total prices on the basis of the coupon code.
For this, we have to get the coupon code details as parameters from the Bronto which was not possible.