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

allow custom title minicart #257

Open
jairandresdiazp opened this issue Nov 6, 2020 · 1 comment
Open

allow custom title minicart #257

jairandresdiazp opened this issue Nov 6, 2020 · 1 comment

Comments

@jairandresdiazp
Copy link

jairandresdiazp commented Nov 6, 2020

Describe the solution you'd like

A clear and concise description of what you want to happen.

include in the block Minicart a props "minicartTitle" that allow custom tittle.

apply the change to the file https://github.com/vtex-apps/minicart/blob/master/react/Minicart.tsx

Additional context

Without this property, making the title customization is difficult since you have to make a CSS that overwrites the title content, it is not an effective way to apply the customization

@Mecrano
Copy link

Mecrano commented Dec 30, 2020

Hi @jairandresdiazp , you can change this text by graphQL request, here is the documentation: https://vtex.io/docs/recipes/development/overwriting-the-messages-app/, the key of Title Minicart is "store/minicart.title"

This title cannot be a property because remember that VTEX IO supports multiple languages, so you would have to send several texts, but for that there is already the "messages" functionality

Regards, Edwin.

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

2 participants