Squeezol_Payment - Version 1.1.1

Version Notes

Frontend update

Download this release

Release Info

Developer Davide Costa
Extension Squeezol_Payment
Version 1.1.1
Comparing to
See all releases


Code changes from version 1.1 to 1.1.1

Files changed (90) hide show
  1. magento-connect/README.md +0 -63
  2. magento-connect/app/design/frontend/base/default/template/squeezol_payment/logo.phtml +0 -167
  3. magento-connect/skin/frontend/base/default/images/squeezol_payment/logo_squeezol_blu_nowrite.png +0 -0
  4. package.xml +1 -1
  5. {magento-connect → squeezol-plugin}/app/code/local/Squeezol/Payment/Block/Logo.php +0 -0
  6. {magento-connect → squeezol-plugin}/app/code/local/Squeezol/Payment/Block/Start.php +0 -0
  7. {magento-connect → squeezol-plugin}/app/code/local/Squeezol/Payment/Helper/Data.php +0 -0
  8. {magento-connect → squeezol-plugin}/app/code/local/Squeezol/Payment/Model/Mysql4/Params.php +0 -0
  9. {magento-connect → squeezol-plugin}/app/code/local/Squeezol/Payment/Model/Mysql4/Params/Collection.php +0 -0
  10. {magento-connect → squeezol-plugin}/app/code/local/Squeezol/Payment/Model/Params.php +0 -0
  11. {magento-connect → squeezol-plugin}/app/code/local/Squeezol/Payment/Model/Paramsandbox.php +0 -0
  12. {magento-connect → squeezol-plugin}/app/code/local/Squeezol/Payment/Model/PaymentMethod.php +0 -0
  13. {magento-connect → squeezol-plugin}/app/code/local/Squeezol/Payment/Model/Resource/Setup.php +0 -0
  14. {magento-connect → squeezol-plugin}/app/code/local/Squeezol/Payment/Model/Session.php +0 -0
  15. {magento-connect → squeezol-plugin}/app/code/local/Squeezol/Payment/controllers/IndexController.php +12 -3
  16. {magento-connect → squeezol-plugin}/app/code/local/Squeezol/Payment/controllers/OrderProcessingController.php +0 -0
  17. {magento-connect → squeezol-plugin}/app/code/local/Squeezol/Payment/data/squeezol_payment_setup/data-install-0.1.0.php +0 -0
  18. {magento-connect → squeezol-plugin}/app/code/local/Squeezol/Payment/etc/config.xml +0 -0
  19. {magento-connect → squeezol-plugin}/app/code/local/Squeezol/Payment/etc/system.xml +2 -2
  20. {magento-connect → squeezol-plugin}/app/code/local/Squeezol/Payment/sql/squeezol_payment_setup/install-0.1.0.php +0 -0
  21. {magento-connect → squeezol-plugin}/app/code/local/Squeezol/Payment/sql/squeezol_payment_setup/upgrade-0.1.0-0.2.0.php +0 -0
  22. {magento-connect → squeezol-plugin}/app/code/local/Squeezol/Payment/sql/squeezol_payment_setup/upgrade-0.2.0-1.0.0.php +0 -0
  23. {magento-connect → squeezol-plugin}/app/design/frontend/base/default/layout/squeezol_payment.xml +0 -0
  24. {magento-connect → squeezol-plugin}/app/design/frontend/base/default/template/squeezol_payment/create.phtml +0 -0
  25. {magento-connect → squeezol-plugin}/app/design/frontend/base/default/template/squeezol_payment/digest.phtml +0 -0
  26. {magento-connect → squeezol-plugin}/app/design/frontend/base/default/template/squeezol_payment/invitation.phtml +0 -0
  27. squeezol-plugin/app/design/frontend/base/default/template/squeezol_payment/logo.phtml +188 -0
  28. {magento-connect → squeezol-plugin}/app/design/frontend/base/default/template/squeezol_payment/review.phtml +0 -0
  29. {magento-connect → squeezol-plugin}/app/design/frontend/base/default/template/squeezol_payment/start.phtml +0 -0
  30. {magento-connect → squeezol-plugin}/app/etc/modules/Squeezol_Payment.xml +0 -0
  31. {magento-connect → squeezol-plugin}/lib/Squeezol/endpoints.php +0 -0
  32. {magento-connect → squeezol-plugin}/lib/oauth2/Client.php +0 -0
  33. {magento-connect → squeezol-plugin}/lib/oauth2/GrantType/AuthorizationCode.php +0 -0
  34. {magento-connect → squeezol-plugin}/lib/oauth2/GrantType/ClientCredentials.php +0 -0
  35. {magento-connect → squeezol-plugin}/lib/oauth2/GrantType/IGrantType.php +0 -0
  36. {magento-connect → squeezol-plugin}/lib/oauth2/GrantType/Password.php +0 -0
  37. {magento-connect → squeezol-plugin}/lib/oauth2/GrantType/RefreshToken.php +0 -0
  38. {magento-connect → squeezol-plugin}/lib/oauth2/README +0 -0
  39. {magento-connect → squeezol-plugin}/lib/oauth2/auth_request.php +0 -0
  40. {magento-connect → squeezol-plugin}/lib/oauth2/composer.json +0 -0
  41. {magento-connect → squeezol-plugin}/skin/frontend/base/default/css/DejaVuSansCondensed-BoldOblique.eot +0 -0
  42. {magento-connect → squeezol-plugin}/skin/frontend/base/default/css/DejaVuSansCondensed-BoldOblique.svg +0 -0
  43. {magento-connect → squeezol-plugin}/skin/frontend/base/default/css/DejaVuSansCondensed-BoldOblique.ttf +0 -0
  44. {magento-connect → squeezol-plugin}/skin/frontend/base/default/css/DejaVuSansCondensed-BoldOblique.woff +0 -0
  45. {magento-connect → squeezol-plugin}/skin/frontend/base/default/css/absolut_pro_boldcondensed-webfont.ttf +0 -0
  46. {magento-connect → squeezol-plugin}/skin/frontend/base/default/css/absolut_pro_boldcondensed-webfont.woff +0 -0
  47. {magento-connect → squeezol-plugin}/skin/frontend/base/default/css/absolut_pro_bookcondensed-webfont.ttf +0 -0
  48. {magento-connect → squeezol-plugin}/skin/frontend/base/default/css/absolut_pro_bookcondensed-webfont.woff +0 -0
  49. {magento-connect → squeezol-plugin}/skin/frontend/base/default/css/bootstrap-responsive.css +0 -0
  50. {magento-connect → squeezol-plugin}/skin/frontend/base/default/css/bootstrap-responsive.min.css +0 -0
  51. {magento-connect → squeezol-plugin}/skin/frontend/base/default/css/bootstrap.css +0 -0
  52. {magento-connect → squeezol-plugin}/skin/frontend/base/default/css/bootstrap.min.css +0 -0
  53. {magento-connect → squeezol-plugin}/skin/frontend/base/default/css/dejavusanscondensed-bold-webfont.eot +0 -0
  54. {magento-connect → squeezol-plugin}/skin/frontend/base/default/css/dejavusanscondensed-bold-webfont.svg +0 -0
  55. {magento-connect → squeezol-plugin}/skin/frontend/base/default/css/dejavusanscondensed-bold-webfont.ttf +0 -0
  56. {magento-connect → squeezol-plugin}/skin/frontend/base/default/css/dejavusanscondensed-bold-webfont.woff +0 -0
  57. {magento-connect → squeezol-plugin}/skin/frontend/base/default/css/dejavusanscondensed-webfont.ttf +0 -0
  58. {magento-connect → squeezol-plugin}/skin/frontend/base/default/css/dejavusanscondensed-webfont.woff +0 -0
  59. {magento-connect → squeezol-plugin}/skin/frontend/base/default/css/pikaday.css +0 -0
  60. {magento-connect → squeezol-plugin}/skin/frontend/base/default/css/squeezol.css +20 -15
  61. {magento-connect → squeezol-plugin}/skin/frontend/base/default/images/squeezol_payment/btn-finger.png +0 -0
  62. {magento-connect → squeezol-plugin}/skin/frontend/base/default/images/squeezol_payment/btn2.jpg +0 -0
  63. {magento-connect → squeezol-plugin}/skin/frontend/base/default/images/squeezol_payment/busta.png +0 -0
  64. {magento-connect → squeezol-plugin}/skin/frontend/base/default/images/squeezol_payment/busta2.jpg +0 -0
  65. {magento-connect → squeezol-plugin}/skin/frontend/base/default/images/squeezol_payment/default.jpg +0 -0
  66. {magento-connect → squeezol-plugin}/skin/frontend/base/default/images/squeezol_payment/facebook_small.png +0 -0
  67. {magento-connect → squeezol-plugin}/skin/frontend/base/default/images/squeezol_payment/fenicottero.png +0 -0
  68. {magento-connect → squeezol-plugin}/skin/frontend/base/default/images/squeezol_payment/ghianda_step_blu.png +0 -0
  69. {magento-connect → squeezol-plugin}/skin/frontend/base/default/images/squeezol_payment/ghianda_step_grigia.png +0 -0
  70. {magento-connect → squeezol-plugin}/skin/frontend/base/default/images/squeezol_payment/info-black.png +0 -0
  71. {magento-connect → squeezol-plugin}/skin/frontend/base/default/images/squeezol_payment/logo_min.png +0 -0
  72. squeezol-plugin/skin/frontend/base/default/images/squeezol_payment/logo_squeezol_blu_nowrite.png +0 -0
  73. {magento-connect → squeezol-plugin}/skin/frontend/base/default/images/squeezol_payment/mail_small.png +0 -0
  74. {magento-connect → squeezol-plugin}/skin/frontend/base/default/images/squeezol_payment/pay_button.png +0 -0
  75. {magento-connect → squeezol-plugin}/skin/frontend/base/default/images/squeezol_payment/pay_button2.png +0 -0
  76. {magento-connect → squeezol-plugin}/skin/frontend/base/default/images/squeezol_payment/salva2.jpg +0 -0
  77. {magento-connect → squeezol-plugin}/skin/frontend/base/default/images/squeezol_payment/salvadanaio.png +0 -0
  78. {magento-connect → squeezol-plugin}/skin/frontend/base/default/images/squeezol_payment/shopping-cart.jpg +0 -0
  79. {magento-connect → squeezol-plugin}/skin/frontend/base/default/images/squeezol_payment/squeezol.png +0 -0
  80. {magento-connect → squeezol-plugin}/skin/frontend/base/default/images/squeezol_payment/squeezol_icon-aziende.png +0 -0
  81. {magento-connect → squeezol-plugin}/skin/frontend/base/default/images/squeezol_payment/squeezol_icon-creasplit-pink.png +0 -0
  82. {magento-connect → squeezol-plugin}/skin/frontend/base/default/images/squeezol_payment/squeezol_icon-creasplit.png +0 -0
  83. {magento-connect → squeezol-plugin}/skin/frontend/base/default/images/squeezol_payment/squeezol_icon-invita-pink.png +0 -0
  84. {magento-connect → squeezol-plugin}/skin/frontend/base/default/images/squeezol_payment/squeezol_icon-invita.png +0 -0
  85. {magento-connect → squeezol-plugin}/skin/frontend/base/default/images/squeezol_payment/squeezol_icon-riassunto-pink.png +0 -0
  86. {magento-connect → squeezol-plugin}/skin/frontend/base/default/images/squeezol_payment/squeezol_icon-riassunto.png +0 -0
  87. {magento-connect → squeezol-plugin}/skin/frontend/base/default/js/_squeezol3.js +39 -29
  88. {magento-connect → squeezol-plugin}/skin/frontend/base/default/js/bootstrap.min.js +0 -0
  89. {magento-connect → squeezol-plugin}/skin/frontend/base/default/js/jquery.min.js +0 -0
  90. {magento-connect → squeezol-plugin}/skin/frontend/base/default/js/pikaday.js +0 -0
magento-connect/README.md DELETED
@@ -1,63 +0,0 @@
1
- # Squeezol Payments, plugin Magento
2
- ## Sandbox ##
3
- * Estrarre il plugin magento
4
- * Copiare l'intero contenuto nella cartella di Magento cp -r DirectorySqueezolModule/* /var/www/magentoRoot/ (o scaricarlo dal Magento store)
5
- * Andare su https://sandbox.squeezol.com/api/partner/join e seguire la procedura per creare l'account di test e ottenere **Application ID** e ** Application Secret KEY**. Inserire:
6
-
7
- 1. L' Url del sito, ad esempio: http://www.yourmagentoshop.com
8
- 2. Callback Url, nella forma: http://www.yourmagentoshop.com/squeezol/index/oauth
9
- 3. IPN Url, nella forma: http://www.yourmagentoshop.com/squeezol/index/ipn/
10
-
11
- * Configurare il plugin Squeezol nella sezione Admin: System->Configurations.
12
- Nella barra laterale cercare: ->Payment methods.
13
- Trovare Squeezol e impostare **Application ID** e **Application Secret KEY** e selezionare *enable sandbox*.
14
- * Andare nella sezione System -> Cache Management ed eseguire il Flush della cache.
15
- * Fine.
16
-
17
- ## Andare il produzione ##
18
- * Andare su https://www.squeezol.com/api/partner/join e seguire la procedura per creare l'account di produzione e ottenere **Application ID** and **Application Secret KEY**. Inserire:
19
-
20
- 1. L'Url del sito ad esempio: http://www.yourmagentoshop.com
21
- 2. Callback Url, nella forma: http://www.yourmagentoshop.com/squeezol/index/oauth
22
- 3. IPN Url, nella forma: http://www.yourmagentoshop.com/squeezol/index/ipn/
23
-
24
- * Andare nella sezione Admin: System->Configurations. Nella barra laterale cercare Squeezol: disabilitare sandbox and sostituire **Application ID** e **Application Secret KEY** con quelli di produzione (appena ottenuti su www.squeezol.com).
25
- * Andare su -> Cache Management ed eseguire il Flush della cache.
26
- * Aspettare l'approvazione dello staff di Squeezol.
27
-
28
- ## Risoluzione dei problemi ##
29
- 1. Controllare che tutti gli Url abbiano http:// o https://
30
- 2. The Callback Url non dovrebbe avere "/" finale
31
- 3. Contattare support@squeezol.com
32
-
33
- # Squeezol Payments, plugin Magento
34
- ## Sandbox ##
35
- * Extract Squeezol Magento Plugin
36
- * Copy the entire plugin content in your Magento root directory cp -r DirectorySqueezolModule/* /var/www/magentoRoot/
37
- * Go to https://sandbox.squeezol.com/api/partner/join and follow the procedure in order to create your test partner account and get your **Application ID** and ** Application Secret KEY**. Insert:
38
-
39
- 1. The Web site Url e.g. http://www.yourmagentoshop.com
40
- 2. Callback Url e.g. http://www.yourmagentoshop.com/squeezol/index/oauth
41
- 3. IPN Url e.g. http://www.yourmagentoshop.com/squeezol/index/ipn/
42
-
43
- * Configure Squeezol plugin in Magento Admin section: System->Configurations.
44
- In the side bar go to Payment methods.
45
- Find Squeezol, set **Application ID** and **Application Secret KEY** and *enable sandbox*.
46
- * Go to System -> Cache Management and Flush the entire cache.
47
- * Done.
48
-
49
- ## Go to production ##
50
- * Go to https://www.squeezol.com/api/partner/join and follow the procedure in order to create your partner account and get your **Application ID** and **Application Secret KEY**. Insert:
51
-
52
- 1. The Web site Url e.g. http://www.yourmagentoshop.com
53
- 2. Callback Url e.g. http://www.yourmagentoshop.com/squeezol/index/oauth
54
- 3. IPN Url e.g. http://www.yourmagentoshop.com/squeezol/index/ipn/
55
-
56
- * Go to the magento Admin section System->Configurations. In the Side bar go to Payment methods and find Squeezol: disable sandbox and replace **Application ID** and **Application Secret KEY** to the production ones (just obtained on www.squeezol.com).
57
- * Go to System -> Cache Management and Flush the entire cache.
58
- * Wait for Squeezol staff approval.
59
-
60
- ## TroubleShooting ##
61
- 1. Double check: every Url must have http:// or https://
62
- 2. The Callback Url should **not** have a trailing "/"
63
- 3. Contact support@squeezol.com
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
magento-connect/app/design/frontend/base/default/template/squeezol_payment/logo.phtml DELETED
@@ -1,167 +0,0 @@
1
- <style>
2
- .sq-pop-container {
3
- position: relative;
4
- height: 32px;
5
- padding: 8px 12px 8px 8px;
6
- display: inline-block;
7
- vertical-align: baseline;
8
- zoom: 1;
9
- *display: inline;
10
- *vertical-align: auto;
11
- }
12
-
13
- .sq-pop-container:hover .sq-popover {
14
- visibility: visible !important;
15
- opacity: 1;
16
- padding: 4px 0 6px;
17
- }
18
- .sq-pop-container .sq-popover {
19
- visibility: hidden !important;
20
- opacity: 0;
21
- position: absolute;
22
- bottom: 100%;
23
- left: 0;
24
- right: 0;
25
- border: 2px solid;
26
- border-color: #0AB3C6;
27
- border-radius: 4px;
28
- -webkit-transition-property: opacity, padding, visibility;
29
- -moz-transition-property: opacity, padding, visibility;
30
- -ms-transition-property: opacity, padding, visibility;
31
- -o-transition-property: opacity, padding, visibility;
32
- transition-property: opacity, padding, visibility;
33
- -webkit-transition: 0.3s ease-out;
34
- -moz-transition: 0.3s ease-out;
35
- -ms-transition: 0.3s ease-out;
36
- -o-transition: 0.3s ease-out;
37
- transition: 0.3s ease-out;
38
- background-color: #FFF;
39
- -webkit-box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9), 0 1px 2px rgba(0, 0, 0, 0.1);
40
- box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9), 0 1px 2px rgba(0, 0, 0, 0.1);
41
- z-index:99999;
42
- }
43
- .sq-pop-container .sq-popover:before, .sq-pop-container .sq-popover:after {
44
- display: block;
45
- content: '';
46
- width: 0;
47
- height: 0;
48
- position: absolute;
49
- left: 15px;
50
- border: 7px outset transparent;
51
- }
52
- .sq-pop-container #sq-wizard-id:before {
53
- border-top: 7px solid #0AB3C6;
54
- bottom: -14px;
55
- }
56
-
57
- .sq-pop-container #sq-wizard-id:after {
58
- border-top: 7px solid #EEF3FE;
59
- bottom: -12px;
60
- }
61
-
62
- .sq-popover {
63
- width: 250px;
64
- }
65
-
66
- .sq-img-responsive {
67
- width: 30%;
68
- display: inline;
69
- margin-left: 2px;
70
- }
71
-
72
- .sq-row {
73
- width: 100%;
74
- }
75
-
76
- .sq-row:before, .sq-row:after,
77
- {
78
- content: " ";
79
- display: table;
80
- clear: both;
81
- padding: 4px;
82
- }
83
-
84
-
85
- h4.sq-text-center {
86
- display:inline;
87
- line-height: 50px;
88
- }
89
-
90
- h3.sq-text-center {
91
- text-align: center;
92
- }
93
- .sq-col-xs-6 {
94
- position: relative;
95
- min-height: 1px;
96
- padding-left: 15px;
97
- padding-right: 15px;
98
- float: left;
99
- width: 50%;
100
-
101
- }
102
-
103
- .sq-wizard-title {
104
- text-decoration: underline;
105
- }
106
-
107
- </style>
108
-
109
- <div id="squeezol_btn" class="sq-pop-container" style="cursor:pointer;">
110
- <img src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN); ?>/frontend/base/default/images/squeezol_payment/logo_min.png" style="height: 24px; margin-left:10px; margin-right: 10px; display:inline;" />
111
- <h4 style="float: left; margin-top: 2px; display:inline;">Scopri come</h4>
112
- </div>
113
-
114
- <div style="width: 100px; height: 1px; clear:both;"></div>
115
-
116
- <script>
117
- (function() {
118
- 'use strict';
119
- /* Insert in the SQ.api library after jquery porting */
120
- var img_url = '<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN); ?>/frontend/base/default/images/squeezol_payment/';
121
- var wizard, sqBox, sqImg, sqh, sqNode, sqImg, i, sqPopover, sqView, eView, colXs;
122
- var imgSuffix = ['btn2.jpg', 'busta2.jpg', 'salva2.jpg'];
123
- var sqText = ['1.Crea uno split', '2.Invita i tuoi amici', '3.Versa la tua quota'];
124
- // Wrapper wizard
125
- wizard=document.createElement('div');
126
- wizard.className='sq-popover';
127
- wizard.id='sq-wizard-id';
128
- sqBox = document.createElement('div');
129
- sqBox.className='sq-row sq-wizard-title';
130
- sqNode = document.createTextNode('Come funziona');
131
- sqh = document.createElement('h3');
132
- sqh.className='sq-text-center';
133
- sqh.appendChild(sqNode);
134
- sqBox.appendChild(sqh);
135
- wizard.appendChild(sqBox);
136
- for (i=0; i<imgSuffix.length; i++){
137
- sqBox = document.createElement('div');
138
- sqBox.className='sq-row';
139
- sqh = document.createElement('h4');
140
- sqh.className='sq-text-center';
141
- sqNode = document.createTextNode(sqText[i]);
142
- sqImg = document.createElement('img');
143
- sqImg.className='sq-img-responsive';
144
- sqImg.setAttribute('src', img_url+imgSuffix[i]);
145
- sqh.appendChild(sqNode);
146
- colXs = document.createElement('div');
147
- colXs.className='sq-col-xs-6';
148
- sqBox.appendChild(colXs.appendChild(sqImg));
149
- colXs = document.createElement('div');
150
- colXs.className='sq-col-xs-6';
151
- sqBox.appendChild(colXs.appendChild(sqh));
152
- wizard.appendChild(sqBox);
153
- }
154
- sqBox = document.createElement('div');
155
- sqBox.className='sq-row';
156
- sqNode = document.createTextNode('Dividi l\'acquisto con i tuoi amici senza anticipare...è gratis!');
157
- sqh = document.createElement('h3');
158
- sqh.className='sq-text-center';
159
- sqh.appendChild(sqNode);
160
- sqBox.appendChild(sqh);
161
- wizard.appendChild(sqBox);
162
- sqView=document.getElementById('squeezol_btn');
163
- sqView.appendChild(wizard);
164
-
165
- return;
166
- }())
167
- </script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
magento-connect/skin/frontend/base/default/images/squeezol_payment/logo_squeezol_blu_nowrite.png DELETED
Binary file
package.xml CHANGED
@@ -1,2 +1,2 @@
1
  <?xml version="1.0"?>
2
- <package><name>Squeezol_Payment</name><version>1.1</version><stability>stable</stability><license>OSL</license><channel>community</channel><extends></extends><summary>It enables group payments, a split of cart amount</summary><description>Squeezol Split is the innovative payment technology that solves personal fundraising problems between people, simplifying scheduling, budget planning and finally payments. Enable group purchasing on your e-commerce site or marketplace just integrating &#x2018;Pay with Squeezol&#x2019; button: everyone puts his share in, then the merchant receives the entire payment due. A buying system used in current life now completely digitalized, taking advantage of social media tools to ease at the same time the whole customers&#x2019; experience and the viral diffusion of merchants brand.</description><notes>Frontend update</notes><authors><author><name>Davide Costa</name><user>nafta86</user><email>davide.costa@squeezol.com</email></author><author><name>Alessandro Caligaris</name><user>alfietto91</user><email>alessandro.caligaris1991@gmail.com</email></author><author><name>John Doe</name><user>john</user><email>john3@doe.com</email></author></authors><date>2015-01-07</date><time>3:03:24</time><compatible></compatible><dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies><contents><target name="mage"><dir name="magento-connect"><file name="README.md" hash="97f9dbb159f7cfa3f574c2374f906b83"/><dir name="lib"><dir name="Squeezol"><file name="endpoints.php" hash="bb57c3f817e4a7bbe578056475c2c85b"/></dir><dir name="oauth2"><file name="Client.php" hash="cd46e543dc9ce042347e929bafb2637a"/><file name="README" hash="8ef3bf723c93b6e091b707a546df2804"/><file name="auth_request.php" hash="d78edf267fee0e4c9c483d46f4405d98"/><file name="composer.json" hash="b1a24295215d44d727f603e7da644a5a"/><dir name="GrantType"><file name="AuthorizationCode.php" hash="a1ff324a733fc33dbf938153c4c1667c"/><file name="ClientCredentials.php" hash="21b30fbb06d4b67263499d687316ae8b"/><file name="IGrantType.php" hash="ee03d4c5bc20f518716fc2c616b4d38d"/><file name="Password.php" hash="2e938e60c4af8bad71b5c4f0f1a40969"/><file name="RefreshToken.php" hash="a773f48348ad7aa510955099ba18d3ad"/></dir></dir></dir><dir name="app"><dir name="design"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="squeezol_payment"><file name="create.phtml" hash="7f33a4cd28d0f09ab8b8b94af207b326"/><file name="digest.phtml" hash="ad115777c40a2bf9de8287963340c42c"/><file name="invitation.phtml" hash="769550bdcdeec4c37d2dc46befe32db1"/><file name="logo.phtml" hash="aaa3bde465fca719a0a31059c75a142b"/><file name="review.phtml" hash="788d3e1812a08c0ec53675d16b5ff11e"/><file name="start.phtml" hash="2e49ad50da47b88ee45d259656bd88d0"/></dir></dir><dir name="layout"><file name="squeezol_payment.xml" hash="fc7666d8961c3a5006df797c7fcc2ed7"/></dir></dir></dir></dir></dir><dir name="etc"><dir name="modules"><file name="Squeezol_Payment.xml" hash="8069f82ec151f6c45be892bcc32460f8"/></dir></dir><dir name="code"><dir name="local"><dir name="Squeezol"><dir name="Payment"><dir name="Helper"><file name="Data.php" hash="435781e5e5e1a60ddd4c631f8efcfb42"/></dir><dir name="Block"><file name="Logo.php" hash="f9c7b30ccf3d9c947ec4a33c1662c395"/><file name="Start.php" hash="7edb0747a52d16fa21a2952c6d356191"/></dir><dir name="data"><dir name="squeezol_payment_setup"><file name="data-install-0.1.0.php" hash="3b58d0cdbc68e0260e839a2c8f0d4675"/></dir></dir><dir name="etc"><file name="config.xml" hash="816f839cf9155c94838938ee9b4c1532"/><file name="system.xml" hash="f21029a6dce1a2225501fe793e03897c"/></dir><dir name="Model"><file name="Params.php" hash="60fe9d8365773cc9de53e5d904d82fac"/><file name="Paramsandbox.php" hash="1f90070265de7948188c79590009ac1d"/><file name="PaymentMethod.php" hash="37fcaf2619c43b2713c4a5441d5345cc"/><file name="Session.php" hash="6453e3413705bde3e492ac9829b954e8"/><dir name="Mysql4"><file name="Params.php" hash="b12305337a72803ed2d61f6b8cac0159"/><dir name="Params"><file name="Collection.php" hash="5c73d0c799b880eed0bfc65bd50f17b6"/></dir></dir><dir name="Resource"><file name="Setup.php" hash="0340022ca0914dfcd7b6b589767dbc21"/></dir></dir><dir name="controllers"><file name="IndexController.php" hash="ffe4397ad8b493b65c6323ca0d3e66b9"/><file name="OrderProcessingController.php" hash="5e56204902a16dd1c726dc61050c2503"/></dir><dir name="sql"><dir name="squeezol_payment_setup"><file name="install-0.1.0.php" hash="404031896ca519d8739300687fc1ab9e"/><file name="upgrade-0.1.0-0.2.0.php" hash="1bd99cfd46a27f7d94754540d32af500"/><file name="upgrade-0.2.0-1.0.0.php" hash="36edcf31ba4f44b97b80d77868da31e9"/></dir></dir></dir></dir></dir></dir></dir><dir name="skin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><file name="DejaVuSansCondensed-BoldOblique.eot" hash="2c79dd754287cea48f32a3fff983bf15"/><file name="DejaVuSansCondensed-BoldOblique.svg" hash="326f9917a1db7537c95bf0b6124b899f"/><file name="DejaVuSansCondensed-BoldOblique.ttf" hash="7bb71c1ec629c0bf5d27e2e2d5e20066"/><file name="DejaVuSansCondensed-BoldOblique.woff" hash="3242cc1f8b2373420e38d3aefcc9e408"/><file name="absolut_pro_boldcondensed-webfont.ttf" hash="dee7ac19c5727e29ba33192f466560ea"/><file name="absolut_pro_boldcondensed-webfont.woff" hash="585c3a24a09cd230d2e456db4a04d4d7"/><file name="absolut_pro_bookcondensed-webfont.ttf" hash="2c8c3c2eb35d5d36ab0927d2fd6f1732"/><file name="absolut_pro_bookcondensed-webfont.woff" hash="4868c6df04841d20c0ff3ee3a2e9830d"/><file name="bootstrap-responsive.css" hash="d2c30d07a98d50e945570bf32c56435f"/><file name="bootstrap-responsive.min.css" hash="365a247af4036532701d83957e490adc"/><file name="bootstrap.css" hash="08f2256002f66a415dbc2e8afb722d70"/><file name="bootstrap.min.css" hash="2b4369ee3c21cf58516751cb49a01ccc"/><file name="dejavusanscondensed-bold-webfont.eot" hash="fa2f3a00c08cc9f47201cac746a06bf2"/><file name="dejavusanscondensed-bold-webfont.svg" hash="f4f7213b78edc8ce3756a61868540ea4"/><file name="dejavusanscondensed-bold-webfont.ttf" hash="c2ca6902c10cb361346e2561c41af171"/><file name="dejavusanscondensed-bold-webfont.woff" hash="2eefe2ee018b50741c817aff2e25931a"/><file name="dejavusanscondensed-webfont.ttf" hash="5c1e2a1d836ff13b21d208ae62263331"/><file name="dejavusanscondensed-webfont.woff" hash="3aa174b6ab569947533738c8d9cd1808"/><file name="pikaday.css" hash="5a32b7adc30d7de002b204036e5c40ae"/><file name="squeezol.css" hash="29fa2f6fafe8e8639bc1ea0eccecb5f5"/></dir><dir name="js"><file name="_squeezol3.js" hash="792a54187adf7a161f8042dffd0bffd1"/><file name="bootstrap.min.js" hash="a121f0e47edc5182e1aca1396807db70"/><file name="jquery.min.js" hash="8101d596b2b8fa35fe3a634ea342d7c3"/><file name="pikaday.js" hash="441d514c9231d36b1d589bb3b78accb1"/></dir><dir name="images"><dir name="squeezol_payment"><file name="btn-finger.png" hash="32939ad91cd1416e303fe72edde3389e"/><file name="btn2.jpg" hash="ddc15e5c081115513a9e9e6dc41cdafc"/><file name="busta.png" hash="f5da1e0e1e1a5eb3cea2d6d9d89a91d6"/><file name="busta2.jpg" hash="6056ab70cbb9fb274510fafc79ebc745"/><file name="default.jpg" hash="dd9154d475d1abaa69163378cfa482f8"/><file name="facebook_small.png" hash="24a08c9069e7a37d56ef7c2514c652b5"/><file name="fenicottero.png" hash="dd5753b966338ca1f711ceec5dbcf75b"/><file name="ghianda_step_blu.png" hash="9ff125808d9fbdef766caf502a304ad2"/><file name="ghianda_step_grigia.png" hash="4d58eee97a1f8655a87c7a0f20e66eda"/><file name="info-black.png" hash="10de26a1713ff21b9a4f169da5abdbdb"/><file name="logo_min.png" hash="70e11306eda7fbd42d78a72f1109a17d"/><file name="logo_squeezol_blu_nowrite.png" hash="3be25bca8a7193e40cd37a7ae570062e"/><file name="mail_small.png" hash="da8257e98dd2ad413c61309043f71ed9"/><file name="pay_button.png" hash="970ec7feff9b6b7b9062d8f5a8e10bd1"/><file name="pay_button2.png" hash="6f6727fb922f128dc3cf3a9b42b00e1a"/><file name="salva2.jpg" hash="557ff279658464685464b856d4d3f634"/><file name="salvadanaio.png" hash="a2a0d69adabe332b8106bfaec0d49f87"/><file name="shopping-cart.jpg" hash="ccf6a2d64c387127e988724f2a986ca3"/><file name="squeezol.png" hash="e2059411e9f14fdfe1e8b21739f7a512"/><file name="squeezol_icon-aziende.png" hash="e1231a071b99b6fe07db08d247a4a086"/><file name="squeezol_icon-creasplit-pink.png" hash="a7d5094fca629f3f8d068049db852d03"/><file name="squeezol_icon-creasplit.png" hash="decd22b53c32b8472b0a46d0aed4afe9"/><file name="squeezol_icon-invita-pink.png" hash="b1eb9ef65c147d6552d4d402373bcf10"/><file name="squeezol_icon-invita.png" hash="0b274298ec828752a61db8686af9f720"/><file name="squeezol_icon-riassunto-pink.png" hash="82db5c7c4329194760ad7cb728bd1014"/><file name="squeezol_icon-riassunto.png" hash="2e50238f01e7a407e5d491ec75c25ec8"/></dir></dir></dir></dir></dir></dir></dir></target></contents></package>
1
  <?xml version="1.0"?>
2
+ <package><name>Squeezol_Payment</name><version>1.1.1</version><stability>stable</stability><license>OSL</license><channel>community</channel><extends></extends><summary>It enables group payments, a split of cart amount</summary><description>Squeezol Split is the innovative payment technology that solves personal fundraising problems between people, simplifying scheduling, budget planning and finally payments. Enable group purchasing on your e-commerce site or marketplace just integrating &#x2018;Pay with Squeezol&#x2019; button: everyone puts his share in, then the merchant receives the entire payment due. A buying system used in current life now completely digitalized, taking advantage of social media tools to ease at the same time the whole customers&#x2019; experience and the viral diffusion of merchants brand.</description><notes>Frontend update</notes><authors><author><name>Davide Costa</name><user>nafta86</user><email>davide.costa@squeezol.com</email></author><author><name>Alessandro Caligaris</name><user>alfietto91</user><email>alessandro.caligaris1991@gmail.com</email></author><author><name>John Doe</name><user>john</user><email>john3@doe.com</email></author></authors><date>2015-01-18</date><time>9:34:05</time><compatible></compatible><dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies><contents><target name="mage"><dir name="squeezol-plugin"><dir name="lib"><dir name="Squeezol"><file name="endpoints.php" hash="bb57c3f817e4a7bbe578056475c2c85b"/></dir><dir name="oauth2"><file name="Client.php" hash="cd46e543dc9ce042347e929bafb2637a"/><file name="README" hash="8ef3bf723c93b6e091b707a546df2804"/><file name="auth_request.php" hash="d78edf267fee0e4c9c483d46f4405d98"/><file name="composer.json" hash="b1a24295215d44d727f603e7da644a5a"/><dir name="GrantType"><file name="AuthorizationCode.php" hash="a1ff324a733fc33dbf938153c4c1667c"/><file name="ClientCredentials.php" hash="21b30fbb06d4b67263499d687316ae8b"/><file name="IGrantType.php" hash="ee03d4c5bc20f518716fc2c616b4d38d"/><file name="Password.php" hash="2e938e60c4af8bad71b5c4f0f1a40969"/><file name="RefreshToken.php" hash="a773f48348ad7aa510955099ba18d3ad"/></dir></dir></dir><dir name="app"><dir name="design"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="squeezol_payment"><file name="create.phtml" hash="7f33a4cd28d0f09ab8b8b94af207b326"/><file name="digest.phtml" hash="ad115777c40a2bf9de8287963340c42c"/><file name="invitation.phtml" hash="769550bdcdeec4c37d2dc46befe32db1"/><file name="logo.phtml" hash="7772596d79735869eb1c89110629a41a"/><file name="review.phtml" hash="788d3e1812a08c0ec53675d16b5ff11e"/><file name="start.phtml" hash="2e49ad50da47b88ee45d259656bd88d0"/></dir></dir><dir name="layout"><file name="squeezol_payment.xml" hash="fc7666d8961c3a5006df797c7fcc2ed7"/></dir></dir></dir></dir></dir><dir name="etc"><dir name="modules"><file name="Squeezol_Payment.xml" hash="8069f82ec151f6c45be892bcc32460f8"/></dir></dir><dir name="code"><dir name="local"><dir name="Squeezol"><dir name="Payment"><dir name="Helper"><file name="Data.php" hash="435781e5e5e1a60ddd4c631f8efcfb42"/></dir><dir name="Block"><file name="Logo.php" hash="f9c7b30ccf3d9c947ec4a33c1662c395"/><file name="Start.php" hash="7edb0747a52d16fa21a2952c6d356191"/></dir><dir name="data"><dir name="squeezol_payment_setup"><file name="data-install-0.1.0.php" hash="3b58d0cdbc68e0260e839a2c8f0d4675"/></dir></dir><dir name="etc"><file name="config.xml" hash="816f839cf9155c94838938ee9b4c1532"/><file name="system.xml" hash="426d16d38ff0bdbe709c4b3c175b9e02"/></dir><dir name="Model"><file name="Params.php" hash="60fe9d8365773cc9de53e5d904d82fac"/><file name="Paramsandbox.php" hash="1f90070265de7948188c79590009ac1d"/><file name="PaymentMethod.php" hash="37fcaf2619c43b2713c4a5441d5345cc"/><file name="Session.php" hash="6453e3413705bde3e492ac9829b954e8"/><dir name="Mysql4"><file name="Params.php" hash="b12305337a72803ed2d61f6b8cac0159"/><dir name="Params"><file name="Collection.php" hash="5c73d0c799b880eed0bfc65bd50f17b6"/></dir></dir><dir name="Resource"><file name="Setup.php" hash="0340022ca0914dfcd7b6b589767dbc21"/></dir></dir><dir name="controllers"><file name="IndexController.php" hash="f4c2b539530d1a3f493be7c51f7ce2e9"/><file name="OrderProcessingController.php" hash="5e56204902a16dd1c726dc61050c2503"/></dir><dir name="sql"><dir name="squeezol_payment_setup"><file name="install-0.1.0.php" hash="404031896ca519d8739300687fc1ab9e"/><file name="upgrade-0.1.0-0.2.0.php" hash="1bd99cfd46a27f7d94754540d32af500"/><file name="upgrade-0.2.0-1.0.0.php" hash="36edcf31ba4f44b97b80d77868da31e9"/></dir></dir></dir></dir></dir></dir></dir><dir name="skin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><file name="DejaVuSansCondensed-BoldOblique.eot" hash="2c79dd754287cea48f32a3fff983bf15"/><file name="DejaVuSansCondensed-BoldOblique.svg" hash="326f9917a1db7537c95bf0b6124b899f"/><file name="DejaVuSansCondensed-BoldOblique.ttf" hash="7bb71c1ec629c0bf5d27e2e2d5e20066"/><file name="DejaVuSansCondensed-BoldOblique.woff" hash="3242cc1f8b2373420e38d3aefcc9e408"/><file name="absolut_pro_boldcondensed-webfont.ttf" hash="dee7ac19c5727e29ba33192f466560ea"/><file name="absolut_pro_boldcondensed-webfont.woff" hash="585c3a24a09cd230d2e456db4a04d4d7"/><file name="absolut_pro_bookcondensed-webfont.ttf" hash="2c8c3c2eb35d5d36ab0927d2fd6f1732"/><file name="absolut_pro_bookcondensed-webfont.woff" hash="4868c6df04841d20c0ff3ee3a2e9830d"/><file name="bootstrap-responsive.css" hash="d2c30d07a98d50e945570bf32c56435f"/><file name="bootstrap-responsive.min.css" hash="365a247af4036532701d83957e490adc"/><file name="bootstrap.css" hash="08f2256002f66a415dbc2e8afb722d70"/><file name="bootstrap.min.css" hash="2b4369ee3c21cf58516751cb49a01ccc"/><file name="dejavusanscondensed-bold-webfont.eot" hash="fa2f3a00c08cc9f47201cac746a06bf2"/><file name="dejavusanscondensed-bold-webfont.svg" hash="f4f7213b78edc8ce3756a61868540ea4"/><file name="dejavusanscondensed-bold-webfont.ttf" hash="c2ca6902c10cb361346e2561c41af171"/><file name="dejavusanscondensed-bold-webfont.woff" hash="2eefe2ee018b50741c817aff2e25931a"/><file name="dejavusanscondensed-webfont.ttf" hash="5c1e2a1d836ff13b21d208ae62263331"/><file name="dejavusanscondensed-webfont.woff" hash="3aa174b6ab569947533738c8d9cd1808"/><file name="pikaday.css" hash="5a32b7adc30d7de002b204036e5c40ae"/><file name="squeezol.css" hash="975e2f8b5408a1498b10aed40ade1542"/></dir><dir name="js"><file name="_squeezol3.js" hash="4702a0831c57e4439ad1f933e3a62a8d"/><file name="bootstrap.min.js" hash="a121f0e47edc5182e1aca1396807db70"/><file name="jquery.min.js" hash="8101d596b2b8fa35fe3a634ea342d7c3"/><file name="pikaday.js" hash="441d514c9231d36b1d589bb3b78accb1"/></dir><dir name="images"><dir name="squeezol_payment"><file name="btn-finger.png" hash="32939ad91cd1416e303fe72edde3389e"/><file name="btn2.jpg" hash="ddc15e5c081115513a9e9e6dc41cdafc"/><file name="busta.png" hash="f5da1e0e1e1a5eb3cea2d6d9d89a91d6"/><file name="busta2.jpg" hash="6056ab70cbb9fb274510fafc79ebc745"/><file name="default.jpg" hash="dd9154d475d1abaa69163378cfa482f8"/><file name="facebook_small.png" hash="24a08c9069e7a37d56ef7c2514c652b5"/><file name="fenicottero.png" hash="dd5753b966338ca1f711ceec5dbcf75b"/><file name="ghianda_step_blu.png" hash="9ff125808d9fbdef766caf502a304ad2"/><file name="ghianda_step_grigia.png" hash="4d58eee97a1f8655a87c7a0f20e66eda"/><file name="info-black.png" hash="10de26a1713ff21b9a4f169da5abdbdb"/><file name="logo_min.png" hash="70e11306eda7fbd42d78a72f1109a17d"/><file name="logo_squeezol_blu_nowrite.png" hash="9a0ac507017fb6b268a43d454f436b61"/><file name="mail_small.png" hash="da8257e98dd2ad413c61309043f71ed9"/><file name="pay_button.png" hash="970ec7feff9b6b7b9062d8f5a8e10bd1"/><file name="pay_button2.png" hash="6f6727fb922f128dc3cf3a9b42b00e1a"/><file name="salva2.jpg" hash="557ff279658464685464b856d4d3f634"/><file name="salvadanaio.png" hash="a2a0d69adabe332b8106bfaec0d49f87"/><file name="shopping-cart.jpg" hash="ccf6a2d64c387127e988724f2a986ca3"/><file name="squeezol.png" hash="e2059411e9f14fdfe1e8b21739f7a512"/><file name="squeezol_icon-aziende.png" hash="e1231a071b99b6fe07db08d247a4a086"/><file name="squeezol_icon-creasplit-pink.png" hash="a7d5094fca629f3f8d068049db852d03"/><file name="squeezol_icon-creasplit.png" hash="decd22b53c32b8472b0a46d0aed4afe9"/><file name="squeezol_icon-invita-pink.png" hash="b1eb9ef65c147d6552d4d402373bcf10"/><file name="squeezol_icon-invita.png" hash="0b274298ec828752a61db8686af9f720"/><file name="squeezol_icon-riassunto-pink.png" hash="82db5c7c4329194760ad7cb728bd1014"/><file name="squeezol_icon-riassunto.png" hash="2e50238f01e7a407e5d491ec75c25ec8"/></dir></dir></dir></dir></dir></dir></dir></target></contents></package>
{magento-connect → squeezol-plugin}/app/code/local/Squeezol/Payment/Block/Logo.php RENAMED
File without changes
{magento-connect → squeezol-plugin}/app/code/local/Squeezol/Payment/Block/Start.php RENAMED
File without changes
{magento-connect → squeezol-plugin}/app/code/local/Squeezol/Payment/Helper/Data.php RENAMED
File without changes
{magento-connect → squeezol-plugin}/app/code/local/Squeezol/Payment/Model/Mysql4/Params.php RENAMED
File without changes
{magento-connect → squeezol-plugin}/app/code/local/Squeezol/Payment/Model/Mysql4/Params/Collection.php RENAMED
File without changes
{magento-connect → squeezol-plugin}/app/code/local/Squeezol/Payment/Model/Params.php RENAMED
File without changes
{magento-connect → squeezol-plugin}/app/code/local/Squeezol/Payment/Model/Paramsandbox.php RENAMED
File without changes
{magento-connect → squeezol-plugin}/app/code/local/Squeezol/Payment/Model/PaymentMethod.php RENAMED
File without changes
{magento-connect → squeezol-plugin}/app/code/local/Squeezol/Payment/Model/Resource/Setup.php RENAMED
File without changes
{magento-connect → squeezol-plugin}/app/code/local/Squeezol/Payment/Model/Session.php RENAMED
File without changes
{magento-connect → squeezol-plugin}/app/code/local/Squeezol/Payment/controllers/IndexController.php RENAMED
@@ -284,14 +284,23 @@ class Squeezol_Payment_IndexController extends Mage_Core_Controller_Front_Action
284
 
285
  if ($order && $order->getId()) {
286
  if ($data['status'] == 'S') {
287
- $order->setStatus(Mage_Sales_Model_Order::STATE_COMPLETE);
288
  $order->save();
 
 
 
 
 
 
 
 
289
  } else {
 
290
  $order->setStatus(Mage_Sales_Model_Order::STATE_CANCELED);
291
  $order->cancel()->save();
 
292
  }
293
  }
294
-
295
- echo 'OK';
296
  }
297
  }
284
 
285
  if ($order && $order->getId()) {
286
  if ($data['status'] == 'S') {
287
+ $order->setStatus(Mage_Sales_Model_Order::STATE_PROCESSING);
288
  $order->save();
289
+ $order->sendNewOrderEmail();
290
+ $historyItem = Mage::getResourceModel('sales/order_status_history_collection')->getUnnotifiedForInstance($order, Mage_Sales_Model_Order::HISTORY_ENTITY_NAME);
291
+ //track history
292
+ if ($historyItem) {
293
+ $historyItem->setIsCustomerNotified(1);
294
+ $historyItem->save();
295
+ }
296
+ $ret = array('status'=>'S', 'order_id' => $order->getId(), 'group' => $data['group']);
297
  } else {
298
+ //$order->setStatus($model->getConfigData('order_canceled'));
299
  $order->setStatus(Mage_Sales_Model_Order::STATE_CANCELED);
300
  $order->cancel()->save();
301
+ $ret = array('status'=>'I', 'order_id' => $order->getId(), 'group' => $data['group']);
302
  }
303
  }
304
+ echo json_encode($ret);
 
305
  }
306
  }
{magento-connect → squeezol-plugin}/app/code/local/Squeezol/Payment/controllers/OrderProcessingController.php RENAMED
File without changes
{magento-connect → squeezol-plugin}/app/code/local/Squeezol/Payment/data/squeezol_payment_setup/data-install-0.1.0.php RENAMED
File without changes
{magento-connect → squeezol-plugin}/app/code/local/Squeezol/Payment/etc/config.xml RENAMED
File without changes
{magento-connect → squeezol-plugin}/app/code/local/Squeezol/Payment/etc/system.xml RENAMED
@@ -73,7 +73,7 @@
73
  <order_canceled translate="label">
74
  <label>Order canceled set to</label>
75
  <frontend_type>select</frontend_type>
76
- <source_model>adminhtml/system_config_source_order_status_processing</source_model>
77
  <sort_order>5</sort_order>
78
  <show_in_default>1</show_in_default>
79
  <show_in_website>1</show_in_website>
@@ -82,7 +82,7 @@
82
  <order_closed translate="label">
83
  <label>Order closed set to</label>
84
  <frontend_type>select</frontend_type>
85
- <source_model>adminhtml/system_config_source_order_status_processing</source_model>
86
  <sort_order>6</sort_order>
87
  <show_in_default>1</show_in_default>
88
  <show_in_website>1</show_in_website>
73
  <order_canceled translate="label">
74
  <label>Order canceled set to</label>
75
  <frontend_type>select</frontend_type>
76
+ <source_model>adminhtml/system_config_source_order_status</source_model>
77
  <sort_order>5</sort_order>
78
  <show_in_default>1</show_in_default>
79
  <show_in_website>1</show_in_website>
82
  <order_closed translate="label">
83
  <label>Order closed set to</label>
84
  <frontend_type>select</frontend_type>
85
+ <source_model>adminhtml/system_config_source_order_status</source_model>
86
  <sort_order>6</sort_order>
87
  <show_in_default>1</show_in_default>
88
  <show_in_website>1</show_in_website>
{magento-connect → squeezol-plugin}/app/code/local/Squeezol/Payment/sql/squeezol_payment_setup/install-0.1.0.php RENAMED
File without changes
{magento-connect → squeezol-plugin}/app/code/local/Squeezol/Payment/sql/squeezol_payment_setup/upgrade-0.1.0-0.2.0.php RENAMED
File without changes
{magento-connect → squeezol-plugin}/app/code/local/Squeezol/Payment/sql/squeezol_payment_setup/upgrade-0.2.0-1.0.0.php RENAMED
File without changes
{magento-connect → squeezol-plugin}/app/design/frontend/base/default/layout/squeezol_payment.xml RENAMED
File without changes
{magento-connect → squeezol-plugin}/app/design/frontend/base/default/template/squeezol_payment/create.phtml RENAMED
File without changes
{magento-connect → squeezol-plugin}/app/design/frontend/base/default/template/squeezol_payment/digest.phtml RENAMED
File without changes
{magento-connect → squeezol-plugin}/app/design/frontend/base/default/template/squeezol_payment/invitation.phtml RENAMED
File without changes
squeezol-plugin/app/design/frontend/base/default/template/squeezol_payment/logo.phtml ADDED
@@ -0,0 +1,188 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <style>
2
+ .sq-pop-container {
3
+ position: relative;
4
+ height: 32px;
5
+ padding: 2px 12px 8px 8px;
6
+ display: inline-block;
7
+ vertical-align: baseline;
8
+ zoom: 1;
9
+ display: inline;
10
+ vertical-align: auto;
11
+ }
12
+
13
+ .sq-pop-container:hover .sq-popover {
14
+ visibility: visible !important;
15
+ opacity: 1;
16
+ padding: 4px 0 6px;
17
+ }
18
+ .sq-pop-container .sq-popover {
19
+ visibility: hidden !important;
20
+ opacity: 0;
21
+ position: absolute;
22
+ bottom: 100%;
23
+ left: 0;
24
+ right: 0;
25
+ border: 2px solid;
26
+ border-color: #0AB3C6;
27
+ border-radius: 4px;
28
+ -webkit-transition-property: opacity, padding, visibility;
29
+ -moz-transition-property: opacity, padding, visibility;
30
+ -ms-transition-property: opacity, padding, visibility;
31
+ -o-transition-property: opacity, padding, visibility;
32
+ transition-property: opacity, padding, visibility;
33
+ -webkit-transition: 0.3s ease-out;
34
+ -moz-transition: 0.3s ease-out;
35
+ -ms-transition: 0.3s ease-out;
36
+ -o-transition: 0.3s ease-out;
37
+ transition: 0.3s ease-out;
38
+ background-color: #FFF;
39
+ -webkit-box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9), 0 1px 2px rgba(0, 0, 0, 0.1);
40
+ box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9), 0 1px 2px rgba(0, 0, 0, 0.1);
41
+ z-index:99999;
42
+ }
43
+ .sq-pop-container .sq-popover:before, .sq-pop-container .sq-popover:after {
44
+ display: block;
45
+ content: '';
46
+ width: 0;
47
+ height: 0;
48
+ position: absolute;
49
+ left: 15px;
50
+ border: 7px outset transparent;
51
+ }
52
+ .sq-pop-container #sq-wizard-id:before {
53
+ border-top: 7px solid #0AB3C6;
54
+ bottom: -14px;
55
+ }
56
+
57
+ .sq-pop-container #sq-wizard-id:after {
58
+ border-top: 7px solid #EEF3FE;
59
+ bottom: -12px;
60
+ }
61
+
62
+ .sq-popover {
63
+ width: 250px;
64
+ }
65
+
66
+ .sq-img-responsive {
67
+ width: 30%;
68
+ display:block;
69
+ float: left;
70
+ margin-left: 2px;
71
+ }
72
+
73
+ .sq-row {
74
+ width: 100%;
75
+ clear: both;
76
+ }
77
+
78
+ .sq-row:before, .sq-row:after,
79
+ {
80
+ content: " ";
81
+ display: table;
82
+ clear: both;
83
+ padding: 4px;
84
+ }
85
+
86
+
87
+ h4.sq-text-center {
88
+ display:block;
89
+ float: left;
90
+ line-height: 50px;
91
+ margin-left: 1px;
92
+ }
93
+
94
+ h3.sq-text-center {
95
+ text-align: center;
96
+ }
97
+ .sq-col-xs-6 {
98
+ position: relative;
99
+ min-height: 1px;
100
+ padding-left: 15px;
101
+ padding-right: 15px;
102
+ float: left;
103
+ width: 50%;
104
+
105
+ }
106
+
107
+ .sq-wizard-title {
108
+ text-decoration: underline;
109
+ }
110
+
111
+ </style>
112
+
113
+ <script>
114
+ (function() {
115
+ 'use strict';
116
+ var img_url = '<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN); ?>/frontend/base/default/images/squeezol_payment/';
117
+ var wizard, sqBox, sqImg, sqh, sqNode, sqImg, i, sqPopover,
118
+ sqView, eView, colXs, sqWrite, sqImgLogo, sqHow;
119
+ var imgSuffix = ['btn2.jpg', 'busta2.jpg', 'salva2.jpg'];
120
+ var sqText = ['1.Crea uno split', '2.Invita i tuoi amici', '3.Versa la tua quota'];
121
+ var locale = '<?php echo Mage::app()->getLocale()->getLocaleCode(); ?>';
122
+ var inp=document.getElementById('p_method_squeezol_payment');
123
+
124
+ if (locale=='it_IT'){
125
+ // How to
126
+ /*
127
+ sqHow=document.createElement('h4');
128
+ sqHow.setAttribute('style', 'float: left; margin-top: 2px; display:inline;');
129
+ sqHow.innerHTML='Scopri come';
130
+ */
131
+ sqWrite = document.createElement('div');
132
+ sqWrite.id='squeezol_btn';
133
+ sqWrite.className='sq-pop-container';
134
+ sqWrite.setAttribute('style', 'cursor:pointer; position: relative; left: 5px;');
135
+
136
+ sqImgLogo = document.createElement('img');
137
+ sqImgLogo.setAttribute('src', '<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN); ?>/frontend/base/default/images/squeezol_payment/logo_min.png');
138
+ sqImgLogo.setAttribute('style', 'height: 24px; margin-left:10px; margin-right: 10px; display:inline;');
139
+ sqWrite.appendChild(sqImgLogo);
140
+ //sqWrite.appendChild(sqHow);
141
+ inp.parentNode.appendChild(sqWrite);
142
+ // Wrapper wizard
143
+ wizard=document.createElement('div');
144
+ wizard.className='sq-popover';
145
+ wizard.id='sq-wizard-id';
146
+ sqBox = document.createElement('div');
147
+ sqBox.className='sq-row sq-wizard-title';
148
+ sqNode = document.createTextNode('Come funziona');
149
+ sqh = document.createElement('h3');
150
+ sqh.className='sq-text-center';
151
+ sqh.appendChild(sqNode);
152
+ sqBox.appendChild(sqh);
153
+ wizard.appendChild(sqBox);
154
+ for (i=0; i<imgSuffix.length; i++){
155
+ sqBox = document.createElement('div');
156
+ sqBox.className='sq-row';
157
+ sqh = document.createElement('h4');
158
+ sqh.className='sq-text-center';
159
+ sqNode = document.createTextNode(sqText[i]);
160
+ sqImg = document.createElement('img');
161
+ sqImg.className='sq-img-responsive';
162
+ sqImg.setAttribute('src', img_url+imgSuffix[i]);
163
+ sqh.appendChild(sqNode);
164
+ colXs = document.createElement('div');
165
+ colXs.className='sq-col-xs-6';
166
+ sqBox.appendChild(colXs.appendChild(sqImg));
167
+ colXs = document.createElement('div');
168
+ colXs.className='sq-col-xs-6';
169
+ sqBox.appendChild(colXs.appendChild(sqh));
170
+ wizard.appendChild(sqBox);
171
+ }
172
+ sqBox = document.createElement('div');
173
+ sqBox.className='sq-row';
174
+ sqNode = document.createTextNode('Dividi l\'acquisto con i tuoi amici senza anticipare...è gratis!');
175
+ sqh = document.createElement('h3');
176
+ sqh.className='sq-text-center';
177
+ sqh.appendChild(sqNode);
178
+ sqBox.appendChild(sqh);
179
+ wizard.appendChild(sqBox);
180
+ sqView=document.getElementById('squeezol_btn');
181
+ sqView.appendChild(wizard);
182
+ }
183
+ else {
184
+ inp.setAttribute('style', 'display:none;')
185
+ }
186
+ return;
187
+ }())
188
+ </script>
{magento-connect → squeezol-plugin}/app/design/frontend/base/default/template/squeezol_payment/review.phtml RENAMED
File without changes
{magento-connect → squeezol-plugin}/app/design/frontend/base/default/template/squeezol_payment/start.phtml RENAMED
File without changes
{magento-connect → squeezol-plugin}/app/etc/modules/Squeezol_Payment.xml RENAMED
File without changes
{magento-connect → squeezol-plugin}/lib/Squeezol/endpoints.php RENAMED
File without changes
{magento-connect → squeezol-plugin}/lib/oauth2/Client.php RENAMED
File without changes
{magento-connect → squeezol-plugin}/lib/oauth2/GrantType/AuthorizationCode.php RENAMED
File without changes
{magento-connect → squeezol-plugin}/lib/oauth2/GrantType/ClientCredentials.php RENAMED
File without changes
{magento-connect → squeezol-plugin}/lib/oauth2/GrantType/IGrantType.php RENAMED
File without changes
{magento-connect → squeezol-plugin}/lib/oauth2/GrantType/Password.php RENAMED
File without changes
{magento-connect → squeezol-plugin}/lib/oauth2/GrantType/RefreshToken.php RENAMED
File without changes
{magento-connect → squeezol-plugin}/lib/oauth2/README RENAMED
File without changes
{magento-connect → squeezol-plugin}/lib/oauth2/auth_request.php RENAMED
File without changes
{magento-connect → squeezol-plugin}/lib/oauth2/composer.json RENAMED
File without changes
{magento-connect → squeezol-plugin}/skin/frontend/base/default/css/DejaVuSansCondensed-BoldOblique.eot RENAMED
File without changes
{magento-connect → squeezol-plugin}/skin/frontend/base/default/css/DejaVuSansCondensed-BoldOblique.svg RENAMED
File without changes
{magento-connect → squeezol-plugin}/skin/frontend/base/default/css/DejaVuSansCondensed-BoldOblique.ttf RENAMED
File without changes
{magento-connect → squeezol-plugin}/skin/frontend/base/default/css/DejaVuSansCondensed-BoldOblique.woff RENAMED
File without changes
{magento-connect → squeezol-plugin}/skin/frontend/base/default/css/absolut_pro_boldcondensed-webfont.ttf RENAMED
File without changes
{magento-connect → squeezol-plugin}/skin/frontend/base/default/css/absolut_pro_boldcondensed-webfont.woff RENAMED
File without changes
{magento-connect → squeezol-plugin}/skin/frontend/base/default/css/absolut_pro_bookcondensed-webfont.ttf RENAMED
File without changes
{magento-connect → squeezol-plugin}/skin/frontend/base/default/css/absolut_pro_bookcondensed-webfont.woff RENAMED
File without changes
{magento-connect → squeezol-plugin}/skin/frontend/base/default/css/bootstrap-responsive.css RENAMED
File without changes
{magento-connect → squeezol-plugin}/skin/frontend/base/default/css/bootstrap-responsive.min.css RENAMED
File without changes
{magento-connect → squeezol-plugin}/skin/frontend/base/default/css/bootstrap.css RENAMED
File without changes
{magento-connect → squeezol-plugin}/skin/frontend/base/default/css/bootstrap.min.css RENAMED
File without changes
{magento-connect → squeezol-plugin}/skin/frontend/base/default/css/dejavusanscondensed-bold-webfont.eot RENAMED
File without changes
{magento-connect → squeezol-plugin}/skin/frontend/base/default/css/dejavusanscondensed-bold-webfont.svg RENAMED
File without changes
{magento-connect → squeezol-plugin}/skin/frontend/base/default/css/dejavusanscondensed-bold-webfont.ttf RENAMED
File without changes
{magento-connect → squeezol-plugin}/skin/frontend/base/default/css/dejavusanscondensed-bold-webfont.woff RENAMED
File without changes
{magento-connect → squeezol-plugin}/skin/frontend/base/default/css/dejavusanscondensed-webfont.ttf RENAMED
File without changes
{magento-connect → squeezol-plugin}/skin/frontend/base/default/css/dejavusanscondensed-webfont.woff RENAMED
File without changes
{magento-connect → squeezol-plugin}/skin/frontend/base/default/css/pikaday.css RENAMED
File without changes
{magento-connect → squeezol-plugin}/skin/frontend/base/default/css/squeezol.css RENAMED
@@ -113,9 +113,9 @@ h4.sq-text {
113
  background-color: #FC8F1A !important;
114
  height: 30px !important;
115
  display: block !important;
116
- border-radius: 1em !important;
117
- -webkit-border-radius: 1em;
118
- -moz-border-radius: 1em;
119
  font-family: DejaVuSansCondensed-BoldOblique;
120
  font-size: 12px !important;
121
  color: #FFF !important;
@@ -130,7 +130,9 @@ h4.sq-text {
130
  background-color: #3B5998;
131
  color: #FFF;
132
  display: block;
133
- border-radius: 1em;
 
 
134
  font-family: DejaVuSansCondensed-BoldOblique;
135
  font-size: 12px;
136
  color: #FFF;
@@ -140,16 +142,16 @@ h4.sq-text {
140
  letter-spacing: 0em;
141
  cursor: pointer;
142
  float: right;
143
- padding-right: 5px;
144
  }
145
 
146
 
147
  .sq-buttonEmail {
148
  background-color: #FC8F1A !important;
149
  border: #FC8F1A !important;
150
- border-radius: 1em !important;
151
- -webkit-border-radius: 1em;
152
- -moz-border-radius: 1em;
153
  font-size: 12px;
154
  color: #FFF;
155
  font-style: normal;
@@ -164,9 +166,9 @@ h4.sq-text {
164
  background-color: #3B5998 !important;
165
  height: 30px !important;
166
  display: block !important;
167
- border-radius: 1em !important;
168
- -webkit-border-radius: 1em;
169
- -moz-border-radius: 1em;
170
  font-family: DejaVuSansCondensed-BoldOblique;
171
  font-size: 12px !important;
172
  color: #FFF !important;
@@ -228,7 +230,7 @@ div.row-separata {
228
  }
229
 
230
  .squeezol-btn-header {
231
- width:15% !important;
232
  display:inline !important;
233
  margin-right: -8px !important;
234
  padding-right: 5px !important;
@@ -498,6 +500,9 @@ div.sq-glyph-info-sign {
498
  opacity: 1 !important;
499
  color: #FFF !important;
500
  padding: 5px;
 
 
 
501
  }
502
 
503
  .target-R {
@@ -572,9 +577,9 @@ div.withPaddedBorder {
572
  }
573
  #closeModal {
574
  background-color: #FFFFFF;
575
- border-radius: 1em;
576
- -webkit-border-radius: 1em;
577
- -moz-border-radius: 1em;
578
  border: 1px solid #dcdcdc;
579
  position: absolute;
580
  top: 200px;
113
  background-color: #FC8F1A !important;
114
  height: 30px !important;
115
  display: block !important;
116
+ border-radius: 4px !important;
117
+ -webkit-border-radius: 4px;
118
+ -moz-border-radius: 4px;
119
  font-family: DejaVuSansCondensed-BoldOblique;
120
  font-size: 12px !important;
121
  color: #FFF !important;
130
  background-color: #3B5998;
131
  color: #FFF;
132
  display: block;
133
+ border-radius: 4px !important;
134
+ -webkit-border-radius: 4px;
135
+ -moz-border-radius: 4px;
136
  font-family: DejaVuSansCondensed-BoldOblique;
137
  font-size: 12px;
138
  color: #FFF;
142
  letter-spacing: 0em;
143
  cursor: pointer;
144
  float: right;
145
+ padding-right: 25px;
146
  }
147
 
148
 
149
  .sq-buttonEmail {
150
  background-color: #FC8F1A !important;
151
  border: #FC8F1A !important;
152
+ border-radius: 4px !important;
153
+ -webkit-border-radius: 4px;
154
+ -moz-border-radius: 4px;
155
  font-size: 12px;
156
  color: #FFF;
157
  font-style: normal;
166
  background-color: #3B5998 !important;
167
  height: 30px !important;
168
  display: block !important;
169
+ border-radius: 4px !important;
170
+ -webkit-border-radius: 4px;
171
+ -moz-border-radius: 4px;
172
  font-family: DejaVuSansCondensed-BoldOblique;
173
  font-size: 12px !important;
174
  color: #FFF !important;
230
  }
231
 
232
  .squeezol-btn-header {
233
+ width:65% !important;
234
  display:inline !important;
235
  margin-right: -8px !important;
236
  padding-right: 5px !important;
500
  opacity: 1 !important;
501
  color: #FFF !important;
502
  padding: 5px;
503
+ border-radius: 4px !important;
504
+ -webkit-border-radius: 4px;
505
+ -moz-border-radius: 4px;
506
  }
507
 
508
  .target-R {
577
  }
578
  #closeModal {
579
  background-color: #FFFFFF;
580
+ border-radius: 4px !important;
581
+ -webkit-border-radius: 4px;
582
+ -moz-border-radius: 4px;
583
  border: 1px solid #dcdcdc;
584
  position: absolute;
585
  top: 200px;
{magento-connect → squeezol-plugin}/skin/frontend/base/default/images/squeezol_payment/btn-finger.png RENAMED
File without changes
{magento-connect → squeezol-plugin}/skin/frontend/base/default/images/squeezol_payment/btn2.jpg RENAMED
File without changes
{magento-connect → squeezol-plugin}/skin/frontend/base/default/images/squeezol_payment/busta.png RENAMED
File without changes
{magento-connect → squeezol-plugin}/skin/frontend/base/default/images/squeezol_payment/busta2.jpg RENAMED
File without changes
{magento-connect → squeezol-plugin}/skin/frontend/base/default/images/squeezol_payment/default.jpg RENAMED
File without changes
{magento-connect → squeezol-plugin}/skin/frontend/base/default/images/squeezol_payment/facebook_small.png RENAMED
File without changes
{magento-connect → squeezol-plugin}/skin/frontend/base/default/images/squeezol_payment/fenicottero.png RENAMED
File without changes
{magento-connect → squeezol-plugin}/skin/frontend/base/default/images/squeezol_payment/ghianda_step_blu.png RENAMED
File without changes
{magento-connect → squeezol-plugin}/skin/frontend/base/default/images/squeezol_payment/ghianda_step_grigia.png RENAMED
File without changes
{magento-connect → squeezol-plugin}/skin/frontend/base/default/images/squeezol_payment/info-black.png RENAMED
File without changes
{magento-connect → squeezol-plugin}/skin/frontend/base/default/images/squeezol_payment/logo_min.png RENAMED
File without changes
squeezol-plugin/skin/frontend/base/default/images/squeezol_payment/logo_squeezol_blu_nowrite.png ADDED
Binary file
{magento-connect → squeezol-plugin}/skin/frontend/base/default/images/squeezol_payment/mail_small.png RENAMED
File without changes
{magento-connect → squeezol-plugin}/skin/frontend/base/default/images/squeezol_payment/pay_button.png RENAMED
File without changes
{magento-connect → squeezol-plugin}/skin/frontend/base/default/images/squeezol_payment/pay_button2.png RENAMED
File without changes
{magento-connect → squeezol-plugin}/skin/frontend/base/default/images/squeezol_payment/salva2.jpg RENAMED
File without changes
{magento-connect → squeezol-plugin}/skin/frontend/base/default/images/squeezol_payment/salvadanaio.png RENAMED
File without changes
{magento-connect → squeezol-plugin}/skin/frontend/base/default/images/squeezol_payment/shopping-cart.jpg RENAMED
File without changes
{magento-connect → squeezol-plugin}/skin/frontend/base/default/images/squeezol_payment/squeezol.png RENAMED
File without changes
{magento-connect → squeezol-plugin}/skin/frontend/base/default/images/squeezol_payment/squeezol_icon-aziende.png RENAMED
File without changes
{magento-connect → squeezol-plugin}/skin/frontend/base/default/images/squeezol_payment/squeezol_icon-creasplit-pink.png RENAMED
File without changes
{magento-connect → squeezol-plugin}/skin/frontend/base/default/images/squeezol_payment/squeezol_icon-creasplit.png RENAMED
File without changes
{magento-connect → squeezol-plugin}/skin/frontend/base/default/images/squeezol_payment/squeezol_icon-invita-pink.png RENAMED
File without changes
{magento-connect → squeezol-plugin}/skin/frontend/base/default/images/squeezol_payment/squeezol_icon-invita.png RENAMED
File without changes
{magento-connect → squeezol-plugin}/skin/frontend/base/default/images/squeezol_payment/squeezol_icon-riassunto-pink.png RENAMED
File without changes
{magento-connect → squeezol-plugin}/skin/frontend/base/default/images/squeezol_payment/squeezol_icon-riassunto.png RENAMED
File without changes
{magento-connect → squeezol-plugin}/skin/frontend/base/default/js/_squeezol3.js RENAMED
@@ -701,6 +701,17 @@ if (cx.test(text)) {
701
  e.preventDefault();
702
  window.open('https://www.facebook.com/sharer/sharer.php?u='+encodeURIComponent(url), 'facebook-share-dialog', 'width=626,height=436');
703
  });
 
 
 
 
 
 
 
 
 
 
 
704
  },
705
  that.drawHeader = function(page, mode) {
706
  var viewPortDiv, modalDiv;
@@ -1060,7 +1071,7 @@ if (cx.test(text)) {
1060
  tempRowDiv.append(input.labelize('Nome Split*', helpText['name']).wrap(wrapper_left));
1061
 
1062
  date1 = DateInput();
1063
- d1 = new Date(new Date().getTime() + 7*day);
1064
  //startDate = ('0' + d.getDate()).slice(-2) + "-" + ('0' + d.getMonth()).slice(-2) + "-" + d.getFullYear();
1065
  date1.create('max_acceptance_date', d1);
1066
  date1.get().id = 'datepicker1';
@@ -1084,7 +1095,7 @@ if (cx.test(text)) {
1084
  tempRowDiv.append(input.labelize('Descrizione', helpText['description']).wrap(wrapper_left));
1085
  // Data Pagamenti
1086
  date2 = DateInput();
1087
- d2 = new Date(new Date().getTime() + 25*day);
1088
  //startDate = ('0' + d.getDate()).slice(-2) + "-" + ('0' + d.getMonth()).slice(-2) + "-" + d.getFullYear();
1089
  date2.create('max_payment_date', d2);
1090
  date2.get().id = 'datepicker2';
@@ -1109,7 +1120,7 @@ if (cx.test(text)) {
1109
  tmp=document.createElement('div');
1110
  tempRowDiv = Div(tmp);
1111
  tempRowDiv.addClass('sq-row');
1112
- tempRowDiv.append(combo.labelize('Occorrenza', helpText['occurrence']).wrap(wrapper_left));
1113
  viewPortDiv.append(tempRowDiv.get())
1114
  ui.drawSeparator('');
1115
  ui.drawSeparatorCollapse('Opzioni aggiuntive');
@@ -1978,6 +1989,7 @@ if (cx.test(text)) {
1978
  return grId
1979
  },
1980
  that.renderGroupData = function(group, participantAdmin, adminEmail, alreadyInvited) {
 
1981
  var groupDigest, status, contrib, options;
1982
  var disabled='';
1983
  var isOpen='';
@@ -1989,14 +2001,14 @@ if (cx.test(text)) {
1989
  isOpen = '<div class="sq-row target-P">'+
1990
  '<input type="hidden" id="sq-group-amount" value="'+group.amount+'"></input>'+
1991
  '<p class="sq-content-body"> Obiettivo:</p>'+
1992
- '<p class="sq-content-body"><strong>'+group.amount + group.currency +'</strong></p>'
1993
  '<p class="sq-content-body"><strong>PIN:'+group.pin+'</strong></p>'+
1994
  '</div>';
1995
  }
1996
  else {
1997
  isOpen = '<input type="hidden" id="sq-group-amount" value="'+group.amount+'"></input>'+
1998
  '<p class="sq-content-body"> Obiettivo:</p>'+
1999
- '<p class="sq-content-body"><strong>'+group.amount + group.currency +'</strong></p>';
2000
  }
2001
  if (group.fundraising == 'D'){
2002
  contrib = participantAdmin.single_amount;
@@ -2064,7 +2076,7 @@ if (cx.test(text)) {
2064
  '</p>'+
2065
  '<div class="sq-input-group">'+
2066
  '<input id="squeezol_admin_contrib" value="'+contrib+'" name="email_contribution"'+
2067
- 'type="text" class="squeezolPrice sq-form-control" '+disabled+'><span class="sq-input-group-addon">'+group.currency+'</span>'
2068
  '</div>'+
2069
  '</div>'+
2070
  '</div>'+
@@ -2091,9 +2103,11 @@ if (cx.test(text)) {
2091
  var sqBtnContainer;
2092
  var i, j, k, p, spanCurr, quotaDiv, labelQuota;
2093
  var status, ui, state, ghianda, avatar_url, alertDes, contribution_amount;
2094
- var paidText = '<p class"sq-text-center"><strong> La tua quota è stata prenotata! </strong>'+
2095
  'L\'importo verrà scalato dalla tua carta solo se l\'obiettivo verrà raggiunto!'+
2096
- 'Invita altri amici per diminuire la quota!</p>';
 
 
2097
  var wrapper = {wrapper: 'div', className: 'sq-col-md-4 sq-col-md-offset-1 sq-col-xs-10 sq-col-xs-offset-1'};
2098
  var wrapper_row = {wrapper: 'div', className: 'sq-row'};
2099
  var wrapBtn = {wrapper: 'div', className: 'sq-col-md-2 sq-col-xs-10 sq-col-xs-offset-1'};
@@ -2130,15 +2144,15 @@ if (cx.test(text)) {
2130
  alertDes = document.createElement('div');
2131
  alertDes.className = 'sq-row sq-alert sq-alert-success'
2132
  alertDes.innerHTML = '<p class="sq-text-center">'+
2133
- '<strong> Congratulazioni!</strong>'+
2134
- 'Lo split si è concluso con successo!'+
2135
  '</p>';
2136
  SqDiv.appendChild(alertDes);
2137
  }
2138
  // Waiting for accesptance or payments
2139
  else if (groupStatus == 'WAC' || groupStatus == 'WPA'){
2140
  // Possibilita' di proporre un importo se si e' in fase di accettazione o il gruppo e' aperto e WPA
2141
- if (params.p_status == 'A'){
2142
  saInput.create('single-amount');
2143
  saInput.get().value=parseFloat(params.p_single_amount).toFixed(2);
2144
  saInput.get().id='squeezol_single_amount';
@@ -2151,7 +2165,7 @@ if (cx.test(text)) {
2151
  quotaDiv.addClass('sq-input-group');
2152
  spanCurr = document.createElement('span');
2153
  spanCurr.className = 'sq-input-group-addon';
2154
- spanCurr.innerHTML = answer.group.currency;
2155
  quotaDiv.append(saInput.labelizeWithSpan('Quota personale', spanCurr, helpText['p_quota']).get());
2156
  renderDiv.append(quotaDiv.wrap(wrapper));
2157
  renderDiv.append(singleAmountBtn.wrap(wrapBtn));
@@ -2225,19 +2239,14 @@ if (cx.test(text)) {
2225
  else {
2226
  //Attualmente non e' un Button
2227
  renderBtn = document.createElement('div');
2228
- renderBtn.innerHTML = '<div class="sq-alert sq-alert-warning sq-col-xs-6"'+
2229
  '<p>'+
2230
  '<strong>Attenzione!</strong>'+
2231
- 'La fase di accettazione non si è ancora conclusa, vuoi aprire i pagamenti ai tuoi invitati?'+
 
2232
  '</p>'+
2233
  '</div>';
2234
- SqDiv.appendChild(renderBtn);
2235
- renderBtn = Button();
2236
- renderBtn.create('Inizia i pagamenti!', 'big', 'SqueezolStartPay_');
2237
- renderBtn.get().setAttribute('data-participant', participantId);
2238
- renderBtn.get().setAttribute('data-action', 'OP');
2239
- renderBtn.get().className='squeezolButtonSuccess sq-btn';
2240
- renderBtn.regHandler('click', buttonHandler);
2241
  }
2242
  }
2243
  else {
@@ -2265,13 +2274,14 @@ if (cx.test(text)) {
2265
  }
2266
  }
2267
  }
 
2268
  // Render
2269
  if (openPay == false) {
2270
  var superTemp = document.createElement('div');
2271
  superTemp.id='sq-alert-start-pay';
2272
  superTemp.className = 'sq-col-xs-10 sq-col-xs-offset-1 sq-alert sq-alert-info';
2273
  if (isAdmin == true){
2274
- superTemp.innerHTML = '<p class="sq-text-center"> Inizia i pagamenti: sarà possibile a tutti versare la propria quota (una notifica verrà inoltrata a tutti i partecipanti!)</p>';
2275
  }
2276
  else {
2277
  superTemp.innerHTML = '<p class="sq-text-center">Potrai versare la tua quota quando l\'organizzatore avrà iniziato i pagamenti(una notifica ti verrà inviata per email)</p>';
@@ -2307,7 +2317,6 @@ if (cx.test(text)) {
2307
  '</div></p>';
2308
  SqDiv.appendChild(alertDes);
2309
  }
2310
-
2311
  // Render Partecipanti
2312
  if (answer.group.hide_invitation == false || isAdmin){
2313
  ui.drawSeparator('Partecipanti');
@@ -2336,7 +2345,7 @@ if (cx.test(text)) {
2336
  if (answer.group.hide_contribution == true && !isAdmin)
2337
  contribution_amount = '-';
2338
  else
2339
- contribution_amount = p.single_amount + ' ' + answer.group.currency;
2340
  part.innerHTML= '<div class="sq-col-md-1 sq-col-md-offset-1 sq-col-xs-4">'+
2341
  '<img id="thumb'+j+'" class="imgAvatar sq-thumbnail sq-img-responsive" src="'+avatar_url+'" alt="User Avatar"></img>'+
2342
  '</div>'+
@@ -2392,13 +2401,14 @@ if (cx.test(text)) {
2392
  },
2393
  that.notifyAmount = function(answer) {
2394
  var oldDiv, inputDiv, p, message, quota, currency;
 
2395
  inputDiv=document.getElementById('squeezol_single_amount');
2396
 
2397
  p=document.getElementById('squeezolNotifyAmount_');
2398
  if (answer.status == 'ok'){
2399
  message='Importo correttamente modificato';
2400
  currency=inputDiv.nextSibling.innerHTML;
2401
- quota=document.getElementById('sq-modify-amount').innerHTML=inputDiv.value+' '+currency;
2402
  }
2403
  else if(answer.status == 'error') {
2404
  message=answer.error || answer.message;
@@ -2452,7 +2462,7 @@ if (cx.test(text)) {
2452
  participant = p;
2453
  }
2454
  }
2455
-
2456
  if (group.fundraising == 'D'){
2457
  testo = 'Quota che intendo versare';
2458
  }
@@ -2508,12 +2518,12 @@ if (cx.test(text)) {
2508
  '<div class="sq-col-md-4">'+
2509
  '<div class="sq-row">'+
2510
  '<p class="sq-text-center">'+
2511
- 'totale: <strong>'+ group.amount+' '+group.currency+'</strong>'+
2512
  '</p>'+
2513
  '</div>'+
2514
  '<div class="sq-progress-radial-container">'+
2515
  '<div class="sq-progress-radial sq-progress-'+params.totalPerc+'">'+
2516
- '<div class="sq-overlay">'+totalPaid+' '+group.currency+
2517
  '</div>'+
2518
  '</div>'+
2519
  '</div>'+
@@ -2523,7 +2533,7 @@ if (cx.test(text)) {
2523
  testo+
2524
  '</p>'+
2525
  '<p class="sq-text-center sq-quota" id="sq-modify-amount">'+
2526
- participant.single_amount+' '+group.currency+
2527
  '</p>'+
2528
  '</div>'+
2529
  '</div>'+
701
  e.preventDefault();
702
  window.open('https://www.facebook.com/sharer/sharer.php?u='+encodeURIComponent(url), 'facebook-share-dialog', 'width=626,height=436');
703
  });
704
+ },
705
+ that.switchCurrency = function(curr){
706
+ if (curr == 'EUR'){
707
+ return '€';
708
+ }
709
+ else if (curr == 'USD'){
710
+ return '$';
711
+ }
712
+ else {
713
+ return curr;
714
+ }
715
  },
716
  that.drawHeader = function(page, mode) {
717
  var viewPortDiv, modalDiv;
1071
  tempRowDiv.append(input.labelize('Nome Split*', helpText['name']).wrap(wrapper_left));
1072
 
1073
  date1 = DateInput();
1074
+ d1 = new Date(new Date().getTime() + 3*day);
1075
  //startDate = ('0' + d.getDate()).slice(-2) + "-" + ('0' + d.getMonth()).slice(-2) + "-" + d.getFullYear();
1076
  date1.create('max_acceptance_date', d1);
1077
  date1.get().id = 'datepicker1';
1095
  tempRowDiv.append(input.labelize('Descrizione', helpText['description']).wrap(wrapper_left));
1096
  // Data Pagamenti
1097
  date2 = DateInput();
1098
+ d2 = new Date(new Date().getTime() + 20*day);
1099
  //startDate = ('0' + d.getDate()).slice(-2) + "-" + ('0' + d.getMonth()).slice(-2) + "-" + d.getFullYear();
1100
  date2.create('max_payment_date', d2);
1101
  date2.get().id = 'datepicker2';
1120
  tmp=document.createElement('div');
1121
  tempRowDiv = Div(tmp);
1122
  tempRowDiv.addClass('sq-row');
1123
+ tempRowDiv.append(combo.labelize('Occasione', helpText['occurrence']).wrap(wrapper_left));
1124
  viewPortDiv.append(tempRowDiv.get())
1125
  ui.drawSeparator('');
1126
  ui.drawSeparatorCollapse('Opzioni aggiuntive');
1989
  return grId
1990
  },
1991
  that.renderGroupData = function(group, participantAdmin, adminEmail, alreadyInvited) {
1992
+ var ui = UserInterface();
1993
  var groupDigest, status, contrib, options;
1994
  var disabled='';
1995
  var isOpen='';
2001
  isOpen = '<div class="sq-row target-P">'+
2002
  '<input type="hidden" id="sq-group-amount" value="'+group.amount+'"></input>'+
2003
  '<p class="sq-content-body"> Obiettivo:</p>'+
2004
+ '<p class="sq-content-body"><strong>'+group.amount + ui.switchCurrency(group.currency) +'</strong></p>'
2005
  '<p class="sq-content-body"><strong>PIN:'+group.pin+'</strong></p>'+
2006
  '</div>';
2007
  }
2008
  else {
2009
  isOpen = '<input type="hidden" id="sq-group-amount" value="'+group.amount+'"></input>'+
2010
  '<p class="sq-content-body"> Obiettivo:</p>'+
2011
+ '<p class="sq-content-body"><strong>'+group.amount + ui.switchCurrency(group.currency) +'</strong></p>';
2012
  }
2013
  if (group.fundraising == 'D'){
2014
  contrib = participantAdmin.single_amount;
2076
  '</p>'+
2077
  '<div class="sq-input-group">'+
2078
  '<input id="squeezol_admin_contrib" value="'+contrib+'" name="email_contribution"'+
2079
+ 'type="text" class="squeezolPrice sq-form-control" '+disabled+'><span class="sq-input-group-addon">'+ui.switchCurrency(group.currency)+'</span>'
2080
  '</div>'+
2081
  '</div>'+
2082
  '</div>'+
2103
  var sqBtnContainer;
2104
  var i, j, k, p, spanCurr, quotaDiv, labelQuota;
2105
  var status, ui, state, ghianda, avatar_url, alertDes, contribution_amount;
2106
+ var paidText = '<p class="sq-text-center"><strong> La tua quota è stata prenotata! </strong>'+
2107
  'L\'importo verrà scalato dalla tua carta solo se l\'obiettivo verrà raggiunto!'+
2108
+ 'Invita altri amici per diminuire la quota.</br>'+
2109
+ 'Oppure continua lo shopping!'
2110
+ +'</p>';
2111
  var wrapper = {wrapper: 'div', className: 'sq-col-md-4 sq-col-md-offset-1 sq-col-xs-10 sq-col-xs-offset-1'};
2112
  var wrapper_row = {wrapper: 'div', className: 'sq-row'};
2113
  var wrapBtn = {wrapper: 'div', className: 'sq-col-md-2 sq-col-xs-10 sq-col-xs-offset-1'};
2144
  alertDes = document.createElement('div');
2145
  alertDes.className = 'sq-row sq-alert sq-alert-success'
2146
  alertDes.innerHTML = '<p class="sq-text-center">'+
2147
+ '<strong> Congratulazioni! Ordine Completato</strong>'+
2148
+ 'Lo split si è concluso con successo! '+
2149
  '</p>';
2150
  SqDiv.appendChild(alertDes);
2151
  }
2152
  // Waiting for accesptance or payments
2153
  else if (groupStatus == 'WAC' || groupStatus == 'WPA'){
2154
  // Possibilita' di proporre un importo se si e' in fase di accettazione o il gruppo e' aperto e WPA
2155
+ if (params.p_status == 'A' && !canFinish){
2156
  saInput.create('single-amount');
2157
  saInput.get().value=parseFloat(params.p_single_amount).toFixed(2);
2158
  saInput.get().id='squeezol_single_amount';
2165
  quotaDiv.addClass('sq-input-group');
2166
  spanCurr = document.createElement('span');
2167
  spanCurr.className = 'sq-input-group-addon';
2168
+ spanCurr.innerHTML = ui.switchCurrency(answer.group.currency);
2169
  quotaDiv.append(saInput.labelizeWithSpan('Quota personale', spanCurr, helpText['p_quota']).get());
2170
  renderDiv.append(quotaDiv.wrap(wrapper));
2171
  renderDiv.append(singleAmountBtn.wrap(wrapBtn));
2239
  else {
2240
  //Attualmente non e' un Button
2241
  renderBtn = document.createElement('div');
2242
+ renderBtn.innerHTML = '<div class="sq-alert sq-alert-warning">'+
2243
  '<p>'+
2244
  '<strong>Attenzione!</strong>'+
2245
+ 'Split scaduto, eventuali pagamenti effettutati verrano rimborsati.'+
2246
+ 'Crea un nuovo ordine per rieffettuare l\'acquisto'+
2247
  '</p>'+
2248
  '</div>';
2249
+ SqDiv.appendChild(Div(renderBtn).wrap(wrapper_row));
 
 
 
 
 
 
2250
  }
2251
  }
2252
  else {
2274
  }
2275
  }
2276
  }
2277
+
2278
  // Render
2279
  if (openPay == false) {
2280
  var superTemp = document.createElement('div');
2281
  superTemp.id='sq-alert-start-pay';
2282
  superTemp.className = 'sq-col-xs-10 sq-col-xs-offset-1 sq-alert sq-alert-info';
2283
  if (isAdmin == true){
2284
+ superTemp.innerHTML = '<p class="sq-text-center"> <strong>Inizia i pagamenti</strong>: sarà possibile a tutti versare la propria quota <br /> (una notifica verrà inoltrata a tutti i partecipanti!)</p>';
2285
  }
2286
  else {
2287
  superTemp.innerHTML = '<p class="sq-text-center">Potrai versare la tua quota quando l\'organizzatore avrà iniziato i pagamenti(una notifica ti verrà inviata per email)</p>';
2317
  '</div></p>';
2318
  SqDiv.appendChild(alertDes);
2319
  }
 
2320
  // Render Partecipanti
2321
  if (answer.group.hide_invitation == false || isAdmin){
2322
  ui.drawSeparator('Partecipanti');
2345
  if (answer.group.hide_contribution == true && !isAdmin)
2346
  contribution_amount = '-';
2347
  else
2348
+ contribution_amount = p.single_amount + ' ' + ui.switchCurrency(answer.group.currency);
2349
  part.innerHTML= '<div class="sq-col-md-1 sq-col-md-offset-1 sq-col-xs-4">'+
2350
  '<img id="thumb'+j+'" class="imgAvatar sq-thumbnail sq-img-responsive" src="'+avatar_url+'" alt="User Avatar"></img>'+
2351
  '</div>'+
2401
  },
2402
  that.notifyAmount = function(answer) {
2403
  var oldDiv, inputDiv, p, message, quota, currency;
2404
+ var ui = UserInterface();
2405
  inputDiv=document.getElementById('squeezol_single_amount');
2406
 
2407
  p=document.getElementById('squeezolNotifyAmount_');
2408
  if (answer.status == 'ok'){
2409
  message='Importo correttamente modificato';
2410
  currency=inputDiv.nextSibling.innerHTML;
2411
+ quota=document.getElementById('sq-modify-amount').innerHTML=inputDiv.value+' '+ui.switchCurrency(currency);
2412
  }
2413
  else if(answer.status == 'error') {
2414
  message=answer.error || answer.message;
2462
  participant = p;
2463
  }
2464
  }
2465
+ totalPaid=totalPaid.toFixed(2)
2466
  if (group.fundraising == 'D'){
2467
  testo = 'Quota che intendo versare';
2468
  }
2518
  '<div class="sq-col-md-4">'+
2519
  '<div class="sq-row">'+
2520
  '<p class="sq-text-center">'+
2521
+ 'totale: <strong>'+ group.amount+' '+ui.switchCurrency(group.currency)+'</strong>'+
2522
  '</p>'+
2523
  '</div>'+
2524
  '<div class="sq-progress-radial-container">'+
2525
  '<div class="sq-progress-radial sq-progress-'+params.totalPerc+'">'+
2526
+ '<div class="sq-overlay">'+totalPaid+' '+ui.switchCurrency(group.currency)+
2527
  '</div>'+
2528
  '</div>'+
2529
  '</div>'+
2533
  testo+
2534
  '</p>'+
2535
  '<p class="sq-text-center sq-quota" id="sq-modify-amount">'+
2536
+ parseFloat(participant.single_amount).toFixed(2)+' '+ui.switchCurrency(group.currency)+
2537
  '</p>'+
2538
  '</div>'+
2539
  '</div>'+
{magento-connect → squeezol-plugin}/skin/frontend/base/default/js/bootstrap.min.js RENAMED
File without changes
{magento-connect → squeezol-plugin}/skin/frontend/base/default/js/jquery.min.js RENAMED
File without changes
{magento-connect → squeezol-plugin}/skin/frontend/base/default/js/pikaday.js RENAMED
File without changes