Order confirm popup
This view is a summary of the order that confirms that it has been created
Main models
order.id
: order identifierorder.business.name
: business nameorder.customer.name
: customer nameorder.customer.lastname
: customer's last nameorder.business.address
: business addressorder.customer.address_notes
: Customer's address notesorder.customer.dropdown_option.name
: name of the delivery areaorder.customer.dropdown_option.city.name
: name of the client's cityorder.customer.cellphone
: Customer's cell phone numberorder.business.email
: business emailorder.customer.email
: customer emailorder.products
: order productsorder.delivery_zone_price
: The delivery zone riceorder.driver_tip
: value assigned to the driver's tiporder.service_fee
: service priceorder.offer_rate
: order discount valueorder.discount
: Order discountcreate_order
: Mark if the order was created by a business
Utility Functions
onGoMyProfile(1)
: send to the profile page in the ordersprint()
: Print order, reserved function if order created by the business create_ordernewCreateOrder()
: Give the option to re-create an order if the order was created by the businesscreate_order
calcTotalProduct(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 discounts
Example of base theme
onGoMyProfile(1)
calcTotalProduct(product)
calcSubtotal(order)
calcTax(order)
order.delivery_zone_price
calcServiceFee(order)
calcTotalOrder(order)
Updated almost 6 years ago