Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/quantity selector #69

Open
wants to merge 33 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
486407f
Fixed sku duplicate issue
neeshsilva Aug 11, 2021
75c9cd0
Fixed duplicate sku issue
neeshsilva Aug 11, 2021
badae92
Fixed Add to cart issue
neeshsilva Aug 31, 2021
189296a
fixing linting issues
neeshsilva Aug 31, 2021
a7e670a
Fixed reviwe table formating issue
neeshsilva Aug 31, 2021
efa2b4a
fixed linting issue in rsolver/search/index
neeshsilva Aug 31, 2021
0d26731
fixing linting issues
neeshsilva Aug 31, 2021
a7b6196
Updating app detailes
neeshsilva Sep 9, 2021
761f540
Merge pull request #1 from clouda-inc/fix/duplicate-items
Jayendra88 Oct 6, 2021
636ee8b
Bulk quantity check.
neeshsilva Oct 6, 2021
ffafa95
Removing console logs
neeshsilva Oct 6, 2021
f7a31ff
Remove test funtion .
neeshsilva Oct 6, 2021
1ef59e2
Change App name
neeshsilva Oct 6, 2021
3e501dd
Merge pull request #2 from clouda-inc/fix/duplicate-items
Jayendra88 Oct 6, 2021
af0fd21
add bulk order inventory
Jayendra88 Oct 6, 2021
fcafb44
bulk order validation
Jayendra88 Oct 27, 2021
22c80e5
quick order item availability
Jayendra88 Oct 27, 2021
2b08cca
bulk order validation
Jayendra88 Nov 1, 2021
1ff10d9
add to cart hide
Jayendra88 Nov 1, 2021
2997e08
Merge pull request #3 from clouda-inc/feature/bulk-order-inventory
Jayendra88 Nov 1, 2021
c443c7d
update changelog
Jayendra88 Nov 1, 2021
08adf1a
auto fix messages
Jayendra88 Nov 1, 2021
eb51986
fix add to cart issues
Jayendra88 Nov 4, 2021
abcaf7e
Merge pull request #4 from clouda-inc/feature/remove-columns-and-fix-…
Jayendra88 Nov 5, 2021
aa39abc
Fix numeric stepper
neeshsilva Nov 5, 2021
016e3c3
Fix numeric stepper
neeshsilva Nov 5, 2021
3990964
Fix numeric stepper
neeshsilva Nov 5, 2021
c091fe3
Fix quatity issu and add to cart issue
neeshsilva Nov 9, 2021
68bf94e
fix the linting issues.
neeshsilva Nov 9, 2021
28d0052
fix linting issue
neeshsilva Nov 9, 2021
68300b7
fix linting issue
neeshsilva Nov 9, 2021
dffc957
Fix the add to cart issue in product search
neeshsilva Nov 9, 2021
d187492
Fix the add to cart issue in product search
neeshsilva Nov 9, 2021
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
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,24 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Fixed

- Remove unwanted columns from review table
- Fix add to cart issues
- Fix numeric stepper.
- Fix the quantity validation against MOQ and UM.
- Fix the add to cart quantity.
- Fix the add to cart behaviour in pdp search.

## [0.0.4] - 2021-11-01

## [0.0.3] - 2021-10-29

### Fixed

- Added the Avble qty for bulk order.
- Fixed the duplicate sku addition

## [3.2.0] - 2021-05-17

### Added
Expand Down
2 changes: 2 additions & 0 deletions graphql/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ type Query {
sellers: SellersType
@cacheControl(scope: SEGMENT, maxAge: MEDIUM)
@withSegment

getSkuAvailability(refIds: [String], customerNumber: String, targetSystem: String, salesOrganizationCode: String): AvailableItems
}
15 changes: 15 additions & 0 deletions graphql/types/GetSkuAvailability.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
type AvailableItems {
items: [AvailableItem]
}
type AvailableItem {
refid: String
sku: String
productId: String
availability: String
seller: ItemsSeller
availableQuantity: String
productName: String
price: Float
unitMultiplier: Int
minQty: Int
}
1 change: 1 addition & 0 deletions graphql/types/Refids.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ type ItemsRefId {
refid: String
availability: String
sellers: [ItemsSeller]
productName: String
}
43 changes: 39 additions & 4 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"vendor": "vtex",
"name": "quickorder",
"version": "3.2.0",
"vendor": "sbdsefuat",
"name": "bulk-order",
"version": "0.0.4",
"title": "Quickorder",
"description": "Allow users to add multiple products to the cart at once",
"defaultLocale": "en-US",
Expand Down Expand Up @@ -35,7 +35,8 @@
"vtex.pixel-manager": "1.x",
"vtex.store-resources": "0.x",
"vtex.css-handles": "0.x",
"vtex.store-icons": "0.x"
"vtex.store-icons": "0.x",
"sbdsefuat.checkout-simulation": "1.x"
},
"policies": [
{
Expand Down Expand Up @@ -70,6 +71,40 @@
"host": "{{account}}.vtexcommercestable.com.br",
"path": "/api/catalog_system/pub/sku/stockkeepingunitidsbyrefids"
}
},
{
"name": "outbound-access",
"attrs": {
"host": "{{account}}.vtexcommercestable.com.br",
"path": "/api/catalog_system/pvt/seller/*"
}
},
{
"name": "outbound-access",
"attrs": {
"host": "{{account}}.vtexcommercestable.com.br",
"path": "/api/catalog_system/pub/products/search/*"
}
},
{
"name": "outbound-access",
"attrs": {
"host": "api.vtex.com",
"path": "/api/dataentities/*"
}
},
{
"name": "outbound-access",
"attrs": {
"host": "{{account}}.vtexcommercestable.com.br",
"path": "/api/logistics/pvt/inventory/skus/*"
}
},
{
"name": "POWER_USER_DS"
},
{
"name": "LogisticsAdmin"
}
],
"settingsSchema": {},
Expand Down
3 changes: 2 additions & 1 deletion messages/context.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,6 @@
"store/toaster.cart.duplicated": "store/toaster.cart.duplicated",
"store/toaster.cart.error": "store/toaster.cart.error",
"store/toaster.cart.seeCart": "store/toaster.cart.seeCart",
"store/toaster.cart.success": "store/toaster.cart.success"
"store/toaster.cart.success": "store/toaster.cart.success",
"store/quickorder.unavailable": "store/quickorder.unavailable"
}
5 changes: 3 additions & 2 deletions messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"store/quickorder.review.label.lineNumber": "#",
"store/quickorder.review.label.quantity": "Quantity",
"store/quickorder.review.label.seller": "Seller",
"store/quickorder.review.label.sku": "SKU",
"store/quickorder.review.label.sku": "Product Name",
"store/quickorder.review.label.status": "Status",
"store/quickorder.skuNotFound": "SKU Not Found",
"store/quickorder.upload.choose": "choose a file",
Expand All @@ -54,5 +54,6 @@
"store/toaster.cart.duplicated": "Item duplicated",
"store/toaster.cart.error": "Error adding products to the cart",
"store/toaster.cart.seeCart": "See cart",
"store/toaster.cart.success": "Products successfuly added to the cart"
"store/toaster.cart.success": "Products successfuly added to the cart",
"store/quickorder.unavailable": "Item not available in the store"
}
3 changes: 2 additions & 1 deletion messages/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,6 @@
"store/toaster.cart.duplicated": "Elemento duplicado",
"store/toaster.cart.error": "Error al agregar productos al carrito",
"store/toaster.cart.seeCart": "Ver el carrito",
"store/toaster.cart.success": "Productos agregados correctamente"
"store/toaster.cart.success": "Productos agregados correctamente",
"store/quickorder.unavailable": "Item not available in the store"
}
3 changes: 2 additions & 1 deletion messages/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,6 @@
"store/toaster.cart.duplicated": "Item duplicado",
"store/toaster.cart.error": "Erro adicionando produtos ao carrinho",
"store/toaster.cart.seeCart": "Ver o carrinho",
"store/toaster.cart.success": "Produtos adicionados com sucesso"
"store/toaster.cart.success": "Produtos adicionados com sucesso",
"store/quickorder.unavailable": "Item not available in the store"
}
3 changes: 2 additions & 1 deletion messages/ro.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,6 @@
"store/toaster.cart.duplicated": "Articol duplicat",
"store/toaster.cart.error": "Eroare la adaugarea produselor in cos",
"store/toaster.cart.seeCart": "Vezi cos",
"store/toaster.cart.success": "Produse adaugate in cos"
"store/toaster.cart.success": "Produse adaugate in cos",
"store/quickorder.unavailable": "Item not available in the store"
}
30 changes: 30 additions & 0 deletions node/clients/catalog.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import { ExternalClient, InstanceOptions, IOContext } from '@vtex/api'

export class Catalog extends ExternalClient {
constructor(context: IOContext, options?: InstanceOptions) {
super(
`http://${context.account}.vtexcommercestable.com.br`,
context,
options
)
}

public inventoryBySkuId = (id: string | number) => {
this.context.logger.debug({
auth: this.context.authToken,
url: this.context.host,
})
const endpoint = `${this.options?.baseURL}/api/logistics/pvt/inventory/skus/${id}`
return this.http.get(`/api/logistics/pvt/inventory/skus/${id}`, {
headers: {
'Content-Type': 'application/json',
Accept: 'application/json',
VtexIdclientAutCookie: `${this.context.authToken}`,
'Proxy-Authorization': this.context.authToken,
'X-Vtex-Proxy-To': endpoint,
'X-Vtex-Use-Https': true,
'Cache-Control': 'no-cache',
},
})
}
}
5 changes: 5 additions & 0 deletions node/clients/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
import { IOClients } from '@vtex/api'

import { Search } from './search'
import { Catalog } from './catalog'

export class Clients extends IOClients {
public get search() {
return this.getOrSet('search', Search)
}

public get catalog() {
return this.getOrSet('catalog', Catalog)
}
}
Loading