My order detail
This is a fashion that opens to see the details of an order with the function orderViewMore(order)
in the view theme/my-account-profile.html
Main Models
order.id
order.status
order.customer.name
order.customer.cellphone
order.customer.email
order.customer.address
order.customer.address_notes
order.customer.dropdown_option.city.name
order.customer.dropdown_option.name
order.customer.zipcode
order.business.phone
order.business.cellphone
order.business.address
order.products
order.delivery_zone_price
order.discount
order.offer_rate
order.service_fee
Utility Functions
getOrderState(order.status)
: returns the status text of the orderhide()
: Close this modalcalcTotalProduct(product)
: calculates the total of a product taking into account its extrascalcSubtotal(order)
: calculates the sum of the total of each productcalcTax(order)
: calculate the tax if it is a percentage based on the subtotalcalcDriverTip(order)
: calculate the driver's tip if this is delivery type and if the percentage is different from 0calcServiceFee(order)
: calculates the total service if this is a percentagecalcTotalOrder(order)
: calculates the total order taking into account tips, taxes, service value and discountstrack()
: opens a modal that allows real-time tracking of the order if it is a delivery type
Example of base theme
Updated almost 6 years ago