feat: add profit and special discount fields to ProductVariant model
- Updated ProductVariant model to include 'profit' and 'special_discount_percent' fields. - Added corresponding fields in the admin interface for ProductVariant. - Created migration to add new fields to the database. feat: implement special discount code functionality in cart - Added composables for submitting and deleting special discount codes. - Updated CartSummary and CartItem components to handle special discount codes. - Enhanced API endpoints to support special discount operations. - Updated global types to include special discount code details in the cart.
This commit is contained in:
@@ -61,6 +61,8 @@ export const API_ENDPOINTS = {
|
||||
add_one: "/order/cart/item",
|
||||
add_discount: "/order/cart/discount",
|
||||
delete_discount: "/order/cart/discount",
|
||||
add_special_discount: "/order/cart/special-discount",
|
||||
delete_special_discount: "/order/cart/special-discount",
|
||||
},
|
||||
delivery: {
|
||||
set_address: "/order/cart/set-address",
|
||||
|
||||
Reference in New Issue
Block a user