summaryrefslogtreecommitdiff
path: root/src/lib/product
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/product')
-rw-r--r--src/lib/product/components/Product/ProductMobile.jsx10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/product/components/Product/ProductMobile.jsx b/src/lib/product/components/Product/ProductMobile.jsx
index 91de173a..2edd1a5f 100644
--- a/src/lib/product/components/Product/ProductMobile.jsx
+++ b/src/lib/product/components/Product/ProductMobile.jsx
@@ -137,7 +137,15 @@ const ProductMobile = ({ product, wishlist, toggleWishlist }) => {
const handleClickBuy = () => {
if (!validAction()) return
- router.push(`/shop/checkout?productId=${activeVariant.id}&quantity=${quantity}`)
+
+ updateItemCart({
+ productId: activeVariant.id,
+ quantity,
+ programLineId: promotionActiveId,
+ selected: true,
+ source : 'buy'
+ })
+ router.push(`/shop/checkout?source=buy`)
}
const productSimilarQuery = [