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

Feat/vnda prices segment #897

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Conversation

soutofernando
Copy link
Contributor

@soutofernando soutofernando commented Oct 2, 2024

Por padrão na VNDA é possivel criar promoções com links exclusivos que funcionam com a querystring cc e quando isso existe temos que buscar os preços especificos com esse "cupom". Ao mesmo tempo ao adicionar produtos no Carrinho esse cupom deve ser enviado para a API de Add Item.

Para testar basta adicionar ?cc=45D544EBDA na URL e ir no produto /produto/short-shorts-azul-2402 para ver o desconto aplicado.

Link sem a funcionalidade: https://www.bolovo.com.br/produto/short-shorts-azul-2402?skuId=9270000670401

PR com a funcionalidade*: https://github.com/deco-sites/bolovo-store/tree/feat/link-with-cupom

Devido ao site estar no DD é necessário que o teste se faça em ambiente local

Copy link
Contributor

github-actions bot commented Oct 2, 2024

Tagging Options

Should a new tag be published when this PR is merged?

  • 👍 for Patch 0.59.24 update
  • 🎉 for Minor 0.60.0 update
  • 🚀 for Major 1.0.0 update


const pricePromises = products.map((product) =>
ctx.api["GET /api/v2/products/:productId/price"]({
productId: product.sku,
coupon_codes: segment?.cc ? [segment.cc] : [],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May segment have CC? Can you confirm this please?

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

Successfully merging this pull request may close these issues.

4 participants