From 38b9dbfba2d700b6ec59f6867af730ef179d5dd8 Mon Sep 17 00:00:00 2001 From: Jeff Mataya Date: Wed, 6 Jul 2016 18:14:11 -0700 Subject: [PATCH] Reference the SKU code that's in the attributes --- src/pages/catalog/pdp.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/catalog/pdp.jsx b/src/pages/catalog/pdp.jsx index 86b6ef1e..db555a0b 100644 --- a/src/pages/catalog/pdp.jsx +++ b/src/pages/catalog/pdp.jsx @@ -167,7 +167,7 @@ class Pdp extends Component { } const quantity = this.state.quantity; - const skuId = this.firstSku.code; + const skuId = _.get(this.firstSku, 'attributes.code.v', ''); actions.addLineItem(skuId, quantity) .then(() => { actions.toggleCart();