Aplazame_Aplazame - Version 0.4.2

Version Notes

* [fixed] Improve visualization when product is already included in a campaign which applies to the whole catalog.
* [changed] "Sandbox" is now named "Test Mode (Sandbox)"

Download this release

Release Info

Developer Aplazame
Extension Aplazame_Aplazame
Version 0.4.2
Comparing to
See all releases


Code changes from version 0.4.1 to 0.4.2

app/code/community/Aplazame/Aplazame/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Aplazame_Aplazame>
5
- <version>0.4.0</version>
6
  </Aplazame_Aplazame>
7
  </modules>
8
  <global>
@@ -123,7 +123,6 @@
123
  <title>Aplazame</title>
124
  <secret_api_key backend_model="adminhtml/system_config_backend_encrypted"/>
125
  <button>dt:has(input#p_method_aplazame)</button>
126
- <button_img>white-148x46</button_img>
127
  <sort_order>1</sort_order>
128
  </aplazame>
129
  </payment>
2
  <config>
3
  <modules>
4
  <Aplazame_Aplazame>
5
+ <version>0.4.2</version>
6
  </Aplazame_Aplazame>
7
  </modules>
8
  <global>
123
  <title>Aplazame</title>
124
  <secret_api_key backend_model="adminhtml/system_config_backend_encrypted"/>
125
  <button>dt:has(input#p_method_aplazame)</button>
 
126
  <sort_order>1</sort_order>
127
  </aplazame>
128
  </payment>
app/code/community/Aplazame/Aplazame/etc/system.xml CHANGED
@@ -22,7 +22,7 @@
22
  <show_in_store>1</show_in_store>
23
  </active>
24
  <sandbox translate="label">
25
- <label>Sandbox</label>
26
  <frontend_type>select</frontend_type>
27
  <source_model>adminhtml/system_config_source_yesno</source_model>
28
  <sort_order>20</sort_order>
@@ -55,14 +55,6 @@
55
  <show_in_website>1</show_in_website>
56
  <show_in_store>1</show_in_store>
57
  </button>
58
- <button_img>
59
- <label>Aplazame Button Image</label>
60
- <frontend_type>text</frontend_type>
61
- <sort_order>60</sort_order>
62
- <show_in_default>1</show_in_default>
63
- <show_in_website>1</show_in_website>
64
- <show_in_store>1</show_in_store>
65
- </button_img>
66
  <sort_order translate="label">
67
  <label>Position</label>
68
  <frontend_type>text</frontend_type>
22
  <show_in_store>1</show_in_store>
23
  </active>
24
  <sandbox translate="label">
25
+ <label>Test Mode (Sandbox)</label>
26
  <frontend_type>select</frontend_type>
27
  <source_model>adminhtml/system_config_source_yesno</source_model>
28
  <sort_order>20</sort_order>
55
  <show_in_website>1</show_in_website>
56
  <show_in_store>1</show_in_store>
57
  </button>
 
 
 
 
 
 
 
 
58
  <sort_order translate="label">
59
  <label>Position</label>
60
  <frontend_type>text</frontend_type>
app/design/adminhtml/default/default/template/aplazame/productCampaigns.phtml CHANGED
@@ -73,6 +73,12 @@
73
  checkbox["data-campaignId"] = campaign.id;
74
  checkbox.addEventListener("click", campaignToggle, false);
75
 
 
 
 
 
 
 
76
  /**
77
  * @type {HTMLLabelElement|Element}
78
  */
73
  checkbox["data-campaignId"] = campaign.id;
74
  checkbox.addEventListener("click", campaignToggle, false);
75
 
76
+ if (!campaign.partial) {
77
+ checkbox.checked = true;
78
+ checkbox.disabled = true;
79
+ checkbox.title = "<?php echo $this->__('The campaign applies to all products from your catalogue'); ?>";
80
+ }
81
+
82
  /**
83
  * @type {HTMLLabelElement|Element}
84
  */
app/design/adminhtml/default/default/template/aplazame/productsCampaigns.phtml CHANGED
@@ -92,6 +92,12 @@
92
  checkbox.id = inputId;
93
  checkbox["data-campaignId"] = campaign.id;
94
 
 
 
 
 
 
 
95
  /**
96
  * @type {HTMLLabelElement|Element}
97
  */
92
  checkbox.id = inputId;
93
  checkbox["data-campaignId"] = campaign.id;
94
 
95
+ if (!campaign.partial) {
96
+ checkbox.checked = true;
97
+ checkbox.disabled = true;
98
+ checkbox.title = "<?php echo $this->__('The campaign applies to all products from your catalogue'); ?>";
99
+ }
100
+
101
  /**
102
  * @type {HTMLLabelElement|Element}
103
  */
app/locale/es_ES/Aplazame_Aplazame.csv CHANGED
@@ -1,7 +1,7 @@
 
1
  "Private API Key","Clave API privada"
2
  "Public API Key","Clave API pública"
3
  "Aplazame Button CSS Selector","Selector CSS del botón de Aplazame"
4
- "Aplazame Button Image","Imagen del botón de Aplazame"
5
  "Automatic invoice generation","Facturar automáticamente"
6
  "Applicable only if the payment was successful.","Genera factura si el pago es correcto."
7
  "Authentication header format is invalid.","La cabecera Authentication es inválida."
@@ -22,3 +22,4 @@
22
  "Aplazame Campaigns","Campañas Aplazame"
23
  "Associate products to selected campaigns","Asociar productos a las campañas seleccionadas"
24
  "Remove products from selected campaigns","Eliminar productos de las campañas seleccionadas"
 
1
+ "Test Mode (Sandbox)","Modo de Pruebas (Sandbox)"
2
  "Private API Key","Clave API privada"
3
  "Public API Key","Clave API pública"
4
  "Aplazame Button CSS Selector","Selector CSS del botón de Aplazame"
 
5
  "Automatic invoice generation","Facturar automáticamente"
6
  "Applicable only if the payment was successful.","Genera factura si el pago es correcto."
7
  "Authentication header format is invalid.","La cabecera Authentication es inválida."
22
  "Aplazame Campaigns","Campañas Aplazame"
23
  "Associate products to selected campaigns","Asociar productos a las campañas seleccionadas"
24
  "Remove products from selected campaigns","Eliminar productos de las campañas seleccionadas"
25
+ "The campaign applies to all products from your catalogue","La campaña aplica a todo el catálogo de productos"
package.xml CHANGED
@@ -1,19 +1,20 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Aplazame_Aplazame</name>
4
- <version>0.4.1</version>
5
  <stability>stable</stability>
6
  <license>GPL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Aplazame, a consumer credit company, offers a payment system that can be used by online buyers to receive funding for their purchases.</summary>
10
  <description>Aplazame, a consumer credit company, offers a payment system that can be used by online buyers to receive funding for their purchases.</description>
11
- <notes>* [fixed] Payment method label for narrow boxes&#xD;
 
12
  </notes>
13
  <authors><author><name>Aplazame</name><user>aplazame</user><email>dev@aplazame.com</email></author></authors>
14
- <date>2016-11-24</date>
15
- <time>14:37:46</time>
16
- <contents><target name="magecommunity"><dir name="Aplazame"><dir name="Aplazame"><dir name="Block"><dir name="AdminHtml"><file name="ProductCampaigns.php" hash="cc4007bf8a21b0beee3f26fb7a50291b"/><file name="ProductsCampaigns.php" hash="4e654f2a4b65979229e2adcedda2f287"/></dir><dir name="Checkout"><dir name="Cart"><file name="Widget.php" hash="1224204293d067c0d3de3e63f2e7bdf9"/></dir><dir name="Onepage"><file name="Billing.php" hash="d908bf39c8555f436f8841ff30b520f1"/><file name="Shipping.php" hash="8968979cc9140f2f6236ee9f2fbafc98"/></dir></dir><dir name="Payment"><file name="Form.php" hash="25e50d6cc49b8cb14f5a2406cdc7d2c3"/><file name="Info.php" hash="eeadafff816256593595d261c9e3b5f8"/><file name="Redirect.php" hash="b585f3542b421e1034a1593a49541bd3"/></dir><dir name="Product"><file name="Widget.php" hash="a0963da7d957f0d022665ebf851cbd46"/></dir></dir><dir name="Helper"><file name="Cart.php" hash="f95a90db86fb4732f7d3ef1fb6a2322a"/><file name="Data.php" hash="35cc7eb331ff48912492cce397918270"/></dir><dir name="Model"><dir name="Api"><file name="Client.php" hash="c5e1ed86d81e7b5dcddad6e928411e5e"/></dir><file name="CampaignsObserver.php" hash="a24df9a5b2c241a25c5c2578e04c2aab"/><file name="Config.php" hash="ecff6c7d937b86802dc6c98139b1d7c4"/><file name="Observer.php" hash="44825f169bd6c5c85d284cf1fd0fdf28"/><file name="Payment.php" hash="f550b95a9e582424ffff6876d5aec94d"/></dir><dir name="controllers"><dir name="AdminHtml"><file name="AplazameController.php" hash="31a80d33439c5c2d36701347556ea2e9"/></dir><file name="ApiController.php" hash="3d37b650de9731d8e2b6556dadb63e98"/><file name="PaymentController.php" hash="d62bacd625b4cc9a4d2ae0af28d447a4"/></dir><dir name="etc"><file name="config.xml" hash="0736b27c56fca3f1f9ab48155c3071cc"/><file name="system.xml" hash="b595707d4b03ec4f29f82c77968ad438"/></dir></dir></dir></target><target name="magelib"><dir name="Aplazame"><dir name="Aplazame"><dir name="Api"><file name="Article.php" hash="f88b4e4d0e472f5e70f10df77d923504"/><dir name="BusinessModel"><file name="Article.php" hash="b2620ae2f806f61feb94a29ffa0f8ef9"/><file name="HistoricalOrder.php" hash="5c86021841845c3af4b8e20b06310989"/></dir><file name="Order.php" hash="2f73b330a8df3a41f925c6b721f69957"/></dir><dir name="BusinessModel"><file name="Address.php" hash="0d59592092e08dfb4d3a8fd08de4ac57"/><file name="Article.php" hash="a34660c185b9808ae84488031b4ef504"/><file name="Checkout.php" hash="97b13eb130bdf15a38a4aeb04e239034"/><file name="Customer.php" hash="4e3b255e589bde0ca6f97c3b35fac80c"/><file name="Order.php" hash="e66fa54a1ca4203abef33be1c7712076"/><file name="ShippingInfo.php" hash="e5f1b9a91b0839094a30c04ec9d8ed86"/></dir><dir name="Http"><file name="ZendClient.php" hash="605e0739e74ad75540c0cb8963a64e88"/></dir></dir><dir name="Sdk"><dir name="Api"><file name="ApiClientException.php" hash="96792d448d909366049192c2a37556ae"/><file name="ApiCommunicationException.php" hash="2f46d905ad859291aa204bdbef4153bc"/><file name="ApiRequest.php" hash="c060290dfa790d2b2b38d120e7abf534"/><file name="ApiServerException.php" hash="90821aed9204104da1983137129bbb16"/><file name="AplazameExceptionInterface.php" hash="ed0cfbeda38fd29403c916418716eb02"/><file name="Client.php" hash="c8bcd8d2a0c410e0b82ea4c0359f308c"/><file name="DeserializeException.php" hash="155f2f9c7af08c89401bd74fd4d95c56"/></dir><dir name="Http"><file name="ClientInterface.php" hash="ea3fe4fa5fe82da131521d84ab4fea22"/><file name="CurlClient.php" hash="28150b98ff950b2e1fcc1b048d637bdc"/><file name="Request.php" hash="a910df86e3c92328b59e7922a4bb1481"/><file name="RequestInterface.php" hash="deb097c359796fdbb08e8a3041728f33"/><file name="Response.php" hash="85e49bf8b02fc7f0174db3bf4dcace94"/><file name="ResponseInterface.php" hash="f21ac2bb3969a54015089718c3652e15"/></dir><dir name="Serializer"><file name="Date.php" hash="ef81948d05ea2982d88cbeb5643904d4"/><file name="Decimal.php" hash="677664df2610ad6e0374d8629ea6d68a"/><file name="JsonSerializable.php" hash="baf92f09f79e92bf9c1df90b324be5b0"/><file name="JsonSerializer.php" hash="95f308cad5cab0a7765246bd156ffe50"/></dir><file name="json_polyfill.php" hash="8472b84afc7fc1c7ea4e1d9c2b5d0343"/></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="aplazame.xml" hash="79024c230729c2757d9b372278411308"/></dir><dir name="template"><dir name="aplazame"><file name="productCampaigns.phtml" hash="8d3cd85e3ad212720153277225db9859"/><file name="productsCampaigns.phtml" hash="03450bb464b6bf48716322183641e57b"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="aplazame.xml" hash="e56ae75dc4088c1590d986904ecee676"/></dir><dir name="template"><dir name="aplazame"><dir name="checkout"><dir name="cart"><file name="widget.phtml" hash="59a69ab5025d94adf08994c35bf68979"/></dir></dir><dir name="payment"><file name="common.phtml" hash="128898cf9895997954ea62da3ce091c9"/><file name="form.phtml" hash="beb98d1ff353008154dc873bfabdb366"/></dir><dir name="product"><file name="widget.phtml" hash="7fb0f731092beeac8d82969df2f0bbfc"/></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir><dir name="es_ES"><file name="Aplazame_Aplazame.csv" hash="2bbbffece8ee09579e94c8e810bfde6a"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Aplazame_Aplazame.xml" hash="d816c618a1829401ca0314c3406482a1"/></dir></target></contents>
17
  <compatible/>
18
  <dependencies><required><php><min>5.2.0</min><max>7.0.0</max></php></required></dependencies>
19
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Aplazame_Aplazame</name>
4
+ <version>0.4.2</version>
5
  <stability>stable</stability>
6
  <license>GPL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Aplazame, a consumer credit company, offers a payment system that can be used by online buyers to receive funding for their purchases.</summary>
10
  <description>Aplazame, a consumer credit company, offers a payment system that can be used by online buyers to receive funding for their purchases.</description>
11
+ <notes>* [fixed] Improve visualization when product is already included in a campaign which applies to the whole catalog.&#xD;
12
+ * [changed] "Sandbox" is now named "Test Mode (Sandbox)"&#xD;
13
  </notes>
14
  <authors><author><name>Aplazame</name><user>aplazame</user><email>dev@aplazame.com</email></author></authors>
15
+ <date>2016-12-23</date>
16
+ <time>09:49:41</time>
17
+ <contents><target name="magecommunity"><dir name="Aplazame"><dir name="Aplazame"><dir name="Block"><dir name="AdminHtml"><file name="ProductCampaigns.php" hash="cc4007bf8a21b0beee3f26fb7a50291b"/><file name="ProductsCampaigns.php" hash="4e654f2a4b65979229e2adcedda2f287"/></dir><dir name="Checkout"><dir name="Cart"><file name="Widget.php" hash="1224204293d067c0d3de3e63f2e7bdf9"/></dir><dir name="Onepage"><file name="Billing.php" hash="d908bf39c8555f436f8841ff30b520f1"/><file name="Shipping.php" hash="8968979cc9140f2f6236ee9f2fbafc98"/></dir></dir><dir name="Payment"><file name="Form.php" hash="25e50d6cc49b8cb14f5a2406cdc7d2c3"/><file name="Info.php" hash="eeadafff816256593595d261c9e3b5f8"/><file name="Redirect.php" hash="b585f3542b421e1034a1593a49541bd3"/></dir><dir name="Product"><file name="Widget.php" hash="a0963da7d957f0d022665ebf851cbd46"/></dir></dir><dir name="Helper"><file name="Cart.php" hash="f95a90db86fb4732f7d3ef1fb6a2322a"/><file name="Data.php" hash="35cc7eb331ff48912492cce397918270"/></dir><dir name="Model"><dir name="Api"><file name="Client.php" hash="c5e1ed86d81e7b5dcddad6e928411e5e"/></dir><file name="CampaignsObserver.php" hash="a24df9a5b2c241a25c5c2578e04c2aab"/><file name="Config.php" hash="ecff6c7d937b86802dc6c98139b1d7c4"/><file name="Observer.php" hash="44825f169bd6c5c85d284cf1fd0fdf28"/><file name="Payment.php" hash="f550b95a9e582424ffff6876d5aec94d"/></dir><dir name="controllers"><dir name="AdminHtml"><file name="AplazameController.php" hash="31a80d33439c5c2d36701347556ea2e9"/></dir><file name="ApiController.php" hash="3d37b650de9731d8e2b6556dadb63e98"/><file name="PaymentController.php" hash="d62bacd625b4cc9a4d2ae0af28d447a4"/></dir><dir name="etc"><file name="config.xml" hash="90454407934a963c8bebac1db9a5cfc1"/><file name="system.xml" hash="5db60da85c7512373ffe43149ccf81ad"/></dir></dir></dir></target><target name="magelib"><dir name="Aplazame"><dir name="Aplazame"><dir name="Api"><file name="Article.php" hash="f88b4e4d0e472f5e70f10df77d923504"/><dir name="BusinessModel"><file name="Article.php" hash="b2620ae2f806f61feb94a29ffa0f8ef9"/><file name="HistoricalOrder.php" hash="5c86021841845c3af4b8e20b06310989"/></dir><file name="Order.php" hash="2f73b330a8df3a41f925c6b721f69957"/></dir><dir name="BusinessModel"><file name="Address.php" hash="0d59592092e08dfb4d3a8fd08de4ac57"/><file name="Article.php" hash="a34660c185b9808ae84488031b4ef504"/><file name="Checkout.php" hash="97b13eb130bdf15a38a4aeb04e239034"/><file name="Customer.php" hash="4e3b255e589bde0ca6f97c3b35fac80c"/><file name="Order.php" hash="e66fa54a1ca4203abef33be1c7712076"/><file name="ShippingInfo.php" hash="e5f1b9a91b0839094a30c04ec9d8ed86"/></dir><dir name="Http"><file name="ZendClient.php" hash="605e0739e74ad75540c0cb8963a64e88"/></dir></dir><dir name="Sdk"><dir name="Api"><file name="ApiClientException.php" hash="96792d448d909366049192c2a37556ae"/><file name="ApiCommunicationException.php" hash="2f46d905ad859291aa204bdbef4153bc"/><file name="ApiRequest.php" hash="c060290dfa790d2b2b38d120e7abf534"/><file name="ApiServerException.php" hash="90821aed9204104da1983137129bbb16"/><file name="AplazameExceptionInterface.php" hash="ed0cfbeda38fd29403c916418716eb02"/><file name="Client.php" hash="c8bcd8d2a0c410e0b82ea4c0359f308c"/><file name="DeserializeException.php" hash="155f2f9c7af08c89401bd74fd4d95c56"/></dir><dir name="Http"><file name="ClientInterface.php" hash="ea3fe4fa5fe82da131521d84ab4fea22"/><file name="CurlClient.php" hash="28150b98ff950b2e1fcc1b048d637bdc"/><file name="Request.php" hash="a910df86e3c92328b59e7922a4bb1481"/><file name="RequestInterface.php" hash="deb097c359796fdbb08e8a3041728f33"/><file name="Response.php" hash="85e49bf8b02fc7f0174db3bf4dcace94"/><file name="ResponseInterface.php" hash="f21ac2bb3969a54015089718c3652e15"/></dir><dir name="Serializer"><file name="Date.php" hash="ef81948d05ea2982d88cbeb5643904d4"/><file name="Decimal.php" hash="677664df2610ad6e0374d8629ea6d68a"/><file name="JsonSerializable.php" hash="baf92f09f79e92bf9c1df90b324be5b0"/><file name="JsonSerializer.php" hash="95f308cad5cab0a7765246bd156ffe50"/></dir><file name="json_polyfill.php" hash="8472b84afc7fc1c7ea4e1d9c2b5d0343"/></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="aplazame.xml" hash="79024c230729c2757d9b372278411308"/></dir><dir name="template"><dir name="aplazame"><file name="productCampaigns.phtml" hash="2ece400970d9efe2d2282056edc79580"/><file name="productsCampaigns.phtml" hash="284b706a86df213d6a4c56b1706d2716"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="aplazame.xml" hash="e56ae75dc4088c1590d986904ecee676"/></dir><dir name="template"><dir name="aplazame"><dir name="checkout"><dir name="cart"><file name="widget.phtml" hash="59a69ab5025d94adf08994c35bf68979"/></dir></dir><dir name="payment"><file name="common.phtml" hash="128898cf9895997954ea62da3ce091c9"/><file name="form.phtml" hash="beb98d1ff353008154dc873bfabdb366"/></dir><dir name="product"><file name="widget.phtml" hash="7fb0f731092beeac8d82969df2f0bbfc"/></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir><dir name="es_ES"><file name="Aplazame_Aplazame.csv" hash="eaf1bd0757120424aee13f28f49c60d2"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Aplazame_Aplazame.xml" hash="d816c618a1829401ca0314c3406482a1"/></dir></target></contents>
18
  <compatible/>
19
  <dependencies><required><php><min>5.2.0</min><max>7.0.0</max></php></required></dependencies>
20
  </package>