update handleProductSelection
This commit is contained in:
@@ -309,7 +309,6 @@ export default class UserProductHandler {
|
|||||||
📦 Available: ${product.quantity_in_stock} pcs
|
📦 Available: ${product.quantity_in_stock} pcs
|
||||||
|
|
||||||
Category: ${product.category_name}
|
Category: ${product.category_name}
|
||||||
Subcategory: ${product.subcategory_name}
|
|
||||||
`;
|
`;
|
||||||
|
|
||||||
let photoMessageId = null;
|
let photoMessageId = null;
|
||||||
@@ -340,7 +339,7 @@ Subcategory: ${product.subcategory_name}
|
|||||||
callback_game: product.quantity_in_stock <= 1 ? {} : null // Disabled if stock is 1 or less
|
callback_game: product.quantity_in_stock <= 1 ? {} : null // Disabled if stock is 1 or less
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
[{ text: '« Back', callback_data: `shop_category_${product.location_id}_${product.category_id}` }] // Возврат к категории
|
[{ text: `« Back ${product.category_name}`, callback_data: `shop_category_${product.location_id}_${product.category_id}` }] // Возврат к категории
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user