install.xml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <modification>
  3. <name>Abandoned Carts</name>
  4. <code>abandoned_carts_ocv127</code>
  5. <description>Reach out to prospects with bailed carts; gain valuable insight to usability and recover lost sales.</description>
  6. <version>1.2.7</version>
  7. <author>Angela</author>
  8. <link>https://github.com/angela-d</link>
  9. <file path="admin/controller/common/header.php">
  10. <operation error="skip" info="Language call for the abandoned carts menu link.">
  11. <search ><![CDATA[
  12. $data['text_order'] = $this->language->get('text_order');
  13. ]]></search>
  14. <add position="after"><![CDATA[
  15. $data['text_bailed_carts'] = $this->language->get('text_bailed_carts');
  16. ]]></add>
  17. </operation>
  18. <operation error="skip" info="Model inclusion for abandoned carts.">
  19. <search ><![CDATA[
  20. $this->load->model('sale/order');
  21. ]]></search>
  22. <add position="after"><![CDATA[
  23. $this->load->model('extension/module/abandoned_carts');
  24. // Bailed Carts
  25. $bailed_carts_total = ($this->config->get('abandoned_carts_status') == '1') ? $this->model_extension_module_abandoned_carts->getTotalOrders() : '0';
  26. $data['bailed_carts_total'] = $bailed_carts_total;
  27. $data['bailed_carts'] = $this->url->link('report/abandoned_carts', 'token=' . $this->session->data['token'], true);
  28. ]]></add>
  29. </operation>
  30. <operation error="skip" info="Alert total, with any bailed carts summed.">
  31. <search ><![CDATA[
  32. $data['alerts'] = $customer_total + $product_total + $review_total + $return_total + $affiliate_total;
  33. ]]></search>
  34. <add position="after"><![CDATA[
  35. $data['alerts'] = $customer_total + $product_total + $bailed_carts_total + $review_total + $return_total + $affiliate_total;
  36. ]]></add>
  37. </operation>
  38. </file>
  39. <file path="admin/language/en-gb/common/header.php">
  40. <operation error="skip" info="English language definition for bailed carts menu entry.">
  41. <search ><![CDATA[
  42. $_['text_order'] = 'Orders';
  43. ]]></search>
  44. <add position="after"><![CDATA[
  45. $_['text_bailed_carts'] = 'Bailed Carts';
  46. ]]></add>
  47. </operation>
  48. </file>
  49. <file path="admin/language/ar/common/header.php">
  50. <operation error="skip" info="Arabic language definition for bailed carts menu entry.">
  51. <search ><![CDATA[
  52. $_['text_order'] = 'الطلبات';
  53. ]]></search>
  54. <add position="after"><![CDATA[
  55. $_['text_bailed_carts'] = 'السلات المهجورة';
  56. ]]></add>
  57. </operation>
  58. </file>
  59. <file path="admin/language/pt-br/common/header.php">
  60. <operation error="skip" info="Brazilian Portugese language definition for bailed carts menu entry.">
  61. <search ><![CDATA[
  62. $_['text_order'] = 'Encomendas';
  63. ]]></search>
  64. <add position="after"><![CDATA[
  65. $_['text_bailed_carts'] = 'Carrinhos abandonados;
  66. ]]></add>
  67. </operation>
  68. </file>
  69. <file path="admin/language/pt-pt/common/header.php">
  70. <operation error="skip" info="Portugese language definition for bailed carts menu entry.">
  71. <search ><![CDATA[
  72. $_['text_order'] = 'Encomendas';
  73. ]]></search>
  74. <add position="after"><![CDATA[
  75. $_['text_bailed_carts'] = 'Carrinhos abandonados;
  76. ]]></add>
  77. </operation>
  78. </file>
  79. <file path="admin/view/template/common/header.tpl">
  80. <operation error="skip" info="Adds a link in header alerts to bailed carts breakdown.">
  81. <search ><![CDATA[
  82. <li class="dropdown-header"><?php echo $text_order; ?></li>
  83. ]]></search>
  84. <add position="after"><![CDATA[
  85. <?php if (isset($bailed_carts_total) && $bailed_carts_total >0) { ?>
  86. <li class="divider"></li>
  87. <li><a href="<?php echo $bailed_carts; ?>" style="display: block; overflow: auto;"><span class="label label-danger pull-right"><?php echo $bailed_carts_total; ?></span><?php echo $text_bailed_carts; ?></a></li>
  88. <?php } ?>
  89. ]]></add>
  90. </operation>
  91. </file>
  92. </modification>