summaryrefslogtreecommitdiff
path: root/src/pages/shop
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-10-24 10:11:31 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-10-24 10:11:31 +0700
commit5f0f6b865bafd1570b24b8caffdb992ffbb476fc (patch)
treecb10cb24f45823c118155bff5f30490691aa0b42 /src/pages/shop
parentf073b22e917acde22c21808906a37270e274085f (diff)
parentca30c28dd0b19977eb771fc32ff5e520cdef1068 (diff)
Merge branch 'CR/product_detail' into Feature/penawaran-instan
Diffstat (limited to 'src/pages/shop')
-rw-r--r--src/pages/shop/product/variant/[slug].jsx7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/pages/shop/product/variant/[slug].jsx b/src/pages/shop/product/variant/[slug].jsx
index 42f38774..2c0dd64b 100644
--- a/src/pages/shop/product/variant/[slug].jsx
+++ b/src/pages/shop/product/variant/[slug].jsx
@@ -32,16 +32,9 @@ export async function getServerSideProps(context) {
tier
);
let product = response.data;
- // let product = await variantApi({ id: getIdFromSlug(slug), headers: { Token: authToken } })
if (product?.length == 1) {
product = product[0];
- /* const regexHtmlTags = /(<([^>]+)>)/gi
- const regexHtmlTagsExceptP = /<\/?(?!p\b)[^>]*>/g
- product.description = product.description
- .replace(regexHtmlTagsExceptP, ' ')
- .replace(regexHtmlTags, ' ')
- .trim()*/
} else {
product = null;
}