-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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: Product type tax overrides #9951
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 7 Skipped Deployments
|
|
c1fd041
to
ac327e6
Compare
ac327e6
to
27cbfee
Compare
/** | ||
* The name of the item's product. | ||
*/ | ||
product_name?: string | ||
|
||
/** | ||
* The ID of the category of the item's product. | ||
*/ | ||
product_category_id?: string | ||
|
||
/** | ||
* The categories of the item's product. | ||
*/ | ||
product_categories?: string[] | ||
|
||
/** | ||
* The SKU of the item's product. | ||
*/ | ||
product_sku?: string | ||
|
||
/** | ||
* The type of the item's product. | ||
*/ | ||
product_type?: string | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are currently not used for tax calculations so I removed them from the type and input.
product_name: product.title, | ||
product_categories: product.categories?.map((c) => c.name), | ||
// TODO: It is strange that we only accept a single category, revisit the tax module implementation | ||
product_category_id: product.categories?.[0]?.id, | ||
product_sku: variant.sku, | ||
product_type: product.type, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are currently not used for tax calculations so I removed them from the type and input.
@@ -1,5 +1,7 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apparently, a lot of stuff was missing in the cart module snapshot
…edusa into fix/product-type-tax-override
What
product_type_id
toorder_line_item
product_type_id
tocart_line_item
Why