Skip to content

Commit

Permalink
Merge pull request #219 from k2maan/preorder/#210
Browse files Browse the repository at this point in the history
Fixed: pre-order products displaying incorrect category status (#210)
  • Loading branch information
ravilodhi authored Sep 7, 2023
2 parents 8a17c01 + 47eefb6 commit 6a71fb1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
3 changes: 0 additions & 3 deletions src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
"Excluded ATP": "Excluded ATP",
"from date": "from date",
"Failed to update configuration": "Failed to update configuration",
"Failed to get pre-order/backorder categories": "Failed to get pre-order/backorder categories",
"Go to Launchpad": "Go to Launchpad",
"Go to OMS": "Go to OMS",
"History": "History",
Expand Down Expand Up @@ -91,13 +90,11 @@
"Loyalty status": "Loyalty status",
"Never in any category": "Never in any category",
"No": "No",
"No backorder category found": "No backorder category found",
"No job found": "No job found",
"No jobs found": "No jobs found",
"No jobs have run yet": "No jobs have run yet",
"No listing data": "No listing data",
"No products found": "No products found",
"No pre-order category found": "No pre-order category found",
"No results found": "No results found",
"No selected store found.": "No selected store found.",
"No time zone found": "No time zone found",
Expand Down
2 changes: 1 addition & 1 deletion src/store/modules/product/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ const actions: ActionTree<ProductState, RootState> = {

resp = await ProductService.getCatalogCategories({
"inputFields": {
"productStoreId": payload.productStoreId,
"prodCatalogId": productStoreCatalogId,
"prodCatalogCategoryTypeId": ["PCCT_PREORDR", "PCCT_BACKORDER"],
"prodCatalogCategoryTypeId_op": "in"
},
Expand Down
8 changes: 1 addition & 7 deletions src/views/catalog-product-details.vue
Original file line number Diff line number Diff line change
Expand Up @@ -478,14 +478,8 @@ export default defineComponent({
const productStoreCategories = await this.store.dispatch('product/getPreOrderBackorderCategory', { productStoreId })
this.preOrderCategoryId = productStoreCategories["PCCT_PREORDR"];
this.backorderCategoryId = productStoreCategories["PCCT_BACKORDER"];
if (!this.preOrderCategoryId) {
showToast(translate("No pre-order category found"))
}
if (!this.backorderCategoryId) {
showToast(translate("No backorder category found"))
}
} catch (error) {
showToast(translate("Failed to get pre-order/backorder categories"))
console.error("Failed to get pre-order/backorder categories")
}
await this.getShopifyConfigsByStore()
await this.getCtgryAndBrkrngJobs()
Expand Down

0 comments on commit 6a71fb1

Please sign in to comment.