YOOCHOOSE - Version 1.1.0

Version Notes

Added configuration options for the used scenarios

Download this release

Release Info

Developer Magento Core Team
Extension YOOCHOOSE
Version 1.1.0
Comparing to
See all releases


Code changes from version 1.0.0 to 1.1.0

app/code/community/AvS/Yoochoose/Block/Crosssell.php CHANGED
@@ -35,7 +35,7 @@ class AvS_Yoochoose_Block_Crosssell extends Mage_Checkout_Block_Cart_Crosssell
35
  }
36
 
37
  if (count($this->_itemArray) < $api->getMaxNumberProducts()) {
38
- $scenario = AvS_Yoochoose_Model_Api_Recommendation::SCENARIO_ALSO_PURCHASED;
39
  $this->_itemArray = $api->mergeItemArrays(
40
  $this->_itemArray,
41
  $api->getRecommendedProducts($scenario)
35
  }
36
 
37
  if (count($this->_itemArray) < $api->getMaxNumberProducts()) {
38
+ $scenario = Mage::getStoreConfig('yoochoose/crossselling/scenario');
39
  $this->_itemArray = $api->mergeItemArrays(
40
  $this->_itemArray,
41
  $api->getRecommendedProducts($scenario)
app/code/community/AvS/Yoochoose/Block/Related.php CHANGED
@@ -35,7 +35,7 @@ class AvS_Yoochoose_Block_Related extends Mage_Catalog_Block_Product_List_Relate
35
  }
36
 
37
  if (count($this->_itemArray) < $api->getMaxNumberProducts()) {
38
- $scenario = AvS_Yoochoose_Model_Api_Recommendation::SCENARIO_ALSO_PURCHASED;
39
  $this->_itemArray = $api->mergeItemArrays(
40
  $this->_itemArray,
41
  $api->getRecommendedProducts($scenario)
35
  }
36
 
37
  if (count($this->_itemArray) < $api->getMaxNumberProducts()) {
38
+ $scenario = Mage::getStoreConfig('yoochoose/related/scenario');
39
  $this->_itemArray = $api->mergeItemArrays(
40
  $this->_itemArray,
41
  $api->getRecommendedProducts($scenario)
app/code/community/AvS/Yoochoose/Block/Upsell.php CHANGED
@@ -35,7 +35,7 @@ class AvS_Yoochoose_Block_Upsell extends Mage_Catalog_Block_Product_List_Upsell
35
  }
36
 
37
  if (count($this->_itemArray) < $api->getMaxNumberProducts()) {
38
- $scenario = AvS_Yoochoose_Model_Api_Recommendation::SCENARIO_ALSO_CLICKED;
39
  $this->_itemArray = $api->mergeItemArrays(
40
  $this->_itemArray,
41
  $api->getRecommendedProducts($scenario)
35
  }
36
 
37
  if (count($this->_itemArray) < $api->getMaxNumberProducts()) {
38
+ $scenario = Mage::getStoreConfig('yoochoose/upselling/scenario');
39
  $this->_itemArray = $api->mergeItemArrays(
40
  $this->_itemArray,
41
  $api->getRecommendedProducts($scenario)
app/code/community/AvS/Yoochoose/etc/config.xml CHANGED
@@ -3,7 +3,7 @@
3
 
4
  <modules>
5
  <AvS_Yoochoose>
6
- <version>1.0.0</version>
7
  </AvS_Yoochoose>
8
  </modules>
9
 
@@ -148,16 +148,19 @@
148
  </general>
149
  <crossselling>
150
  <display_yoochoose_recommendations>0</display_yoochoose_recommendations>
 
151
  <prefer_manual_connections>1</prefer_manual_connections>
152
  <max_count>4</max_count>
153
  </crossselling>
154
  <upselling>
155
  <display_yoochoose_recommendations>0</display_yoochoose_recommendations>
 
156
  <prefer_manual_connections>1</prefer_manual_connections>
157
  <max_count>4</max_count>
158
  </upselling>
159
  <related>
160
  <display_yoochoose_recommendations>0</display_yoochoose_recommendations>
 
161
  <prefer_manual_connections>1</prefer_manual_connections>
162
  <max_count>4</max_count>
163
  </related>
3
 
4
  <modules>
5
  <AvS_Yoochoose>
6
+ <version>1.1.0</version>
7
  </AvS_Yoochoose>
8
  </modules>
9
 
148
  </general>
149
  <crossselling>
150
  <display_yoochoose_recommendations>0</display_yoochoose_recommendations>
151
+ <scenario>also_purchased</scenario>
152
  <prefer_manual_connections>1</prefer_manual_connections>
153
  <max_count>4</max_count>
154
  </crossselling>
155
  <upselling>
156
  <display_yoochoose_recommendations>0</display_yoochoose_recommendations>
157
+ <scenario>also_clicked</scenario>
158
  <prefer_manual_connections>1</prefer_manual_connections>
159
  <max_count>4</max_count>
160
  </upselling>
161
  <related>
162
  <display_yoochoose_recommendations>0</display_yoochoose_recommendations>
163
+ <scenario>top_selling</scenario>
164
  <prefer_manual_connections>1</prefer_manual_connections>
165
  <max_count>4</max_count>
166
  </related>
app/code/community/AvS/Yoochoose/etc/system.xml CHANGED
@@ -100,6 +100,14 @@
100
  <show_in_website>1</show_in_website>
101
  <show_in_store>1</show_in_store>
102
  </display_yoochoose_recommendations>
 
 
 
 
 
 
 
 
103
  <prefer_manual_connections translate="label,comment">
104
  <label>Prefer manually entered Connections</label>
105
  <frontend_type>select</frontend_type>
@@ -136,6 +144,14 @@
136
  <show_in_website>1</show_in_website>
137
  <show_in_store>1</show_in_store>
138
  </display_yoochoose_recommendations>
 
 
 
 
 
 
 
 
139
  <prefer_manual_connections translate="label,comment">
140
  <label>Prefer manually entered Connections</label>
141
  <frontend_type>select</frontend_type>
@@ -172,6 +188,14 @@
172
  <show_in_website>1</show_in_website>
173
  <show_in_store>1</show_in_store>
174
  </display_yoochoose_recommendations>
 
 
 
 
 
 
 
 
175
  <prefer_manual_connections translate="label,comment">
176
  <label>Prefer manually entered Connections</label>
177
  <frontend_type>select</frontend_type>
100
  <show_in_website>1</show_in_website>
101
  <show_in_store>1</show_in_store>
102
  </display_yoochoose_recommendations>
103
+ <scenario translate="label">
104
+ <label>Scenario used</label>
105
+ <frontend_type>text</frontend_type>
106
+ <sort_order>15</sort_order>
107
+ <show_in_default>1</show_in_default>
108
+ <show_in_website>1</show_in_website>
109
+ <show_in_store>1</show_in_store>
110
+ </scenario>
111
  <prefer_manual_connections translate="label,comment">
112
  <label>Prefer manually entered Connections</label>
113
  <frontend_type>select</frontend_type>
144
  <show_in_website>1</show_in_website>
145
  <show_in_store>1</show_in_store>
146
  </display_yoochoose_recommendations>
147
+ <scenario translate="label">
148
+ <label>Scenario used</label>
149
+ <frontend_type>text</frontend_type>
150
+ <sort_order>15</sort_order>
151
+ <show_in_default>1</show_in_default>
152
+ <show_in_website>1</show_in_website>
153
+ <show_in_store>1</show_in_store>
154
+ </scenario>
155
  <prefer_manual_connections translate="label,comment">
156
  <label>Prefer manually entered Connections</label>
157
  <frontend_type>select</frontend_type>
188
  <show_in_website>1</show_in_website>
189
  <show_in_store>1</show_in_store>
190
  </display_yoochoose_recommendations>
191
+ <scenario translate="label">
192
+ <label>Scenario used</label>
193
+ <frontend_type>text</frontend_type>
194
+ <sort_order>15</sort_order>
195
+ <show_in_default>1</show_in_default>
196
+ <show_in_website>1</show_in_website>
197
+ <show_in_store>1</show_in_store>
198
+ </scenario>
199
  <prefer_manual_connections translate="label,comment">
200
  <label>Prefer manually entered Connections</label>
201
  <frontend_type>select</frontend_type>
app/locale/de_DE/AvS_Yoochoose.csv CHANGED
@@ -19,6 +19,7 @@
19
  "Display Yoochoose Recommendations in Crossselling Block","Yoochoose-Empfehlungen im Cross-Selling-Block anzeigen"
20
  "Display Yoochoose Recommendations in Upselling Block","Yoochoose-Empfehlungen im Up-Selling-Block anzeigen"
21
  "Display Yoochoose Recommendations in Related Products Block","Yoochoose-Empfehlungen im Ähnliche-Produkte-Block anzeigen"
 
22
  "Prefer manually entered Connections","Manuell angelegte Verknüpfungen bevorzugt darstellen"
23
  "Don't display otherwise","Andernfalls nicht darstellen"
24
  "Max count of recommendations","Maximale Anzahl Verknüpfungen"
19
  "Display Yoochoose Recommendations in Crossselling Block","Yoochoose-Empfehlungen im Cross-Selling-Block anzeigen"
20
  "Display Yoochoose Recommendations in Upselling Block","Yoochoose-Empfehlungen im Up-Selling-Block anzeigen"
21
  "Display Yoochoose Recommendations in Related Products Block","Yoochoose-Empfehlungen im Ähnliche-Produkte-Block anzeigen"
22
+ "Scenario used","Verwendetes Szenario"
23
  "Prefer manually entered Connections","Manuell angelegte Verknüpfungen bevorzugt darstellen"
24
  "Don't display otherwise","Andernfalls nicht darstellen"
25
  "Max count of recommendations","Maximale Anzahl Verknüpfungen"
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>YOOCHOOSE</name>
4
- <version>1.0.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
@@ -60,11 +60,11 @@ Wir legen hohen Wert auf die Einhaltung der Datenschutzverordnungen und Gesetze.
60
  Sollten Sie Ihren Firmensitz au&#xDF;erhalb der EU haben, dann profitieren Sie ebenfalls automatisch von unseren hohen Sicherheitsstandards. So wird stets die Privatsph&#xE4;re Ihrer Kunden gewahrt.&#xD;
61
  Nutzen Sie unsere kostenlose Testphase! Wir bieten Ihnen den Empfehlungsdienst ohne Bereitstellungsgeb&#xFC;hr kostenlos f&#xFC;r 30-Tage* an.&#xD;
62
  *Eingeschr&#xE4;nkte Test Version &#x2013; Beschr&#xE4;nkung des Produktumfangs und der Empfehlungsabrufe. Bei Fragen stehen wir Ihnen gerne telefonisch unter der Rufnummer 0221/16800762 sowie unter info@yoochoose.com zur Verf&#xFC;gung.</description>
63
- <notes>Initial Release</notes>
64
  <authors><author><name>Andreas von Studnitz</name><user>auto-converted</user><email>avs@avs-webentwicklung.de</email></author></authors>
65
- <date>2011-04-05</date>
66
- <time>09:01:04</time>
67
- <contents><target name="mageetc"><dir name="modules"><file name="AvS_Yoochoose.xml" hash="695d97ac588c41c8478b74cf27e24f56"/></dir></target><target name="magecommunity"><dir name="AvS"><dir name="Yoochoose"><dir name="Block"><file name="Crosssell.php" hash="af9d973ca901843b87eda2346fcdf313"/><file name="Recommendation.php" hash="476f5590d2613509f6fd3c3781801c57"/><file name="Related.php" hash="6d7aba213c50921da148ff65b2f5b6ea"/><file name="Tracking.php" hash="0cee2eac736623c8d7ffdb400c126084"/><file name="Upsell.php" hash="94db82355fcc809519686cec722a0af2"/></dir><dir name="Helper"><file name="Data.php" hash="88e28453703452bb2b3a1c7fb0822915"/></dir><dir name="Model"><dir name="Api"><dir name="Recommendation"><file name="Crossselling.php" hash="a975b28acc8fb6fe5ef9bdae1ede7c09"/><file name="Related.php" hash="343feb6af7e8cdc2030819437b2c195d"/><file name="Upselling.php" hash="032a35a019762174ef1e1ea569ee61cb"/></dir><file name="Event.php" hash="e8a3294c4ee5cb7eec68d90621cf4774"/><file name="Recommendation.php" hash="840d90c0706a27718549c223c5a480c4"/></dir><file name="Api.php" hash="2ffa2e06e9b745b6759c4f3d0fce6853"/><file name="Observer.php" hash="ee46ff843b0a961f579b29b671a6dc4e"/></dir><dir name="etc"><file name="config.xml" hash="7c7eccbb9fc52a50ac40ecd208b704e3"/><file name="system.xml" hash="f9be926357d98765973c127c21588efb"/></dir><dir name="sql"><dir name="yoochoose_setup"><file name="mysql4-install-0.1.0.php" hash="d5c03520d481885434e75819007701a0"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="yoochoose"><file name="crosssell.phtml" hash="ed022f89202e2f41536a4f71bc3c491f"/><file name="recommendation.phtml" hash="8f6024432a96168f276670135fbe371d"/><file name="related.phtml" hash="060be5346b8b6c360c24ee7081370858"/><file name="tracking.phtml" hash="b981947607bfcb8d0cf15eaec70cb380"/><file name="upsell.phtml" hash="5b39cafe647f645c080420b50299c5ba"/></dir></dir><dir name="layout"><file name="yoochoose.xml" hash="56b7ed57066f29e412e75cf55d3a0d21"/></dir></dir></dir></dir></target><target name="magelocale"><dir name="de_DE"><file name="AvS_Yoochoose.csv" hash="4dbe43631d55ba536f9004df77a3dc9c"/></dir></target></contents>
68
  <compatible/>
69
  <dependencies/>
70
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>YOOCHOOSE</name>
4
+ <version>1.1.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
60
  Sollten Sie Ihren Firmensitz au&#xDF;erhalb der EU haben, dann profitieren Sie ebenfalls automatisch von unseren hohen Sicherheitsstandards. So wird stets die Privatsph&#xE4;re Ihrer Kunden gewahrt.&#xD;
61
  Nutzen Sie unsere kostenlose Testphase! Wir bieten Ihnen den Empfehlungsdienst ohne Bereitstellungsgeb&#xFC;hr kostenlos f&#xFC;r 30-Tage* an.&#xD;
62
  *Eingeschr&#xE4;nkte Test Version &#x2013; Beschr&#xE4;nkung des Produktumfangs und der Empfehlungsabrufe. Bei Fragen stehen wir Ihnen gerne telefonisch unter der Rufnummer 0221/16800762 sowie unter info@yoochoose.com zur Verf&#xFC;gung.</description>
63
+ <notes>Added configuration options for the used scenarios</notes>
64
  <authors><author><name>Andreas von Studnitz</name><user>auto-converted</user><email>avs@avs-webentwicklung.de</email></author></authors>
65
+ <date>2011-04-08</date>
66
+ <time>09:14:59</time>
67
+ <contents><target name="mageetc"><dir name="modules"><file name="AvS_Yoochoose.xml" hash="695d97ac588c41c8478b74cf27e24f56"/></dir></target><target name="magecommunity"><dir name="AvS"><dir name="Yoochoose"><dir name="Block"><file name="Crosssell.php" hash="19f6e22fb73a78ba7be2ed3986370943"/><file name="Recommendation.php" hash="476f5590d2613509f6fd3c3781801c57"/><file name="Related.php" hash="84d84555b6fa7ee79f56d75df752d00d"/><file name="Tracking.php" hash="0cee2eac736623c8d7ffdb400c126084"/><file name="Upsell.php" hash="d8f2b4597c96d54e7567e09223841a5b"/></dir><dir name="Helper"><file name="Data.php" hash="88e28453703452bb2b3a1c7fb0822915"/></dir><dir name="Model"><dir name="Api"><dir name="Recommendation"><file name="Crossselling.php" hash="a975b28acc8fb6fe5ef9bdae1ede7c09"/><file name="Related.php" hash="343feb6af7e8cdc2030819437b2c195d"/><file name="Upselling.php" hash="032a35a019762174ef1e1ea569ee61cb"/></dir><file name="Event.php" hash="e8a3294c4ee5cb7eec68d90621cf4774"/><file name="Recommendation.php" hash="840d90c0706a27718549c223c5a480c4"/></dir><file name="Api.php" hash="2ffa2e06e9b745b6759c4f3d0fce6853"/><file name="Observer.php" hash="ee46ff843b0a961f579b29b671a6dc4e"/></dir><dir name="etc"><file name="config.xml" hash="fdef729426792a59c9d856a8af221aa3"/><file name="system.xml" hash="b0c065dd22b27fa2034462bc8076b75e"/></dir><dir name="sql"><dir name="yoochoose_setup"><file name="mysql4-install-0.1.0.php" hash="d5c03520d481885434e75819007701a0"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="yoochoose"><file name="crosssell.phtml" hash="ed022f89202e2f41536a4f71bc3c491f"/><file name="recommendation.phtml" hash="8f6024432a96168f276670135fbe371d"/><file name="related.phtml" hash="060be5346b8b6c360c24ee7081370858"/><file name="tracking.phtml" hash="b981947607bfcb8d0cf15eaec70cb380"/><file name="upsell.phtml" hash="5b39cafe647f645c080420b50299c5ba"/></dir></dir><dir name="layout"><file name="yoochoose.xml" hash="56b7ed57066f29e412e75cf55d3a0d21"/></dir></dir></dir></dir></target><target name="magelocale"><dir name="de_DE"><file name="AvS_Yoochoose.csv" hash="33c25b1743602613c850a9e50642ab15"/></dir></target></contents>
68
  <compatible/>
69
  <dependencies/>
70
  </package>