Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checkout Button Schema #699

Open
gealcan opened this issue Nov 7, 2022 · 0 comments
Open

Checkout Button Schema #699

gealcan opened this issue Nov 7, 2022 · 0 comments

Comments

@gealcan
Copy link

gealcan commented Nov 7, 2022

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

filipewl added a commit to vtex-apps/minicart that referenced this issue Dec 22, 2022
Co-authored-by: Genisio Alcantara <[email protected]>
(Actually all authored by him)

**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](https://user-images.githubusercontent.com/58344276/203791448-16f2abc4-73d9-4b16-8d5e-5546f90edc49.png)

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.

#### How to test it?
[Workspace](https://checkoutbuttonschema--oficinareserva.myvtex.com/) 
Admin -> CMS/Site editor -> Cabeçalho(Desktop/mobile)
--> Minicart Footer --> Botão de checkout

#### Screenshots or example usage:
![Screenshot from 2022-11-07 14-02-45](https://user-images.githubusercontent.com/58344276/200370473-6b6736ff-dede-424d-a0b4-7deb4fea7d42.png)

Related to [#699](vtex-apps/store-discussion#699)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant