Menu
Feedback
Start here
Tutorials
Developer portal

Known Issues
Support Rules
Troubleshooting

Frequently Asked Questions
Announcements
Known issues
'How many times will your benefit be applied in your store' Saving Incorrectly on Promotion Form Interface
'How many times will your benefit be applied in your store' Saving Incorrectly on Promotion Form Interface
ID: 268304
Backlog
Published on 6/28/2022
Last update on 11/25/2022

Summary

In the first box of the "Restrictions and Use Limitations" section of the Regular promotion form, when you save the first box with a value other than unlimited and all the other checkboxes are checked, like this:

{"base64":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAACCAIAAADwyuo0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAH0lEQVR4nGMQF5fQ09ObOHHSuXPnGHR19ctKS9+BAQB5QAxsLdB3TgAAAABJRU5ErkJggg==","img":{"src":"https://raw.githubusercontent.com/vtexdocs/help-center-content/refs/heads/main/docs/en/known-issues/Pricing%20&%20Promotions/how-many-times-will-your-benefit-be-applied-in-your-store-saving-incorrectly-on-promotion-form-interface_1.png","width":649,"height":378,"type":"png"}}

And you revisit the promotion after saving, the data "moves" to the box below:

{"base64":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAACCAIAAADwyuo0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAI0lEQVR4nGPg4+UX5uVvbmg6d+4cQ3BIaE5W9vGjxx8/egQAbUILgBicqOAAAAAASUVORK5CYII=","img":{"src":"https://raw.githubusercontent.com/vtexdocs/help-center-content/refs/heads/main/docs/en/known-issues/Pricing%20&%20Promotions/how-many-times-will-your-benefit-be-applied-in-your-store-saving-incorrectly-on-promotion-form-interface_2.png","width":673,"height":418,"type":"png"}}

Simulation

As described above, just go to a regular promotion form and save a promotion filling only the first box of section #4.

After that, open the promotion form again.

Workaround

There are 3 workarounds:

1) Just don't save the benefit again. The data is correctly saved in the backend in the first save action.

When you revisit the promotion, it "moves" down in the form and saving it again that will make the information to be saved incorrectly.

2) Populating the second box with substitute data for "unlimited" (in other words, a high number such as 9999999) works too:

{"base64":"  ","img":{"width":673,"height":388,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":25107,"url":"https://p27.zdusercontent.com/attachment/694212/7J5orWNE31sV3vzBFhy6pwWXs?token=eyJhbGciOiJkaXIiLCJlbmMiOiJBMTI4Q0JDLUhTMjU2In0..ITpg-SvuaHc_7C6J9vwxxQ.tVnoH-kS9zVc0tho4l4Kul088XnWLHt6I-64NecoYjX5VZmmb2oMtE_itGzoq3V3aclqTlpj1NqyPKHCzBcb8OWXvHyeQSQ69hjDbHQPeG8PdzBmbwyAk_bKG07-2Pl6sn0a1kBO4VSYpICci1L6NIEnOyg-rT_02MxpsK5nUmhCjbm8vD_u_fVENRka58UeEgGPiMKXc1qVUaDtaPHVSAKOYGaZoR045xQkI8vNCEzJKRKuMsI30kJu3ZhtVuxDat241vvzFMyRuGXlQ9rklQ.KWUuS8zLQfI-HGP_B-IwtA"}}
{"base64":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAIAAAAmkwkpAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAP0lEQVR4nAE0AMv/AC4uLwwMDCUlJYGBgQCfn5+pqam0tLS7u7sAVlhaWlpZdnFzrKiqAJ+foIeIh6WjpOzr6w+NGFY+RJdwAAAAAElFTkSuQmCC","img":{"src":"https://raw.githubusercontent.com/vtexdocs/help-center-content/refs/heads/main/docs/en/known-issues/Pricing%20&%20Promotions/how-many-times-will-your-benefit-be-applied-in-your-store-saving-incorrectly-on-promotion-form-interface_3.png","width":291,"height":269,"type":"png"}}

  1. Finally, the last workaround would be saving directly via API, in our SaveBenefit request documented in our help center: https://developers.vtex.com/reference/benefits#createorupdatecalculatorconfiguration
Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX community.
Join our community
Request support from VTEX
For personalized assistance, contact our experts.
Open a support ticket
GithubDeveloper portalCommunityFeedback