-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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)
- Loading branch information
Showing
5 changed files
with
51 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { FC } from 'react' | ||
|
||
declare global { | ||
interface StoreFunctionComponent<P = {}> extends FC<P> { | ||
schema?: object | ||
} | ||
|
||
type QuantityDisplayType = 'always' | 'never' | 'not-empty' | ||
|
||
type MinicartTotalItemsType = | ||
| 'total' | ||
| 'distinct' | ||
| 'totalAvailable' | ||
| 'distinctAvailable' | ||
|
||
type SlideDirectionType = | ||
| 'horizontal' | ||
| 'vertical' | ||
| 'rightToLeft' | ||
| 'leftToRight' | ||
|
||
type MinicartVariationType = | ||
| 'popup' | ||
| 'drawer' | ||
| 'link' | ||
| 'popupWithLink' | ||
| 'block' | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters