diff options
| author | trisusilo <tri.susilo@altama.co.id> | 2023-07-27 03:10:38 +0000 |
|---|---|---|
| committer | trisusilo <tri.susilo@altama.co.id> | 2023-07-27 03:10:38 +0000 |
| commit | adae7d08d1f172c9927ebb9ed9e5247ef85690d4 (patch) | |
| tree | 50cba6376227966d3083e3ad3b68628b1d8a6561 /src/lib/product/components/Product/ProductMobile.jsx | |
| parent | 0e8d4375dad12cbf07f8ff484ef547c15ae4c0cc (diff) | |
| parent | 46c208194cb80be3a4ce2d42ad817551b9b2a18d (diff) | |
Merged in Hotfix/action_click_button_beli (pull request #32)
Hotfix/action click button beli
Diffstat (limited to 'src/lib/product/components/Product/ProductMobile.jsx')
| -rw-r--r-- | src/lib/product/components/Product/ProductMobile.jsx | 10 |
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 = [ |
