Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

fix: mismatch product prices between feeds & website #254

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
76dd805
feat: multi currency
aureate-labs-team Jan 7, 2022
ad6ed8f
Merge remote-tracking branch 'upstream/main'
aureate-labs-team Jan 7, 2022
21d7f78
feat: multi-currency feature
aureate-labs-team Jan 12, 2022
7e51f78
feat: multi-currency feature
aureate-labs-team Jan 12, 2022
32c6e58
feat: added multicurrency feature (static)
aureate-labs-team Jan 13, 2022
e391eb2
feat: added multicurrency feature (static)
aureate-labs-team Jan 13, 2022
6b024e3
feat: pdp: multi currency
aureate-labs-team Jan 17, 2022
1ce5d5f
Merge remote-tracking branch 'upstream/main'
aureate-labs-team Jan 17, 2022
f9f0162
feat: muti-currency refactor
aureate-labs-team Jan 19, 2022
36e645c
feat: multi-currency feature (partial)
aureate-labs-team Jan 24, 2022
fb2298f
feat: multicurrency feature (partial)
aureate-labs-team Jan 24, 2022
ffbf41a
chore: version upgrade
aureate-labs-team Jan 24, 2022
78e8836
feat: added feature to update userfields
aureate-labs-team Jan 24, 2022
b85a122
fix: fixed selected variantby options
aureate-labs-team Jan 25, 2022
f703015
chore: upgraded shopify connector version
aureate-labs-team Jan 25, 2022
1e1bebc
fix: cartgetters item price
aureate-labs-team Jan 28, 2022
69d4b33
Merge remote-tracking branch 'upstream/main'
aureate-labs-team Jan 28, 2022
da2cb2b
refactor: getproducts api method
aureate-labs-team Jan 28, 2022
85c32dd
fix: cart initialisation bug on locale switching
aureate-labs-team Feb 4, 2022
4f9f116
Merge remote-tracking branch 'upstream/main'
aureate-labs-team Feb 4, 2022
bdd8837
Merge remote-tracking branch 'upstream/main'
aureate-labs-team Feb 4, 2022
7abc8cd
Merge remote-tracking branch 'upstream/main'
aureate-labs-team Feb 10, 2022
257dff0
chore: remove wishlist function for now (#213)
jeffpdotone Feb 10, 2022
9435fcc
fix: incosistent footer (#214)
jeffpdotone Feb 10, 2022
2ccb1ee
chore: update the misaligned margin of components (#215)
jeffpdotone Feb 10, 2022
35b85fc
fix: login modal popup error
aureate-labs-team Feb 17, 2022
b966c64
Merge remote-tracking branch 'upstream/main'
aureate-labs-team Feb 17, 2022
24ed594
feat: display discount on cart drawer
aureate-labs-team Feb 18, 2022
2351439
chore: updated shopify version
aureate-labs-team Feb 18, 2022
fd6f49d
fix: ssr for crawlers for multilingual
aureate-labs-team Feb 21, 2022
cb85d7a
Merge remote-tracking branch 'upstream/main'
aureate-labs-team Feb 21, 2022
b3bea73
fix: version upgraded
aureate-labs-team Feb 21, 2022
72603d1
refactor: added function for detect country
aureate-labs-team Feb 21, 2022
781d228
Merge remote-tracking branch 'upstream/main'
aureate-labs-team Feb 25, 2022
626d5fa
Merge remote-tracking branch 'upstream/main'
aureate-labs-team Mar 9, 2022
0de13d7
fix: mismatch product prices between feeds & website
aureate-labs-team Mar 11, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion packages/api-client/src/api/getProduct/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,11 @@ export default async function getProduct(
}
}
}`

const curLocaleCode = params.curLocaleCode;
const variables = {
handle: params.slug,
country: getCountry(context),
country: curLocaleCode === "en" ? "US" : (curLocaleCode).toUpperCase(),
selectedOptions: chosenVariant
}

Expand Down
4 changes: 1 addition & 3 deletions packages/composables/src/useProduct/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@ import { ProductsResponse } from '../types';
const params: UseProductFactoryParams<ProductsResponse, any> = {
productsSearch: async (context: Context, params: ProductsSearchParams): Promise<ProductsResponse> => {
const APP = context.$shopify.config.app;

// check if cart is already initiated
const curLocaleCode = APP.$cookies.get('CurLocaleLang');
const { customQuery, ...searchParams } = params;
searchParams.curLocaleCode = curLocaleCode;
searchParams.curLocaleCode = APP.i18n.locale;
return await context.$shopify.api.getProduct(searchParams, customQuery);
}
};
Expand Down