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

Context Navigate #628

Open
felipe-ssilva opened this issue Oct 13, 2021 · 0 comments
Open

Context Navigate #628

felipe-ssilva opened this issue Oct 13, 2021 · 0 comments

Comments

@felipe-ssilva
Copy link

felipe-ssilva commented Oct 13, 2021

Olá pessoal,

Utilizando context.navigate é possível submeter uma busca (por termo/palavra chave) para a store.search. Minha dúvida é: Como litar a busca dessa palavra chave a uma marca/departamento/categoria? É possível passar uma query?

import { withRuntimeContext } from 'vtex.render-runtime'
submit (e) {
        e.preventDefault();

        this.context.navigate({
            page: "store.search",
            query: {
                fq: "c:570"
            },
            params: {
                term: this.state.search_ctx
            }
        });
    }
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