Menu
Feedback
Start here

Known issues

Known issues
'How many times will your benefit be applied in your store' Saving Incorrectly on Promotion Form Interface
Pricing & Promotions
ID: 268304
Backlog
Published on6/28/2022
Last updated on11/25/2022
1 min read

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/known-issues/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/known-issues/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..Vw-EOlOZ1GN1P0FbMdmMNA.aiwoPUfu8-FlItiWUemx3UohyYOr9p6oQbfys78e5znsYa8gk0QZnHNsvO3kv97t1PvJ8t00h-Sz7r2fBKWb7OaDZeClewRgR8pdqURhENC1-gqa4hkPbiThEyAuIcgJptKli6zMi3MZH7QxGsK3Ih2NAKDZ8yGMURndMi8dzLw6SHZpvIVOxXK3xVeRSuENotsp9CBAGbSgw9jb-CifRnnyUd4TjdZxPRqNN8tD3ZSXw9Y-jVMOIDRdagc9awLgGUOOVTx6s827Ik1YyKKgRQ.iiU8wt5g9upa_UzDgW-l6A"}}
{"base64":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAIAAAAmkwkpAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAP0lEQVR4nAE0AMv/AC4uLwwMDCUlJYGBgQCfn5+pqam0tLS7u7sAVlhaWlpZdnFzrKiqAJ+foIeIh6WjpOzr6w+NGFY+RJdwAAAAAElFTkSuQmCC","img":{"src":"https://raw.githubusercontent.com/vtexdocs/known-issues/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
Was this helpful?
Yes
No
Suggest Edits (GitHub)
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 VTEX support
For personalized assistance, contact our experts
Open a support ticket
GitHubDeveloper PortalCommunityFeedback