vtex-apps / minicart

VTEX Minicart app
10 stars 53 forks source link

allow custom title minicart #257

Open jairandresdiazp opened 4 years ago

jairandresdiazp commented 4 years ago

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 commented 3 years ago

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.