product page: get selected variant price instead of main product price

This commit is contained in:
2025-11-10 14:39:30 +03:00
parent 0b4ad0401f
commit db75925e7a
4 changed files with 26 additions and 29 deletions

View File

@@ -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;