vtex-apps / store-discussion

VTEX IO store builders' community
80 stars 5 forks source link

Checkout Button Schema #699

Open gealcan opened 1 year ago

gealcan commented 1 year ago

What problem are you trying to solve?. Allow the checkout button redirect link to be edited via site editor. Today, this behavior is controlled by the prop finishShoppingButtonLink(editable only via code).

It's interesting to go directly to the last checkout stage to speed up the checkout process. However, when there is gift promotion, the only place where the user can choose the gift is on the first checkout stage:

Gifts-oficina

So it's useful for the commercial team to be able to change this behavior easily via site editor: When there is a active gift promotion they would choose to send the user to the first checkout stage. Otherwise, they would choose the last checkout stage.

Describe the solution you'd like Create a schema in this component so the redirect link can be edited via site editor Screenshot from 2022-11-07 14-02-45 Related to #315