Skip to content

Commit

Permalink
docs: more info about queries in README.
Browse files Browse the repository at this point in the history
Signed-off-by: Nat Hamilton <[email protected]>

Signed-off-by: Nat Hamilton <[email protected]>
  • Loading branch information
nnnnat committed Feb 28, 2019
1 parent 1a3cd62 commit cca671b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions imports/plugins/included/simple-pricing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,17 @@ const {

### Cart Price Queries
**getCartPrice**
This query is used to get a selected product's real price when adding the item to the Cart.

**getCurrentCatalogPriceForProductConfiguration**
This query is used to verify a product's price is correct before we process the order.

**getVariantPricingMap**
This query creates a map of product pricing data keyed by variant ID. This is used to keep cart prices updated with product pricing changes.

**updateCartItemsForVariantPriceChange**
This query will update the cart items with new pricing information if any in cart products change.


### Catalog Price Queries
TBD

0 comments on commit cca671b

Please sign in to comment.