Update order refund states
This commit is contained in:
@@ -747,7 +747,7 @@ class AdminOrdersControllerCore extends AdminController
|
||||
$objOrderReturn = new OrderReturn();
|
||||
$objOrderReturn->id_customer = $order->id_customer;
|
||||
$objOrderReturn->id_order = $order->id;
|
||||
$objOrderReturn->state = 1;
|
||||
$objOrderReturn->state = OrderReturnState::ORDER_RETRUN_FIRST_STATUS;
|
||||
$objOrderReturn->by_admin = 1;
|
||||
$objOrderReturn->question = $refundReason;
|
||||
$objOrderReturn->save();
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
<field name="color"/>
|
||||
</fields>
|
||||
<entities>
|
||||
<order_return_state id="Waiting_for_confirmation" color="#4169E1" send_email_to_customer="1" send_email_to_superadmin="1" send_email_to_employee="1" send_email_to_hotelier="1" denied="0" refunded="0"/>
|
||||
<order_return_state id="Request_received" color="#32CD32" send_email_to_customer="1" send_email_to_superadmin="1" send_email_to_employee="1" send_email_to_hotelier="1" denied="0" refunded="0"/>
|
||||
<order_return_state id="Pending" color="#4169E1" send_email_to_customer="1" send_email_to_superadmin="1" send_email_to_employee="1" send_email_to_hotelier="1" denied="0" refunded="0"/>
|
||||
<order_return_state id="Refund_denied" color="#DC143C" send_email_to_customer="1" send_email_to_superadmin="1" send_email_to_employee="1" send_email_to_hotelier="1" denied="1" refunded="0"/>
|
||||
<order_return_state id="Refund_completed" color="#108510" send_email_to_customer="1" send_email_to_superadmin="1" send_email_to_employee="1" send_email_to_hotelier="1" denied="0" refunded="1"/>
|
||||
</entities>
|
||||
|
||||
@@ -1,14 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<entity_order_return_state>
|
||||
<order_return_state id="Waiting_for_confirmation">
|
||||
<name>Waiting for confirmation</name>
|
||||
<customer_template>order_refund_waiting_customer</customer_template>
|
||||
<admin_template>order_refund_waiting_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Request_received">
|
||||
<name>Request received</name>
|
||||
<customer_template>order_refund_received_customer</customer_template>
|
||||
<admin_template>order_refund_received_admin</admin_template>
|
||||
<order_return_state id="Pending">
|
||||
<name>Pending</name>
|
||||
<customer_template>order_refund_pending_customer</customer_template>
|
||||
<admin_template>order_refund_pending_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Refund_denied">
|
||||
<name>Refund denied</name>
|
||||
|
||||
@@ -1,14 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<entity_order_return_state>
|
||||
<order_return_state id="Waiting_for_confirmation">
|
||||
<name>Waiting for confirmation</name>
|
||||
<customer_template>order_refund_waiting_customer</customer_template>
|
||||
<admin_template>order_refund_waiting_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Request_received">
|
||||
<name>Request received</name>
|
||||
<customer_template>order_refund_received_customer</customer_template>
|
||||
<admin_template>order_refund_received_admin</admin_template>
|
||||
<order_return_state id="Pending">
|
||||
<name>Pending</name>
|
||||
<customer_template>order_refund_pending_customer</customer_template>
|
||||
<admin_template>order_refund_pending_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Refund_denied">
|
||||
<name>Refund denied</name>
|
||||
|
||||
@@ -1,14 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<entity_order_return_state>
|
||||
<order_return_state id="Waiting_for_confirmation">
|
||||
<name>Waiting for confirmation</name>
|
||||
<customer_template>order_refund_waiting_customer</customer_template>
|
||||
<admin_template>order_refund_waiting_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Request_received">
|
||||
<name>Request received</name>
|
||||
<customer_template>order_refund_received_customer</customer_template>
|
||||
<admin_template>order_refund_received_admin</admin_template>
|
||||
<order_return_state id="Pending">
|
||||
<name>Pending</name>
|
||||
<customer_template>order_refund_pending_customer</customer_template>
|
||||
<admin_template>order_refund_pending_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Refund_denied">
|
||||
<name>Refund denied</name>
|
||||
|
||||
@@ -1,14 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<entity_order_return_state>
|
||||
<order_return_state id="Waiting_for_confirmation">
|
||||
<name>Waiting for confirmation</name>
|
||||
<customer_template>order_refund_waiting_customer</customer_template>
|
||||
<admin_template>order_refund_waiting_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Request_received">
|
||||
<name>Request received</name>
|
||||
<customer_template>order_refund_received_customer</customer_template>
|
||||
<admin_template>order_refund_received_admin</admin_template>
|
||||
<order_return_state id="Pending">
|
||||
<name>Pending</name>
|
||||
<customer_template>order_refund_pending_customer</customer_template>
|
||||
<admin_template>order_refund_pending_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Refund_denied">
|
||||
<name>Refund denied</name>
|
||||
|
||||
@@ -1,14 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<entity_order_return_state>
|
||||
<order_return_state id="Waiting_for_confirmation">
|
||||
<name>Waiting for confirmation</name>
|
||||
<customer_template>order_refund_waiting_customer</customer_template>
|
||||
<admin_template>order_refund_waiting_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Request_received">
|
||||
<name>Request received</name>
|
||||
<customer_template>order_refund_received_customer</customer_template>
|
||||
<admin_template>order_refund_received_admin</admin_template>
|
||||
<order_return_state id="Pending">
|
||||
<name>Pending</name>
|
||||
<customer_template>order_refund_pending_customer</customer_template>
|
||||
<admin_template>order_refund_pending_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Refund_denied">
|
||||
<name>Refund denied</name>
|
||||
|
||||
@@ -1,14 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<entity_order_return_state>
|
||||
<order_return_state id="Waiting_for_confirmation">
|
||||
<name>Waiting for confirmation</name>
|
||||
<customer_template>order_refund_waiting_customer</customer_template>
|
||||
<admin_template>order_refund_waiting_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Request_received">
|
||||
<name>Request received</name>
|
||||
<customer_template>order_refund_received_customer</customer_template>
|
||||
<admin_template>order_refund_received_admin</admin_template>
|
||||
<order_return_state id="Pending">
|
||||
<name>Pending</name>
|
||||
<customer_template>order_refund_pending_customer</customer_template>
|
||||
<admin_template>order_refund_pending_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Refund_denied">
|
||||
<name>Refund denied</name>
|
||||
|
||||
@@ -1,14 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<entity_order_return_state>
|
||||
<order_return_state id="Waiting_for_confirmation">
|
||||
<name>Waiting for confirmation</name>
|
||||
<customer_template>order_refund_waiting_customer</customer_template>
|
||||
<admin_template>order_refund_waiting_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Request_received">
|
||||
<name>Request received</name>
|
||||
<customer_template>order_refund_received_customer</customer_template>
|
||||
<admin_template>order_refund_received_admin</admin_template>
|
||||
<order_return_state id="Pending">
|
||||
<name>Pending</name>
|
||||
<customer_template>order_refund_pending_customer</customer_template>
|
||||
<admin_template>order_refund_pending_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Refund_denied">
|
||||
<name>Refund denied</name>
|
||||
|
||||
@@ -1,14 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<entity_order_return_state>
|
||||
<order_return_state id="Waiting_for_confirmation">
|
||||
<name>Waiting for confirmation</name>
|
||||
<customer_template>order_refund_waiting_customer</customer_template>
|
||||
<admin_template>order_refund_waiting_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Request_received">
|
||||
<name>Request received</name>
|
||||
<customer_template>order_refund_received_customer</customer_template>
|
||||
<admin_template>order_refund_received_admin</admin_template>
|
||||
<order_return_state id="Pending">
|
||||
<name>Pending</name>
|
||||
<customer_template>order_refund_pending_customer</customer_template>
|
||||
<admin_template>order_refund_pending_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Refund_denied">
|
||||
<name>Refund denied</name>
|
||||
|
||||
@@ -1,14 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<entity_order_return_state>
|
||||
<order_return_state id="Waiting_for_confirmation">
|
||||
<name>Waiting for confirmation</name>
|
||||
<customer_template>order_refund_waiting_customer</customer_template>
|
||||
<admin_template>order_refund_waiting_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Request_received">
|
||||
<name>Request received</name>
|
||||
<customer_template>order_refund_received_customer</customer_template>
|
||||
<admin_template>order_refund_received_admin</admin_template>
|
||||
<order_return_state id="Pending">
|
||||
<name>Pending</name>
|
||||
<customer_template>order_refund_pending_customer</customer_template>
|
||||
<admin_template>order_refund_pending_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Refund_denied">
|
||||
<name>Refund denied</name>
|
||||
|
||||
@@ -1,14 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<entity_order_return_state>
|
||||
<order_return_state id="Waiting_for_confirmation">
|
||||
<name>Waiting for confirmation</name>
|
||||
<customer_template>order_refund_waiting_customer</customer_template>
|
||||
<admin_template>order_refund_waiting_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Request_received">
|
||||
<name>Request received</name>
|
||||
<customer_template>order_refund_received_customer</customer_template>
|
||||
<admin_template>order_refund_received_admin</admin_template>
|
||||
<order_return_state id="Pending">
|
||||
<name>Pending</name>
|
||||
<customer_template>order_refund_pending_customer</customer_template>
|
||||
<admin_template>order_refund_pending_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Refund_denied">
|
||||
<name>Refund denied</name>
|
||||
|
||||
@@ -1,14 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<entity_order_return_state>
|
||||
<order_return_state id="Waiting_for_confirmation">
|
||||
<name>Waiting for confirmation</name>
|
||||
<customer_template>order_refund_waiting_customer</customer_template>
|
||||
<admin_template>order_refund_waiting_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Request_received">
|
||||
<name>Request received</name>
|
||||
<customer_template>order_refund_received_customer</customer_template>
|
||||
<admin_template>order_refund_received_admin</admin_template>
|
||||
<order_return_state id="Pending">
|
||||
<name>Pending</name>
|
||||
<customer_template>order_refund_pending_customer</customer_template>
|
||||
<admin_template>order_refund_pending_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Refund_denied">
|
||||
<name>Refund denied</name>
|
||||
|
||||
@@ -1,14 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<entity_order_return_state>
|
||||
<order_return_state id="Waiting_for_confirmation">
|
||||
<name>Waiting for confirmation</name>
|
||||
<customer_template>order_refund_waiting_customer</customer_template>
|
||||
<admin_template>order_refund_waiting_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Request_received">
|
||||
<name>Request received</name>
|
||||
<customer_template>order_refund_received_customer</customer_template>
|
||||
<admin_template>order_refund_received_admin</admin_template>
|
||||
<order_return_state id="Pending">
|
||||
<name>Pending</name>
|
||||
<customer_template>order_refund_pending_customer</customer_template>
|
||||
<admin_template>order_refund_pending_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Refund_denied">
|
||||
<name>Refund denied</name>
|
||||
|
||||
@@ -1,14 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<entity_order_return_state>
|
||||
<order_return_state id="Waiting_for_confirmation">
|
||||
<name>Waiting for confirmation</name>
|
||||
<customer_template>order_refund_waiting_customer</customer_template>
|
||||
<admin_template>order_refund_waiting_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Request_received">
|
||||
<name>Request received</name>
|
||||
<customer_template>order_refund_received_customer</customer_template>
|
||||
<admin_template>order_refund_received_admin</admin_template>
|
||||
<order_return_state id="Pending">
|
||||
<name>Pending</name>
|
||||
<customer_template>order_refund_pending_customer</customer_template>
|
||||
<admin_template>order_refund_pending_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Refund_denied">
|
||||
<name>Refund denied</name>
|
||||
|
||||
@@ -1,14 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<entity_order_return_state>
|
||||
<order_return_state id="Waiting_for_confirmation">
|
||||
<name>Waiting for confirmation</name>
|
||||
<customer_template>order_refund_waiting_customer</customer_template>
|
||||
<admin_template>order_refund_waiting_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Request_received">
|
||||
<name>Request received</name>
|
||||
<customer_template>order_refund_received_customer</customer_template>
|
||||
<admin_template>order_refund_received_admin</admin_template>
|
||||
<order_return_state id="Pending">
|
||||
<name>Pending</name>
|
||||
<customer_template>order_refund_pending_customer</customer_template>
|
||||
<admin_template>order_refund_pending_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Refund_denied">
|
||||
<name>Refund denied</name>
|
||||
|
||||
@@ -1,14 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<entity_order_return_state>
|
||||
<order_return_state id="Waiting_for_confirmation">
|
||||
<name>Waiting for confirmation</name>
|
||||
<customer_template>order_refund_waiting_customer</customer_template>
|
||||
<admin_template>order_refund_waiting_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Request_received">
|
||||
<name>Request received</name>
|
||||
<customer_template>order_refund_received_customer</customer_template>
|
||||
<admin_template>order_refund_received_admin</admin_template>
|
||||
<order_return_state id="Pending">
|
||||
<name>Pending</name>
|
||||
<customer_template>order_refund_pending_customer</customer_template>
|
||||
<admin_template>order_refund_pending_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Refund_denied">
|
||||
<name>Refund denied</name>
|
||||
|
||||
@@ -1,14 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<entity_order_return_state>
|
||||
<order_return_state id="Waiting_for_confirmation">
|
||||
<name>Waiting for confirmation</name>
|
||||
<customer_template>order_refund_waiting_customer</customer_template>
|
||||
<admin_template>order_refund_waiting_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Request_received">
|
||||
<name>Request received</name>
|
||||
<customer_template>order_refund_received_customer</customer_template>
|
||||
<admin_template>order_refund_received_admin</admin_template>
|
||||
<order_return_state id="Pending">
|
||||
<name>Pending</name>
|
||||
<customer_template>order_refund_pending_customer</customer_template>
|
||||
<admin_template>order_refund_pending_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Refund_denied">
|
||||
<name>Refund denied</name>
|
||||
|
||||
@@ -1,14 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<entity_order_return_state>
|
||||
<order_return_state id="Waiting_for_confirmation">
|
||||
<name>Waiting for confirmation</name>
|
||||
<customer_template>order_refund_waiting_customer</customer_template>
|
||||
<admin_template>order_refund_waiting_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Request_received">
|
||||
<name>Request received</name>
|
||||
<customer_template>order_refund_received_customer</customer_template>
|
||||
<admin_template>order_refund_received_admin</admin_template>
|
||||
<order_return_state id="Pending">
|
||||
<name>Pending</name>
|
||||
<customer_template>order_refund_pending_customer</customer_template>
|
||||
<admin_template>order_refund_pending_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Refund_denied">
|
||||
<name>Refund denied</name>
|
||||
|
||||
@@ -1,14 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<entity_order_return_state>
|
||||
<order_return_state id="Waiting_for_confirmation">
|
||||
<name>Waiting for confirmation</name>
|
||||
<customer_template>order_refund_waiting_customer</customer_template>
|
||||
<admin_template>order_refund_waiting_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Request_received">
|
||||
<name>Request received</name>
|
||||
<customer_template>order_refund_received_customer</customer_template>
|
||||
<admin_template>order_refund_received_admin</admin_template>
|
||||
<order_return_state id="Pending">
|
||||
<name>Pending</name>
|
||||
<customer_template>order_refund_pending_customer</customer_template>
|
||||
<admin_template>order_refund_pending_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Refund_denied">
|
||||
<name>Refund denied</name>
|
||||
|
||||
@@ -1,14 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<entity_order_return_state>
|
||||
<order_return_state id="Waiting_for_confirmation">
|
||||
<name>Waiting for confirmation</name>
|
||||
<customer_template>order_refund_waiting_customer</customer_template>
|
||||
<admin_template>order_refund_waiting_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Request_received">
|
||||
<name>Request received</name>
|
||||
<customer_template>order_refund_received_customer</customer_template>
|
||||
<admin_template>order_refund_received_admin</admin_template>
|
||||
<order_return_state id="Pending">
|
||||
<name>Pending</name>
|
||||
<customer_template>order_refund_pending_customer</customer_template>
|
||||
<admin_template>order_refund_pending_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Refund_denied">
|
||||
<name>Refund denied</name>
|
||||
|
||||
@@ -1,14 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<entity_order_return_state>
|
||||
<order_return_state id="Waiting_for_confirmation">
|
||||
<name>Waiting for confirmation</name>
|
||||
<customer_template>order_refund_waiting_customer</customer_template>
|
||||
<admin_template>order_refund_waiting_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Request_received">
|
||||
<name>Request received</name>
|
||||
<customer_template>order_refund_received_customer</customer_template>
|
||||
<admin_template>order_refund_received_admin</admin_template>
|
||||
<order_return_state id="Pending">
|
||||
<name>Pending</name>
|
||||
<customer_template>order_refund_pending_customer</customer_template>
|
||||
<admin_template>order_refund_pending_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Refund_denied">
|
||||
<name>Refund denied</name>
|
||||
|
||||
@@ -1,14 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<entity_order_return_state>
|
||||
<order_return_state id="Waiting_for_confirmation">
|
||||
<name>Waiting for confirmation</name>
|
||||
<customer_template>order_refund_waiting_customer</customer_template>
|
||||
<admin_template>order_refund_waiting_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Request_received">
|
||||
<name>Request received</name>
|
||||
<customer_template>order_refund_received_customer</customer_template>
|
||||
<admin_template>order_refund_received_admin</admin_template>
|
||||
<order_return_state id="Pending">
|
||||
<name>Pending</name>
|
||||
<customer_template>order_refund_pending_customer</customer_template>
|
||||
<admin_template>order_refund_pending_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Refund_denied">
|
||||
<name>Refund denied</name>
|
||||
|
||||
@@ -1,14 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<entity_order_return_state>
|
||||
<order_return_state id="Waiting_for_confirmation">
|
||||
<name>Waiting for confirmation</name>
|
||||
<customer_template>order_refund_waiting_customer</customer_template>
|
||||
<admin_template>order_refund_waiting_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Request_received">
|
||||
<name>Request received</name>
|
||||
<customer_template>order_refund_received_customer</customer_template>
|
||||
<admin_template>order_refund_received_admin</admin_template>
|
||||
<order_return_state id="Pending">
|
||||
<name>Pending</name>
|
||||
<customer_template>order_refund_pending_customer</customer_template>
|
||||
<admin_template>order_refund_pending_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Refund_denied">
|
||||
<name>Refund denied</name>
|
||||
|
||||
@@ -1,14 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<entity_order_return_state>
|
||||
<order_return_state id="Waiting_for_confirmation">
|
||||
<name>Waiting for confirmation</name>
|
||||
<customer_template>order_refund_waiting_customer</customer_template>
|
||||
<admin_template>order_refund_waiting_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Request_received">
|
||||
<name>Request received</name>
|
||||
<customer_template>order_refund_received_customer</customer_template>
|
||||
<admin_template>order_refund_received_admin</admin_template>
|
||||
<order_return_state id="Pending">
|
||||
<name>Pending</name>
|
||||
<customer_template>order_refund_pending_customer</customer_template>
|
||||
<admin_template>order_refund_pending_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Refund_denied">
|
||||
<name>Refund denied</name>
|
||||
|
||||
@@ -1,14 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<entity_order_return_state>
|
||||
<order_return_state id="Waiting_for_confirmation">
|
||||
<name>Waiting for confirmation</name>
|
||||
<customer_template>order_refund_waiting_customer</customer_template>
|
||||
<admin_template>order_refund_waiting_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Request_received">
|
||||
<name>Request received</name>
|
||||
<customer_template>order_refund_received_customer</customer_template>
|
||||
<admin_template>order_refund_received_admin</admin_template>
|
||||
<order_return_state id="Pending">
|
||||
<name>Pending</name>
|
||||
<customer_template>order_refund_pending_customer</customer_template>
|
||||
<admin_template>order_refund_pending_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Refund_denied">
|
||||
<name>Refund denied</name>
|
||||
|
||||
@@ -1,14 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<entity_order_return_state>
|
||||
<order_return_state id="Waiting_for_confirmation">
|
||||
<name>Waiting for confirmation</name>
|
||||
<customer_template>order_refund_waiting_customer</customer_template>
|
||||
<admin_template>order_refund_waiting_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Request_received">
|
||||
<name>Request received</name>
|
||||
<customer_template>order_refund_received_customer</customer_template>
|
||||
<admin_template>order_refund_received_admin</admin_template>
|
||||
<order_return_state id="Pending">
|
||||
<name>Pending</name>
|
||||
<customer_template>order_refund_pending_customer</customer_template>
|
||||
<admin_template>order_refund_pending_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Refund_denied">
|
||||
<name>Refund denied</name>
|
||||
|
||||
@@ -1,14 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<entity_order_return_state>
|
||||
<order_return_state id="Waiting_for_confirmation">
|
||||
<name>Waiting for confirmation</name>
|
||||
<customer_template>order_refund_waiting_customer</customer_template>
|
||||
<admin_template>order_refund_waiting_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Request_received">
|
||||
<name>Request received</name>
|
||||
<customer_template>order_refund_received_customer</customer_template>
|
||||
<admin_template>order_refund_received_admin</admin_template>
|
||||
<order_return_state id="Pending">
|
||||
<name>Pending</name>
|
||||
<customer_template>order_refund_pending_customer</customer_template>
|
||||
<admin_template>order_refund_pending_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Refund_denied">
|
||||
<name>Refund denied</name>
|
||||
|
||||
@@ -1,14 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<entity_order_return_state>
|
||||
<order_return_state id="Waiting_for_confirmation">
|
||||
<name>Waiting for confirmation</name>
|
||||
<customer_template>order_refund_waiting_customer</customer_template>
|
||||
<admin_template>order_refund_waiting_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Request_received">
|
||||
<name>Request received</name>
|
||||
<customer_template>order_refund_received_customer</customer_template>
|
||||
<admin_template>order_refund_received_admin</admin_template>
|
||||
<order_return_state id="Pending">
|
||||
<name>Pending</name>
|
||||
<customer_template>order_refund_pending_customer</customer_template>
|
||||
<admin_template>order_refund_pending_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Refund_denied">
|
||||
<name>Refund denied</name>
|
||||
|
||||
@@ -1,14 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<entity_order_return_state>
|
||||
<order_return_state id="Waiting_for_confirmation">
|
||||
<name>Waiting for confirmation</name>
|
||||
<customer_template>order_refund_waiting_customer</customer_template>
|
||||
<admin_template>order_refund_waiting_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Request_received">
|
||||
<name>Request received</name>
|
||||
<customer_template>order_refund_received_customer</customer_template>
|
||||
<admin_template>order_refund_received_admin</admin_template>
|
||||
<order_return_state id="Pending">
|
||||
<name>Pending</name>
|
||||
<customer_template>order_refund_pending_customer</customer_template>
|
||||
<admin_template>order_refund_pending_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Refund_denied">
|
||||
<name>Refund denied</name>
|
||||
|
||||
@@ -1,14 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<entity_order_return_state>
|
||||
<order_return_state id="Waiting_for_confirmation">
|
||||
<name>Waiting for confirmation</name>
|
||||
<customer_template>order_refund_waiting_customer</customer_template>
|
||||
<admin_template>order_refund_waiting_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Request_received">
|
||||
<name>Request received</name>
|
||||
<customer_template>order_refund_received_customer</customer_template>
|
||||
<admin_template>order_refund_received_admin</admin_template>
|
||||
<order_return_state id="Pending">
|
||||
<name>Pending</name>
|
||||
<customer_template>order_refund_pending_customer</customer_template>
|
||||
<admin_template>order_refund_pending_admin</admin_template>
|
||||
</order_return_state>
|
||||
<order_return_state id="Refund_denied">
|
||||
<name>Refund denied</name>
|
||||
|
||||
@@ -1,153 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
|
||||
<title>Message from {shop_name}</title>
|
||||
|
||||
|
||||
<style> @media only screen and (max-width: 300px){
|
||||
body {
|
||||
width:218px !important;
|
||||
margin:auto !important;
|
||||
}
|
||||
thead, tbody{width: 100%}
|
||||
.table {width:195px !important;margin:auto !important;}
|
||||
.logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto !important;display: block !important;}
|
||||
span.title{font-size:20px !important;line-height: 23px !important}
|
||||
span.subtitle{font-size: 14px !important;line-height: 18px !important;padding-top:10px !important;display:block !important;}
|
||||
td.box p{font-size: 12px !important;font-weight: bold !important;}
|
||||
.table-recap table, .table-recap thead, .table-recap tbody, .table-recap th, .table-recap td, .table-recap tr {
|
||||
display: block !important;
|
||||
}
|
||||
.table-recap{width: 200px!important;}
|
||||
.table-recap tr td, .conf_body td{text-align:center !important;}
|
||||
.address{display: block !important;margin-bottom: 10px !important;}
|
||||
.space_address{display: none !important;}
|
||||
}
|
||||
@media only screen and (min-width: 301px) and (max-width: 500px) {
|
||||
body {width:425px!important;margin:auto!important;}
|
||||
thead, tbody{width: 100%}
|
||||
.table {margin:auto!important;}
|
||||
.logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto!important;display: block!important;}
|
||||
.table-recap{width: 295px !important;}
|
||||
.table-recap tr td, .conf_body td{text-align:center !important;}
|
||||
.table-recap tr th{font-size: 10px !important}
|
||||
|
||||
}
|
||||
@media only screen and (min-width: 501px) and (max-width: 768px) {
|
||||
body {width:478px!important;margin:auto!important;}
|
||||
thead, tbody{width: 100%}
|
||||
.table {margin:auto!important;}
|
||||
.logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto!important;display: block!important;}
|
||||
}
|
||||
@media only screen and (max-device-width: 480px) {
|
||||
body {width:340px!important;margin:auto!important;}
|
||||
thead, tbody{width: 100%}
|
||||
.table {margin:auto!important;}
|
||||
.logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto!important;display: block!important;}
|
||||
|
||||
.table-recap{width: 295px!important;}
|
||||
.table-recap tr td, .conf_body td{text-align:center!important;}
|
||||
.address{display: block !important;margin-bottom: 10px !important;}
|
||||
.space_address{display: none !important;}
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
<body style="-webkit-text-size-adjust:none;background-color:#fff;width:650px;font-family:Open-sans, sans-serif;color:#555454;font-size:13px;line-height:18px;margin:auto">
|
||||
<table class="table table-mail" style="width:100%;margin-top:10px;-moz-box-shadow:0 0 5px #afafaf;-webkit-box-shadow:0 0 5px #afafaf;-o-box-shadow:0 0 5px #afafaf;box-shadow:0 0 5px #afafaf;filter:progid:DXImageTransform.Microsoft.Shadow(color=#afafaf,Direction=134,Strength=5)">
|
||||
<tr>
|
||||
<td class="space" style="width:20px;padding:7px 0"> </td>
|
||||
<td align="center" style="padding:7px 0">
|
||||
<table class="table" bgcolor="#ffffff" style="width:100%">
|
||||
<tr>
|
||||
<td align="center" class="logo" style="border-bottom:4px solid #333333;padding:7px 0">
|
||||
<a title="{shop_name}" href="{shop_url}" style="color:#337ff1">
|
||||
<img src="{shop_logo}" alt="{shop_name}" />
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td align="center" class="titleblock" style="padding:7px 0">
|
||||
<font size="2" face="Open-sans, sans-serif" color="#555454">
|
||||
<span class="title" style="font-weight:500;font-size:28px;text-transform:capitalize;line-height:33px">Hi {firstname} {lastname},</span><br/>
|
||||
<span class="subtitle" style="font-weight:500;font-size:16px;line-height:25px">A request has been recieved for the booking cancellation.</span>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="space_footer" style="padding:0!important"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="box" style="border:1px solid #D6D4D4;background-color:#f8f8f8;padding:7px 0">
|
||||
<table class="table" style="width:100%">
|
||||
<tr>
|
||||
<td width="10" style="padding:7px 0"> </td>
|
||||
<td style="padding:7px 0">
|
||||
<font size="2" face="Open-sans, sans-serif" color="#555454">
|
||||
<p data-html-only="1" style="border-bottom:1px solid #D6D4D4;margin:3px 0 7px;text-transform:uppercase;font-weight:500;font-size:16px;padding-bottom:10px">Order details</p>
|
||||
<span style="color:#777">
|
||||
<span style="color:#333"><strong>Order:</strong></span> {order_reference} Placed on {order_date}<br /><br />
|
||||
<span style="color:#333"><strong>Refund Status:</strong></span> <span style="border-radius: 2px;color:#FFFFFF;font-weight:600;padding:5px 10px;background-color:{status_color}">{status_name}</span><br /><br />
|
||||
</span>
|
||||
</font>
|
||||
</td>
|
||||
<td width="10" style="padding:7px 0"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding:7px 0">
|
||||
<font size="2" face="Open-sans, sans-serif" color="#555454">
|
||||
<p data-html-only="1" style="margin:10px 0 7px;text-transform:uppercase;font-weight:500;font-size:16px;padding-bottom:0px">Booking details</p>
|
||||
<table class="table table-recap" bgcolor="#ffffff" style="width:100%;border-collapse:collapse"><!-- Title -->
|
||||
<tr>
|
||||
<tr>
|
||||
<th bgcolor="#f8f8f8" style="border:1px solid #D6D4D4;background-color: #fbfbfb;color: #333;font-family: Arial;font-size: 13px;padding: 10px;">Room Num</th>
|
||||
<th bgcolor="#f8f8f8" style="border:1px solid #D6D4D4;background-color: #fbfbfb;color: #333;font-family: Arial;font-size: 13px;padding: 10px;">Room Type</th>
|
||||
<th bgcolor="#f8f8f8" style="border:1px solid #D6D4D4;background-color: #fbfbfb;color: #333;font-family: Arial;font-size: 13px;padding: 10px;" width="17%">Hotel</th>
|
||||
<th bgcolor="#f8f8f8" style="border:1px solid #D6D4D4;background-color: #fbfbfb;color: #333;font-family: Arial;font-size: 13px;padding: 10px;">Duration</th>
|
||||
</tr>
|
||||
{refundBookingHtml}
|
||||
</tbody>
|
||||
</table>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="box" style="border:1px solid #D6D4D4;background-color:#f8f8f8;padding:7px 0">
|
||||
<table class="table" style="width:100%">
|
||||
<tr>
|
||||
<td width="10" style="padding:7px 0"> </td>
|
||||
<td style="padding:7px 0">
|
||||
<font size="2" face="Open-sans, sans-serif" color="#555454">
|
||||
<p data-html-only="1" style="border-bottom:1px solid #D6D4D4;margin:3px 0 7px;text-transform:uppercase;font-weight:500;font-size:16px;padding-bottom:10px">Customer details</p>
|
||||
<span style="color:#777">
|
||||
<span style="color:#333"><strong>Customer name:</strong></span> {customer_name}<br /><br />
|
||||
<span style="color:#333"><strong>Customer email:</strong></span> {customer_email}<br /><br />
|
||||
</font>
|
||||
</td>
|
||||
<td width="10" style="padding:7px 0"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="space_footer" style="padding:0!important"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="footer" style="border-top:4px solid #333333;padding:7px 0">
|
||||
<span><a href="{shop_url}" style="color:#337ff1">{shop_name}</a> powered by <a href="https://webkul.com" style="color:#337ff1">Webkul™</a></span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="space" style="width:20px;padding:7px 0"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,25 +0,0 @@
|
||||
Message from {shop_name}
|
||||
|
||||
Hi {firstname} {lastname},
|
||||
|
||||
A request has been recieved for the booking cancellation.
|
||||
|
||||
Order details
|
||||
|
||||
Order: {order_reference} Placed on {order_date}
|
||||
Refund Status: {status_name}
|
||||
|
||||
Booking details
|
||||
Room Num
|
||||
Room Type
|
||||
Hotel
|
||||
Duration
|
||||
|
||||
{refundBookingHtml}
|
||||
|
||||
Customer details
|
||||
|
||||
Customer name: {customer_name}
|
||||
Customer email: {customer_email}
|
||||
|
||||
{shop_url} {shop_name} powered by Webkul
|
||||
@@ -1,146 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
|
||||
<title>Message from {shop_name}</title>
|
||||
|
||||
|
||||
<style> @media only screen and (max-width: 300px){
|
||||
body {
|
||||
width:218px !important;
|
||||
margin:auto !important;
|
||||
}
|
||||
thead, tbody{width: 100%}
|
||||
.table {width:195px !important;margin:auto !important;}
|
||||
.logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto !important;display: block !important;}
|
||||
span.title{font-size:20px !important;line-height: 23px !important}
|
||||
span.subtitle{font-size: 14px !important;line-height: 18px !important;padding-top:10px !important;display:block !important;}
|
||||
td.box p{font-size: 12px !important;font-weight: bold !important;}
|
||||
.table-recap table, .table-recap thead, .table-recap tbody, .table-recap th, .table-recap td, .table-recap tr {
|
||||
display: block !important;
|
||||
}
|
||||
.table-recap{width: 200px!important;}
|
||||
.table-recap tr td, .conf_body td{text-align:center !important;}
|
||||
.address{display: block !important;margin-bottom: 10px !important;}
|
||||
.space_address{display: none !important;}
|
||||
}
|
||||
@media only screen and (min-width: 301px) and (max-width: 500px) {
|
||||
body {width:425px!important;margin:auto!important;}
|
||||
thead, tbody{width: 100%}
|
||||
.table {margin:auto!important;}
|
||||
.logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto!important;display: block!important;}
|
||||
.table-recap{width: 295px !important;}
|
||||
.table-recap tr td, .conf_body td{text-align:center !important;}
|
||||
.table-recap tr th{font-size: 10px !important}
|
||||
|
||||
}
|
||||
@media only screen and (min-width: 501px) and (max-width: 768px) {
|
||||
body {width:478px!important;margin:auto!important;}
|
||||
thead, tbody{width: 100%}
|
||||
.table {margin:auto!important;}
|
||||
.logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto!important;display: block!important;}
|
||||
}
|
||||
@media only screen and (max-device-width: 480px) {
|
||||
body {width:340px!important;margin:auto!important;}
|
||||
thead, tbody{width: 100%}
|
||||
.table {margin:auto!important;}
|
||||
.logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto!important;display: block!important;}
|
||||
|
||||
.table-recap{width: 295px!important;}
|
||||
.table-recap tr td, .conf_body td{text-align:center!important;}
|
||||
.address{display: block !important;margin-bottom: 10px !important;}
|
||||
.space_address{display: none !important;}
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
<body style="-webkit-text-size-adjust:none;background-color:#fff;width:650px;font-family:Open-sans, sans-serif;color:#555454;font-size:13px;line-height:18px;margin:auto">
|
||||
<table class="table table-mail" style="width:100%;margin-top:10px;-moz-box-shadow:0 0 5px #afafaf;-webkit-box-shadow:0 0 5px #afafaf;-o-box-shadow:0 0 5px #afafaf;box-shadow:0 0 5px #afafaf;filter:progid:DXImageTransform.Microsoft.Shadow(color=#afafaf,Direction=134,Strength=5)">
|
||||
<tr>
|
||||
<td class="space" style="width:20px;padding:7px 0"> </td>
|
||||
<td align="center" style="padding:7px 0">
|
||||
<table class="table" bgcolor="#ffffff" style="width:100%">
|
||||
<tr>
|
||||
<td align="center" class="logo" style="border-bottom:4px solid #333333;padding:7px 0">
|
||||
<a title="{shop_name}" href="{shop_url}" style="color:#337ff1">
|
||||
<img src="{shop_logo}" alt="{shop_name}" />
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td align="center" class="titleblock" style="padding:7px 0">
|
||||
<font size="2" face="Open-sans, sans-serif" color="#555454">
|
||||
<span class="title" style="font-weight:500;font-size:28px;text-transform:capitalize;line-height:33px">Hi {firstname} {lastname},</span><br/>
|
||||
<span class="subtitle" style="font-weight:500;font-size:16px;line-height:25px">Your request for booking cancellation has been recieved.</span>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="space_footer" style="padding:0!important"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="box" style="border:1px solid #D6D4D4;background-color:#f8f8f8;padding:7px 0">
|
||||
<table class="table" style="width:100%">
|
||||
<tr>
|
||||
<td width="10" style="padding:7px 0"> </td>
|
||||
<td style="padding:7px 0">
|
||||
<font size="2" face="Open-sans, sans-serif" color="#555454">
|
||||
<p data-html-only="1" style="border-bottom:1px solid #D6D4D4;margin:3px 0 7px;text-transform:uppercase;font-weight:500;font-size:16px;padding-bottom:10px">Order details</p>
|
||||
<span style="color:#777">
|
||||
<span style="color:#333"><strong>Order:</strong></span> {order_reference} Placed on {order_date}<br /><br />
|
||||
<span style="color:#333"><strong>Refund Status:</strong></span> <span style="border-radius: 2px;color:#FFFFFF;font-weight:600;padding:5px 10px;background-color:{status_color}">{status_name}</span><br /><br />
|
||||
</span>
|
||||
</font>
|
||||
</td>
|
||||
<td width="10" style="padding:7px 0"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding:7px 0">
|
||||
<font size="2" face="Open-sans, sans-serif" color="#555454">
|
||||
<p data-html-only="1" style="margin:10px 0 7px;text-transform:uppercase;font-weight:500;font-size:16px;padding-bottom:0px">Booking details</p>
|
||||
<table class="table table-recap" bgcolor="#ffffff" style="width:100%;border-collapse:collapse"><!-- Title -->
|
||||
<tr>
|
||||
<tr>
|
||||
<th bgcolor="#f8f8f8" style="border:1px solid #D6D4D4;background-color: #fbfbfb;color: #333;font-family: Arial;font-size: 13px;padding: 10px;">Room Type</th>
|
||||
<th bgcolor="#f8f8f8" style="border:1px solid #D6D4D4;background-color: #fbfbfb;color: #333;font-family: Arial;font-size: 13px;padding: 10px;" width="17%">Hotel</th>
|
||||
<th bgcolor="#f8f8f8" style="border:1px solid #D6D4D4;background-color: #fbfbfb;color: #333;font-family: Arial;font-size: 13px;padding: 10px;">Num. Rooms</th>
|
||||
<th bgcolor="#f8f8f8" style="border:1px solid #D6D4D4;background-color: #fbfbfb;color: #333;font-family: Arial;font-size: 13px;padding: 10px;">Duration</th>
|
||||
</tr>
|
||||
{refundBookingHtml}
|
||||
</tbody>
|
||||
</table>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="space_footer" style="padding:0!important"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="linkbelow" style="padding:7px 0">
|
||||
<font size="2" face="Open-sans, sans-serif" color="#555454">
|
||||
<span>
|
||||
You can review your booking cancelation requests from the <a href="{refund_reqests_url}" style="color:#337ff1">"Booking Refund Requests"</a> section of your customer account by clicking <a href="{my_account_url}" style="color:#337ff1">"My account"</a>.</span>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="space_footer" style="padding:0!important"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="footer" style="border-top:4px solid #333333;padding:7px 0">
|
||||
<span><a href="{shop_url}" style="color:#337ff1">{shop_name}</a> powered by <a href="https://webkul.com" style="color:#337ff1">Webkul™</a></span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="space" style="width:20px;padding:7px 0"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,21 +0,0 @@
|
||||
Message from {shop_name}
|
||||
|
||||
Hi {firstname} {lastname},
|
||||
Your request for booking cancellation has been recieved.
|
||||
|
||||
Order details
|
||||
|
||||
Order: {order_reference} Placed on {order_date}
|
||||
Refund Status: {status_name}
|
||||
|
||||
Booking details
|
||||
|
||||
Room Type
|
||||
Hotel
|
||||
Num. Rooms
|
||||
Duration
|
||||
|
||||
{refundBookingHtml}
|
||||
You can review your booking cancelation requests from the {refund_reqests_url} Booking Refund Requests section of your customer account by clicking {my_account_url} My account
|
||||
|
||||
{shop_url} {shop_name} powered by Webkul
|
||||
@@ -25,9 +25,11 @@ class AdminOrderRefundRequestsController extends ModuleAdminController
|
||||
$this->bootstrap = true;
|
||||
$this->table = 'order_return';
|
||||
$this->className = 'OrderReturn';
|
||||
$this->list_no_link = true;
|
||||
$this->context = Context::getContext();
|
||||
|
||||
$this->_select = ' COUNT(a.`id_order_return`) as total_refund_requests, ord.`id_currency`, ord.`total_paid_tax_incl` AS total_order, CONCAT(firstname, " ", lastname) AS cust_name, osl.`name` as order_status_name, os.`color`, os.`id_order_state`';
|
||||
$this->_select = ' COUNT(CASE WHEN a.`state` = '.(int) OrderReturnState::ORDER_RETRUN_FIRST_STATUS.' THEN 1 else NULL END) as total_pending_requests,
|
||||
ord.`id_currency`, ord.`total_paid_tax_incl` AS total_order, CONCAT(firstname, " ", lastname) AS cust_name, os.`color`, os.`id_order_state`';
|
||||
$this->_join .= ' LEFT JOIN `'._DB_PREFIX_.'orders` ord ON (a.`id_order` = ord.`id_order`)';
|
||||
$this->_join .= 'LEFT JOIN '._DB_PREFIX_.'order_state os ON (os.`id_order_state` = ord.`current_state`)';
|
||||
$this->_join .= 'LEFT JOIN '._DB_PREFIX_.'order_state_lang osl ON (osl.`id_order_state` = os.`id_order_state` AND osl.`id_lang` = '.(int)$this->context->language->id.')';
|
||||
@@ -62,16 +64,8 @@ class AdminOrderRefundRequestsController extends ModuleAdminController
|
||||
'callback' => 'setOrderCurrency',
|
||||
'havingFilter' => true,
|
||||
),
|
||||
'order_status_name' => array(
|
||||
'title' => $this->l('Order Status'),
|
||||
'type' => 'select',
|
||||
'color' => 'color',
|
||||
'list' => $ordStatuses,
|
||||
'filter_key' => 'os!id_order_state',
|
||||
'havingFilter' => true,
|
||||
),
|
||||
'total_refund_requests' => array(
|
||||
'title' => $this->l('Total Requests'),
|
||||
'total_pending_requests' => array(
|
||||
'title' => $this->l('Total Pending'),
|
||||
'align' => 'center',
|
||||
'havingFilter' => true,
|
||||
),
|
||||
@@ -288,7 +282,7 @@ class AdminOrderRefundRequestsController extends ModuleAdminController
|
||||
if (Tools::isSubmit('refundTransactionAmount')) {
|
||||
$paymentMode = Tools::getValue('payment_method');
|
||||
if (!$paymentMode) {
|
||||
$paymentMode = Tools::getValue('payment_mode');
|
||||
$paymentMode = Tools::getValue('other_payment_mode');
|
||||
if (!$paymentMode) {
|
||||
$this->errors[] = $this->l('Please enter the payment mode of the refund transaction.');
|
||||
} elseif (!Validate::isGenericName($paymentMode)) {
|
||||
@@ -427,21 +421,21 @@ class AdminOrderRefundRequestsController extends ModuleAdminController
|
||||
} else {
|
||||
Hook::exec('actionOrderSlipAdd', array('order' => $objOrder, 'bookingList' => $bookingList));
|
||||
|
||||
@Mail::Send(
|
||||
(int)$objOrder->id_lang,
|
||||
'credit_slip',
|
||||
Mail::l('New credit slip regarding your order', (int)$objOrder->id_lang),
|
||||
$params,
|
||||
$customer->email,
|
||||
$customer->firstname.' '.$customer->lastname,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
_PS_MAIL_DIR_,
|
||||
true,
|
||||
(int)$objOrder->id_shop
|
||||
);
|
||||
@Mail::Send(
|
||||
(int)$objOrder->id_lang,
|
||||
'credit_slip',
|
||||
Mail::l('New credit slip regarding your order', (int)$objOrder->id_lang),
|
||||
$params,
|
||||
$customer->email,
|
||||
$customer->firstname.' '.$customer->lastname,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
_PS_MAIL_DIR_,
|
||||
true,
|
||||
(int)$objOrder->id_shop
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -487,6 +481,7 @@ class AdminOrderRefundRequestsController extends ModuleAdminController
|
||||
$currency = $this->context->currency;
|
||||
$params['{voucher_amount}'] = Tools::displayPrice($cartrule->reduction_amount, $currency, false);
|
||||
$params['{voucher_num}'] = $cartrule->code;
|
||||
|
||||
@Mail::Send(
|
||||
(int)$objOrder->id_lang,
|
||||
'voucher',
|
||||
|
||||
Reference in New Issue
Block a user