Order_tickets - Version 1.3.4

Version Notes

Spanish translation added

Download this release

Release Info

Developer Laurent Clouet
Extension Order_tickets
Version 1.3.4
Comparing to
See all releases


Code changes from version 1.3.3 to 1.3.4

app/code/community/Laurent/OrderTickets/Block/Adminhtml/Chat/View/Tab/Tickets.php CHANGED
@@ -17,7 +17,7 @@ extends Mage_Adminhtml_Block_Template
17
  implements Mage_Adminhtml_Block_Widget_Tab_Interface {
18
 
19
  /**
20
- * Give collection of tickets for currenty seen chat
21
  * @return Mage_Adminhtml_Block_Widget
22
  */
23
  public function getTickets(){
17
  implements Mage_Adminhtml_Block_Widget_Tab_Interface {
18
 
19
  /**
20
+ * Give collection of tickets for currently seen chat
21
  * @return Mage_Adminhtml_Block_Widget
22
  */
23
  public function getTickets(){
app/code/community/Laurent/OrderTickets/Model/Mysql4/Chat/Collection.php CHANGED
@@ -33,4 +33,12 @@ class Laurent_OrderTickets_Model_Mysql4_Chat_Collection extends Mage_Core_Model_
33
  );
34
  return $this;
35
  }
 
 
 
 
 
 
 
 
36
  }
33
  );
34
  return $this;
35
  }
36
+
37
+ public function joinLastTicket()
38
+ {
39
+ $this->_select->joinLeft(
40
+ array('last_ticket_table' => $this->getTable('ordertickets/ticket')),
41
+ 'main_table.id = last_ticket_table.chat_id'
42
+ );
43
+ }
44
  }
app/locale/en_US/Laurent_OrderTickets.csv ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "* Required Fields","* Required Fields"
2
+ "Add a message","Add a message"
3
+ "Add an answer","Add an answer"
4
+ "Allow reply to closed ticket","Allow reply to closed ticket"
5
+ "Answer from %s send the","Answer from %s send the"
6
+ "Answer","Answer"
7
+ "Answer successfully added","Answer successfully added"
8
+ "Are you sure you want to delete this ticket?","Are you sure you want to delete this ticket?"
9
+ "Back to My Orders","Back to My Orders"
10
+ "Chat has been successfully deleted","Chat has been successfully deleted"
11
+ "Chat Information","Chat Information"
12
+ "Chat was successfully saved","Chat was successfully saved"
13
+ "Closed","Closed"
14
+ "Create","Create"
15
+ "Create new order tickets","Create new order tickets"
16
+ "Create new order tickets for order #%s","Create new order tickets for order #%s"
17
+ "Create ticket","Create ticket"
18
+ "Created at","Created at"
19
+ "Cron frequency","Cron frequency"
20
+ "Cron recipients","Cron recipients"
21
+ "Customer email","Customer email"
22
+ "Customer firstname","Customer firstname"
23
+ "Customer lastname","Customer lastname"
24
+ "Customer request","Customer request"
25
+ "Delete","Delete"
26
+ "Details","Details"
27
+ "Error while creating new order tickets: %s","Error while creating new order tickets: %s"
28
+ "Error while deleting chat: %s","Error while deleting chat: %s"
29
+ "Error while deleting ticket: %s","Error while deleting ticket: %s"
30
+ "Error while saving your message. Please try again","Error while saving your message. Please try again"
31
+ "Firstname","Firstname"
32
+ "General Information","General Information"
33
+ "Last answer date","Last answer date"
34
+ "Last tickets send by customers","Last tickets send by customers"
35
+ "Lastname","Lastname"
36
+ "Message","Message"
37
+ "Message date","Message date"
38
+ "Message from %s","Message from %s"
39
+ "Messages","Messages"
40
+ "No order selected for creating new order tickets.","No order selected for creating new order tickets."
41
+ "Open","Open"
42
+ "Order","Order"
43
+ "Order #%s - Messages","Order #%s - Messages"
44
+ "Order not found.","Order not found."
45
+ "Order tickets","Order tickets"
46
+ "Orders tickets","Orders tickets"
47
+ "Order tickets details","Order tickets details"
48
+ "Pending answer","Pending answer"
49
+ "Please select an order","Please select an order"
50
+ "Send","Send"
51
+ "Send the","Send the"
52
+ "Separate recipients with comma","Separate recipients with comma"
53
+ "Status","Status"
54
+ "Store answer","Store answer"
55
+ "There is no data to save.","There is no data to save."
56
+ "There is no ticket associated to this order","There is no ticket associated to this order"
57
+ "This chat does not exist","This chat does not exist"
58
+ "Tickets","Tickets"
59
+ "Tickets already exist for this order. Please add new here.","Tickets already exist for this order. Please add new here."
60
+ "Tickets for order %s","Tickets for order %s"
61
+ "Ticket has been successfully deleted","Ticket has been successfully deleted"
62
+ "Ticket type","Ticket type"
63
+ "Ticket has been correctly saved.","Ticket has been correctly saved."
64
+ "Your message send the","Your message send the"
65
+ "Your message was successfully recorded","Your message was successfully recorded"
app/locale/es_ES/Laurent_OrderTickets.csv ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "* Required Fields","* Campos obligatorios"
2
+ "Add a message","Añadir un mensaje"
3
+ "Add an answer","Añadir una respuesta"
4
+ "Allow reply to closed ticket","Permitir responder a una solicitud cerrada"
5
+ "Answer from %s send the","Respuesta desde %s enviada el "
6
+ "Answer","Respuesta"
7
+ "Answer successfully added","La respuesta ha sido añadida correctamente"
8
+ "Are you sure you want to delete this ticket?","¿Está seguro de que desea eliminar esta solicitud?"
9
+ "Back to My Orders","Volver a Mis Pedidos"
10
+ "Chat has been successfully deleted","El chat se ha eliminado correctamente"
11
+ "Chat Information","Información de chat"
12
+ "Chat was successfully saved","El chat se ha guardado correctamente"
13
+ "Closed","Cerrada"
14
+ "Create","Crear"
15
+ "Create new order tickets","Crear nuevas solicitudes"
16
+ "Create new order tickets for order #%s","Crear nuevas solicitudes para el pedido #%s"
17
+ "Create ticket","Enviar una solicitud"
18
+ "Created at","Creada el"
19
+ "Cron frequency","Frecuencia del Cron"
20
+ "Cron recipients","Destinatarios del Cron"
21
+ "Customer email","Email del cliente"
22
+ "Customer firstname","Nombre del cliente"
23
+ "Customer lastname","Apellidos del cliente"
24
+ "Customer request","Petición del cliente"
25
+ "Delete","Eliminar"
26
+ "Details","Detalles"
27
+ "Error while creating new order tickets: %s","Error al crear la nueva solicitud: %s"
28
+ "Error while deleting chat: %s","Error al eliminar el chat: %s"
29
+ "Error while deleting ticket: %s","Error al eliminar la solicitud: %s"
30
+ "Error while saving your message. Please try again","Error al guardar su mensaje. Inténtelo de nuevo, por favor."
31
+ "Firstname","Nombre"
32
+ "General Information","Información general"
33
+ "Last answer date","Fecha de la última respuesta"
34
+ "Last tickets send by customers","Últimas solicitudes enviadas por los clientes"
35
+ "Lastname","Apellidos"
36
+ "Message","Mensaje"
37
+ "Message date","Fecha del mensaje"
38
+ "Message from %s","Mensaje de %s"
39
+ "Messages","Mis solicitudes"
40
+ "No order selected for creating new order tickets.","No se seleccionado ningún pedido para crear nuevas solicitudes."
41
+ "Open","Abierta"
42
+ "Order","Pedido"
43
+ "Order #%s - Messages","Pedido #%s - Mensajes"
44
+ "Order not found.","Pedido no encontrado."
45
+ "Order tickets","Solicitudes"
46
+ "Orders tickets","Solicitudes de los pedidos"
47
+ "Order tickets details","Detalles de las solicitudes de los pedidos"
48
+ "Pending answer","Pendiente de responder"
49
+ "Please select an order","Seleccione un pedido, por favor"
50
+ "Send","Enviar"
51
+ "Send the","Enviado el"
52
+ "Separate recipients with comma","Separar destinatarios con coma"
53
+ "Status","Estado"
54
+ "Store answer","Respuesta desde la tienda"
55
+ "There is no data to save.","No hay información que guardar."
56
+ "There is no ticket associated to this order","No existe ninguna solicitud asociada a este pedido"
57
+ "This chat does not exist","Este chat no existe"
58
+ "Tickets","Solicitudes"
59
+ "Tickets already exist for this order. Please add new here.","Ya existen solicitudes para este pedido. Añada una aquí, por favor."
60
+ "Tickets for order %s","Solicitudes para el pedido %s"
61
+ "Ticket has been successfully deleted","La solicitud ha sido eliminada correctamente"
62
+ "Ticket type","Tipo de solicitud"
63
+ "Ticket has been correctly saved.","La solicitud se ha guardado correctamente."
64
+ "Your message send the","Su mensaje enviado el"
65
+ "Your message was successfully recorded","Su mensaje ha sido guardado correctamente"
app/locale/fr_FR/Laurent_OrderTickets.csv CHANGED
@@ -55,6 +55,7 @@
55
  "There is no data to save.","Il n'y a aucune donnée à sauvegarder."
56
  "There is no ticket associated to this order","Il n'y a pas de ticket associé à cette commande"
57
  "This chat does not exist","Cette discussion n'existe pas"
 
58
  "Tickets already exist for this order. Please add new here.","Il existe déjà des tickets pour cette commande. Ajoutez les nouveaux ici."
59
  "Tickets for order %s","Tickets de la commande %s"
60
  "Ticket has been successfully deleted","Le ticket a bien été supprimé"
55
  "There is no data to save.","Il n'y a aucune donnée à sauvegarder."
56
  "There is no ticket associated to this order","Il n'y a pas de ticket associé à cette commande"
57
  "This chat does not exist","Cette discussion n'existe pas"
58
+ "Tickets","Tickets"
59
  "Tickets already exist for this order. Please add new here.","Il existe déjà des tickets pour cette commande. Ajoutez les nouveaux ici."
60
  "Tickets for order %s","Tickets de la commande %s"
61
  "Ticket has been successfully deleted","Le ticket a bien été supprimé"
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Order_tickets</name>
4
- <version>1.3.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/afl-3.0.php">Academic Free License (AFL 3.0)</license>
7
  <channel>community</channel>
@@ -11,11 +11,11 @@
11
  - customer can add message to orders&#xD;
12
  - administrator can see these messages, reply to them, change status of a chat and create new messages&#xD;
13
  - a cron also exists to send a reminder email to administrator about new messages</description>
14
- <notes>Support of Magento 1.8</notes>
15
  <authors><author><name>Laurent Clouet</name><user>laurent35240</user><email>laurent35240@gmail.com</email></author></authors>
16
- <date>2013-11-21</date>
17
- <time>21:01:31</time>
18
- <contents><target name="magecommunity"><dir name="Laurent"><dir name="OrderTickets"><dir name="Block"><dir name="Adminhtml"><dir name="Chat"><dir name="Create"><file name="Form.php" hash="521cca1147cbcecdf66d6e25e42e93d4"/><dir name="Order"><file name="Grid.php" hash="c7f1c769d398155bd346edb8fe76d6bf"/></dir><file name="Order.php" hash="4b5cbda78abda88f5858b1b389ef5b75"/><dir name="Steptwo"><file name="Form.php" hash="00359248809a4f067f8c488fda650712"/></dir><file name="Steptwo.php" hash="3a439f520e3469d0499ddf4443df674f"/></dir><file name="Create.php" hash="12830fc66389cc498f31a08e75dcac6f"/><file name="Grid.php" hash="991c017b9bc30ea7d21abc37d5357d1f"/><dir name="View"><file name="Form.php" hash="39fdb499109549c3f343c558016bbeba"/><dir name="Tab"><file name="Main.php" hash="03c4041d1cf51152b81960301c1a7a09"/><file name="Tickets.php" hash="1113741720801f3101ba7eea34be9e0f"/></dir><file name="Tabs.php" hash="f8013ba3783ab56b81ddf85a9322f6eb"/></dir><file name="View.php" hash="878e4932d98a2c46c7a63ac01c3f9e28"/></dir><file name="Chat.php" hash="1c2c452367328e34b5e887473e06a220"/><dir name="Customer"><dir name="Edit"><dir name="Tab"><file name="Tickets.php" hash="ed5185f29d37f483f7db8538773fe6a7"/></dir></dir></dir><dir name="Order"><dir name="View"><dir name="Tab"><file name="Tickets.php" hash="78cc90b8582578c6370fb1ae18aaa161"/></dir></dir></dir></dir><file name="Chat.php" hash="4b0247f7c114a894adba736e08cdda7c"/></dir><dir name="Controller"><dir name="Adminhtml"><file name="Chat.php" hash="43b419b5c2b5e6900051e6358153175d"/></dir></dir><dir name="Helper"><file name="Data.php" hash="93cacb500a03173347d3136403be13b1"/></dir><dir name="Model"><file name="Abstract.php" hash="1c3cebb3cdfbba03c4b21198e2412bd5"/><file name="Chat.php" hash="cd58f84170572a07c4b2157b955a6e81"/><dir name="Config"><file name="Cron.php" hash="71180552ddcaa52e340668255ed871a0"/></dir><dir name="Mysql4"><dir name="Chat"><file name="Collection.php" hash="3765532820c8272190ad6bd65a42594d"/></dir><file name="Chat.php" hash="105edfaafa9109c87dfb509b641decdc"/><dir name="Ticket"><file name="Collection.php" hash="c04b0fe47e291380a57dce1939425b95"/></dir><file name="Ticket.php" hash="f9f4e7f6e9da8c110d5042760fe1183e"/></dir><file name="Observer.php" hash="cfeecf8f314f9cb9a468bbd86759edb2"/><file name="Ticket.php" hash="c485a7286119964da46238552932a3da"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="ChatController.php" hash="22110c7385e72f371bf36b7f1dfe4eab"/><file name="CreateController.php" hash="cbe6071edf569cbfd78036063e0c08f4"/></dir><file name="ChatController.php" hash="276a4b7488baed2fcbb8a10f6e066c4e"/></dir><dir name="etc"><file name="adminhtml.xml" hash="f4a61001efef301ff263010aad0ecb9d"/><file name="config.xml" hash="0a32187e57a1239e9ee1247bcd924863"/><file name="system.xml" hash="33934d7e9443b340daa1b58b36294dc8"/></dir><dir name="sql"><dir name="ordertickets_setup"><file name="mysql4-install-0.1.0.php" hash="eaf0ed1190d400612f7eda66b51a28df"/><file name="mysql4-upgrade-0.1.0-0.1.1.php" hash="a59e90142a8ba64c370f59699878a7e1"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="ordertickets.xml" hash="066b893e6f6d4043f0d7ef0093d7d840"/></dir><dir name="template"><dir name="ordertickets"><dir name="chat"><dir name="create"><file name="abstract.phtml" hash="19cbea5ac678b9197b08c6d9e8f55880"/><file name="form.phtml" hash="5a45de144e3f0b6b52a2e2ee19450413"/></dir><dir name="view"><dir name="tab"><file name="tickets.phtml" hash="baa5371991469d993477bae28cfacf2f"/></dir></dir></dir><dir name="order"><dir name="view"><dir name="tab"><file name="tickets.phtml" hash="dee13d8912c7819fb96cd1695baee9b1"/></dir></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="ordertickets.xml" hash="82ce89e2dcbea7d1d1373e137e44568f"/></dir><dir name="template"><dir name="ordertickets"><file name="chat.phtml" hash="e4c288559d263e369c54e5dfb870ac31"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Laurent_OrderTickets.xml" hash="46fdc0a685ad8d9144f4db4cb99f97fe"/></dir></target><target name="magelocale"><dir name="fr_FR"><file name="Laurent_OrderTickets.csv" hash="6a8cafdb0a9b7136cfbc7b30fe2edb2b"/></dir></target></contents>
19
  <compatible/>
20
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
21
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Order_tickets</name>
4
+ <version>1.3.4</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/afl-3.0.php">Academic Free License (AFL 3.0)</license>
7
  <channel>community</channel>
11
  - customer can add message to orders&#xD;
12
  - administrator can see these messages, reply to them, change status of a chat and create new messages&#xD;
13
  - a cron also exists to send a reminder email to administrator about new messages</description>
14
+ <notes>Spanish translation added</notes>
15
  <authors><author><name>Laurent Clouet</name><user>laurent35240</user><email>laurent35240@gmail.com</email></author></authors>
16
+ <date>2013-12-07</date>
17
+ <time>18:06:22</time>
18
+ <contents><target name="magecommunity"><dir name="Laurent"><dir name="OrderTickets"><dir name="Block"><dir name="Adminhtml"><dir name="Chat"><dir name="Create"><file name="Form.php" hash="521cca1147cbcecdf66d6e25e42e93d4"/><dir name="Order"><file name="Grid.php" hash="c7f1c769d398155bd346edb8fe76d6bf"/></dir><file name="Order.php" hash="4b5cbda78abda88f5858b1b389ef5b75"/><dir name="Steptwo"><file name="Form.php" hash="00359248809a4f067f8c488fda650712"/></dir><file name="Steptwo.php" hash="3a439f520e3469d0499ddf4443df674f"/></dir><file name="Create.php" hash="12830fc66389cc498f31a08e75dcac6f"/><file name="Grid.php" hash="991c017b9bc30ea7d21abc37d5357d1f"/><dir name="View"><file name="Form.php" hash="39fdb499109549c3f343c558016bbeba"/><dir name="Tab"><file name="Main.php" hash="03c4041d1cf51152b81960301c1a7a09"/><file name="Tickets.php" hash="191360487993c494e1cc354be65da145"/></dir><file name="Tabs.php" hash="f8013ba3783ab56b81ddf85a9322f6eb"/></dir><file name="View.php" hash="878e4932d98a2c46c7a63ac01c3f9e28"/></dir><file name="Chat.php" hash="1c2c452367328e34b5e887473e06a220"/><dir name="Customer"><dir name="Edit"><dir name="Tab"><file name="Tickets.php" hash="ed5185f29d37f483f7db8538773fe6a7"/></dir></dir></dir><dir name="Order"><dir name="View"><dir name="Tab"><file name="Tickets.php" hash="78cc90b8582578c6370fb1ae18aaa161"/></dir></dir></dir></dir><file name="Chat.php" hash="4b0247f7c114a894adba736e08cdda7c"/></dir><dir name="Controller"><dir name="Adminhtml"><file name="Chat.php" hash="43b419b5c2b5e6900051e6358153175d"/></dir></dir><dir name="Helper"><file name="Data.php" hash="93cacb500a03173347d3136403be13b1"/></dir><dir name="Model"><file name="Abstract.php" hash="1c3cebb3cdfbba03c4b21198e2412bd5"/><file name="Chat.php" hash="cd58f84170572a07c4b2157b955a6e81"/><dir name="Config"><file name="Cron.php" hash="71180552ddcaa52e340668255ed871a0"/></dir><dir name="Mysql4"><dir name="Chat"><file name="Collection.php" hash="5b9d355156c8b612dcbee28d46d29f5b"/></dir><file name="Chat.php" hash="105edfaafa9109c87dfb509b641decdc"/><dir name="Ticket"><file name="Collection.php" hash="c04b0fe47e291380a57dce1939425b95"/></dir><file name="Ticket.php" hash="f9f4e7f6e9da8c110d5042760fe1183e"/></dir><file name="Observer.php" hash="cfeecf8f314f9cb9a468bbd86759edb2"/><file name="Ticket.php" hash="c485a7286119964da46238552932a3da"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="ChatController.php" hash="22110c7385e72f371bf36b7f1dfe4eab"/><file name="CreateController.php" hash="cbe6071edf569cbfd78036063e0c08f4"/></dir><file name="ChatController.php" hash="276a4b7488baed2fcbb8a10f6e066c4e"/></dir><dir name="etc"><file name="adminhtml.xml" hash="f4a61001efef301ff263010aad0ecb9d"/><file name="config.xml" hash="0a32187e57a1239e9ee1247bcd924863"/><file name="system.xml" hash="33934d7e9443b340daa1b58b36294dc8"/></dir><dir name="sql"><dir name="ordertickets_setup"><file name="mysql4-install-0.1.0.php" hash="eaf0ed1190d400612f7eda66b51a28df"/><file name="mysql4-upgrade-0.1.0-0.1.1.php" hash="a59e90142a8ba64c370f59699878a7e1"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="ordertickets.xml" hash="066b893e6f6d4043f0d7ef0093d7d840"/></dir><dir name="template"><dir name="ordertickets"><dir name="chat"><dir name="create"><file name="abstract.phtml" hash="19cbea5ac678b9197b08c6d9e8f55880"/><file name="form.phtml" hash="5a45de144e3f0b6b52a2e2ee19450413"/></dir><dir name="view"><dir name="tab"><file name="tickets.phtml" hash="baa5371991469d993477bae28cfacf2f"/></dir></dir></dir><dir name="order"><dir name="view"><dir name="tab"><file name="tickets.phtml" hash="dee13d8912c7819fb96cd1695baee9b1"/></dir></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="ordertickets.xml" hash="82ce89e2dcbea7d1d1373e137e44568f"/></dir><dir name="template"><dir name="ordertickets"><file name="chat.phtml" hash="e4c288559d263e369c54e5dfb870ac31"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Laurent_OrderTickets.xml" hash="46fdc0a685ad8d9144f4db4cb99f97fe"/></dir></target><target name="magelocale"><dir name="fr_FR"><file name="Laurent_OrderTickets.csv" hash="603ab4f6deaf7d681ebc89ea894766b2"/></dir><dir name="en_US"><file name="Laurent_OrderTickets.csv" hash="71c830ccc43f320fe5af4ef1184e5d35"/></dir><dir name="es_ES"><file name="Laurent_OrderTickets.csv" hash="233ba82e315b4c10ddb2b725d5663938"/></dir></target></contents>
19
  <compatible/>
20
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
21
  </package>