var id = 1; // Represents the ID of order items
var options_id = 0; // Used for something related to options
var item_map = new Map(); // Map to store order items
var total = 0; // Represents the total price of the order
Creates an order item based on a template and manages related functionalities.
Parameters:
item
(HTMLElement
): The item to be added to the order.
function createOrderItem(item) {
// ... Function code ...
}
Filters and shows/hides items based on the selected category.
Parameters:
category
(string
): The category to be displayed.
function changeCategory(category) {
// ... Function code ...
}
Represents a web application with functionality related to user preferences and store information.
// ... New code ...
Create a Map to store locations and their corresponding Google Maps URLs.
// ... New code ...
Initializes the web page with the correct store in an interactive map.
// ... New code ...
Adds items to the shopping cart based on the provided order_id.
Parameters:
order_id
(string
): The ID of the order.
function cart_add_items(order_id) {
// ... Function code ...
}
Updates the displayed date when the user selects a date in the birthday picker.
// ... New code ...
Changes the displayed store information and updates user preferences based on the selected store.
Parameters:
store
(string
): The selected store ('cstat', 'dallas', or 'houston').
function changeStore(store) {
// ... Function code ...
}