Print_Science_Designer_Web_to_Print - Version 1.0.15

Version Notes

Print_Science_Designer_Web_to_Print

Download this release

Release Info

Developer John Weissberg
Extension Print_Science_Designer_Web_to_Print
Version 1.0.15
Comparing to
See all releases


Code changes from version 1.0.14 to 1.0.15

app/code/local/PrintScience/Personalization/Model/ApiGateway.php CHANGED
@@ -1,189 +1,193 @@
1
- <?php
2
- require_once 'xmlrpc/xmlrpc.inc';
3
-
4
- /**
5
- * Gateway to Print Science personalization API
6
- *
7
- */
8
- class PrintScience_Personalization_Model_ApiGateway
9
- {
10
- /**
11
- * Calls beginPersonalization API function and returns response.
12
- *
13
- * @param int $templateId
14
- * @param string $successUrl
15
- * @param string $failUrl
16
- * @param string $cancelUrl
17
- * @return PrintScience_Personalization_Model_ApiGateway_Response_Begin
18
- */
19
- public function beginPersonalization($templateId, $successUrl, $failUrl, $cancelUrl)
20
- {
21
- $apiUrl = Mage::getStoreConfig('catalog/personalization/api_url');
22
- $apiVersion = Mage::getStoreConfig('catalog/personalization/api_version');
23
- $client = new xmlrpc_client($apiUrl);
24
- $function = null;
25
- // check api version
26
- switch($apiVersion)
27
- {
28
- case '1.0.0':
29
- $function = new xmlrpcmsg('beginPersonalization', array(
30
- php_xmlrpc_encode(Mage::getStoreConfig('catalog/personalization/api_username')),
31
- php_xmlrpc_encode(Mage::getStoreConfig('catalog/personalization/api_password')),
32
- php_xmlrpc_encode($templateId),
33
- php_xmlrpc_encode($successUrl),
34
- php_xmlrpc_encode($failUrl),
35
- php_xmlrpc_encode($cancelUrl),
36
- php_xmlrpc_encode('')
37
- ));
38
- break;
39
- case '2.0.0':
40
- $function = new xmlrpcmsg('beginPersonalization', array(
41
- php_xmlrpc_encode(Mage::getStoreConfig('catalog/personalization/api_username')),
42
- php_xmlrpc_encode(Mage::getStoreConfig('catalog/personalization/api_password')),
43
- php_xmlrpc_encode($templateId),
44
- php_xmlrpc_encode($successUrl),
45
- php_xmlrpc_encode($failUrl),
46
- php_xmlrpc_encode($cancelUrl),
47
- php_xmlrpc_encode(''),
48
- php_xmlrpc_encode('en'),
49
- php_xmlrpc_encode(''),
50
- php_xmlrpc_encode('')
51
- ));
52
- break;
53
- case '4.0.0':
54
- $function = new xmlrpcmsg('beginPersonalization', array(
55
- php_xmlrpc_encode(Mage::getStoreConfig('catalog/personalization/api_username')),
56
- php_xmlrpc_encode(Mage::getStoreConfig('catalog/personalization/api_password')),
57
- php_xmlrpc_encode($templateId),
58
- php_xmlrpc_encode($successUrl),
59
- php_xmlrpc_encode($failUrl),
60
- php_xmlrpc_encode($cancelUrl),
61
- php_xmlrpc_encode('')
62
- ));
63
- break;
64
- default:
65
- $function = new xmlrpcmsg('beginPersonalization', array(
66
- php_xmlrpc_encode(Mage::getStoreConfig('catalog/personalization/api_username')),
67
- php_xmlrpc_encode(Mage::getStoreConfig('catalog/personalization/api_password')),
68
- php_xmlrpc_encode($templateId),
69
- php_xmlrpc_encode($successUrl),
70
- php_xmlrpc_encode($failUrl),
71
- php_xmlrpc_encode($cancelUrl),
72
- php_xmlrpc_encode('')
73
- ));
74
- break;
75
- }
76
- $response = $client->send($function);
77
-
78
- return new PrintScience_Personalization_Model_ApiGateway_Response_Begin($response);
79
- }
80
-
81
- /**
82
- * Calls getPreview API function and returns response.
83
- *
84
- * @param string $sessionKey
85
- * @return PrintScience_Personalization_Model_ApiGateway_Response_GetPreview
86
- */
87
- public function getPreview($sessionKey)
88
- {
89
- $client = new xmlrpc_client(Mage::getStoreConfig('catalog/personalization/api_url'));
90
-
91
- $function = new xmlrpcmsg('getPreview', array(
92
- php_xmlrpc_encode($sessionKey)
93
- ));
94
-
95
- $response = $client->send($function);
96
-
97
- return new PrintScience_Personalization_Model_ApiGateway_Response_GetPreview($response);
98
- }
99
-
100
- /**
101
- * Calls endPersonalization API function.
102
- *
103
- * @param string $sessionKey
104
- */
105
- public function endPersonalization($sessionKey)
106
- {
107
- $client = new xmlrpc_client(Mage::getStoreConfig('catalog/personalization/api_url'));
108
-
109
- $function = new xmlrpcmsg('endPersonalization', array(
110
- php_xmlrpc_encode($sessionKey)
111
- ));
112
-
113
- $client->send($function);
114
- }
115
-
116
- /**
117
- * Calls resumePersonalization API function and returns response.
118
- *
119
- * @param int $templateId
120
- * @param string $successUrl
121
- * @param string $failUrl
122
- * @param string $cancelUrl
123
- * @return PrintScience_Personalization_Model_ApiGateway_Response_Begin
124
- */
125
- public function resumePersonalization($sessionKey, $templateId, $successUrl, $failUrl, $cancelUrl)
126
- {
127
- $apiUrl = Mage::getStoreConfig('catalog/personalization/api_url');
128
- $apiVersion = Mage::getStoreConfig('catalog/personalization/api_version');
129
- $client = new xmlrpc_client($apiUrl);
130
- $function = null;
131
- // check api version
132
- switch($apiVersion)
133
- {
134
- case '1.0.0':
135
- $function = new xmlrpcmsg('resumePersonalization', array(
136
- php_xmlrpc_encode(Mage::getStoreConfig('catalog/personalization/api_username')),
137
- php_xmlrpc_encode(Mage::getStoreConfig('catalog/personalization/api_password')),
138
- php_xmlrpc_encode($sessionKey),
139
- php_xmlrpc_encode($templateId),
140
- php_xmlrpc_encode($successUrl),
141
- php_xmlrpc_encode($failUrl),
142
- php_xmlrpc_encode($cancelUrl),
143
- php_xmlrpc_encode('')
144
- ));
145
- break;
146
- case '2.0.0':
147
- $function = new xmlrpcmsg('resumePersonalization', array(
148
- php_xmlrpc_encode(Mage::getStoreConfig('catalog/personalization/api_username')),
149
- php_xmlrpc_encode(Mage::getStoreConfig('catalog/personalization/api_password')),
150
- php_xmlrpc_encode($sessionKey),
151
- php_xmlrpc_encode($templateId),
152
- php_xmlrpc_encode($successUrl),
153
- php_xmlrpc_encode($failUrl),
154
- php_xmlrpc_encode($cancelUrl),
155
- php_xmlrpc_encode(''),
156
- php_xmlrpc_encode('')
157
- ));
158
- break;
159
- case '4.0.0':
160
- $function = new xmlrpcmsg('resumePersonalization', array(
161
- php_xmlrpc_encode(Mage::getStoreConfig('catalog/personalization/api_username')),
162
- php_xmlrpc_encode(Mage::getStoreConfig('catalog/personalization/api_password')),
163
- php_xmlrpc_encode($sessionKey),
164
- php_xmlrpc_encode($templateId),
165
- php_xmlrpc_encode($successUrl),
166
- php_xmlrpc_encode($failUrl),
167
- php_xmlrpc_encode($cancelUrl),
168
- php_xmlrpc_encode(''),
169
- php_xmlrpc_encode('')
170
- ));
171
- break;
172
- default:
173
- $function = new xmlrpcmsg('resumePersonalization', array(
174
- php_xmlrpc_encode(Mage::getStoreConfig('catalog/personalization/api_username')),
175
- php_xmlrpc_encode(Mage::getStoreConfig('catalog/personalization/api_password')),
176
- php_xmlrpc_encode($sessionKey),
177
- php_xmlrpc_encode($templateId),
178
- php_xmlrpc_encode($successUrl),
179
- php_xmlrpc_encode($failUrl),
180
- php_xmlrpc_encode($cancelUrl),
181
- php_xmlrpc_encode('')
182
- ));
183
- break;
184
- }
185
- $response = $client->send($function);
186
-
187
- return new PrintScience_Personalization_Model_ApiGateway_Response_Begin($response);
188
- }
 
 
 
 
189
  }
1
+ <?php
2
+ require_once 'xmlrpc/xmlrpc.inc';
3
+
4
+ /**
5
+ * Gateway to Print Science personalization API
6
+ *
7
+ */
8
+ class PrintScience_Personalization_Model_ApiGateway
9
+ {
10
+ /**
11
+ * Calls beginPersonalization API function and returns response.
12
+ *
13
+ * @param int $templateId
14
+ * @param string $successUrl
15
+ * @param string $failUrl
16
+ * @param string $cancelUrl
17
+ * @return PrintScience_Personalization_Model_ApiGateway_Response_Begin
18
+ */
19
+ public function beginPersonalization($templateId, $successUrl, $failUrl, $cancelUrl)
20
+ {
21
+ $apiUrl = Mage::getStoreConfig('catalog/personalization/api_url');
22
+ $apiVersion = Mage::getStoreConfig('catalog/personalization/api_version');
23
+ $magelocale = Mage::app()->getLocale()->getLocaleCode();
24
+ $localeParts = explode('_',$magelocale);
25
+ $locale=$localeParts[0];
26
+ $client = new xmlrpc_client($apiUrl);
27
+ $function = null;
28
+ // check api version
29
+ switch($apiVersion)
30
+ {
31
+ case '1.0.0':
32
+ $function = new xmlrpcmsg('beginPersonalization', array(
33
+ php_xmlrpc_encode(Mage::getStoreConfig('catalog/personalization/api_username')),
34
+ php_xmlrpc_encode(Mage::getStoreConfig('catalog/personalization/api_password')),
35
+ php_xmlrpc_encode($templateId),
36
+ php_xmlrpc_encode($successUrl),
37
+ php_xmlrpc_encode($failUrl),
38
+ php_xmlrpc_encode($cancelUrl),
39
+ php_xmlrpc_encode('')
40
+ ));
41
+ break;
42
+ case '2.0.0':
43
+ $function = new xmlrpcmsg('beginPersonalization', array(
44
+ php_xmlrpc_encode(Mage::getStoreConfig('catalog/personalization/api_username')),
45
+ php_xmlrpc_encode(Mage::getStoreConfig('catalog/personalization/api_password')),
46
+ php_xmlrpc_encode($templateId),
47
+ php_xmlrpc_encode($successUrl),
48
+ php_xmlrpc_encode($failUrl),
49
+ php_xmlrpc_encode($cancelUrl),
50
+ php_xmlrpc_encode(''),
51
+ php_xmlrpc_encode('en'),
52
+ php_xmlrpc_encode(''),
53
+ php_xmlrpc_encode('')
54
+ ));
55
+ break;
56
+ case '4.0.0':
57
+ $function = new xmlrpcmsg('beginPersonalization', array(
58
+ php_xmlrpc_encode(Mage::getStoreConfig('catalog/personalization/api_username')),
59
+ php_xmlrpc_encode(Mage::getStoreConfig('catalog/personalization/api_password')),
60
+ php_xmlrpc_encode($templateId),
61
+ php_xmlrpc_encode($successUrl),
62
+ php_xmlrpc_encode($failUrl),
63
+ php_xmlrpc_encode($cancelUrl),
64
+ php_xmlrpc_encode(''),
65
+ php_xmlrpc_encode($locale)
66
+ ));
67
+ break;
68
+ default:
69
+ $function = new xmlrpcmsg('beginPersonalization', array(
70
+ php_xmlrpc_encode(Mage::getStoreConfig('catalog/personalization/api_username')),
71
+ php_xmlrpc_encode(Mage::getStoreConfig('catalog/personalization/api_password')),
72
+ php_xmlrpc_encode($templateId),
73
+ php_xmlrpc_encode($successUrl),
74
+ php_xmlrpc_encode($failUrl),
75
+ php_xmlrpc_encode($cancelUrl),
76
+ php_xmlrpc_encode('')
77
+ ));
78
+ break;
79
+ }
80
+ $response = $client->send($function);
81
+
82
+ return new PrintScience_Personalization_Model_ApiGateway_Response_Begin($response);
83
+ }
84
+
85
+ /**
86
+ * Calls getPreview API function and returns response.
87
+ *
88
+ * @param string $sessionKey
89
+ * @return PrintScience_Personalization_Model_ApiGateway_Response_GetPreview
90
+ */
91
+ public function getPreview($sessionKey)
92
+ {
93
+ $client = new xmlrpc_client(Mage::getStoreConfig('catalog/personalization/api_url'));
94
+
95
+ $function = new xmlrpcmsg('getPreview', array(
96
+ php_xmlrpc_encode($sessionKey)
97
+ ));
98
+
99
+ $response = $client->send($function);
100
+
101
+ return new PrintScience_Personalization_Model_ApiGateway_Response_GetPreview($response);
102
+ }
103
+
104
+ /**
105
+ * Calls endPersonalization API function.
106
+ *
107
+ * @param string $sessionKey
108
+ */
109
+ public function endPersonalization($sessionKey)
110
+ {
111
+ $client = new xmlrpc_client(Mage::getStoreConfig('catalog/personalization/api_url'));
112
+
113
+ $function = new xmlrpcmsg('endPersonalization', array(
114
+ php_xmlrpc_encode($sessionKey)
115
+ ));
116
+
117
+ $client->send($function);
118
+ }
119
+
120
+ /**
121
+ * Calls resumePersonalization API function and returns response.
122
+ *
123
+ * @param int $templateId
124
+ * @param string $successUrl
125
+ * @param string $failUrl
126
+ * @param string $cancelUrl
127
+ * @return PrintScience_Personalization_Model_ApiGateway_Response_Begin
128
+ */
129
+ public function resumePersonalization($sessionKey, $templateId, $successUrl, $failUrl, $cancelUrl)
130
+ {
131
+ $apiUrl = Mage::getStoreConfig('catalog/personalization/api_url');
132
+ $apiVersion = Mage::getStoreConfig('catalog/personalization/api_version');
133
+ $client = new xmlrpc_client($apiUrl);
134
+ $function = null;
135
+ // check api version
136
+ switch($apiVersion)
137
+ {
138
+ case '1.0.0':
139
+ $function = new xmlrpcmsg('resumePersonalization', array(
140
+ php_xmlrpc_encode(Mage::getStoreConfig('catalog/personalization/api_username')),
141
+ php_xmlrpc_encode(Mage::getStoreConfig('catalog/personalization/api_password')),
142
+ php_xmlrpc_encode($sessionKey),
143
+ php_xmlrpc_encode($templateId),
144
+ php_xmlrpc_encode($successUrl),
145
+ php_xmlrpc_encode($failUrl),
146
+ php_xmlrpc_encode($cancelUrl),
147
+ php_xmlrpc_encode('')
148
+ ));
149
+ break;
150
+ case '2.0.0':
151
+ $function = new xmlrpcmsg('resumePersonalization', array(
152
+ php_xmlrpc_encode(Mage::getStoreConfig('catalog/personalization/api_username')),
153
+ php_xmlrpc_encode(Mage::getStoreConfig('catalog/personalization/api_password')),
154
+ php_xmlrpc_encode($sessionKey),
155
+ php_xmlrpc_encode($templateId),
156
+ php_xmlrpc_encode($successUrl),
157
+ php_xmlrpc_encode($failUrl),
158
+ php_xmlrpc_encode($cancelUrl),
159
+ php_xmlrpc_encode(''),
160
+ php_xmlrpc_encode('')
161
+ ));
162
+ break;
163
+ case '4.0.0':
164
+ $function = new xmlrpcmsg('resumePersonalization', array(
165
+ php_xmlrpc_encode(Mage::getStoreConfig('catalog/personalization/api_username')),
166
+ php_xmlrpc_encode(Mage::getStoreConfig('catalog/personalization/api_password')),
167
+ php_xmlrpc_encode($sessionKey),
168
+ php_xmlrpc_encode($templateId),
169
+ php_xmlrpc_encode($successUrl),
170
+ php_xmlrpc_encode($failUrl),
171
+ php_xmlrpc_encode($cancelUrl),
172
+ php_xmlrpc_encode(''),
173
+ php_xmlrpc_encode('')
174
+ ));
175
+ break;
176
+ default:
177
+ $function = new xmlrpcmsg('resumePersonalization', array(
178
+ php_xmlrpc_encode(Mage::getStoreConfig('catalog/personalization/api_username')),
179
+ php_xmlrpc_encode(Mage::getStoreConfig('catalog/personalization/api_password')),
180
+ php_xmlrpc_encode($sessionKey),
181
+ php_xmlrpc_encode($templateId),
182
+ php_xmlrpc_encode($successUrl),
183
+ php_xmlrpc_encode($failUrl),
184
+ php_xmlrpc_encode($cancelUrl),
185
+ php_xmlrpc_encode('')
186
+ ));
187
+ break;
188
+ }
189
+ $response = $client->send($function);
190
+
191
+ return new PrintScience_Personalization_Model_ApiGateway_Response_Begin($response);
192
+ }
193
  }
app/code/local/PrintScience/Personalization/Model/Resource/Eav/Mysql4/Setup.php CHANGED
@@ -1,102 +1,102 @@
1
- <?php
2
- /**
3
- * Print Science Product Personalization setup
4
- *
5
- */
6
- class PrintScience_Personalization_Model_Resource_Eav_Mysql4_Setup extends Mage_Eav_Model_Entity_Setup
7
- {
8
- /**
9
- * Prepare personalization attribute values to save
10
- *
11
- * @param array $attr
12
- * @return array
13
- */
14
- protected function _prepareValues($attr)
15
- {
16
- $data = parent::_prepareValues($attr);
17
- $data = array_merge($data, array(
18
- 'frontend_input_renderer' => $this->_getValue($attr, 'input_renderer', ''),
19
- 'is_global' => $this->_getValue($attr, 'global', 1),
20
- 'is_visible' => $this->_getValue($attr, 'visible', 1),
21
- 'is_searchable' => $this->_getValue($attr, 'searchable', 0),
22
- 'is_filterable' => $this->_getValue($attr, 'filterable', 0),
23
- 'is_comparable' => $this->_getValue($attr, 'comparable', 0),
24
- 'is_visible_on_front' => $this->_getValue($attr, 'visible_on_front', 0),
25
- 'is_wysiwyg_enabled' => $this->_getValue($attr, 'wysiwyg_enabled', 0),
26
- 'is_html_allowed_on_front' => $this->_getValue($attr, 'is_html_allowed_on_front', 0),
27
- 'is_visible_in_advanced_search'
28
- => $this->_getValue($attr, 'visible_in_advanced_search', 0),
29
- 'is_filterable_in_search' => $this->_getValue($attr, 'filterable_in_search', 0),
30
- 'used_in_product_listing' => $this->_getValue($attr, 'used_in_product_listing', 0),
31
- 'used_for_sort_by' => $this->_getValue($attr, 'used_for_sort_by', 0),
32
- 'apply_to' => $this->_getValue($attr, 'apply_to', ''),
33
- 'position' => $this->_getValue($attr, 'position', 0),
34
- 'is_configurable' => $this->_getValue($attr, 'is_configurable', 1),
35
- 'is_used_for_promo_rules' => $this->_getValue($attr, 'used_for_promo_rules', 0)
36
- ));
37
- return $data;
38
- }
39
-
40
- /**
41
- * Get entities to setup
42
- *
43
- * @return array
44
- */
45
- public function getDefaultEntities()
46
- {
47
- return array(
48
- 'catalog_product' => array(
49
- 'entity_model' => 'catalog/product',
50
- 'attribute_model' => 'catalog/resource_eav_attribute',
51
- 'table' => 'catalog/product',
52
- 'additional_attribute_table' => 'catalog/eav_attribute',
53
- 'entity_attribute_collection' => 'catalog/product_attribute_collection',
54
- 'attributes' => array(
55
- 'personalization_enabled' => array(
56
- 'group' => 'Personalization',
57
- 'type' => 'int',
58
- 'backend' => '',
59
- 'frontend' => '',
60
- 'label' => 'Enable Personalization',
61
- 'input' => 'boolean',
62
- 'class' => '',
63
- 'source' => '',
64
- 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE,
65
- 'visible' => true,
66
- 'required' => false,
67
- 'user_defined' => false,
68
- 'default' => '',
69
- 'searchable' => false,
70
- 'filterable' => false,
71
- 'comparable' => false,
72
- 'visible_on_front' => false,
73
- 'unique' => false,
74
- 'apply_to' => 'simple',
75
- 'used_in_product_listing' => 1
76
- ),
77
- 'personalization_template_id' => array(
78
- 'group' => 'Personalization',
79
- 'type' => 'varchar',
80
- 'backend' => '',
81
- 'frontend' => '',
82
- 'label' => 'Template ID',
83
- 'input' => 'text',
84
- 'class' => '',
85
- 'source' => '',
86
- 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE,
87
- 'visible' => true,
88
- 'required' => false,
89
- 'user_defined' => false,
90
- 'default' => '',
91
- 'searchable' => false,
92
- 'filterable' => false,
93
- 'comparable' => false,
94
- 'visible_on_front' => false,
95
- 'unique' => false,
96
- 'apply_to' => 'simple'
97
- )
98
- )
99
- )
100
- );
101
- }
102
  }
1
+ <?php
2
+ /**
3
+ * Print Science Product Personalization setup
4
+ *
5
+ */
6
+ class PrintScience_Personalization_Model_Resource_Eav_Mysql4_Setup extends Mage_Eav_Model_Entity_Setup
7
+ {
8
+ /**
9
+ * Prepare personalization attribute values to save
10
+ *
11
+ * @param array $attr
12
+ * @return array
13
+ */
14
+ protected function _prepareValues($attr)
15
+ {
16
+ $data = parent::_prepareValues($attr);
17
+ $data = array_merge($data, array(
18
+ 'frontend_input_renderer' => $this->_getValue($attr, 'input_renderer', ''),
19
+ 'is_global' => $this->_getValue($attr, 'global', 1),
20
+ 'is_visible' => $this->_getValue($attr, 'visible', 1),
21
+ 'is_searchable' => $this->_getValue($attr, 'searchable', 0),
22
+ 'is_filterable' => $this->_getValue($attr, 'filterable', 0),
23
+ 'is_comparable' => $this->_getValue($attr, 'comparable', 0),
24
+ 'is_visible_on_front' => $this->_getValue($attr, 'visible_on_front', 0),
25
+ 'is_wysiwyg_enabled' => $this->_getValue($attr, 'wysiwyg_enabled', 0),
26
+ 'is_html_allowed_on_front' => $this->_getValue($attr, 'is_html_allowed_on_front', 0),
27
+ 'is_visible_in_advanced_search'
28
+ => $this->_getValue($attr, 'visible_in_advanced_search', 0),
29
+ 'is_filterable_in_search' => $this->_getValue($attr, 'filterable_in_search', 0),
30
+ 'used_in_product_listing' => $this->_getValue($attr, 'used_in_product_listing', 0),
31
+ 'used_for_sort_by' => $this->_getValue($attr, 'used_for_sort_by', 0),
32
+ 'apply_to' => $this->_getValue($attr, 'apply_to', ''),
33
+ 'position' => $this->_getValue($attr, 'position', 0),
34
+ 'is_configurable' => $this->_getValue($attr, 'is_configurable', 1),
35
+ 'is_used_for_promo_rules' => $this->_getValue($attr, 'used_for_promo_rules', 0)
36
+ ));
37
+ return $data;
38
+ }
39
+
40
+ /**
41
+ * Get entities to setup
42
+ *
43
+ * @return array
44
+ */
45
+ public function getDefaultEntities()
46
+ {
47
+ return array(
48
+ 'catalog_product' => array(
49
+ 'entity_model' => 'catalog/product',
50
+ 'attribute_model' => 'catalog/resource_eav_attribute',
51
+ 'table' => 'catalog/product',
52
+ 'additional_attribute_table' => 'catalog/eav_attribute',
53
+ 'entity_attribute_collection' => 'catalog/product_attribute_collection',
54
+ 'attributes' => array(
55
+ 'personalization_enabled' => array(
56
+ 'group' => 'Personalization',
57
+ 'type' => 'int',
58
+ 'backend' => '',
59
+ 'frontend' => '',
60
+ 'label' => 'Enable Personalization',
61
+ 'input' => 'boolean',
62
+ 'class' => '',
63
+ 'source' => '',
64
+ 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE,
65
+ 'visible' => true,
66
+ 'required' => false,
67
+ 'user_defined' => false,
68
+ 'default' => '',
69
+ 'searchable' => false,
70
+ 'filterable' => false,
71
+ 'comparable' => false,
72
+ 'visible_on_front' => false,
73
+ 'unique' => false,
74
+ 'apply_to' => 'simple',
75
+ 'used_in_product_listing' => 1
76
+ ),
77
+ 'personalization_template_id' => array(
78
+ 'group' => 'Personalization',
79
+ 'type' => 'varchar',
80
+ 'backend' => '',
81
+ 'frontend' => '',
82
+ 'label' => 'Product ID',
83
+ 'input' => 'text',
84
+ 'class' => '',
85
+ 'source' => '',
86
+ 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE,
87
+ 'visible' => true,
88
+ 'required' => false,
89
+ 'user_defined' => false,
90
+ 'default' => '',
91
+ 'searchable' => false,
92
+ 'filterable' => false,
93
+ 'comparable' => false,
94
+ 'visible_on_front' => false,
95
+ 'unique' => false,
96
+ 'apply_to' => 'simple'
97
+ )
98
+ )
99
+ )
100
+ );
101
+ }
102
  }
app/code/local/PrintScience/Personalization/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <PrintScience_Personalization>
5
- <version>1.0.14</version>
6
  </PrintScience_Personalization>
7
  </modules>
8
  <frontend>
2
  <config>
3
  <modules>
4
  <PrintScience_Personalization>
5
+ <version>1.0.15</version>
6
  </PrintScience_Personalization>
7
  </modules>
8
  <frontend>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Print_Science_Designer_Web_to_Print</name>
4
- <version>1.0.14</version>
5
  <stability>stable</stability>
6
  <license>OSL v3.0</license>
7
  <channel>community</channel>
@@ -10,9 +10,9 @@
10
  <description>Print_Science_Designer_Web_to_Print</description>
11
  <notes>Print_Science_Designer_Web_to_Print</notes>
12
  <authors><author><name>John Weissberg</name><user>johnwwweissberg</user><email>jw@print-science.com</email></author></authors>
13
- <date>2013-10-01</date>
14
- <time>09:53:01</time>
15
- <contents><target name="magelocal"><dir><dir name="PrintScience"><dir name="Personalization"><dir name="Block"><dir name="Adminhtml"><dir name="Sales"><dir name="Order"><dir name="View"><dir name="Items"><file name="Renderer.php" hash="e9a0dcb549311ea6f4e3992bbc9a4b5c"/></dir></dir></dir></dir></dir><dir name="Checkout"><dir name="Cart"><dir name="Item"><file name="Renderer.php" hash="ed6e20240327913534ae3d93debe5101"/></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="cd3c2c919469c3ad244bb412892a7462"/><file name="Order.php" hash="ba50cbfb5f647cbca2deae91153db9b7"/><file name="Output.php" hash="3f173352807815abaf443da359de935e"/><file name="Quote.php" hash="d14fbe62e2a96e4aede13082c16dda30"/><file name="Session.php" hash="0236f26208780df75ca780d40edbe351"/></dir><dir name="Model"><dir name="ApiGateway"><dir name="Response"><file name="Abstract.php" hash="66667fce4c92782faf1d1a92f4c3e339"/><file name="Begin.php" hash="451d64c86ef6aa542ae7cf5949b1b627"/><file name="GetPreview.php" hash="5801403f4c511aa0a97b8273a712e407"/></dir></dir><file name="ApiGateway.php" hash="1893c8252ac1eb4f877da99d5aa81d65"/><file name="Observer.php" hash="8aff4eadf568df85125ec2340599e720"/><dir name="Override"><dir name="Checkout"><file name="Cart.php" hash="ccece0a4e9fffd6d4b7f1b1a8a97dbd3"/></dir><dir name="Sales"><file name="Quote.php" hash="58083e79ec32db5ea22e0fa61f3a4bd7"/></dir></dir><dir name="Resource"><dir name="Eav"><dir name="Mysql4"><file name="Setup.php" hash="0b1f152cf26c58a92efe4165dc9b3803"/></dir></dir></dir><dir name="System"><dir name="Config"><dir name="Backend"><file name="ApiUrl.php" hash="34eb488ef178104966397f425625534d"/></dir><dir name="Source"><file name="ApiVersion.php" hash="e0248a29ebc88171b7fb51bdbabaca8b"/><file name="WindowType.php" hash="1af16df72f4fcfe959f6f091cd2f6821"/></dir></dir></dir></dir><dir name="controllers"><file name="IndexController.php" hash="c266982327554278526fc2bc02fa2820"/></dir><dir name="etc"><file name="config.xml" hash="25e2f94590baeddd2aaad258b2cedbc7"/><file name="system.xml" hash="ea5d1935373ddfef8935d5cd26c53066"/></dir><dir name="sql"><dir name="printscience_personalization_setup"><file name="mysql4-install-1.0.3.php" hash="7895f0369177cb6dab9911d7820647b4"/><file name="mysql4-upgrade-1.0.3-1.0.4.php" hash="d952675034fdd05650ef978dccbc05fd"/><file name="mysql4-upgrade-1.0.8-1.0.9.php" hash="2e7cd11df78d3742d95f5264a2f34f07"/></dir></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="printscience_personalization"><dir name="catalog"><dir name="product"><file name="list.phtml" hash="df34148e4bf01000bb445a02e887b8a6"/><dir name="view"><file name="addtocart.phtml" hash="ee0af223cca8c873492e2e9624953879"/><file name="media.phtml" hash="c1350af91c896b3a621a4ddc9bb9e219"/></dir><file name="view.phtml" hash="bc39bfa989142e868f2283476c767c2a"/></dir></dir><dir name="checkout"><dir name="cart"><dir name="item"><file name="default.phtml" hash="f36d9b822f54a543fcbcc7af06326379"/></dir></dir><file name="cart.phtml" hash="e89ff28600d85d6ecaa4ef2254c6852b"/></dir></dir></dir><dir name="layout"><file name="printscience_personalization.xml" hash="762502407374156d41802de045d780e0"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="printscience_personalization"><dir name="sales"><dir name="order"><dir name="view"><dir name="items"><dir name="renderer"><file name="default.phtml" hash="5b6bcdd9bd94afda867429707dd786d3"/></dir></dir></dir></dir></dir></dir></dir><dir name="layout"><file name="printscience_personalization.xml" hash="d0934cc5cfaca9e2d6c687f2fb866943"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="PrintScience_Personalization.xml" hash="5f5c39c5b01e828137125d057d04a655"/></dir></target><target name="magelocale"><dir name="en_US"><file name="PrintScience_Personalization.csv" hash="fc8365124f21bddca4dfac3d3dbf5b7f"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="printscience_personalization"><file name="jquery-1.7.2.min.js" hash="acc0adc6c188845a409bf158d2de4451"/><file name="modalPopLite.css" hash="32dc2c9142fff0c6221c62e3f95b8275"/><file name="modalPopLite.min.js" hash="255d501be44d6c7ac54aa4226d1ce314"/></dir></dir></dir></dir></target><target name="magelib"><dir name="xmlrpc"><file name="xmlrpc.inc" hash="55ecb2a9f7fc20d53a7b4da9d885e26b"/></dir></target><target name="mage"><dir name="js"><dir name="printscience_personalization"><file name="gallery.css" hash="eccacd49a35d68ef25bc1bf8e292fe98"/><file name="gallery.js" hash="d1ce93b3cf8ef950fef1097636f3205e"/><dir name="jquery"><dir name="fancybox"><file name="blank.gif" hash="325472601571f31e1bf00674c368d335"/><file name="fancy_close.png" hash="6e2879a324a76e9972ebc98201aae1d8"/><file name="fancy_loading.png" hash="b1d54c240cf06e7f41e372d56919b738"/><file name="fancy_nav_left.png" hash="3f3e406102152cd8236383568a40ba35"/><file name="fancy_nav_right.png" hash="216e4bde5bddeeaa60dc3d692890a68e"/><file name="fancy_shadow_e.png" hash="fd4f491080d29fade5080877f1ba4c8b"/><file name="fancy_shadow_n.png" hash="18cde16379b2ceadef714d9b346d09ec"/><file name="fancy_shadow_ne.png" hash="63adf788acf193d4e4f3642d7d793125"/><file name="fancy_shadow_nw.png" hash="c820c878aedb7a7f9ebd7135a58e7c65"/><file name="fancy_shadow_s.png" hash="9b9e5c888028aaef40fe5b6a363f1e29"/><file name="fancy_shadow_se.png" hash="a8afd5a008884380ee712d177105268f"/><file name="fancy_shadow_sw.png" hash="f81cc0fee5581d76ad3cebe47e7e791b"/><file name="fancy_shadow_w.png" hash="59b0e63eb059e58d932cfd53da4d87e6"/><file name="fancy_title_left.png" hash="1582ac2d3bef6a6445bf02ceca2741cd"/><file name="fancy_title_main.png" hash="38dad6c1ed4bdc81c0bec721b2deb8c2"/><file name="fancy_title_over.png" hash="b886fd165d4b7ac77d41fb52d87ffc60"/><file name="fancy_title_right.png" hash="6cbe0c935511e7f9a2555ccb6a7324c4"/><file name="fancybox-x.png" hash="168696d8a694214090ef90e029cdf393"/><file name="fancybox-y.png" hash="36a58859beb9a6b19322a37466b9f78e"/><file name="fancybox.png" hash="11e57e492ee0311540967cc7a1e6e3e2"/><file name="jquery.easing-1.3.pack.js" hash="def257dbb0ab805c4996fd8abb1a6b49"/><file name="jquery.fancybox-1.3.4.css" hash="4638ce99ef00cf62bfb22d230f9924b8"/><file name="jquery.fancybox-1.3.4.pack.js" hash="8bc36a08c46719377528d962966ce37c"/><file name="jquery.mousewheel-3.0.4.pack.js" hash="3b0a821567b463e70bcc1e90ed2bc9b6"/></dir><file name="jquery-1.4.2.min.js" hash="b80a2154ce061c8242031d9a4892c5a6"/><dir name="jquery.cycle"><file name="jquery.cycle.lite.min.js" hash="0c4a7571c05a6ada90b93e826e7f9f6e"/></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Print_Science_Designer_Web_to_Print</name>
4
+ <version>1.0.15</version>
5
  <stability>stable</stability>
6
  <license>OSL v3.0</license>
7
  <channel>community</channel>
10
  <description>Print_Science_Designer_Web_to_Print</description>
11
  <notes>Print_Science_Designer_Web_to_Print</notes>
12
  <authors><author><name>John Weissberg</name><user>johnwwweissberg</user><email>jw@print-science.com</email></author></authors>
13
+ <date>2014-01-20</date>
14
+ <time>07:26:29</time>
15
+ <contents><target name="magelocal"><dir name="PrintScience"><dir name="Personalization"><dir name="Block"><dir name="Adminhtml"><dir name="Sales"><dir name="Order"><dir name="View"><dir name="Items"><file name="Renderer.php" hash="e9a0dcb549311ea6f4e3992bbc9a4b5c"/></dir></dir></dir></dir></dir><dir name="Checkout"><dir name="Cart"><dir name="Item"><file name="Renderer.php" hash="ed6e20240327913534ae3d93debe5101"/></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="cd3c2c919469c3ad244bb412892a7462"/><file name="Order.php" hash="ba50cbfb5f647cbca2deae91153db9b7"/><file name="Output.php" hash="3f173352807815abaf443da359de935e"/><file name="Quote.php" hash="d14fbe62e2a96e4aede13082c16dda30"/><file name="Session.php" hash="0236f26208780df75ca780d40edbe351"/></dir><dir name="Model"><dir name="ApiGateway"><dir name="Response"><file name="Abstract.php" hash="66667fce4c92782faf1d1a92f4c3e339"/><file name="Begin.php" hash="451d64c86ef6aa542ae7cf5949b1b627"/><file name="GetPreview.php" hash="5801403f4c511aa0a97b8273a712e407"/></dir></dir><file name="ApiGateway.php" hash="c88d8c42d0e3745596ca2a39471c73d3"/><file name="Observer.php" hash="8aff4eadf568df85125ec2340599e720"/><dir name="Override"><dir name="Checkout"><file name="Cart.php" hash="ccece0a4e9fffd6d4b7f1b1a8a97dbd3"/></dir><dir name="Sales"><file name="Quote.php" hash="58083e79ec32db5ea22e0fa61f3a4bd7"/></dir></dir><dir name="Resource"><dir name="Eav"><dir name="Mysql4"><file name="Setup.php" hash="73bca1105b8c0fa4462823ac6aa2c59b"/></dir></dir></dir><dir name="System"><dir name="Config"><dir name="Backend"><file name="ApiUrl.php" hash="34eb488ef178104966397f425625534d"/></dir><dir name="Source"><file name="ApiVersion.php" hash="e0248a29ebc88171b7fb51bdbabaca8b"/><file name="WindowType.php" hash="1af16df72f4fcfe959f6f091cd2f6821"/></dir></dir></dir></dir><dir name="controllers"><file name="IndexController.php" hash="c266982327554278526fc2bc02fa2820"/></dir><dir name="etc"><file name="config.xml" hash="e7008fe053b55655d44ede86ce5623db"/><file name="system.xml" hash="ea5d1935373ddfef8935d5cd26c53066"/></dir><dir name="sql"><dir name="printscience_personalization_setup"><file name="mysql4-install-1.0.3.php" hash="7895f0369177cb6dab9911d7820647b4"/><file name="mysql4-upgrade-1.0.3-1.0.4.php" hash="d952675034fdd05650ef978dccbc05fd"/><file name="mysql4-upgrade-1.0.8-1.0.9.php" hash="2e7cd11df78d3742d95f5264a2f34f07"/></dir></dir></dir></dir></target><target name="magelib"><dir name="xmlrpc"><file name="xmlrpc.inc" hash="55ecb2a9f7fc20d53a7b4da9d885e26b"/></dir></target><target name="mage"><dir name="js"><dir name="printscience_personalization"><file name="gallery.css" hash="eccacd49a35d68ef25bc1bf8e292fe98"/><file name="gallery.js" hash="d1ce93b3cf8ef950fef1097636f3205e"/><dir name="jquery"><dir name="fancybox"><file name="blank.gif" hash="325472601571f31e1bf00674c368d335"/><file name="fancy_close.png" hash="6e2879a324a76e9972ebc98201aae1d8"/><file name="fancy_loading.png" hash="b1d54c240cf06e7f41e372d56919b738"/><file name="fancy_nav_left.png" hash="3f3e406102152cd8236383568a40ba35"/><file name="fancy_nav_right.png" hash="216e4bde5bddeeaa60dc3d692890a68e"/><file name="fancy_shadow_e.png" hash="fd4f491080d29fade5080877f1ba4c8b"/><file name="fancy_shadow_n.png" hash="18cde16379b2ceadef714d9b346d09ec"/><file name="fancy_shadow_ne.png" hash="63adf788acf193d4e4f3642d7d793125"/><file name="fancy_shadow_nw.png" hash="c820c878aedb7a7f9ebd7135a58e7c65"/><file name="fancy_shadow_s.png" hash="9b9e5c888028aaef40fe5b6a363f1e29"/><file name="fancy_shadow_se.png" hash="a8afd5a008884380ee712d177105268f"/><file name="fancy_shadow_sw.png" hash="f81cc0fee5581d76ad3cebe47e7e791b"/><file name="fancy_shadow_w.png" hash="59b0e63eb059e58d932cfd53da4d87e6"/><file name="fancy_title_left.png" hash="1582ac2d3bef6a6445bf02ceca2741cd"/><file name="fancy_title_main.png" hash="38dad6c1ed4bdc81c0bec721b2deb8c2"/><file name="fancy_title_over.png" hash="b886fd165d4b7ac77d41fb52d87ffc60"/><file name="fancy_title_right.png" hash="6cbe0c935511e7f9a2555ccb6a7324c4"/><file name="fancybox-x.png" hash="168696d8a694214090ef90e029cdf393"/><file name="fancybox-y.png" hash="36a58859beb9a6b19322a37466b9f78e"/><file name="fancybox.png" hash="11e57e492ee0311540967cc7a1e6e3e2"/><file name="jquery.easing-1.3.pack.js" hash="def257dbb0ab805c4996fd8abb1a6b49"/><file name="jquery.fancybox-1.3.4.css" hash="4638ce99ef00cf62bfb22d230f9924b8"/><file name="jquery.fancybox-1.3.4.pack.js" hash="8bc36a08c46719377528d962966ce37c"/><file name="jquery.mousewheel-3.0.4.pack.js" hash="3b0a821567b463e70bcc1e90ed2bc9b6"/></dir><file name="jquery-1.4.2.min.js" hash="b80a2154ce061c8242031d9a4892c5a6"/><dir name="jquery.cycle"><file name="jquery.cycle.lite.min.js" hash="0c4a7571c05a6ada90b93e826e7f9f6e"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="printscience_personalization.xml" hash="d0934cc5cfaca9e2d6c687f2fb866943"/></dir><dir name="template"><dir name="printscience_personalization"><dir name="sales"><dir name="order"><dir name="view"><dir name="items"><dir name="renderer"><file name="default.phtml" hash="5b6bcdd9bd94afda867429707dd786d3"/></dir></dir></dir></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="printscience_personalization.xml" hash="762502407374156d41802de045d780e0"/></dir><dir name="template"><dir name="printscience_personalization"><dir name="catalog"><dir name="product"><file name="list.phtml" hash="df34148e4bf01000bb445a02e887b8a6"/><dir name="view"><file name="addtocart.phtml" hash="ee0af223cca8c873492e2e9624953879"/><file name="media.phtml" hash="c1350af91c896b3a621a4ddc9bb9e219"/></dir><file name="view.phtml" hash="bc39bfa989142e868f2283476c767c2a"/></dir></dir><dir name="checkout"><dir name="cart"><dir name="item"><file name="default.phtml" hash="f36d9b822f54a543fcbcc7af06326379"/></dir></dir><file name="cart.phtml" hash="e89ff28600d85d6ecaa4ef2254c6852b"/></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="printscience_personalization"><file name="jquery-1.7.2.min.js" hash="acc0adc6c188845a409bf158d2de4451"/><file name="modalPopLite.css" hash="32dc2c9142fff0c6221c62e3f95b8275"/><file name="modalPopLite.min.js" hash="255d501be44d6c7ac54aa4226d1ce314"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="PrintScience_Personalization.xml" hash="5f5c39c5b01e828137125d057d04a655"/></dir></target><target name="magelocale"><dir name="en_US"><file name="PrintScience_Personalization.csv" hash="fc8365124f21bddca4dfac3d3dbf5b7f"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>