diff options
| author | trisusilo <tri.susilo@altama.co.id> | 2023-07-26 07:30:33 +0000 |
|---|---|---|
| committer | trisusilo <tri.susilo@altama.co.id> | 2023-07-26 07:30:33 +0000 |
| commit | c96f30a60d8ef7ebc949d2124abdd91d5a1dafc5 (patch) | |
| tree | 7480cd7aa34293cdd357dfbb73296a45d0dc695a /src/lib/product/components | |
| parent | cea5468a29e70aec335e2e80c7fa03e35a3c73bf (diff) | |
| parent | 02fbca0f66aac32e562364ddfda9c5bae4177e96 (diff) | |
Merged in Hotfix/action_click_button_beli (pull request #29)
Hotfix/action click button beli
Diffstat (limited to 'src/lib/product/components')
| -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 = [ |
