product page: get selected variant price instead of main product price
This commit is contained in:
@@ -201,7 +201,6 @@ export type FilterColumn =
|
||||
| "created_at"
|
||||
| "warehouse_id"
|
||||
| "filters[send_datetime][$eq]"
|
||||
| "warehouse_id"
|
||||
| "account_id"
|
||||
| "customer_id"
|
||||
| "currency_id"
|
||||
@@ -350,12 +349,12 @@ export interface ApiResponse<T> {
|
||||
}
|
||||
|
||||
export interface DiscountResultType {
|
||||
value: number
|
||||
is_on_category: boolean
|
||||
id: number
|
||||
isDiscount: boolean
|
||||
isGift: boolean
|
||||
categories: any[]
|
||||
value: number;
|
||||
is_on_category: boolean;
|
||||
id: number;
|
||||
isDiscount: boolean;
|
||||
isGift: boolean;
|
||||
categories: any[];
|
||||
}
|
||||
|
||||
export interface Restaurant {
|
||||
@@ -565,14 +564,14 @@ export interface Product {
|
||||
theExtrasGroups: TheExtrasGroup[];
|
||||
}
|
||||
|
||||
export interface Variant {
|
||||
id: number;
|
||||
export type Variant = {
|
||||
id: string;
|
||||
price: number;
|
||||
available: string;
|
||||
options: Option[];
|
||||
optionsAR: Option[];
|
||||
extras: Extra[];
|
||||
}
|
||||
};
|
||||
|
||||
export interface Option {
|
||||
option: string;
|
||||
|
||||
Reference in New Issue
Block a user