vtex / vtex.js

VTEX SDK for JavaScript
MIT License
120 stars 52 forks source link

Implement replaceSKU method #29

Closed koz closed 7 years ago

koz commented 7 years ago

Implement replaceSKU for SAC feature in checkout-ui

klzns commented 7 years ago

Only noSplitItem

Em Sáb, 27 de mai de 2017 19:25, Gabriel Kozlowaski < notifications@github.com> escreveu:

@koz commented on this pull request.

In src/checkout.coffee https://github.com/vtex/vtex.js/pull/29#discussion_r118830084:

  • "index": index
  • },
  • {
  • "seller": newSKU.sellers[0].sellerId
  • "quantity": quantity
  • "id": newSKU.itemId
  • }
  • ]
  • @_updateOrderForm({
  • url: @_getAddToCartURL()
  • type: 'PATCH'
  • data: JSON.stringify({
  • "orderItems": items,
  • "expectedOrderFormSections": expectedOrderFormSections,
  • "noSplitItem": true,

Or only noSplitItem?

— You are receiving this because your review was requested.

Reply to this email directly, view it on GitHub https://github.com/vtex/vtex.js/pull/29#discussion_r118830084, or mute the thread https://github.com/notifications/unsubscribe-auth/AARXYybNiZDy5yIouC3URxCcG_5cHzBNks5r-KLhgaJpZM4NofG4 .

koz commented 7 years ago

@brenoc Updated docs, and passed items and noSplitItem as argument.