Version Notes
Bug fixing release
Download this release
Release Info
Developer | Futurenext |
Extension | Futurenext_Zakeke |
Version | 1.0.0.1 |
Comparing to | |
See all releases |
Code changes from version 1.0.0.0 to 1.0.0.1
app/code/community/Futurenext/Zakeke/Model/Api2/ZakekeEnabled/Rest/Admin/V1.php
CHANGED
@@ -57,6 +57,30 @@ class Futurenext_Zakeke_Model_Api2_ZakekeEnabled_Rest_Admin_V1 extends Futurenex
|
|
57 |
return $res;
|
58 |
}
|
59 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
/**
|
61 |
* Enable a product for Zakeke
|
62 |
*
|
@@ -65,6 +89,8 @@ class Futurenext_Zakeke_Model_Api2_ZakekeEnabled_Rest_Admin_V1 extends Futurenex
|
|
65 |
*/
|
66 |
public function _create(array $data)
|
67 |
{
|
|
|
|
|
68 |
if (!isset($data['sku'])) {
|
69 |
$this->_critical(self::SKU_PARAM_NOT_FOUND);
|
70 |
}
|
@@ -73,16 +99,19 @@ class Futurenext_Zakeke_Model_Api2_ZakekeEnabled_Rest_Admin_V1 extends Futurenex
|
|
73 |
/** @var Futurenext_Zakeke_Model_ZakekeEnabled $zakekeEnabled */
|
74 |
$zakekeEnabled = Mage::getModel('futurenext_zakeke/zakekeEnabled');
|
75 |
$zakekeEnabledId = $zakekeEnabled->getIdFromSku($sku);
|
|
|
76 |
if ($zakekeEnabledId) {
|
|
|
77 |
Mage::log(
|
78 |
'ZakekeEnabled Rest _create: an entity already exist for the Sku ' . $sku . ' with id ' . $zakekeEnabledId
|
79 |
);
|
80 |
-
return
|
81 |
}
|
82 |
$zakekeEnabled->setSku($sku);
|
83 |
|
84 |
try {
|
85 |
$zakekeEnabled->save();
|
|
|
86 |
$this->cleanCache();
|
87 |
} catch (Mage_Core_Exception $e) {
|
88 |
Mage::logException($e);
|
@@ -92,7 +121,7 @@ class Futurenext_Zakeke_Model_Api2_ZakekeEnabled_Rest_Admin_V1 extends Futurenex
|
|
92 |
$this->_critical(self::RESOURCE_UNKNOWN_ERROR);
|
93 |
}
|
94 |
|
95 |
-
return
|
96 |
}
|
97 |
|
98 |
/**
|
57 |
return $res;
|
58 |
}
|
59 |
|
60 |
+
/**
|
61 |
+
* Get resource location
|
62 |
+
*
|
63 |
+
* @param Mage_Core_Model_Abstract $resource
|
64 |
+
* @return string URL
|
65 |
+
*/
|
66 |
+
protected function _getLocation($resource)
|
67 |
+
{
|
68 |
+
/* @var $apiTypeRoute Mage_Api2_Model_Route_ApiType */
|
69 |
+
$apiTypeRoute = Mage::getModel('api2/route_apiType');
|
70 |
+
|
71 |
+
$chain = $apiTypeRoute->chain(
|
72 |
+
new Zend_Controller_Router_Route($this->getConfig()->getRouteWithEntityTypeAction($this->getResourceType()))
|
73 |
+
);
|
74 |
+
$params = array(
|
75 |
+
'api_type' => $this->getRequest()->getApiType(),
|
76 |
+
'id' => $resource->getId(),
|
77 |
+
'sku' => $resource->setSku()
|
78 |
+
);
|
79 |
+
$uri = $chain->assemble($params);
|
80 |
+
|
81 |
+
return '/' . $uri;
|
82 |
+
}
|
83 |
+
|
84 |
/**
|
85 |
* Enable a product for Zakeke
|
86 |
*
|
89 |
*/
|
90 |
public function _create(array $data)
|
91 |
{
|
92 |
+
Mage::log('Zakeke enable for customization ' . json_encode($data));
|
93 |
+
|
94 |
if (!isset($data['sku'])) {
|
95 |
$this->_critical(self::SKU_PARAM_NOT_FOUND);
|
96 |
}
|
99 |
/** @var Futurenext_Zakeke_Model_ZakekeEnabled $zakekeEnabled */
|
100 |
$zakekeEnabled = Mage::getModel('futurenext_zakeke/zakekeEnabled');
|
101 |
$zakekeEnabledId = $zakekeEnabled->getIdFromSku($sku);
|
102 |
+
Mage::log('Made customizable ' . $zakekeEnabledId);
|
103 |
if ($zakekeEnabledId) {
|
104 |
+
$zakekeEnabled->load($zakekeEnabledId);
|
105 |
Mage::log(
|
106 |
'ZakekeEnabled Rest _create: an entity already exist for the Sku ' . $sku . ' with id ' . $zakekeEnabledId
|
107 |
);
|
108 |
+
return $this->_getLocation($zakekeEnabled);
|
109 |
}
|
110 |
$zakekeEnabled->setSku($sku);
|
111 |
|
112 |
try {
|
113 |
$zakekeEnabled->save();
|
114 |
+
Mage::log('Saved model');
|
115 |
$this->cleanCache();
|
116 |
} catch (Mage_Core_Exception $e) {
|
117 |
Mage::logException($e);
|
121 |
$this->_critical(self::RESOURCE_UNKNOWN_ERROR);
|
122 |
}
|
123 |
|
124 |
+
return $this->_getLocation($zakekeEnabled);
|
125 |
}
|
126 |
|
127 |
/**
|
app/code/community/Futurenext/Zakeke/etc/adminhtml.xml
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
<children>
|
19 |
<config>
|
20 |
<children>
|
21 |
-
<futurenext_zakeke module="futurenext_zakeke">
|
22 |
<title>Zakeke Interactive Product Design</title>
|
23 |
</futurenext_zakeke>
|
24 |
</children>
|
18 |
<children>
|
19 |
<config>
|
20 |
<children>
|
21 |
+
<futurenext_zakeke translate="title" module="futurenext_zakeke">
|
22 |
<title>Zakeke Interactive Product Design</title>
|
23 |
</futurenext_zakeke>
|
24 |
</children>
|
app/code/community/Futurenext/Zakeke/etc/system.xml
CHANGED
@@ -44,7 +44,7 @@
|
|
44 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
45 |
</zakekeActive>
|
46 |
|
47 |
-
<zakekeUsername translate="label">
|
48 |
<label>Zakeke username</label>
|
49 |
<sort_order>2</sort_order>
|
50 |
<show_in_default>1</show_in_default>
|
@@ -61,6 +61,7 @@
|
|
61 |
<show_in_website>1</show_in_website>
|
62 |
<show_in_store>1</show_in_store>
|
63 |
<frontend_type>password</frontend_type>
|
|
|
64 |
</zakekePassword>
|
65 |
</fields>
|
66 |
</settings>
|
44 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
45 |
</zakekeActive>
|
46 |
|
47 |
+
<zakekeUsername translate="label comment">
|
48 |
<label>Zakeke username</label>
|
49 |
<sort_order>2</sort_order>
|
50 |
<show_in_default>1</show_in_default>
|
61 |
<show_in_website>1</show_in_website>
|
62 |
<show_in_store>1</show_in_store>
|
63 |
<frontend_type>password</frontend_type>
|
64 |
+
<backend_model>adminhtml/system_config_backend_encrypted</backend_model>
|
65 |
</zakekePassword>
|
66 |
</fields>
|
67 |
</settings>
|
app/locale/it_IT/Futurenext_Zakeke.csv
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
1 |
+
Customize,Personalizza
|
2 |
+
Customization,Personalizzazione
|
3 |
+
"Customization Price","Costo personalizzazione"
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Futurenext_Zakeke</name>
|
4 |
-
<version>1.0.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="https://www.zakeke.com/Contracts/GeneralConditions">Zakeke license</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Innovative cloud platform that allows any Magento store to integrate into the system a 2D and 3D complete customizer of products</summary>
|
10 |
<description>Zakeke is an innovative cloud platform that allows any Magento store to integrate into the system a 2D and 3D complete customizer of products, giving the possibility to customize "live" products for sale to the end customer.</description>
|
11 |
-
<notes>
|
12 |
<authors><author><name>Futurenext</name><user>futurenext</user><email>info@zakeke.com</email></author></authors>
|
13 |
-
<date>2017-03-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magecommunity"><dir name="Futurenext"><dir name="Zakeke"><dir name="Block"><dir name="Adminhtml"><dir name="Catalog"><dir name="Product"><dir name="Composite"><dir name="Fieldset"><file name="Downloadable.php" hash="2d8fb733bc0ba91d9f6663f36489fbd3"/></dir></dir><dir name="Edit"><dir name="Tab"><dir name="Downloadable"><file name="Links.php" hash="346b6dfd7dd8607b67c280350ac9975e"/><file name="Samples.php" hash="93c481ebd2ef25927bd836829d943fae"/></dir><file name="Downloadable.php" hash="f8b9ba9f21da82fdc42aca57b2342440"/></dir></dir></dir></dir><dir name="Sales"><dir name="Items"><dir name="Column"><dir name="Zakeke"><file name="Name.php" hash="6cc64337a5364971f76d56415696cd70"/></dir></dir></dir></dir></dir><file name="CartItemRenderer.php" hash="9ccdff59acc42ada9288e0788dd7860d"/><file name="CheckoutItemRenderer.php" hash="efc02e5ff750861fe849c83e7df24da1"/><dir name="Customize"><file name="Add.php" hash="6d206e080ed91ed1ffbdd7528d89be2f"/><file name="Configure.php" hash="e815ed877af5727bd20289429122107b"/></dir><file name="Customize.php" hash="a338a95a03f9bc85c216f46264e121ce"/><file name="CustomizeButton.php" hash="0289e8754309ed5ba622a4e0ce643d25"/><file name="ModuleChecker.php" hash="8df2615bc87c4e656584ee80a51a9b31"/><dir name="Sales"><dir name="Order"><dir name="Email"><dir name="Items"><dir name="Order"><file name="Default.php" hash="f053f33c788884284d983f9340b8a104"/></dir></dir></dir></dir></dir><file name="SalesItemRenderer.php" hash="e5033cf0e41f399d27d8a4f6e9cad82f"/><file name="View.php" hash="f4f780e2c0e48bc0280bc6980d420da2"/></dir><dir name="Helper"><file name="Data.php" hash="4f4d0e717a12106f094a8ca18612f6e3"/><file name="ZakekeApi.php" hash="0e3cdb32c1feffe7c6f02fb4db1a6e1a"/></dir><dir name="Model"><dir name="Api2"><dir name="Colors"><dir name="Rest"><dir name="Admin"><file name="V1.php" hash="0b1ad3d9656fd5b729d1f7a626359e19"/></dir></dir></dir><file name="Colors.php" hash="f9f004c13ef5357bb3d5e798208e7902"/><dir name="ProductAttribute"><dir name="Rest"><dir name="Admin"><file name="V1.php" hash="40a6a5def798a5d0e8bcee1ac8c8a4d8"/></dir></dir></dir><file name="ProductAttribute.php" hash="97ea0f12646d9f1f1ab6916ed41f04dc"/><dir name="ProductOptions"><dir name="Rest"><dir name="Admin"><file name="V1.php" hash="6c6dd2079f58a654b60c465cc1fbc357"/></dir></dir></dir><file name="ProductOptions.php" hash="5e1234a158723dc5a8e2c3ccf6e152cf"/><dir name="Settings"><dir name="Rest"><dir name="Admin"><file name="V1.php" hash="e982e900acb2a4ac267cdda95c87cd35"/></dir></dir></dir><file name="Settings.php" hash="2f7fa711c00e75d3c4afabb007145c49"/><dir name="ZakekeEnabled"><dir name="Rest"><dir name="Admin"><file name="V1.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php><package><name/><channel>connect.magentocommerce.com/core</channel><min/><max/></package><extension><name>curl</name><min/><max/></extension></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Futurenext_Zakeke</name>
|
4 |
+
<version>1.0.0.1</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="https://www.zakeke.com/Contracts/GeneralConditions">Zakeke license</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Innovative cloud platform that allows any Magento store to integrate into the system a 2D and 3D complete customizer of products</summary>
|
10 |
<description>Zakeke is an innovative cloud platform that allows any Magento store to integrate into the system a 2D and 3D complete customizer of products, giving the possibility to customize "live" products for sale to the end customer.</description>
|
11 |
+
<notes>Bug fixing release</notes>
|
12 |
<authors><author><name>Futurenext</name><user>futurenext</user><email>info@zakeke.com</email></author></authors>
|
13 |
+
<date>2017-03-23</date>
|
14 |
+
<time>17:45:56</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Futurenext"><dir name="Zakeke"><dir name="Block"><dir name="Adminhtml"><dir name="Catalog"><dir name="Product"><dir name="Composite"><dir name="Fieldset"><file name="Downloadable.php" hash="2d8fb733bc0ba91d9f6663f36489fbd3"/></dir></dir><dir name="Edit"><dir name="Tab"><dir name="Downloadable"><file name="Links.php" hash="346b6dfd7dd8607b67c280350ac9975e"/><file name="Samples.php" hash="93c481ebd2ef25927bd836829d943fae"/></dir><file name="Downloadable.php" hash="f8b9ba9f21da82fdc42aca57b2342440"/></dir></dir></dir></dir><dir name="Sales"><dir name="Items"><dir name="Column"><dir name="Zakeke"><file name="Name.php" hash="6cc64337a5364971f76d56415696cd70"/></dir></dir></dir></dir></dir><file name="CartItemRenderer.php" hash="9ccdff59acc42ada9288e0788dd7860d"/><file name="CheckoutItemRenderer.php" hash="efc02e5ff750861fe849c83e7df24da1"/><dir name="Customize"><file name="Add.php" hash="6d206e080ed91ed1ffbdd7528d89be2f"/><file name="Configure.php" hash="e815ed877af5727bd20289429122107b"/></dir><file name="Customize.php" hash="a338a95a03f9bc85c216f46264e121ce"/><file name="CustomizeButton.php" hash="0289e8754309ed5ba622a4e0ce643d25"/><file name="ModuleChecker.php" hash="8df2615bc87c4e656584ee80a51a9b31"/><dir name="Sales"><dir name="Order"><dir name="Email"><dir name="Items"><dir name="Order"><file name="Default.php" hash="f053f33c788884284d983f9340b8a104"/></dir></dir></dir></dir></dir><file name="SalesItemRenderer.php" hash="e5033cf0e41f399d27d8a4f6e9cad82f"/><file name="View.php" hash="f4f780e2c0e48bc0280bc6980d420da2"/></dir><dir name="Helper"><file name="Data.php" hash="4f4d0e717a12106f094a8ca18612f6e3"/><file name="ZakekeApi.php" hash="0e3cdb32c1feffe7c6f02fb4db1a6e1a"/></dir><dir name="Model"><dir name="Api2"><dir name="Colors"><dir name="Rest"><dir name="Admin"><file name="V1.php" hash="0b1ad3d9656fd5b729d1f7a626359e19"/></dir></dir></dir><file name="Colors.php" hash="f9f004c13ef5357bb3d5e798208e7902"/><dir name="ProductAttribute"><dir name="Rest"><dir name="Admin"><file name="V1.php" hash="40a6a5def798a5d0e8bcee1ac8c8a4d8"/></dir></dir></dir><file name="ProductAttribute.php" hash="97ea0f12646d9f1f1ab6916ed41f04dc"/><dir name="ProductOptions"><dir name="Rest"><dir name="Admin"><file name="V1.php" hash="6c6dd2079f58a654b60c465cc1fbc357"/></dir></dir></dir><file name="ProductOptions.php" hash="5e1234a158723dc5a8e2c3ccf6e152cf"/><dir name="Settings"><dir name="Rest"><dir name="Admin"><file name="V1.php" hash="e982e900acb2a4ac267cdda95c87cd35"/></dir></dir></dir><file name="Settings.php" hash="2f7fa711c00e75d3c4afabb007145c49"/><dir name="ZakekeEnabled"><dir name="Rest"><dir name="Admin"><file name="V1.php" hash="b107fafe0fa69827bebadfd66c6274d9"/></dir></dir></dir><file name="ZakekeEnabled.php" hash="0f5c210fa296b30283aa41f500c3e3b9"/></dir><file name="ModuleList.php" hash="929479d45eb4252daaff6e4a40733b09"/><file name="Observer.php" hash="37a1bb6c4e610051c7990bd6f77e42b9"/><dir name="Resource"><file name="Setup.php" hash="42a7681d56fcd5ad06f75a223ef420f1"/><dir name="ZakekeEnabled"><file name="Collection.php" hash="fdadf3c788c4b5e175e4a20501116027"/></dir><file name="ZakekeEnabled.php" hash="f32fb4b25f1f78287a38c3bd170bdbaa"/></dir><file name="ZakekeEnabled.php" hash="9b31e4606dcf8622092f638ca9f3920c"/></dir><dir name="controllers"><file name="CustomizeController.php" hash="9231d14c59e7ba4bb3ea5bbd7236c66f"/><dir name="Zakeke"><file name="ModuleCheckerController.php" hash="b92d1f5b155479a85f358f1356ccdd29"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="22cdf40e6e83327b58f9e97fa17e8f68"/><file name="api2.xml" hash="9af2352582ae62a261d07f58e64d5e77"/><file name="config.xml" hash="e078df0b8d962903d46fd95245afdcc4"/><file name="system.xml" hash="cd8127a7b4db087065bc856bb5b5ca60"/></dir><dir name="sql"><dir name="zakeke_setup"><file name="install-1.0.0.0.php" hash="64a3954b20b3142886446ac432a04b21"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Futurenext_Zakeke.xml" hash="f309795ee4b758943868cb1f7459fb9c"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="js"><dir name="zakeke"><file name="preview.js" hash="a22a32209982d2dda7561cff723b49bb"/></dir></dir><dir name="css"><dir name="zakeke"><file name="productview.css" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="zakeke"><file name="modulechecker.css" hash="e7fd6efc953f7e2aae234607a0a379a8"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="zakeke.xml" hash="d296777d398f6af473adfb8a15477b47"/></dir><dir name="template"><dir name="zakeke"><file name="modulechecker.phtml" hash="7855639fdc8b9511798a30adb60d33d3"/><dir name="sales"><dir name="items"><dir name="column"><dir name="zakeke"><file name="name.phtml" hash="e441a8f732c2d378df0deb88b7f7f5e7"/></dir></dir></dir><dir name="order"><dir name="creditmemo"><dir name="create"><dir name="items"><dir name="renderer"><file name="zakeke.phtml" hash="6294158a08ad56639c3a57a4d88c2f81"/></dir></dir></dir><dir name="view"><dir name="items"><dir name="renderer"><file name="zakeke.phtml" hash="4421194ecc884d934f099a256062cfcb"/></dir></dir></dir></dir><dir name="invoice"><dir name="create"><dir name="items"><dir name="renderer"><file name="zakeke.phtml" hash="74c7b3f6230f25b48dc3eb762eed7b2f"/></dir></dir></dir><dir name="view"><dir name="items"><dir name="renderer"><file name="zakeke.phtml" hash="01cd2347f60718c6238a7e19274d83bb"/></dir></dir></dir></dir><dir name="view"><dir name="items"><dir name="renderer"><file name="zakeke.phtml" hash="867a37a7072be0cba7dc9f7c03cec0d4"/></dir></dir></dir></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="zakeke.xml" hash="d5e2ce6707c4e307857469097caeebda"/></dir><dir name="template"><dir name="zakeke"><dir name="cart"><dir name="item"><file name="default.phtml" hash="76a04053b4e70fcaece89f3b71e594d7"/></dir><file name="minicart.phtml" hash="514c94db61f9cee5503d22ac54df9522"/></dir><dir name="checkout"><dir name="onepage"><dir name="review"><file name="item.phtml" hash="718b4a5f5e765377e0cbbb9a74ebea35"/></dir></dir></dir><dir name="customization"><file name="add.phtml" hash="c647328e435fbe6dbe61e325e7a90f89"/></dir><file name="customize.phtml" hash="5b16967774ef9109760873480f2f23c2"/><file name="customizeButton.phtml" hash="29b7e8e3a29af442ff18f32cdde1d1f6"/><dir name="sales"><dir name="order"><dir name="items"><dir name="renderer"><file name="zakeke.phtml" hash="e7d7aac95595d24719104463d2620f74"/></dir></dir></dir></dir></dir></dir></dir></dir><dir name="rwd"><dir name="default"><dir name="layout"><file name="zakeke.xml" hash=""/></dir></dir></dir></dir></target><target name="mageweb"><dir name="js"><dir name="zakeke"><file name="customize.js" hash="efab393e72ffeedae64002dc1b8c002c"/><file name="jquery.js" hash="105112a8a757f683234e01dec3799022"/><file name="preview.js" hash="a22a32209982d2dda7561cff723b49bb"/></dir></dir></target><target name="magelocale"><dir name="it_IT"><file name="Futurenext_Zakeke.csv" hash="0a8b269e780aa6b01790451945e7e25a"/></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php><package><name/><channel>connect.magentocommerce.com/core</channel><min/><max/></package><extension><name>curl</name><min/><max/></extension></required></dependencies>
|
18 |
</package>
|