Version Notes
TurnTo Admin Extension
2.0 Adds support for Single Sign On
2.1 Re-wrote catalog feed generator
2.1.6 - Better catalog support in catalog feed generator.
2.2.0 - Support for sku average rating feed
2.2.2 - Minor bug fix
2.2.4 - Fixed excessive load time on configuration screen.
2.2.5 - Catalog Feed tweaks
2.2.7 - Support for Magento Security Patch (SUPEE-6788)
2.2.9 - Historical Feed bug fix
2.2.10 - Minor bug fix for historical feed exporter
2.2.11 - Fixed circular reference in category tree. Optimized memory usage in catalog feed generator.
2.3.0 - Added ability to push the historical feed nightly
3.0 - Refactored all code into blocks that can easily be added to templates. Almost all TurnTo functionality can now be easily configured from the Magento Admin Panel Configuration page.
3.0.1 - Minor bug fixes
3.0.2 - Minor bug fixes
3.0.3 - Allow users to deselect GTINs
3.0.4 - Allow users to configure attribute used as brand
3.0.5 - Fixed security warning on checkout success page caused by using http instead of https
3.1.0 - Added support for Comment Capture Display widget, VC Gallery Widget, VC Pinboard, and CC Pinboard. Q&A teaser is now configurable (input teaser or normal teaser). Comment Capture is embedded on mobile.
Release Info
Developer | TurnTo Networks |
Extension | socialcommerce_suite_by_turnto |
Version | 3.1.0 |
Comparing to | |
See all releases |
Code changes from version 3.0.5 to 3.1.0
- app/code/community/Turnto/Admin/Block/Adminhtml/System/Config/Cccolumns.php +19 -0
- app/code/community/Turnto/Admin/Block/Adminhtml/System/Config/Ccsortorder.php +16 -0
- app/code/community/Turnto/Admin/Block/Adminhtml/System/Config/Teasertype.php +16 -0
- app/code/community/Turnto/Admin/Block/Adminhtml/System/Config/Vcgallerysize.php +16 -0
- app/code/community/Turnto/Admin/Block/Adminhtml/System/Config/Vcgallerysort.php +17 -0
- app/code/community/Turnto/Admin/Helper/Data.php +4 -1
- app/code/community/Turnto/Admin/etc/config.xml +71 -4
- app/code/community/Turnto/Admin/etc/system.xml +691 -2
- app/code/community/Turnto/Client/Block/Checkoutchatterpdp.php +30 -0
- app/code/community/Turnto/Client/Block/Vcgallery.php +31 -0
- app/code/community/Turnto/Client/controllers/CheckoutcommentsController.php +33 -0
- app/code/community/Turnto/Client/controllers/VisualcontentController.php +33 -0
- app/code/community/Turnto/Client/etc/config.xml +11 -1
- app/code/community/Turnto/Login/etc/config.xml +1 -1
- app/code/community/Turnto/Mobile/etc/config.xml +1 -1
- app/design/frontend/base/default/layout/turnto_client.xml +4 -4
- app/design/frontend/base/default/template/turnto/client/ccpinboard_js.phtml +36 -0
- app/design/frontend/base/default/template/turnto/client/checkout.tra_js.phtml +10 -1
- app/design/frontend/base/default/template/turnto/client/checkoutchatter.pdp.phtml +1 -0
- app/design/frontend/base/default/template/turnto/client/pinboard.phtml +1 -0
- app/design/frontend/base/default/template/turnto/client/qa.teaser.phtml +5 -1
- app/design/frontend/base/default/template/turnto/client/tra_js.phtml +56 -3
- app/design/frontend/base/default/template/turnto/client/vcgallery.phtml +1 -0
- app/design/frontend/base/default/template/turnto/client/vcpinboard_js.phtml +37 -0
- package.xml +3 -2
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Turnto_Admin_Block_Adminhtml_System_Config_Cccolumns
|
4 |
+
{
|
5 |
+
public function __construct()
|
6 |
+
{
|
7 |
+
|
8 |
+
}
|
9 |
+
|
10 |
+
public function toOptionArray() {
|
11 |
+
return array(
|
12 |
+
array('value' => 'auto', 'label' => Mage::helper('adminhtml')->__('Auto')),
|
13 |
+
array('value' => '1', 'label' => Mage::helper('adminhtml')->__('1')),
|
14 |
+
array('value' => '2', 'label' => Mage::helper('adminhtml')->__('2')),
|
15 |
+
array('value' => '3', 'label' => Mage::helper('adminhtml')->__('3')),
|
16 |
+
array('value' => '4', 'label' => Mage::helper('adminhtml')->__('4')),
|
17 |
+
);
|
18 |
+
}
|
19 |
+
}
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Turnto_Admin_Block_Adminhtml_System_Config_Ccsortorder
|
4 |
+
{
|
5 |
+
public function __construct()
|
6 |
+
{
|
7 |
+
|
8 |
+
}
|
9 |
+
|
10 |
+
public function toOptionArray() {
|
11 |
+
return array(
|
12 |
+
array('value' => 'most recent', 'label' => Mage::helper('adminhtml')->__('Most Recent')),
|
13 |
+
array('value' => 'longest', 'label' => Mage::helper('adminhtml')->__('Longest'))
|
14 |
+
);
|
15 |
+
}
|
16 |
+
}
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Turnto_Admin_Block_Adminhtml_System_Config_Teasertype
|
4 |
+
{
|
5 |
+
public function __construct()
|
6 |
+
{
|
7 |
+
|
8 |
+
}
|
9 |
+
|
10 |
+
public function toOptionArray() {
|
11 |
+
return array(
|
12 |
+
array('value' => 'iTeaserFunc', 'label' => Mage::helper('adminhtml')->__('Item Teaser')),
|
13 |
+
array('value' => 'itemInputTeaserFunc', 'label' => Mage::helper('adminhtml')->__('Item Input Teaser'))
|
14 |
+
);
|
15 |
+
}
|
16 |
+
}
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Turnto_Admin_Block_Adminhtml_System_Config_Vcgallerysize
|
4 |
+
{
|
5 |
+
public function __construct()
|
6 |
+
{
|
7 |
+
|
8 |
+
}
|
9 |
+
|
10 |
+
public function toOptionArray() {
|
11 |
+
return array(
|
12 |
+
array('value' => 'small', 'label' => Mage::helper('adminhtml')->__('Small')),
|
13 |
+
array('value' => 'large', 'label' => Mage::helper('adminhtml')->__('Large'))
|
14 |
+
);
|
15 |
+
}
|
16 |
+
}
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Turnto_Admin_Block_Adminhtml_System_Config_Vcgallerysort
|
4 |
+
{
|
5 |
+
public function __construct()
|
6 |
+
{
|
7 |
+
|
8 |
+
}
|
9 |
+
|
10 |
+
public function toOptionArray() {
|
11 |
+
return array(
|
12 |
+
array('value' => 'mostvotes', 'label' => Mage::helper('adminhtml')->__('Most Votes')),
|
13 |
+
array('value' => 'mostrecent', 'label' => Mage::helper('adminhtml')->__('Most Recent')),
|
14 |
+
array('value' => 'longest', 'label' => Mage::helper('adminhtml')->__('Longest'))
|
15 |
+
);
|
16 |
+
}
|
17 |
+
}
|
@@ -222,7 +222,10 @@ class Turnto_Admin_Helper_Data extends Mage_Core_Helper_Data
|
|
222 |
fwrite($handle, $itemlineid++);
|
223 |
fwrite($handle, "\t");
|
224 |
//ZIP
|
225 |
-
|
|
|
|
|
|
|
226 |
fwrite($handle, "\t");
|
227 |
//FIRSTNAME
|
228 |
$name = explode(' ', $order->getCustomerName());
|
222 |
fwrite($handle, $itemlineid++);
|
223 |
fwrite($handle, "\t");
|
224 |
//ZIP
|
225 |
+
$shippingAddress = $order->getShippingAddress();
|
226 |
+
if ($shippingAddress){
|
227 |
+
fwrite($handle, $shippingAddress->getPostcode());
|
228 |
+
}
|
229 |
fwrite($handle, "\t");
|
230 |
//FIRSTNAME
|
231 |
$name = explode(' ', $order->getCustomerName());
|
@@ -3,7 +3,7 @@
|
|
3 |
<config>
|
4 |
<modules>
|
5 |
<Turnto_Admin>
|
6 |
-
<version>3.0
|
7 |
</Turnto_Admin>
|
8 |
</modules>
|
9 |
|
@@ -144,6 +144,8 @@
|
|
144 |
<image_store_base>wac.edgecastcdn.net/001A39/prod</image_store_base>
|
145 |
<static_cache_time>900</static_cache_time>
|
146 |
<teaser_cache_time>900</teaser_cache_time>
|
|
|
|
|
147 |
<version>4.3</version>
|
148 |
<upc_attribute nil="true"/>
|
149 |
<mpn_attribute nil="true"/>
|
@@ -155,10 +157,26 @@
|
|
155 |
</general>
|
156 |
<checkoutcomments>
|
157 |
<checkoutcomments_enabled>1</checkoutcomments_enabled>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
158 |
</checkoutcomments>
|
159 |
<qa>
|
160 |
<qa_setup_type>overlay</qa_setup_type>
|
161 |
<qa_teaser_custom_enabled>1</qa_teaser_custom_enabled>
|
|
|
162 |
<qa_teaser_custom><![CDATA[
|
163 |
<script type="text/javascript">
|
164 |
/**
|
@@ -187,7 +205,7 @@
|
|
187 |
|
188 |
// todo: this should handle opening the tab if Q&A is under a tab.
|
189 |
function clickQaTabFromTeaser() {
|
190 |
-
var qa =
|
191 |
window.scrollTo(0,qa.offset().top);
|
192 |
}
|
193 |
</script>
|
@@ -206,7 +224,7 @@
|
|
206 |
function reviewsItemTeaserDisplay(clazz, data) {
|
207 |
var clazzNam = clazz || "TurnToReviewsTeaser";
|
208 |
|
209 |
-
var iteasers =
|
210 |
|
211 |
// round the average rating to the nearest tenth
|
212 |
var rating = Math.round((TurnToItemData.counts.ar + 0.25) * 100.0) / 100.0;
|
@@ -225,13 +243,62 @@
|
|
225 |
|
226 |
// todo: this should handle opening the tab if reviews are under a tab AND scrolling to the content
|
227 |
function clickReviewsTabFromTeaser() {
|
228 |
-
var rev =
|
229 |
window.scrollTo(0,rev.offset().top);
|
230 |
}
|
231 |
</script>
|
232 |
]]></reviews_teaser_custom>
|
233 |
<reviews_teaser_custom_function_name>reviewsItemTeaserDisplay</reviews_teaser_custom_function_name>
|
234 |
</reviews>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
235 |
</turnto_admin>
|
236 |
</default>
|
237 |
<crontab>
|
3 |
<config>
|
4 |
<modules>
|
5 |
<Turnto_Admin>
|
6 |
+
<version>3.1.0</version>
|
7 |
</Turnto_Admin>
|
8 |
</modules>
|
9 |
|
144 |
<image_store_base>wac.edgecastcdn.net/001A39/prod</image_store_base>
|
145 |
<static_cache_time>900</static_cache_time>
|
146 |
<teaser_cache_time>900</teaser_cache_time>
|
147 |
+
<cc_display_cache_time>900</cc_display_cache_time>
|
148 |
+
<vcgallery_cache_time>900</vcgallery_cache_time>
|
149 |
<version>4.3</version>
|
150 |
<upc_attribute nil="true"/>
|
151 |
<mpn_attribute nil="true"/>
|
157 |
</general>
|
158 |
<checkoutcomments>
|
159 |
<checkoutcomments_enabled>1</checkoutcomments_enabled>
|
160 |
+
<checkoutcomments_display_enabled>0</checkoutcomments_display_enabled>
|
161 |
+
<cc_columns>auto</cc_columns>
|
162 |
+
<cc_rows_collapsed>1</cc_rows_collapsed>
|
163 |
+
<cc_rows_expanded>4</cc_rows_expanded>
|
164 |
+
<cc_title>Why I Chose This:</cc_title>
|
165 |
+
<cc_expand_text>Read More</cc_expand_text>
|
166 |
+
<cc_collaped_text>Read Less</cc_collaped_text>
|
167 |
+
<cc_pagination_prev_text>Previous</cc_pagination_prev_text>
|
168 |
+
<cc_pagination_next_text>Next</cc_pagination_next_text>
|
169 |
+
<cc_minimum_comment_count>4</cc_minimum_comment_count>
|
170 |
+
<cc_minimum_comment_character_count>20</cc_minimum_comment_character_count>
|
171 |
+
<cc_minimum_comment_word_count>3</cc_minimum_comment_word_count>
|
172 |
+
<cc_truncate_length>200</cc_truncate_length>
|
173 |
+
<cc_include_syndicated>1</cc_include_syndicated>
|
174 |
+
<cc_sort_order>Most Recent</cc_sort_order>
|
175 |
</checkoutcomments>
|
176 |
<qa>
|
177 |
<qa_setup_type>overlay</qa_setup_type>
|
178 |
<qa_teaser_custom_enabled>1</qa_teaser_custom_enabled>
|
179 |
+
<qa_teaser_type>iTeaserFunc</qa_teaser_type>
|
180 |
<qa_teaser_custom><![CDATA[
|
181 |
<script type="text/javascript">
|
182 |
/**
|
205 |
|
206 |
// todo: this should handle opening the tab if Q&A is under a tab.
|
207 |
function clickQaTabFromTeaser() {
|
208 |
+
var qa = jQuery('#TurnToContent')
|
209 |
window.scrollTo(0,qa.offset().top);
|
210 |
}
|
211 |
</script>
|
224 |
function reviewsItemTeaserDisplay(clazz, data) {
|
225 |
var clazzNam = clazz || "TurnToReviewsTeaser";
|
226 |
|
227 |
+
var iteasers = jQuery("." + clazzNam);
|
228 |
|
229 |
// round the average rating to the nearest tenth
|
230 |
var rating = Math.round((TurnToItemData.counts.ar + 0.25) * 100.0) / 100.0;
|
243 |
|
244 |
// todo: this should handle opening the tab if reviews are under a tab AND scrolling to the content
|
245 |
function clickReviewsTabFromTeaser() {
|
246 |
+
var rev = jQuery('#TurnToReviewsContent')
|
247 |
window.scrollTo(0,rev.offset().top);
|
248 |
}
|
249 |
</script>
|
250 |
]]></reviews_teaser_custom>
|
251 |
<reviews_teaser_custom_function_name>reviewsItemTeaserDisplay</reviews_teaser_custom_function_name>
|
252 |
</reviews>
|
253 |
+
<vcgallery>
|
254 |
+
<vc_gallery_enabled>0</vc_gallery_enabled>
|
255 |
+
<title>Customer Gallery</title>
|
256 |
+
<size>small</size>
|
257 |
+
<modalSize>small</modalSize>
|
258 |
+
<showCaptionsInline>0</showCaptionsInline>
|
259 |
+
<truncateLength>40</truncateLength>
|
260 |
+
<minimumContentCount>1</minimumContentCount>
|
261 |
+
<minimumTextContentCharacterCount>0</minimumTextContentCharacterCount>
|
262 |
+
<minimumTextContentWordCount>0</minimumTextContentWordCount>
|
263 |
+
<sortOrder>mostvotes</sortOrder>
|
264 |
+
</vcgallery>
|
265 |
+
<vcpinboard>
|
266 |
+
<enabled>0</enabled>
|
267 |
+
<title>Customer Gallery</title>
|
268 |
+
<skus></skus>
|
269 |
+
<brands></brands>
|
270 |
+
<tags></tags>
|
271 |
+
<activeOnly>0</activeOnly>
|
272 |
+
<showDatestamp>1</showDatestamp>
|
273 |
+
<showCaption>1</showCaption>
|
274 |
+
<minCaptionCharCount>0</minCaptionCharCount>
|
275 |
+
<minCaptionWordCount>0</minCaptionWordCount>
|
276 |
+
<maxCaptionLength>85</maxCaptionLength>
|
277 |
+
<nameMaxLength>255</nameMaxLength>
|
278 |
+
<sortOrder>0</sortOrder>
|
279 |
+
<limit>20</limit>
|
280 |
+
<progressiveLoading>1</progressiveLoading>
|
281 |
+
<hSpacing>8</hSpacing>
|
282 |
+
<vSpacing>8</vSpacing>
|
283 |
+
</vcpinboard>
|
284 |
+
<ccpinboard>
|
285 |
+
<enabled>0</enabled>
|
286 |
+
<title>Customer Comments</title>
|
287 |
+
<skus></skus>
|
288 |
+
<brands></brands>
|
289 |
+
<tags></tags>
|
290 |
+
<activeOnly>0</activeOnly>
|
291 |
+
<includeSyndicated>0</includeSyndicated>
|
292 |
+
<titleMaxLength>255</titleMaxLength>
|
293 |
+
<maxDaysOld>30</maxDaysOld>
|
294 |
+
<maxCommentsPerBox>5</maxCommentsPerBox>
|
295 |
+
<nameMaxLength>255</nameMaxLength>
|
296 |
+
<commentMaxLength>200</commentMaxLength>
|
297 |
+
<limit>20</limit>
|
298 |
+
<progressiveLoading>1</progressiveLoading>
|
299 |
+
<hSpacing>8</hSpacing>
|
300 |
+
<vSpacing>8</vSpacing>
|
301 |
+
</ccpinboard>
|
302 |
</turnto_admin>
|
303 |
</default>
|
304 |
<crontab>
|
@@ -113,6 +113,30 @@
|
|
113 |
(15 minutes)
|
114 |
</comment>
|
115 |
</teaser_cache_time>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
<!-- UPC -->
|
117 |
<upc_attribute>
|
118 |
<label>UPC Attribute</label>
|
@@ -192,10 +216,10 @@
|
|
192 |
<show_in_default>1</show_in_default>
|
193 |
<show_in_website>1</show_in_website>
|
194 |
<show_in_store>1</show_in_store>
|
195 |
-
<expanded>
|
196 |
<fields>
|
197 |
<checkoutcomments_enabled>
|
198 |
-
<label>Enabled Checkout Comments</label>
|
199 |
<frontend_type>select</frontend_type>
|
200 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
201 |
<sort_order>1</sort_order>
|
@@ -203,6 +227,166 @@
|
|
203 |
<show_in_website>1</show_in_website>
|
204 |
<show_in_store>1</show_in_store>
|
205 |
</checkoutcomments_enabled>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
206 |
</fields>
|
207 |
</checkoutcomments>
|
208 |
<qa>
|
@@ -223,6 +407,15 @@
|
|
223 |
<show_in_website>1</show_in_website>
|
224 |
<show_in_store>1</show_in_store>
|
225 |
</qa_setup_type>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
226 |
<qa_teaser_custom_enabled>
|
227 |
<label>Use Custom Q&A Teaser</label>
|
228 |
<frontend_type>select</frontend_type>
|
@@ -310,6 +503,502 @@
|
|
310 |
</reviews_teaser_custom_function_name>
|
311 |
</fields>
|
312 |
</reviews>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
313 |
<mobileconfig>
|
314 |
<label>Turnto Mobile Configuration</label>
|
315 |
<comment><![CDATA[The default mobile landing page URL is <baseurl>/turntomobile]]></comment>
|
113 |
(15 minutes)
|
114 |
</comment>
|
115 |
</teaser_cache_time>
|
116 |
+
<cc_display_cache_time>
|
117 |
+
<label>Checkout Chatter Display Widget Cache Time</label>
|
118 |
+
<frontend_type>text</frontend_type>
|
119 |
+
<validate>validate-number</validate>
|
120 |
+
<sort_order>110</sort_order>
|
121 |
+
<show_in_default>1</show_in_default>
|
122 |
+
<show_in_website>1</show_in_website>
|
123 |
+
<show_in_store>1</show_in_store>
|
124 |
+
<comment>The amount of time to cache the Checkout Chatter Display Widget. Value is in seconds. Default is 900
|
125 |
+
(15 minutes)
|
126 |
+
</comment>
|
127 |
+
</cc_display_cache_time>
|
128 |
+
<vcgallery_cache_time>
|
129 |
+
<label>Visual Content Gallery Widget Cache Time</label>
|
130 |
+
<frontend_type>text</frontend_type>
|
131 |
+
<validate>validate-number</validate>
|
132 |
+
<sort_order>110</sort_order>
|
133 |
+
<show_in_default>1</show_in_default>
|
134 |
+
<show_in_website>1</show_in_website>
|
135 |
+
<show_in_store>1</show_in_store>
|
136 |
+
<comment>The amount of time to cache the Visual Content Gallery Widget. Value is in seconds. Default is 900
|
137 |
+
(15 minutes)
|
138 |
+
</comment>
|
139 |
+
</vcgallery_cache_time>
|
140 |
<!-- UPC -->
|
141 |
<upc_attribute>
|
142 |
<label>UPC Attribute</label>
|
216 |
<show_in_default>1</show_in_default>
|
217 |
<show_in_website>1</show_in_website>
|
218 |
<show_in_store>1</show_in_store>
|
219 |
+
<expanded>0</expanded>
|
220 |
<fields>
|
221 |
<checkoutcomments_enabled>
|
222 |
+
<label>Enabled Checkout Comments (on checkout confirmation page)</label>
|
223 |
<frontend_type>select</frontend_type>
|
224 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
225 |
<sort_order>1</sort_order>
|
227 |
<show_in_website>1</show_in_website>
|
228 |
<show_in_store>1</show_in_store>
|
229 |
</checkoutcomments_enabled>
|
230 |
+
<checkoutcomments_display_enabled>
|
231 |
+
<label>Enabled Checkout Comments Display Widget (on PDP)</label>
|
232 |
+
<frontend_type>select</frontend_type>
|
233 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
234 |
+
<sort_order>10</sort_order>
|
235 |
+
<show_in_default>1</show_in_default>
|
236 |
+
<show_in_website>1</show_in_website>
|
237 |
+
<show_in_store>1</show_in_store>
|
238 |
+
<comment><![CDATA[You'll need to place the following code on your product details page in the position where you'd like the widget to appear:<br />
|
239 |
+
<?php echo $this->getChildHtml('turnto_cc_pdp') ?>]]></comment>
|
240 |
+
</checkoutcomments_display_enabled>
|
241 |
+
<cc_columns>
|
242 |
+
<label>Display Widget Columns</label>
|
243 |
+
<frontend_type>select</frontend_type>
|
244 |
+
<source_model>Turnto_Admin_Block_Adminhtml_System_Config_Cccolumns</source_model>
|
245 |
+
<sort_order>20</sort_order>
|
246 |
+
<show_in_default>1</show_in_default>
|
247 |
+
<show_in_website>1</show_in_website>
|
248 |
+
<show_in_store>1</show_in_store>
|
249 |
+
<depends><checkoutcomments_display_enabled>1</checkoutcomments_display_enabled></depends>
|
250 |
+
<comment>Number of columns. Can be 1, 2, 3, 4, or Auto. 'Auto' detects the available width and chooses the best number of columns for you.</comment>
|
251 |
+
</cc_columns>
|
252 |
+
<cc_rows_collapsed>
|
253 |
+
<label>Display Widget Rows in collapsed view</label>
|
254 |
+
<frontend_type>text</frontend_type>
|
255 |
+
<sort_order>30</sort_order>
|
256 |
+
<validate>validate-number</validate>
|
257 |
+
<show_in_default>1</show_in_default>
|
258 |
+
<show_in_website>1</show_in_website>
|
259 |
+
<show_in_store>1</show_in_store>
|
260 |
+
<depends><checkoutcomments_display_enabled>1</checkoutcomments_display_enabled></depends>
|
261 |
+
<comment>(default is 2) - Number of rows displayed after "Read all" is selected. This value should be less than rowsInExpandedView.</comment>
|
262 |
+
</cc_rows_collapsed>
|
263 |
+
<cc_rows_expanded>
|
264 |
+
<label>Display Widget Rows in expanded view</label>
|
265 |
+
<frontend_type>text</frontend_type>
|
266 |
+
<sort_order>40</sort_order>
|
267 |
+
<validate>validate-number</validate>
|
268 |
+
<show_in_default>1</show_in_default>
|
269 |
+
<show_in_website>1</show_in_website>
|
270 |
+
<show_in_store>1</show_in_store>
|
271 |
+
<depends><checkoutcomments_display_enabled>1</checkoutcomments_display_enabled></depends>
|
272 |
+
<comment>(default is 10) - Number of rows displayed after "Read all" is selected.</comment>
|
273 |
+
</cc_rows_expanded>
|
274 |
+
<cc_title>
|
275 |
+
<label>Display Widget Title</label>
|
276 |
+
<frontend_type>text</frontend_type>
|
277 |
+
<sort_order>50</sort_order>
|
278 |
+
<show_in_default>1</show_in_default>
|
279 |
+
<show_in_website>1</show_in_website>
|
280 |
+
<show_in_store>1</show_in_store>
|
281 |
+
<depends><checkoutcomments_display_enabled>1</checkoutcomments_display_enabled></depends>
|
282 |
+
<comment>(default is "Why I Chose This:") - Title displayed at the top of the widget</comment>
|
283 |
+
</cc_title>
|
284 |
+
<cc_expand_text>
|
285 |
+
<label>Display Widget Expanded Text</label>
|
286 |
+
<frontend_type>text</frontend_type>
|
287 |
+
<sort_order>60</sort_order>
|
288 |
+
<show_in_default>1</show_in_default>
|
289 |
+
<show_in_website>1</show_in_website>
|
290 |
+
<show_in_store>1</show_in_store>
|
291 |
+
<depends><checkoutcomments_display_enabled>1</checkoutcomments_display_enabled></depends>
|
292 |
+
<comment>(default is "Read More") - Link label in top right corner for expanding the widget.</comment>
|
293 |
+
</cc_expand_text>
|
294 |
+
<cc_collaped_text>
|
295 |
+
<label>Display Widget Collapsed Text</label>
|
296 |
+
<frontend_type>text</frontend_type>
|
297 |
+
<sort_order>70</sort_order>
|
298 |
+
<show_in_default>1</show_in_default>
|
299 |
+
<show_in_website>1</show_in_website>
|
300 |
+
<show_in_store>1</show_in_store>
|
301 |
+
<depends><checkoutcomments_display_enabled>1</checkoutcomments_display_enabled></depends>
|
302 |
+
<comment>(default is "Read Less") - Link label in top right corner for collapsing the widget.</comment>
|
303 |
+
</cc_collaped_text>
|
304 |
+
<cc_pagination_prev_text>
|
305 |
+
<label>Display Widget Pagination 'Previous' Text</label>
|
306 |
+
<frontend_type>text</frontend_type>
|
307 |
+
<sort_order>80</sort_order>
|
308 |
+
<show_in_default>1</show_in_default>
|
309 |
+
<show_in_website>1</show_in_website>
|
310 |
+
<show_in_store>1</show_in_store>
|
311 |
+
<depends><checkoutcomments_display_enabled>1</checkoutcomments_display_enabled></depends>
|
312 |
+
<comment>(default is "Previous") - The label for the Previous link used in pagination</comment>
|
313 |
+
</cc_pagination_prev_text>
|
314 |
+
<cc_pagination_next_text>
|
315 |
+
<label>Display Widget Pagination 'Next' Text</label>
|
316 |
+
<frontend_type>text</frontend_type>
|
317 |
+
<sort_order>80</sort_order>
|
318 |
+
<show_in_default>1</show_in_default>
|
319 |
+
<show_in_website>1</show_in_website>
|
320 |
+
<show_in_store>1</show_in_store>
|
321 |
+
<depends><checkoutcomments_display_enabled>1</checkoutcomments_display_enabled></depends>
|
322 |
+
<comment>(default is "Next") - The label for the Next link used in pagination. </comment>
|
323 |
+
</cc_pagination_next_text>
|
324 |
+
<cc_minimum_comment_count>
|
325 |
+
<label>Display Widget Minimum Comment Count (hidden if less)</label>
|
326 |
+
<frontend_type>text</frontend_type>
|
327 |
+
<sort_order>90</sort_order>
|
328 |
+
<validate>validate-number</validate>
|
329 |
+
<show_in_default>1</show_in_default>
|
330 |
+
<show_in_website>1</show_in_website>
|
331 |
+
<show_in_store>1</show_in_store>
|
332 |
+
<depends><checkoutcomments_display_enabled>1</checkoutcomments_display_enabled></depends>
|
333 |
+
<comment>(default is 4) - Minimum number of comments required to display widget. The widget is hidden if less than the minimum are available.</comment>
|
334 |
+
</cc_minimum_comment_count>
|
335 |
+
<cc_minimum_comment_character_count>
|
336 |
+
<label>Display Widget Minimum Comment Character Count</label>
|
337 |
+
<frontend_type>text</frontend_type>
|
338 |
+
<sort_order>100</sort_order>
|
339 |
+
<validate>validate-number</validate>
|
340 |
+
<show_in_default>1</show_in_default>
|
341 |
+
<show_in_website>1</show_in_website>
|
342 |
+
<show_in_store>1</show_in_store>
|
343 |
+
<depends><checkoutcomments_display_enabled>1</checkoutcomments_display_enabled></depends>
|
344 |
+
<comment>(default is 20) - Comments with less characters than this minimum will not be displayed or included in the counts.</comment>
|
345 |
+
</cc_minimum_comment_character_count>
|
346 |
+
<cc_minimum_comment_word_count>
|
347 |
+
<label>Display Widget Minimum Comment Word Count</label>
|
348 |
+
<frontend_type>text</frontend_type>
|
349 |
+
<sort_order>110</sort_order>
|
350 |
+
<validate>validate-number</validate>
|
351 |
+
<show_in_default>1</show_in_default>
|
352 |
+
<show_in_website>1</show_in_website>
|
353 |
+
<show_in_store>1</show_in_store>
|
354 |
+
<depends><checkoutcomments_display_enabled>1</checkoutcomments_display_enabled></depends>
|
355 |
+
<comment>(default is 3) - Comments with less words than this minimum will not be displayed or included in the counts.</comment>
|
356 |
+
</cc_minimum_comment_word_count>
|
357 |
+
<cc_truncate_length>
|
358 |
+
<label>Display Widget Comment Truncate Length</label>
|
359 |
+
<frontend_type>text</frontend_type>
|
360 |
+
<sort_order>120</sort_order>
|
361 |
+
<validate>validate-number</validate>
|
362 |
+
<show_in_default>1</show_in_default>
|
363 |
+
<show_in_website>1</show_in_website>
|
364 |
+
<show_in_store>1</show_in_store>
|
365 |
+
<depends><checkoutcomments_display_enabled>1</checkoutcomments_display_enabled></depends>
|
366 |
+
<comment>(default is 200) - The text of the comment will be truncated to this length.</comment>
|
367 |
+
</cc_truncate_length>
|
368 |
+
<cc_include_syndicated>
|
369 |
+
<label>Display Widget Include Syndicated Comments</label>
|
370 |
+
<frontend_type>select</frontend_type>
|
371 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
372 |
+
<sort_order>130</sort_order>
|
373 |
+
<show_in_default>1</show_in_default>
|
374 |
+
<show_in_website>1</show_in_website>
|
375 |
+
<show_in_store>1</show_in_store>
|
376 |
+
<depends><checkoutcomments_display_enabled>1</checkoutcomments_display_enabled></depends>
|
377 |
+
<comment>(default is Yes) - Determines whether syndicated comments will be displayed in the widget. A syndicated comment is a comment that came from a source other than your website.</comment>
|
378 |
+
</cc_include_syndicated>
|
379 |
+
<cc_sort_order>
|
380 |
+
<label>Display Widget Sort Order</label>
|
381 |
+
<frontend_type>select</frontend_type>
|
382 |
+
<source_model>Turnto_Admin_Block_Adminhtml_System_Config_Ccsortorder</source_model>
|
383 |
+
<sort_order>140</sort_order>
|
384 |
+
<show_in_default>1</show_in_default>
|
385 |
+
<show_in_website>1</show_in_website>
|
386 |
+
<show_in_store>1</show_in_store>
|
387 |
+
<depends><checkoutcomments_display_enabled>1</checkoutcomments_display_enabled></depends>
|
388 |
+
<comment>(default is "Most Recent") - "Most Recent" orders the comments from newest to oldest. "Longest" orders the comments from longest to shortest.</comment>
|
389 |
+
</cc_sort_order>
|
390 |
</fields>
|
391 |
</checkoutcomments>
|
392 |
<qa>
|
407 |
<show_in_website>1</show_in_website>
|
408 |
<show_in_store>1</show_in_store>
|
409 |
</qa_setup_type>
|
410 |
+
<qa_teaser_type>
|
411 |
+
<label>Q&A Teaser Type</label>
|
412 |
+
<frontend_type>select</frontend_type>
|
413 |
+
<source_model>Turnto_Admin_Block_Adminhtml_System_Config_Teasertype</source_model>
|
414 |
+
<sort_order>90</sort_order>
|
415 |
+
<show_in_default>1</show_in_default>
|
416 |
+
<show_in_website>1</show_in_website>
|
417 |
+
<show_in_store>1</show_in_store>
|
418 |
+
</qa_teaser_type>
|
419 |
<qa_teaser_custom_enabled>
|
420 |
<label>Use Custom Q&A Teaser</label>
|
421 |
<frontend_type>select</frontend_type>
|
503 |
</reviews_teaser_custom_function_name>
|
504 |
</fields>
|
505 |
</reviews>
|
506 |
+
<vcgallery>
|
507 |
+
<label>Turnto Visual Content Gallery</label>
|
508 |
+
<comment>The Visual Content Gallery widget is displayed on the product details page.</comment>
|
509 |
+
<frontend_type>text</frontend_type>
|
510 |
+
<sort_order>7</sort_order>
|
511 |
+
<show_in_default>1</show_in_default>
|
512 |
+
<show_in_website>1</show_in_website>
|
513 |
+
<show_in_store>1</show_in_store>
|
514 |
+
<expanded>1</expanded>
|
515 |
+
<fields>
|
516 |
+
<vc_gallery_enabled>
|
517 |
+
<label>Enabled Visual Content Gallery Widget</label>
|
518 |
+
<frontend_type>select</frontend_type>
|
519 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
520 |
+
<sort_order>10</sort_order>
|
521 |
+
<show_in_default>1</show_in_default>
|
522 |
+
<show_in_website>1</show_in_website>
|
523 |
+
<show_in_store>1</show_in_store>
|
524 |
+
<comment><![CDATA[You'll need to place the following code on your product details page in the position where you'd like the widget to appear:<br />
|
525 |
+
<?php echo $this->getChildHtml('turnto_vc_gallery') ?>]]></comment>
|
526 |
+
</vc_gallery_enabled>
|
527 |
+
<title>
|
528 |
+
<label>Title</label>
|
529 |
+
<frontend_type>text</frontend_type>
|
530 |
+
<sort_order>20</sort_order>
|
531 |
+
<show_in_default>1</show_in_default>
|
532 |
+
<show_in_website>1</show_in_website>
|
533 |
+
<show_in_store>1</show_in_store>
|
534 |
+
<comment>(default is "Customer Gallery") - Title displayed at the top of the widget</comment>
|
535 |
+
<depends><vc_gallery_enabled>1</vc_gallery_enabled></depends>
|
536 |
+
</title>
|
537 |
+
<size>
|
538 |
+
<label>Size</label>
|
539 |
+
<frontend_type>select</frontend_type>
|
540 |
+
<source_model>Turnto_Admin_Block_Adminhtml_System_Config_Vcgallerysize</source_model>
|
541 |
+
<sort_order>30</sort_order>
|
542 |
+
<show_in_default>1</show_in_default>
|
543 |
+
<show_in_website>1</show_in_website>
|
544 |
+
<show_in_store>1</show_in_store>
|
545 |
+
<comment>(default is small) - Widget display size. Options are 'large' and 'small'</comment>
|
546 |
+
<depends><vc_gallery_enabled>1</vc_gallery_enabled></depends>
|
547 |
+
</size>
|
548 |
+
<modalSize>
|
549 |
+
<label>Modal Size</label>
|
550 |
+
<frontend_type>select</frontend_type>
|
551 |
+
<source_model>Turnto_Admin_Block_Adminhtml_System_Config_Vcgallerysize</source_model>
|
552 |
+
<sort_order>40</sort_order>
|
553 |
+
<show_in_default>1</show_in_default>
|
554 |
+
<show_in_website>1</show_in_website>
|
555 |
+
<show_in_store>1</show_in_store>
|
556 |
+
<comment>(default is Small) - The size of the modal detail view when the user clicks on the widget thumbnail. This configuration option is ignored on mobile views</comment>
|
557 |
+
<depends><vc_gallery_enabled>1</vc_gallery_enabled></depends>
|
558 |
+
</modalSize>
|
559 |
+
<showCaptionsInline>
|
560 |
+
<label>Show Captions Inline</label>
|
561 |
+
<frontend_type>select</frontend_type>
|
562 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
563 |
+
<sort_order>50</sort_order>
|
564 |
+
<show_in_default>1</show_in_default>
|
565 |
+
<show_in_website>1</show_in_website>
|
566 |
+
<show_in_store>1</show_in_store>
|
567 |
+
<comment>(default is false) - Sets whether captions display below widget thumbnails</comment>
|
568 |
+
<depends><vc_gallery_enabled>1</vc_gallery_enabled></depends>
|
569 |
+
</showCaptionsInline>
|
570 |
+
<truncateLength>
|
571 |
+
<label>Truncate Length</label>
|
572 |
+
<frontend_type>text</frontend_type>
|
573 |
+
<sort_order>60</sort_order>
|
574 |
+
<show_in_default>1</show_in_default>
|
575 |
+
<show_in_website>1</show_in_website>
|
576 |
+
<show_in_store>1</show_in_store>
|
577 |
+
<comment>(default value is 40) - max length of caption text characters to display. ends with ellipsis (...)</comment>
|
578 |
+
<depends><vc_gallery_enabled>1</vc_gallery_enabled></depends>
|
579 |
+
<validate>validate-number</validate>
|
580 |
+
</truncateLength>
|
581 |
+
<minimumContentCount>
|
582 |
+
<label>Minimum Content Count</label>
|
583 |
+
<frontend_type>text</frontend_type>
|
584 |
+
<sort_order>70</sort_order>
|
585 |
+
<show_in_default>1</show_in_default>
|
586 |
+
<show_in_website>1</show_in_website>
|
587 |
+
<show_in_store>1</show_in_store>
|
588 |
+
<comment>(default value is 1) - Hide the widget unless there are this many visual content items to display</comment>
|
589 |
+
<depends><vc_gallery_enabled>1</vc_gallery_enabled></depends>
|
590 |
+
<validate>validate-number</validate>
|
591 |
+
</minimumContentCount>
|
592 |
+
<minimumTextContentCharacterCount>
|
593 |
+
<label>Minimum Text Content Character Count</label>
|
594 |
+
<frontend_type>text</frontend_type>
|
595 |
+
<sort_order>80</sort_order>
|
596 |
+
<show_in_default>1</show_in_default>
|
597 |
+
<show_in_website>1</show_in_website>
|
598 |
+
<show_in_store>1</show_in_store>
|
599 |
+
<comment>(default value is 0) - Only show media items with this many characters or more in the caption</comment>
|
600 |
+
<depends><vc_gallery_enabled>1</vc_gallery_enabled></depends>
|
601 |
+
<validate>validate-number</validate>
|
602 |
+
</minimumTextContentCharacterCount>
|
603 |
+
<minimumTextContentWordCount>
|
604 |
+
<label>Minimum Text Content Word Count</label>
|
605 |
+
<frontend_type>text</frontend_type>
|
606 |
+
<sort_order>90</sort_order>
|
607 |
+
<show_in_default>1</show_in_default>
|
608 |
+
<show_in_website>1</show_in_website>
|
609 |
+
<show_in_store>1</show_in_store>
|
610 |
+
<comment>(default value is 0) - Only show media items with this many words or more in the caption</comment>
|
611 |
+
<depends><vc_gallery_enabled>1</vc_gallery_enabled></depends>
|
612 |
+
<validate>validate-number</validate>
|
613 |
+
</minimumTextContentWordCount>
|
614 |
+
<sortOrder>
|
615 |
+
<label>Sort Order</label>
|
616 |
+
<frontend_type>select</frontend_type>
|
617 |
+
<source_model>Turnto_Admin_Block_Adminhtml_System_Config_Vcgallerysort</source_model>
|
618 |
+
<sort_order>90</sort_order>
|
619 |
+
<show_in_default>1</show_in_default>
|
620 |
+
<show_in_website>1</show_in_website>
|
621 |
+
<show_in_store>1</show_in_store>
|
622 |
+
<comment>'Most Votes' sorts by the most upvotes, 'Most Recent' sorts by the the comment creation date descending, 'Longest' sorts by the longest caption first</comment>
|
623 |
+
<depends><vc_gallery_enabled>1</vc_gallery_enabled></depends>
|
624 |
+
</sortOrder>
|
625 |
+
</fields>
|
626 |
+
</vcgallery>
|
627 |
+
<vcpinboard>
|
628 |
+
<label>Turnto Visual Content Pinboard</label>
|
629 |
+
<comment><![CDATA[The Visual Content Pinboard is located: <basedir>/pinboard/visualcontent]]></comment>
|
630 |
+
<frontend_type>text</frontend_type>
|
631 |
+
<sort_order>8</sort_order>
|
632 |
+
<show_in_default>1</show_in_default>
|
633 |
+
<show_in_website>1</show_in_website>
|
634 |
+
<show_in_store>1</show_in_store>
|
635 |
+
<expanded>0</expanded>
|
636 |
+
<fields>
|
637 |
+
<enabled>
|
638 |
+
<label>Enabled Visual Content Gallery Widget</label>
|
639 |
+
<frontend_type>select</frontend_type>
|
640 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
641 |
+
<sort_order>10</sort_order>
|
642 |
+
<show_in_default>1</show_in_default>
|
643 |
+
<show_in_website>1</show_in_website>
|
644 |
+
<show_in_store>1</show_in_store>
|
645 |
+
</enabled>
|
646 |
+
<title>
|
647 |
+
<label>Title</label>
|
648 |
+
<frontend_type>text</frontend_type>
|
649 |
+
<sort_order>20</sort_order>
|
650 |
+
<show_in_default>1</show_in_default>
|
651 |
+
<show_in_website>1</show_in_website>
|
652 |
+
<show_in_store>1</show_in_store>
|
653 |
+
<comment>(default is "Customer Comments") - Title displayed at the top of the widget</comment>
|
654 |
+
<depends><enabled>1</enabled></depends>
|
655 |
+
</title>
|
656 |
+
<skus>
|
657 |
+
<label>SKUs</label>
|
658 |
+
<frontend_type>text</frontend_type>
|
659 |
+
<sort_order>30</sort_order>
|
660 |
+
<show_in_default>1</show_in_default>
|
661 |
+
<show_in_website>1</show_in_website>
|
662 |
+
<show_in_store>1</show_in_store>
|
663 |
+
<comment>Allows you to filter displayed content by one or more SKU(s) and/or Category(ies); Must be set as a valid Javascript array, e.g. ['category1','sku1','sku2']</comment>
|
664 |
+
<depends><enabled>1</enabled></depends>
|
665 |
+
</skus>
|
666 |
+
<brands>
|
667 |
+
<label>Brands</label>
|
668 |
+
<frontend_type>text</frontend_type>
|
669 |
+
<sort_order>40</sort_order>
|
670 |
+
<show_in_default>1</show_in_default>
|
671 |
+
<show_in_website>1</show_in_website>
|
672 |
+
<show_in_store>1</show_in_store>
|
673 |
+
<comment>Allows you to filter displayed content by one or more brand(s); Must be a valid Javascript array, e.g. ['brand1']</comment>
|
674 |
+
<depends><enabled>1</enabled></depends>
|
675 |
+
</brands>
|
676 |
+
<tags>
|
677 |
+
<label>Tags</label>
|
678 |
+
<frontend_type>text</frontend_type>
|
679 |
+
<sort_order>50</sort_order>
|
680 |
+
<show_in_default>1</show_in_default>
|
681 |
+
<show_in_website>1</show_in_website>
|
682 |
+
<show_in_store>1</show_in_store>
|
683 |
+
<comment>Allows you to filter displayed content by one or more tag code(s); Must be a valid Javascript array, e.g. ['tagcode1','tagcode2']</comment>
|
684 |
+
<depends><enabled>1</enabled></depends>
|
685 |
+
</tags>
|
686 |
+
<activeOnly>
|
687 |
+
<label>Active Only</label>
|
688 |
+
<frontend_type>select</frontend_type>
|
689 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
690 |
+
<sort_order>60</sort_order>
|
691 |
+
<show_in_default>1</show_in_default>
|
692 |
+
<show_in_website>1</show_in_website>
|
693 |
+
<show_in_store>1</show_in_store>
|
694 |
+
<comment>(default is No) - Only returns content for active products when 'Yes', otherwise all products are available</comment>
|
695 |
+
<depends><enabled>1</enabled></depends>
|
696 |
+
</activeOnly>
|
697 |
+
<showDatestamp>
|
698 |
+
<label>Show Datestamp</label>
|
699 |
+
<frontend_type>select</frontend_type>
|
700 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
701 |
+
<sort_order>70</sort_order>
|
702 |
+
<show_in_default>1</show_in_default>
|
703 |
+
<show_in_website>1</show_in_website>
|
704 |
+
<show_in_store>1</show_in_store>
|
705 |
+
<comment>(default is 'Yes') - Configures whether the datestamp displays on the pinboard. Note the datestamp always displays on the modal detail view</comment>
|
706 |
+
<depends><enabled>1</enabled></depends>
|
707 |
+
</showDatestamp>
|
708 |
+
<showCaption>
|
709 |
+
<label>Show Caption</label>
|
710 |
+
<frontend_type>select</frontend_type>
|
711 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
712 |
+
<sort_order>80</sort_order>
|
713 |
+
<show_in_default>1</show_in_default>
|
714 |
+
<show_in_website>1</show_in_website>
|
715 |
+
<show_in_store>1</show_in_store>
|
716 |
+
<comment>(default is 'Yes') - Configures whether the caption displays on the pinboard. Note the caption always displays on the modal detail view</comment>
|
717 |
+
<depends><enabled>1</enabled></depends>
|
718 |
+
</showCaption>
|
719 |
+
<minCaptionCharCount>
|
720 |
+
<label>Minimum Caption Character Count</label>
|
721 |
+
<frontend_type>text</frontend_type>
|
722 |
+
<sort_order>90</sort_order>
|
723 |
+
<show_in_default>1</show_in_default>
|
724 |
+
<show_in_website>1</show_in_website>
|
725 |
+
<show_in_store>1</show_in_store>
|
726 |
+
<comment>(default value is 0) - Only show media items with this many characters or more in the caption</comment>
|
727 |
+
<validate>validate-number</validate>
|
728 |
+
<depends><enabled>1</enabled></depends>
|
729 |
+
</minCaptionCharCount>
|
730 |
+
<minCaptionWordCount>
|
731 |
+
<label>Minimum Caption Word Count</label>
|
732 |
+
<frontend_type>text</frontend_type>
|
733 |
+
<sort_order>100</sort_order>
|
734 |
+
<show_in_default>1</show_in_default>
|
735 |
+
<show_in_website>1</show_in_website>
|
736 |
+
<show_in_store>1</show_in_store>
|
737 |
+
<comment>(default value is 0) - Only show media items with this many words or more in the caption</comment>
|
738 |
+
<validate>validate-number</validate>
|
739 |
+
<depends><enabled>1</enabled></depends>
|
740 |
+
</minCaptionWordCount>
|
741 |
+
<maxCaptionLength>
|
742 |
+
<label>Maximum Caption Length</label>
|
743 |
+
<frontend_type>text</frontend_type>
|
744 |
+
<sort_order>110</sort_order>
|
745 |
+
<show_in_default>1</show_in_default>
|
746 |
+
<show_in_website>1</show_in_website>
|
747 |
+
<show_in_store>1</show_in_store>
|
748 |
+
<comment>(default value is 85) - max length of caption text characters to display. ends with ellipsis (...)</comment>
|
749 |
+
<validate>validate-number</validate>
|
750 |
+
<depends><enabled>1</enabled></depends>
|
751 |
+
</maxCaptionLength>
|
752 |
+
<nameMaxLength>
|
753 |
+
<label>Maximum Name Length</label>
|
754 |
+
<frontend_type>text</frontend_type>
|
755 |
+
<sort_order>120</sort_order>
|
756 |
+
<show_in_default>1</show_in_default>
|
757 |
+
<show_in_website>1</show_in_website>
|
758 |
+
<show_in_store>1</show_in_store>
|
759 |
+
<comment>(default value is 255) - The maximum length of the user's name, after which displays an ellipsis (...)</comment>
|
760 |
+
<validate>validate-number</validate>
|
761 |
+
<depends><enabled>1</enabled></depends>
|
762 |
+
</nameMaxLength>
|
763 |
+
<sortOrder>
|
764 |
+
<label>Sort Order</label>
|
765 |
+
<frontend_type>text</frontend_type>
|
766 |
+
<sort_order>120</sort_order>
|
767 |
+
<show_in_default>1</show_in_default>
|
768 |
+
<show_in_website>1</show_in_website>
|
769 |
+
<show_in_store>1</show_in_store>
|
770 |
+
<comment>(default value is 0) - Options are '0' to sort by the most recent or '1' to sort by the most upvotes</comment>
|
771 |
+
<validate>validate-number</validate>
|
772 |
+
<depends><enabled>1</enabled></depends>
|
773 |
+
</sortOrder>
|
774 |
+
<limit>
|
775 |
+
<label>Limit</label>
|
776 |
+
<frontend_type>text</frontend_type>
|
777 |
+
<sort_order>130</sort_order>
|
778 |
+
<show_in_default>1</show_in_default>
|
779 |
+
<show_in_website>1</show_in_website>
|
780 |
+
<show_in_store>1</show_in_store>
|
781 |
+
<comment>(default value is 20) - The maximum number of product boxes to be displayed on page load. The remaining product boxes will be loaded in batches equal to the limit</comment>
|
782 |
+
<validate>validate-number</validate>
|
783 |
+
<depends><enabled>1</enabled></depends>
|
784 |
+
</limit>
|
785 |
+
<progressiveLoading>
|
786 |
+
<label>Progressive Loading</label>
|
787 |
+
<frontend_type>select</frontend_type>
|
788 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
789 |
+
<sort_order>140</sort_order>
|
790 |
+
<show_in_default>1</show_in_default>
|
791 |
+
<show_in_website>1</show_in_website>
|
792 |
+
<show_in_store>1</show_in_store>
|
793 |
+
<comment>(default is 'Yes') - When set to 'Yes' any remaining available content beyond the set limit will load once the user gets to the bottom of the page. If set to 'No' a 'load more' button will display instead</comment>
|
794 |
+
<depends><enabled>1</enabled></depends>
|
795 |
+
</progressiveLoading>
|
796 |
+
<hSpacing>
|
797 |
+
<label>Horizontal Spacing (in pixels)</label>
|
798 |
+
<frontend_type>text</frontend_type>
|
799 |
+
<sort_order>150</sort_order>
|
800 |
+
<show_in_default>1</show_in_default>
|
801 |
+
<show_in_website>1</show_in_website>
|
802 |
+
<show_in_store>1</show_in_store>
|
803 |
+
<comment>(default value is 8) - Used for horizontal spacing between items. Value is in pixels</comment>
|
804 |
+
<validate>validate-number</validate>
|
805 |
+
<depends><enabled>1</enabled></depends>
|
806 |
+
</hSpacing>
|
807 |
+
<vSpacing>
|
808 |
+
<label>Vertical Spacing (in pixels)</label>
|
809 |
+
<frontend_type>text</frontend_type>
|
810 |
+
<sort_order>150</sort_order>
|
811 |
+
<show_in_default>1</show_in_default>
|
812 |
+
<show_in_website>1</show_in_website>
|
813 |
+
<show_in_store>1</show_in_store>
|
814 |
+
<comment>(default value is 8) - Used for vertical spacing between items. Value is in pixels</comment>
|
815 |
+
<validate>validate-number</validate>
|
816 |
+
<depends><enabled>1</enabled></depends>
|
817 |
+
</vSpacing>
|
818 |
+
</fields>
|
819 |
+
</vcpinboard>
|
820 |
+
<ccpinboard>
|
821 |
+
<label>TurnTo Checkout Comments Pinboard</label>
|
822 |
+
<comment><![CDATA[The Checkout Comments Pinboard is located: <basedir>/pinboard/checkoutcomments]]></comment>
|
823 |
+
<frontend_type>text</frontend_type>
|
824 |
+
<sort_order>9</sort_order>
|
825 |
+
<show_in_default>1</show_in_default>
|
826 |
+
<show_in_website>1</show_in_website>
|
827 |
+
<show_in_store>1</show_in_store>
|
828 |
+
<expanded>0</expanded>
|
829 |
+
<fields>
|
830 |
+
<enabled>
|
831 |
+
<label>Enabled Checkout Comments Pinboard</label>
|
832 |
+
<frontend_type>select</frontend_type>
|
833 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
834 |
+
<sort_order>10</sort_order>
|
835 |
+
<show_in_default>1</show_in_default>
|
836 |
+
<show_in_website>1</show_in_website>
|
837 |
+
<show_in_store>1</show_in_store>
|
838 |
+
</enabled>
|
839 |
+
<title>
|
840 |
+
<label>Title</label>
|
841 |
+
<frontend_type>text</frontend_type>
|
842 |
+
<sort_order>20</sort_order>
|
843 |
+
<show_in_default>1</show_in_default>
|
844 |
+
<show_in_website>1</show_in_website>
|
845 |
+
<show_in_store>1</show_in_store>
|
846 |
+
<comment>(default is "Customer Comments") - Title displayed at the top of the widget</comment>
|
847 |
+
<depends><enabled>1</enabled></depends>
|
848 |
+
</title>
|
849 |
+
<skus>
|
850 |
+
<label>SKUs</label>
|
851 |
+
<frontend_type>text</frontend_type>
|
852 |
+
<sort_order>30</sort_order>
|
853 |
+
<show_in_default>1</show_in_default>
|
854 |
+
<show_in_website>1</show_in_website>
|
855 |
+
<show_in_store>1</show_in_store>
|
856 |
+
<comment>Allows you to filter displayed content by one or more SKU(s) and/or Category(ies); Must be set as a valid Javascript array, e.g. ['category1','sku1','sku2']</comment>
|
857 |
+
<depends><enabled>1</enabled></depends>
|
858 |
+
</skus>
|
859 |
+
<brands>
|
860 |
+
<label>Brands</label>
|
861 |
+
<frontend_type>text</frontend_type>
|
862 |
+
<sort_order>40</sort_order>
|
863 |
+
<show_in_default>1</show_in_default>
|
864 |
+
<show_in_website>1</show_in_website>
|
865 |
+
<show_in_store>1</show_in_store>
|
866 |
+
<comment>Allows you to filter displayed content by one or more brand(s); Must be a valid Javascript array, e.g. ['brand1']</comment>
|
867 |
+
<depends><enabled>1</enabled></depends>
|
868 |
+
</brands>
|
869 |
+
<tags>
|
870 |
+
<label>Tags</label>
|
871 |
+
<frontend_type>text</frontend_type>
|
872 |
+
<sort_order>50</sort_order>
|
873 |
+
<show_in_default>1</show_in_default>
|
874 |
+
<show_in_website>1</show_in_website>
|
875 |
+
<show_in_store>1</show_in_store>
|
876 |
+
<comment>Allows you to filter displayed content by one or more tag code(s); Must be a valid Javascript array, e.g. ['tagcode1','tagcode2']</comment>
|
877 |
+
<depends><enabled>1</enabled></depends>
|
878 |
+
</tags>
|
879 |
+
<activeOnly>
|
880 |
+
<label>Active Only</label>
|
881 |
+
<frontend_type>select</frontend_type>
|
882 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
883 |
+
<sort_order>60</sort_order>
|
884 |
+
<show_in_default>1</show_in_default>
|
885 |
+
<show_in_website>1</show_in_website>
|
886 |
+
<show_in_store>1</show_in_store>
|
887 |
+
<comment>(default is No) - Only returns content for active products when 'Yes', otherwise all products are available</comment>
|
888 |
+
<depends><enabled>1</enabled></depends>
|
889 |
+
</activeOnly>
|
890 |
+
<includeSyndicated>
|
891 |
+
<label>Include Syndicated</label>
|
892 |
+
<frontend_type>select</frontend_type>
|
893 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
894 |
+
<sort_order>70</sort_order>
|
895 |
+
<show_in_default>1</show_in_default>
|
896 |
+
<show_in_website>1</show_in_website>
|
897 |
+
<show_in_store>1</show_in_store>
|
898 |
+
<comment>(default is No) - Whether to include content from syndication partners</comment>
|
899 |
+
<depends><enabled>1</enabled></depends>
|
900 |
+
</includeSyndicated>
|
901 |
+
<titleMaxLength>
|
902 |
+
<label>Max Title Length</label>
|
903 |
+
<frontend_type>text</frontend_type>
|
904 |
+
<sort_order>80</sort_order>
|
905 |
+
<show_in_default>1</show_in_default>
|
906 |
+
<show_in_website>1</show_in_website>
|
907 |
+
<show_in_store>1</show_in_store>
|
908 |
+
<comment>(default value is 255) - The maximum length of the product title, after which displays an ellipsis (...)</comment>
|
909 |
+
<validate>validate-number</validate>
|
910 |
+
<depends><enabled>1</enabled></depends>
|
911 |
+
</titleMaxLength>
|
912 |
+
<maxDaysOld>
|
913 |
+
<label>Max Days Old</label>
|
914 |
+
<frontend_type>text</frontend_type>
|
915 |
+
<sort_order>90</sort_order>
|
916 |
+
<show_in_default>1</show_in_default>
|
917 |
+
<show_in_website>1</show_in_website>
|
918 |
+
<show_in_store>1</show_in_store>
|
919 |
+
<comment>(default value is 30) - The maximum days old a comment can be and still appear in the product box. A value of -1 specifies means all comments should be included, regardless of age</comment>
|
920 |
+
<validate>validate-number</validate>
|
921 |
+
<depends><enabled>1</enabled></depends>
|
922 |
+
</maxDaysOld>
|
923 |
+
<maxCommentsPerBox>
|
924 |
+
<label>Maximum Comments per Box</label>
|
925 |
+
<frontend_type>text</frontend_type>
|
926 |
+
<sort_order>100</sort_order>
|
927 |
+
<show_in_default>1</show_in_default>
|
928 |
+
<show_in_website>1</show_in_website>
|
929 |
+
<show_in_store>1</show_in_store>
|
930 |
+
<comment>(default value is 5) - The maximum number of comments that should be displayed in each product box</comment>
|
931 |
+
<validate>validate-number</validate>
|
932 |
+
<depends><enabled>1</enabled></depends>
|
933 |
+
</maxCommentsPerBox>
|
934 |
+
<nameMaxLength>
|
935 |
+
<label>Maximum Name Length</label>
|
936 |
+
<frontend_type>text</frontend_type>
|
937 |
+
<sort_order>110</sort_order>
|
938 |
+
<show_in_default>1</show_in_default>
|
939 |
+
<show_in_website>1</show_in_website>
|
940 |
+
<show_in_store>1</show_in_store>
|
941 |
+
<comment>(default value is 255) - The maximum length of the user's name, after which displays an ellipsis (...)</comment>
|
942 |
+
<validate>validate-number</validate>
|
943 |
+
<depends><enabled>1</enabled></depends>
|
944 |
+
</nameMaxLength>
|
945 |
+
<commentMaxLength>
|
946 |
+
<label>Maximum Comment Length</label>
|
947 |
+
<frontend_type>text</frontend_type>
|
948 |
+
<sort_order>120</sort_order>
|
949 |
+
<show_in_default>1</show_in_default>
|
950 |
+
<show_in_website>1</show_in_website>
|
951 |
+
<show_in_store>1</show_in_store>
|
952 |
+
<comment>(default value is 200) - The maximum length of text characters to display. ends with ellipsis (...)</comment>
|
953 |
+
<validate>validate-number</validate>
|
954 |
+
<depends><enabled>1</enabled></depends>
|
955 |
+
</commentMaxLength>
|
956 |
+
<limit>
|
957 |
+
<label>Limit</label>
|
958 |
+
<frontend_type>text</frontend_type>
|
959 |
+
<sort_order>130</sort_order>
|
960 |
+
<show_in_default>1</show_in_default>
|
961 |
+
<show_in_website>1</show_in_website>
|
962 |
+
<show_in_store>1</show_in_store>
|
963 |
+
<comment>(default value is 20) - The maximum number of product boxes to be displayed on page load. The remaining product boxes will be loaded in batches equal to the limit</comment>
|
964 |
+
<validate>validate-number</validate>
|
965 |
+
<depends><enabled>1</enabled></depends>
|
966 |
+
</limit>
|
967 |
+
<progressiveLoading>
|
968 |
+
<label>Progressive Loading</label>
|
969 |
+
<frontend_type>select</frontend_type>
|
970 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
971 |
+
<sort_order>140</sort_order>
|
972 |
+
<show_in_default>1</show_in_default>
|
973 |
+
<show_in_website>1</show_in_website>
|
974 |
+
<show_in_store>1</show_in_store>
|
975 |
+
<comment>(default is 'Yes') - When set to 'Yes' any remaining available content beyond the set limit will load once the user gets to the bottom of the page. If set to 'No' a 'load more' button will display instead</comment>
|
976 |
+
<depends><enabled>1</enabled></depends>
|
977 |
+
</progressiveLoading>
|
978 |
+
<hSpacing>
|
979 |
+
<label>Horizontal Spacing (in pixels)</label>
|
980 |
+
<frontend_type>text</frontend_type>
|
981 |
+
<sort_order>150</sort_order>
|
982 |
+
<show_in_default>1</show_in_default>
|
983 |
+
<show_in_website>1</show_in_website>
|
984 |
+
<show_in_store>1</show_in_store>
|
985 |
+
<comment>(default value is 8) - Used for horizontal spacing between items. Value is in pixels</comment>
|
986 |
+
<validate>validate-number</validate>
|
987 |
+
<depends><enabled>1</enabled></depends>
|
988 |
+
</hSpacing>
|
989 |
+
<vSpacing>
|
990 |
+
<label>Vertical Spacing (in pixels)</label>
|
991 |
+
<frontend_type>text</frontend_type>
|
992 |
+
<sort_order>150</sort_order>
|
993 |
+
<show_in_default>1</show_in_default>
|
994 |
+
<show_in_website>1</show_in_website>
|
995 |
+
<show_in_store>1</show_in_store>
|
996 |
+
<comment>(default value is 8) - Used for vertical spacing between items. Value is in pixels</comment>
|
997 |
+
<validate>validate-number</validate>
|
998 |
+
<depends><enabled>1</enabled></depends>
|
999 |
+
</vSpacing>
|
1000 |
+
</fields>
|
1001 |
+
</ccpinboard>
|
1002 |
<mobileconfig>
|
1003 |
<label>Turnto Mobile Configuration</label>
|
1004 |
<comment><![CDATA[The default mobile landing page URL is <baseurl>/turntomobile]]></comment>
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Turnto_Client_Block_Checkoutchatterpdp extends Mage_Core_Block_Template
|
4 |
+
{
|
5 |
+
const TURNTO_CC_PDP_CACHE_TAG = 'TURNTO_CC_PDP_CACHE_TAG';
|
6 |
+
const TURNTO_CC_PDP_CACHE_KEY = 'TURNTO_CC_PDP_CACHE_KEY';
|
7 |
+
|
8 |
+
public function __construct()
|
9 |
+
{
|
10 |
+
// cache by store, http(s), package, theme
|
11 |
+
$this->addData(array(
|
12 |
+
// defaults to 15 minutes
|
13 |
+
'cache_lifetime' => Mage::getStoreConfig('turnto_admin/general/cc_display_cache_time') ? intval(Mage::getStoreConfig('turnto_admin/general/cc_display_cache_time')) : 900,
|
14 |
+
'cache_tags' => array(
|
15 |
+
$this::TURNTO_CC_PDP_CACHE_TAG,
|
16 |
+
Mage_Catalog_Model_Product::CACHE_TAG,
|
17 |
+
Mage::app()->getStore()->getId(),
|
18 |
+
(int)Mage::app()->getStore()->isCurrentlySecure(),
|
19 |
+
Mage::getDesign()->getPackageName(),
|
20 |
+
Mage::getDesign()->getTheme('template')
|
21 |
+
),
|
22 |
+
'cache_key' => $this::TURNTO_CC_PDP_CACHE_KEY . $this->getProduct()->getId()
|
23 |
+
));
|
24 |
+
}
|
25 |
+
|
26 |
+
public function getProduct()
|
27 |
+
{
|
28 |
+
return Mage::registry('current_product');
|
29 |
+
}
|
30 |
+
}
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Turnto_Client_Block_Vcgallery extends Mage_Core_Block_Template
|
4 |
+
{
|
5 |
+
const TURNTO_VC_GALLERY_CACHE_TAG = 'TURNTO_VC_GALLERY_CACHE_TAG';
|
6 |
+
const TURNTO_VC_GALLERY_CACHE_KEY = 'TURNTO_VC_GALLERY_CACHE_KEY';
|
7 |
+
|
8 |
+
public function __construct()
|
9 |
+
{
|
10 |
+
$helper = Mage::helper('turnto_client_helper/data');
|
11 |
+
//parent::construct();
|
12 |
+
$this->addData(array(
|
13 |
+
// defaults to 15 minutes
|
14 |
+
'cache_lifetime' => Mage::getStoreConfig('turnto_admin/general/vcgallery_cache_time') ? intval(Mage::getStoreConfig('turnto_admin/general/vcgallery_cache_time')) : 900,
|
15 |
+
'cache_tags' => array(
|
16 |
+
$this::TURNTO_VC_GALLERY_CACHE_TAG,
|
17 |
+
Mage_Catalog_Model_Product::CACHE_TAG,
|
18 |
+
Mage::app()->getStore()->getId(),
|
19 |
+
(int)Mage::app()->getStore()->isCurrentlySecure(),
|
20 |
+
Mage::getDesign()->getPackageName(),
|
21 |
+
Mage::getDesign()->getTheme('template')
|
22 |
+
),
|
23 |
+
'cache_key' => $this::TURNTO_VC_GALLERY_CACHE_KEY . $this->getProduct()->getId()
|
24 |
+
));
|
25 |
+
}
|
26 |
+
|
27 |
+
public function getProduct()
|
28 |
+
{
|
29 |
+
return Mage::registry('current_product');
|
30 |
+
}
|
31 |
+
}
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Turnto_Client_CheckoutcommentsController extends Mage_Core_Controller_Front_Action
|
4 |
+
{
|
5 |
+
public function indexAction()
|
6 |
+
{
|
7 |
+
if (intVal(Mage::getStoreConfig('turnto_admin/ccpinboard/enabled')) != 1) {
|
8 |
+
// visual content pinboard not enabled
|
9 |
+
$this->norouteAction();
|
10 |
+
return;
|
11 |
+
}
|
12 |
+
|
13 |
+
$this->loadLayout();
|
14 |
+
|
15 |
+
$block = $this->getLayout()->createBlock(
|
16 |
+
'Mage_Core_Block_Template',
|
17 |
+
'vcpinboard',
|
18 |
+
array('template' => 'turnto/client/pinboard.phtml')
|
19 |
+
);
|
20 |
+
|
21 |
+
$headBlock = $this->getLayout()->createBlock(
|
22 |
+
'Mage_Core_Block_Template',
|
23 |
+
'vcpinboardjs',
|
24 |
+
array('template' => 'turnto/client/ccpinboard_js.phtml')
|
25 |
+
);
|
26 |
+
|
27 |
+
$this->getLayout()->getBlock('root')->setTemplate('page/1column.phtml');
|
28 |
+
$this->getLayout()->getBlock('head')->append($headBlock);
|
29 |
+
$this->getLayout()->getBlock('content')->append($block);
|
30 |
+
$this->_initLayoutMessages('core/session');
|
31 |
+
$this->renderLayout();
|
32 |
+
}
|
33 |
+
}
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Turnto_Client_VisualcontentController extends Mage_Core_Controller_Front_Action
|
4 |
+
{
|
5 |
+
public function indexAction()
|
6 |
+
{
|
7 |
+
if (intVal(Mage::getStoreConfig('turnto_admin/vcpinboard/enabled')) != 1) {
|
8 |
+
// visual content pinboard not enabled
|
9 |
+
$this->norouteAction();
|
10 |
+
return;
|
11 |
+
}
|
12 |
+
|
13 |
+
$this->loadLayout();
|
14 |
+
|
15 |
+
$block = $this->getLayout()->createBlock(
|
16 |
+
'Mage_Core_Block_Template',
|
17 |
+
'vcpinboard',
|
18 |
+
array('template' => 'turnto/client/pinboard.phtml')
|
19 |
+
);
|
20 |
+
|
21 |
+
$headBlock = $this->getLayout()->createBlock(
|
22 |
+
'Mage_Core_Block_Template',
|
23 |
+
'vcpinboardjs',
|
24 |
+
array('template' => 'turnto/client/vcpinboard_js.phtml')
|
25 |
+
);
|
26 |
+
|
27 |
+
$this->getLayout()->getBlock('root')->setTemplate('page/1column.phtml');
|
28 |
+
$this->getLayout()->getBlock('head')->append($headBlock);
|
29 |
+
$this->getLayout()->getBlock('content')->append($block);
|
30 |
+
$this->_initLayoutMessages('core/session');
|
31 |
+
$this->renderLayout();
|
32 |
+
}
|
33 |
+
}
|
@@ -3,7 +3,7 @@
|
|
3 |
<config>
|
4 |
<modules>
|
5 |
<Turnto_Admin>
|
6 |
-
<version>3.0
|
7 |
</Turnto_Admin>
|
8 |
</modules>
|
9 |
|
@@ -31,5 +31,15 @@
|
|
31 |
</checkout_cart_index>
|
32 |
</updates>
|
33 |
</layout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
</frontend>
|
35 |
</config>
|
3 |
<config>
|
4 |
<modules>
|
5 |
<Turnto_Admin>
|
6 |
+
<version>3.1.0</version>
|
7 |
</Turnto_Admin>
|
8 |
</modules>
|
9 |
|
31 |
</checkout_cart_index>
|
32 |
</updates>
|
33 |
</layout>
|
34 |
+
|
35 |
+
<routers>
|
36 |
+
<turntopinboard>
|
37 |
+
<use>standard</use>
|
38 |
+
<args>
|
39 |
+
<module>Turnto_Client</module>
|
40 |
+
<frontName>pinboard</frontName>
|
41 |
+
</args>
|
42 |
+
</turntopinboard>
|
43 |
+
</routers>
|
44 |
</frontend>
|
45 |
</config>
|
@@ -3,7 +3,7 @@
|
|
3 |
<config>
|
4 |
<modules>
|
5 |
<Turnto_Login>
|
6 |
-
<version>3.0
|
7 |
</Turnto_Login>
|
8 |
</modules>
|
9 |
|
3 |
<config>
|
4 |
<modules>
|
5 |
<Turnto_Login>
|
6 |
+
<version>3.1.0</version>
|
7 |
</Turnto_Login>
|
8 |
</modules>
|
9 |
|
@@ -3,7 +3,7 @@
|
|
3 |
<config>
|
4 |
<modules>
|
5 |
<Turnto_Mobile>
|
6 |
-
<version>3.0
|
7 |
</Turnto_Mobile>
|
8 |
</modules>
|
9 |
|
3 |
<config>
|
4 |
<modules>
|
5 |
<Turnto_Mobile>
|
6 |
+
<version>3.1.0</version>
|
7 |
</Turnto_Mobile>
|
8 |
</modules>
|
9 |
|
@@ -7,19 +7,19 @@
|
|
7 |
<reference name="product.info">
|
8 |
<block type="turnto_client_block/qateaser" name="turnto_qa_teaser" as="turnto_qa_teaser" template="turnto/client/qa.teaser.phtml"/>
|
9 |
<block type="turnto_client_block/reviewsteaser" name="turnto_reviews_teaser" as="turnto_reviews_teaser" template="turnto/client/reviews.teaser.phtml"/>
|
10 |
-
|
11 |
-
<reference name="product.info">
|
12 |
<block type="turnto_client_block/reviewscontent" name="turnto_reviews_content" as="turnto_reviews_content" template="turnto/client/reviews.phtml"/>
|
13 |
<block type="turnto_client_block/qacontent" name="turnto_qa_content" as="turnto_qa_content" template="turnto/client/qa.phtml"/>
|
|
|
14 |
</reference>
|
15 |
</catalog_product_view>
|
16 |
<checkout_onepage_success>
|
17 |
-
<reference name="
|
18 |
<block type="core/template" name="checkout_trajs" template="turnto/client/checkout.tra_js.phtml" />
|
19 |
</reference>
|
20 |
</checkout_onepage_success>
|
21 |
<checkout_multishipping_success>
|
22 |
-
<reference name="
|
23 |
<block type="core/template" name="checkout_trajs" template="turnto/client/checkout.tra_js.phtml" />
|
24 |
</reference>
|
25 |
</checkout_multishipping_success>
|
7 |
<reference name="product.info">
|
8 |
<block type="turnto_client_block/qateaser" name="turnto_qa_teaser" as="turnto_qa_teaser" template="turnto/client/qa.teaser.phtml"/>
|
9 |
<block type="turnto_client_block/reviewsteaser" name="turnto_reviews_teaser" as="turnto_reviews_teaser" template="turnto/client/reviews.teaser.phtml"/>
|
10 |
+
<block type="turnto_client_block/checkoutchatterpdp" name="turnto_cc_pdp" as="turnto_cc_pdp" template="turnto/client/checkoutchatter.pdp.phtml"/>
|
|
|
11 |
<block type="turnto_client_block/reviewscontent" name="turnto_reviews_content" as="turnto_reviews_content" template="turnto/client/reviews.phtml"/>
|
12 |
<block type="turnto_client_block/qacontent" name="turnto_qa_content" as="turnto_qa_content" template="turnto/client/qa.phtml"/>
|
13 |
+
<block type="turnto_client_block/vcgallery" name="turnto_vc_gallery" as="turnto_vc_gallery" template="turnto/client/vcgallery.phtml"/>
|
14 |
</reference>
|
15 |
</catalog_product_view>
|
16 |
<checkout_onepage_success>
|
17 |
+
<reference name="content">
|
18 |
<block type="core/template" name="checkout_trajs" template="turnto/client/checkout.tra_js.phtml" />
|
19 |
</reference>
|
20 |
</checkout_onepage_success>
|
21 |
<checkout_multishipping_success>
|
22 |
+
<reference name="content">
|
23 |
<block type="core/template" name="checkout_trajs" template="turnto/client/checkout.tra_js.phtml" />
|
24 |
</reference>
|
25 |
</checkout_multishipping_success>
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$helper = Mage::helper('turnto_client_helper/data');
|
3 |
+
?>
|
4 |
+
<script type="text/javascript">
|
5 |
+
var turnToConfig = {
|
6 |
+
siteKey: "<?php echo Mage::getStoreConfig('turnto_admin/general/site_key'); ?>",
|
7 |
+
host: "<?php echo $helper->getHostWithoutProtocol(); ?>",
|
8 |
+
staticHost: "<?php echo $helper->getStaticHostWithoutProtocol(); ?>",
|
9 |
+
pinboard: {
|
10 |
+
contentType: 'checkoutComments',
|
11 |
+
|
12 |
+
title: "<?php echo Mage::getStoreConfig('turnto_admin/ccpinboard/title')?>",
|
13 |
+
skus: <?php echo (Mage::getStoreConfig('turnto_admin/ccpinboard/skus') == '' ? 'null' : Mage::getStoreConfig('turnto_admin/ccpinboard/skus'))?>,
|
14 |
+
brands: <?php echo (Mage::getStoreConfig('turnto_admin/ccpinboard/brands') == '' ? 'null' : Mage::getStoreConfig('turnto_admin/ccpinboard/brands'))?>,
|
15 |
+
tags: <?php echo (Mage::getStoreConfig('turnto_admin/ccpinboard/tags') == '' ? 'null' : Mage::getStoreConfig('turnto_admin/ccpinboard/tags'))?>,
|
16 |
+
activeOnly: <?php echo (Mage::getStoreConfig('turnto_admin/ccpinboard/activeOnly') == '1' ? 'true' : 'false')?>,
|
17 |
+
includeSyndicated: <?php echo (Mage::getStoreConfig('turnto_admin/ccpinboard/includeSyndicated') == '1' ? 'true' : 'false')?>,
|
18 |
+
titleMaxLength: <?php echo (Mage::getStoreConfig('turnto_admin/ccpinboard/titleMaxLength') == '' ? 255 : Mage::getStoreConfig('turnto_admin/ccpinboard/titleMaxLength'))?>,
|
19 |
+
maxDaysOld: <?php echo (Mage::getStoreConfig('turnto_admin/ccpinboard/maxDaysOld') == '' ? 30 : Mage::getStoreConfig('turnto_admin/ccpinboard/maxDaysOld'))?>,
|
20 |
+
maxCommentsPerBox: <?php echo (Mage::getStoreConfig('turnto_admin/ccpinboard/maxCommentsPerBox') == '' ? 5 : Mage::getStoreConfig('turnto_admin/ccpinboard/maxCommentsPerBox'))?>,
|
21 |
+
nameMaxLength: <?php echo (Mage::getStoreConfig('turnto_admin/ccpinboard/nameMaxLength') == '' ? 255 : Mage::getStoreConfig('turnto_admin/ccpinboard/nameMaxLength'))?>,
|
22 |
+
commentMaxLength: <?php echo (Mage::getStoreConfig('turnto_admin/ccpinboard/commentMaxLength') == '' ? 200 : Mage::getStoreConfig('turnto_admin/ccpinboard/commentMaxLength'))?>,
|
23 |
+
limit: <?php echo (Mage::getStoreConfig('turnto_admin/ccpinboard/limit') == '' ? 20 : Mage::getStoreConfig('turnto_admin/ccpinboard/limit'))?>,
|
24 |
+
progressiveLoading: <?php echo (Mage::getStoreConfig('turnto_admin/ccpinboard/progressiveLoading') == '1' ? 'true' : 'false')?>,
|
25 |
+
hSpacing: <?php echo (Mage::getStoreConfig('turnto_admin/ccpinboard/hSpacing') == '' ? 8 : Mage::getStoreConfig('turnto_admin/ccpinboard/hSpacing'))?>,
|
26 |
+
vSpacing: <?php echo (Mage::getStoreConfig('turnto_admin/ccpinboard/vSpacing') == '' ? 8 : Mage::getStoreConfig('turnto_admin/ccpinboard/vSpacing'))?>
|
27 |
+
}
|
28 |
+
};
|
29 |
+
|
30 |
+
(function() {
|
31 |
+
var tt = document.createElement('script');
|
32 |
+
tt.type = 'text/javascript'; tt.async = true;
|
33 |
+
tt.src = "//<?php echo $helper->getStaticHostWithoutProtocol() ?>/traServer<?php echo $helper->getVersionForPath()?>/pinboardjs/" + turnToConfig.siteKey + "/turnto-pinboard.js";
|
34 |
+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(tt, s);
|
35 |
+
})();
|
36 |
+
</script>
|
@@ -1,13 +1,22 @@
|
|
1 |
<?php if(Mage::getStoreConfig('turnto_admin/checkoutcomments/checkoutcomments_enabled') == 1) : ?>
|
2 |
<?php $helper = Mage::helper('turnto_client_helper/data'); ?>
|
3 |
<script type="text/javascript">
|
|
|
|
|
|
|
|
|
4 |
// turnto extension
|
5 |
var turnToConfig = {
|
6 |
siteKey: "<?php echo Mage::getStoreConfig('turnto_admin/general/site_key'); ?>",
|
7 |
host: "<?php echo $helper->getHostWithoutProtocol(); ?>",
|
8 |
staticHost: "<?php echo $helper->getStaticHostWithoutProtocol(); ?>",
|
9 |
-
postPurchaseFlow:true
|
|
|
10 |
};
|
|
|
|
|
|
|
|
|
11 |
</script>
|
12 |
|
13 |
<script type="text/javascript" src="//<?php echo $helper->getStaticHostWithoutProtocol(); ?>/tra<?php echo $helper->getVersionForPath()?>/turntoFeed.js"></script>
|
1 |
<?php if(Mage::getStoreConfig('turnto_admin/checkoutcomments/checkoutcomments_enabled') == 1) : ?>
|
2 |
<?php $helper = Mage::helper('turnto_client_helper/data'); ?>
|
3 |
<script type="text/javascript">
|
4 |
+
var turnToEmbedCommentCapture = false;
|
5 |
+
if (navigator.userAgent.match(/(iPhone|Android|BlackBerry|IEMobile)/)) {
|
6 |
+
turnToEmbedCommentCapture = true;
|
7 |
+
}
|
8 |
// turnto extension
|
9 |
var turnToConfig = {
|
10 |
siteKey: "<?php echo Mage::getStoreConfig('turnto_admin/general/site_key'); ?>",
|
11 |
host: "<?php echo $helper->getHostWithoutProtocol(); ?>",
|
12 |
staticHost: "<?php echo $helper->getStaticHostWithoutProtocol(); ?>",
|
13 |
+
postPurchaseFlow:true,
|
14 |
+
embedCommentCapture: turnToEmbedCommentCapture
|
15 |
};
|
16 |
+
|
17 |
+
if(turnToEmbedCommentCapture){
|
18 |
+
document.write('<div id="TTcommentCapture"></div>');
|
19 |
+
}
|
20 |
</script>
|
21 |
|
22 |
<script type="text/javascript" src="//<?php echo $helper->getStaticHostWithoutProtocol(); ?>/tra<?php echo $helper->getVersionForPath()?>/turntoFeed.js"></script>
|
@@ -0,0 +1 @@
|
|
|
1 |
+
<div id="TurnToChatterContent"></div>
|
@@ -0,0 +1 @@
|
|
|
1 |
+
<div id="TurnToPinboardContent"></div>
|
@@ -1 +1,5 @@
|
|
1 |
-
|
|
|
|
|
|
|
|
1 |
+
<?php if (Mage::getStoreConfig('turnto_admin/qa/qa_teaser_type') == 'iTeaserFunc'): ?>
|
2 |
+
<span class="TurnToItemTeaser"></span>
|
3 |
+
<?php else: ?>
|
4 |
+
<span class="TurnToItemInputTeaser"></span>
|
5 |
+
<?php endif; ?>
|
@@ -20,24 +20,77 @@
|
|
20 |
//imageStoreBase: 'wac.edgecastcdn.net/001A39/qa',
|
21 |
setupType: "<?php echo Mage::getStoreConfig('turnto_admin/qa/qa_setup_type') ?>",
|
22 |
reviewsSetupType: "<?php echo Mage::getStoreConfig('turnto_admin/reviews/reviews_setup_type') ?>"
|
23 |
-
<?php if (intval(Mage::getStoreConfig('turnto_admin/qa/qa_teaser_custom_enabled')) == 1): ?>
|
24 |
,iTeaserFunc: <?php echo Mage::getStoreConfig('turnto_admin/qa/qa_teaser_custom_function_name'); ?>
|
|
|
|
|
25 |
<?php endif; ?>
|
26 |
<?php if (intval(Mage::getStoreConfig('turnto_admin/reviews/reviews_teaser_custom_enabled')) == 1): ?>
|
27 |
,reviewsTeaserFunc: <?php echo Mage::getStoreConfig('turnto_admin/reviews/reviews_teaser_custom_function_name'); ?>
|
28 |
<?php endif; ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
};
|
30 |
(function () {
|
31 |
var tt = document.createElement('script');
|
32 |
tt.type = 'text/javascript';
|
33 |
tt.async = true;
|
34 |
-
tt.src = "
|
35 |
var s = document.getElementsByTagName('script')[0];
|
36 |
s.parentNode.insertBefore(tt, s);
|
37 |
})();
|
38 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
var TurnToItemSku = "<?php echo $TTSKU ?>";
|
40 |
</script>
|
41 |
|
42 |
-
<script type="text/javascript" src="<?php echo Mage::getStoreConfig('turnto_admin/general/static_url')?>/sitedata/<?php echo Mage::getStoreConfig('turnto_admin/general/site_key'); ?>/
|
43 |
|
20 |
//imageStoreBase: 'wac.edgecastcdn.net/001A39/qa',
|
21 |
setupType: "<?php echo Mage::getStoreConfig('turnto_admin/qa/qa_setup_type') ?>",
|
22 |
reviewsSetupType: "<?php echo Mage::getStoreConfig('turnto_admin/reviews/reviews_setup_type') ?>"
|
23 |
+
<?php if (intval(Mage::getStoreConfig('turnto_admin/qa/qa_teaser_custom_enabled')) == 1 && Mage::getStoreConfig('turnto_admin/qa/qa_teaser_type') == 'iTeaserFunc'): ?>
|
24 |
,iTeaserFunc: <?php echo Mage::getStoreConfig('turnto_admin/qa/qa_teaser_custom_function_name'); ?>
|
25 |
+
<?php elseif (intval(Mage::getStoreConfig('turnto_admin/qa/qa_teaser_custom_enabled')) == 1 && Mage::getStoreConfig('turnto_admin/qa/qa_teaser_type') != 'iTeaserFunc'): ?>
|
26 |
+
,itemInputTeaserFunc: <?php echo Mage::getStoreConfig('turnto_admin/qa/qa_teaser_custom_function_name'); ?>
|
27 |
<?php endif; ?>
|
28 |
<?php if (intval(Mage::getStoreConfig('turnto_admin/reviews/reviews_teaser_custom_enabled')) == 1): ?>
|
29 |
,reviewsTeaserFunc: <?php echo Mage::getStoreConfig('turnto_admin/reviews/reviews_teaser_custom_function_name'); ?>
|
30 |
<?php endif; ?>
|
31 |
+
<?php if (intval(Mage::getStoreConfig('turnto_admin/checkoutcomments/checkoutcomments_display_enabled')) == 1): ?>
|
32 |
+
,chatter: {
|
33 |
+
columns: <?php echo Mage::getStoreConfig('turnto_admin/checkoutcomments/cc_columns') == 'auto' ? "'auto'" : Mage::getStoreConfig('turnto_admin/checkoutcomments/cc_columns') ?>,
|
34 |
+
rowsInCollapsedView: <?php echo Mage::getStoreConfig('turnto_admin/checkoutcomments/cc_rows_collapsed') ?>,
|
35 |
+
rowsInExpandedView: <?php echo Mage::getStoreConfig('turnto_admin/checkoutcomments/cc_rows_expanded') ?>,
|
36 |
+
title: '<?php echo Mage::getStoreConfig('turnto_admin/checkoutcomments/cc_title') ?>',
|
37 |
+
expandText: '<?php echo Mage::getStoreConfig('turnto_admin/checkoutcomments/cc_expand_text') ?>',
|
38 |
+
collapsedText: '<?php echo Mage::getStoreConfig('turnto_admin/checkoutcomments/cc_collaped_text') ?>',
|
39 |
+
paginationPrevText: '<?php echo Mage::getStoreConfig('turnto_admin/checkoutcomments/cc_pagination_prev_text') ?>',
|
40 |
+
paginationNextText: '<?php echo Mage::getStoreConfig('turnto_admin/checkoutcomments/cc_pagination_next_text') ?>',
|
41 |
+
minimumCommentCount: <?php echo Mage::getStoreConfig('turnto_admin/checkoutcomments/cc_minimum_comment_count') ?>,
|
42 |
+
minimumCommentCharacterCount: <?php echo Mage::getStoreConfig('turnto_admin/checkoutcomments/cc_minimum_comment_character_count') ?>,
|
43 |
+
minimumCommentWordCount: <?php echo Mage::getStoreConfig('turnto_admin/checkoutcomments/cc_minimum_comment_word_count') ?>,
|
44 |
+
commentTruncateLength: <?php echo Mage::getStoreConfig('turnto_admin/checkoutcomments/cc_truncate_length') ?>,
|
45 |
+
includeSyndicated: <?php echo (Mage::getStoreConfig('turnto_admin/checkoutcomments/cc_include_syndicated') == 1 ? 'true' : 'false') ?>,
|
46 |
+
sortOrder: '<?php echo Mage::getStoreConfig('turnto_admin/checkoutcomments/cc_sort_order') ?>'
|
47 |
+
}
|
48 |
+
<?php endif; ?>
|
49 |
+
<?php if (intval(Mage::getStoreConfig('turnto_admin/vcgallery/vc_gallery_enabled')) == 1): ?>
|
50 |
+
,gallery: {
|
51 |
+
title: "<?php echo Mage::getStoreConfig('turnto_admin/vcgallery/title') ?>",
|
52 |
+
size: "<?php echo Mage::getStoreConfig('turnto_admin/vcgallery/size') ?>",
|
53 |
+
modalSize: "<?php echo Mage::getStoreConfig('turnto_admin/vcgallery/modalSize') ?>",
|
54 |
+
showCaptionsInline: <?php echo Mage::getStoreConfig('turnto_admin/vcgallery/showCaptionsInline') == 1 ? 'true' : 'false'?>,
|
55 |
+
truncateLength: <?php echo Mage::getStoreConfig('turnto_admin/vcgallery/truncateLength') ?>,
|
56 |
+
minimumContentCount: <?php echo Mage::getStoreConfig('turnto_admin/vcgallery/minimumContentCount') ?>,
|
57 |
+
minimumTextContentCharacterCount: <?php echo Mage::getStoreConfig('turnto_admin/vcgallery/minimumTextContentCharacterCount') ?>,
|
58 |
+
minimumTextContentWordCount: <?php echo Mage::getStoreConfig('turnto_admin/vcgallery/minimumTextContentWordCount') ?>,
|
59 |
+
sortOrder: "<?php echo Mage::getStoreConfig('turnto_admin/vcgallery/sortOrder') ?>",
|
60 |
+
}
|
61 |
+
<?php endif; ?>
|
62 |
};
|
63 |
(function () {
|
64 |
var tt = document.createElement('script');
|
65 |
tt.type = 'text/javascript';
|
66 |
tt.async = true;
|
67 |
+
tt.src = "//<?php echo $helper->getStaticHostWithoutProtocol() ?>/traServer<?php echo $helper->getVersionForPath()?>/trajs/" + turnToConfig.siteKey + "/tra.js";
|
68 |
var s = document.getElementsByTagName('script')[0];
|
69 |
s.parentNode.insertBefore(tt, s);
|
70 |
})();
|
71 |
|
72 |
+
<?php if (intval(Mage::getStoreConfig('turnto_admin/checkoutcomments/checkoutcomments_display_enabled')) == 1): ?>
|
73 |
+
var TurnToChatterSku = "<?php echo $TTSKU ?>";
|
74 |
+
|
75 |
+
(function() {
|
76 |
+
var tt = document.createElement('script'); tt.type = 'text/javascript'; tt.async=true;
|
77 |
+
tt.src = "//<?php echo $helper->getStaticHostWithoutProtocol() ?>/traServer<?php echo $helper->getVersionForPath()?>/chatterjs/" + turnToConfig.siteKey + "/turnto-chatter.js";
|
78 |
+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(tt, s);
|
79 |
+
})();
|
80 |
+
<?php endif; ?>
|
81 |
+
|
82 |
+
<?php if (intval(Mage::getStoreConfig('turnto_admin/vcgallery/vc_gallery_enabled')) == 1): ?>
|
83 |
+
var TurnToGallerySkus = ['<?php echo $TTSKU ?>'];
|
84 |
+
|
85 |
+
(function() {
|
86 |
+
var tt = document.createElement('script'); tt.type = 'text/javascript'; tt.async=true;
|
87 |
+
tt.src = "//<?php echo $helper->getStaticHostWithoutProtocol() ?>/traServer<?php echo $helper->getVersionForPath()?>/galleryjs/" + turnToConfig.siteKey + "/turnto-gallery.js";
|
88 |
+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(tt, s);
|
89 |
+
})();
|
90 |
+
<?php endif; ?>
|
91 |
+
|
92 |
var TurnToItemSku = "<?php echo $TTSKU ?>";
|
93 |
</script>
|
94 |
|
95 |
+
<script type="text/javascript" src="<?php echo Mage::getStoreConfig('turnto_admin/general/static_url')?>/sitedata/<?php echo Mage::getStoreConfig('turnto_admin/general/site_key'); ?>/v<?php echo $helper->getVersionForPath()?>/<?php echo $TTSKU?>/d/itemjs"></script>
|
96 |
|
@@ -0,0 +1 @@
|
|
|
1 |
+
<div id="TurnToGalleryContent"></div>
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$helper = Mage::helper('turnto_client_helper/data');
|
3 |
+
?>
|
4 |
+
<script type="text/javascript">
|
5 |
+
var turnToConfig = {
|
6 |
+
siteKey: "<?php echo Mage::getStoreConfig('turnto_admin/general/site_key'); ?>",
|
7 |
+
host: "<?php echo $helper->getHostWithoutProtocol(); ?>",
|
8 |
+
staticHost: "<?php echo $helper->getStaticHostWithoutProtocol(); ?>",
|
9 |
+
pinboard: {
|
10 |
+
contentType: 'visualContent',
|
11 |
+
|
12 |
+
title: "<?php echo Mage::getStoreConfig('turnto_admin/vcpinboard/title')?>",
|
13 |
+
skus: <?php echo (Mage::getStoreConfig('turnto_admin/vcpinboard/skus') == '' ? 'null' : Mage::getStoreConfig('turnto_admin/vcpinboard/skus'))?>,
|
14 |
+
brands: <?php echo (Mage::getStoreConfig('turnto_admin/vcpinboard/brands') == '' ? 'null' : Mage::getStoreConfig('turnto_admin/vcpinboard/brands'))?>,
|
15 |
+
tags: <?php echo (Mage::getStoreConfig('turnto_admin/vcpinboard/tags') == '' ? 'null' : Mage::getStoreConfig('turnto_admin/vcpinboard/tags'))?>,
|
16 |
+
activeOnly: <?php echo (Mage::getStoreConfig('turnto_admin/vcpinboard/activeOnly') == '1' ? 'true' : 'false')?>,
|
17 |
+
showDatestamp: <?php echo (Mage::getStoreConfig('turnto_admin/vcpinboard/showDatestamp') == '1' ? 'true' : 'false')?>,
|
18 |
+
showCaption: <?php echo (Mage::getStoreConfig('turnto_admin/vcpinboard/showCaption') == '1' ? 'true' : 'false')?>,
|
19 |
+
minCaptionCharCount: <?php echo Mage::getStoreConfig('turnto_admin/vcpinboard/minCaptionCharCount')?>,
|
20 |
+
minCaptionWordCount: <?php echo Mage::getStoreConfig('turnto_admin/vcpinboard/minCaptionWordCount')?>,
|
21 |
+
maxCaptionLength: <?php echo Mage::getStoreConfig('turnto_admin/vcpinboard/maxCaptionLength')?>,
|
22 |
+
nameMaxLength: <?php echo (Mage::getStoreConfig('turnto_admin/vcpinboard/nameMaxLength') == '' ? 255 : Mage::getStoreConfig('turnto_admin/vcpinboard/nameMaxLength'))?>,
|
23 |
+
sortOrder: <?php echo Mage::getStoreConfig('turnto_admin/vcpinboard/sortOrder')?>,
|
24 |
+
limit: <?php echo (Mage::getStoreConfig('turnto_admin/vcpinboard/limit') == '' ? 20 : Mage::getStoreConfig('turnto_admin/vcpinboard/limit'))?>,
|
25 |
+
progressiveLoading: <?php echo (Mage::getStoreConfig('turnto_admin/vcpinboard/progressiveLoading') == '1' ? 'true' : 'false')?>,
|
26 |
+
hSpacing: <?php echo (Mage::getStoreConfig('turnto_admin/vcpinboard/hSpacing') == '' ? 8 : Mage::getStoreConfig('turnto_admin/vcpinboard/hSpacing'))?>,
|
27 |
+
vSpacing: <?php echo (Mage::getStoreConfig('turnto_admin/vcpinboard/vSpacing') == '' ? 8 : Mage::getStoreConfig('turnto_admin/vcpinboard/vSpacing'))?>
|
28 |
+
}
|
29 |
+
};
|
30 |
+
|
31 |
+
(function() {
|
32 |
+
var tt = document.createElement('script');
|
33 |
+
tt.type = 'text/javascript'; tt.async = true;
|
34 |
+
tt.src = "//<?php echo $helper->getStaticHostWithoutProtocol() ?>/traServer<?php echo $helper->getVersionForPath()?>/pinboardjs/" + turnToConfig.siteKey + "/turnto-pinboard.js";
|
35 |
+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(tt, s);
|
36 |
+
})();
|
37 |
+
</script>
|
@@ -1,5 +1,5 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
-
<package><name>socialcommerce_suite_by_turnto</name><version>3.0
|
3 |
|
4 |
2.0 Adds support for Single Sign On
|
5 |
2.1 Re-wrote catalog feed generator
|
@@ -18,4 +18,5 @@
|
|
18 |
3.0.2 - Minor bug fixes
|
19 |
3.0.3 - Allow users to deselect GTINs
|
20 |
3.0.4 - Allow users to configure attribute used as brand
|
21 |
-
3.0.5 - Fixed security warning on checkout success page caused by using http instead of https
|
|
1 |
<?xml version="1.0"?>
|
2 |
+
<package><name>socialcommerce_suite_by_turnto</name><version>3.1.0</version><stability>stable</stability><license>MIT</license><channel>community</channel><extends></extends><summary>Connect your shoppers to your customers</summary><description>The TurnTo Social Commerce Suite helps you put the good will you have earned from your customers to work by opening direct communications between your shoppers and your past customers.</description><notes>TurnTo Admin Extension
|
3 |
|
4 |
2.0 Adds support for Single Sign On
|
5 |
2.1 Re-wrote catalog feed generator
|
18 |
3.0.2 - Minor bug fixes
|
19 |
3.0.3 - Allow users to deselect GTINs
|
20 |
3.0.4 - Allow users to configure attribute used as brand
|
21 |
+
3.0.5 - Fixed security warning on checkout success page caused by using http instead of https
|
22 |
+
3.1.0 - Added support for Comment Capture Display widget, VC Gallery Widget, VC Pinboard, and CC Pinboard. Q&A teaser is now configurable (input teaser or normal teaser). Comment Capture is embedded on mobile.</notes><authors><author><name>TurnTo</name><user>TurnTo</user><email>contact@turnto.com</email></author></authors><date>2016-07-11</date><time>11:00:22</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="app"><dir name="code"><dir name="community"><dir name="Turnto"><dir name="Admin"><dir name="Block"><file name="CatalogFeed.php" hash="f974cfdc687bf5edb3fdccb879547200"/><file name="HistoricalFeed.php" hash="a4d2b29c6d8bb2ed59aa884e02abc23b"/><file name="Overview.php" hash="51c8ed09153f1dc3b3d02aa0ab83f195"/><file name="RatingsFeed.php" hash="264cf15842c2738f1b77bce6ff9b9f0a"/><file name="ShowTabsAdminBlock.php" hash="403c3a8f95c65e361471b28fae25d2e3"/><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Attributes.php" hash="07f84525b23f32db1eac6bd77318c067"/><file name="AttributesAll.php" hash="ea7cbaadf904db6c09a26175b8de3919"/><file name="Cccolumns.php" hash="03970edda86f2b1fa9b64ee4c6b9ed3e"/><file name="Ccsortorder.php" hash="182307b11be50d5d2f8e5edd674a5040"/><file name="Feed.php" hash="84d005b13b3e39da048078bfc275bdf5"/><file name="Setuptype.php" hash="4a22ad8563457cf16785ba5e6b621b82"/><file name="Teasertype.php" hash="cbd90fcedf93c91291e9ab16a5f2fd16"/><file name="Vcgallerysize.php" hash="278472246c689be1bb286ba643af5f7a"/><file name="Vcgallerysort.php" hash="254b8132561e467322f2e35755b28cc3"/></dir></dir></dir><dir name="Review"><file name="Helper.php" hash="2ecc1a9252af9d40666b4f3a6603b522"/></dir></dir><dir name="controllers"><file name="IndexController.php" hash="532642a4048636f9b1e42334a4f7dc52"/><dir name="Adminhtml"><file name="IndexController.php" hash="d78518e5502f5c19ff02892e2fa9fe78"/><file name="TurntoController.php" hash="f8c35059af46ed080a7a2d28c917042b"/></dir></dir><dir name="etc"><file name="config.xml" hash="d39e32b48c9760a6308a718d0599105f"/><file name="system.xml" hash="407cfb5be12be51a631826fe192ae5e9"/></dir><dir name="Helper"><file name="Data.php" hash="d9fec000e14727cc10cf29027c689b80"/></dir><dir name="Model"><file name="Observer.php" hash="ab972bf9ec9edb07345828fb4e69141d"/><file name="Rating.php" hash="2f3d43beb74018b394d7bf6ba1098e5c"/><dir name="Catalog"><file name="Product.php" hash="5325442b4449b7eb75547f50698400a6"/></dir><dir name="Resource"><file name="Rating.php" hash="0a7f9415ba76c6e121e0f3281479a4df"/><dir name="Rating"><file name="Collection.php" hash="2f0709f0f5f3bde0725c2db266f16e7d"/></dir></dir></dir><dir name="sql"><dir name="turnto_admin_setup"><file name="mysql4-install-2.2.0.php" hash="747fc729ae7587b41c3f3cce62aba82b"/></dir></dir></dir><dir name="Client"><dir name="Block"><file name="Checkoutchatterpdp.php" hash="1b7314cb87150792b4e915c8ea8f5a2e"/><file name="Qacontent.php" hash="a855a19924a8567ea3711ed5194038da"/><file name="Qateaser.php" hash="05171123ca8ddf26a80a7f4ffed16947"/><file name="Reviewscontent.php" hash="68f01e42d28f9c4b695e555e184d64fb"/><file name="Reviewsteaser.php" hash="302394ffc6e14f65a108726348ee350a"/><file name="Vcgallery.php" hash="e66d4bc4b48129c835c0a1a8b226af84"/></dir><dir name="controllers"><file name="CheckoutcommentsController.php" hash="94dc14a8974dd0eaec78b3f5b37cc69e"/><file name="VisualcontentController.php" hash="f13b23b14092594e5766246fc188ff09"/></dir><dir name="etc"><file name="config.xml" hash="2b8be1ad29ab4bba4ebd2e5c3698ade2"/></dir><dir name="Helper"><file name="Data.php" hash="1bf5a62ffaa09ebb3ff5962737662ad6"/></dir></dir><dir name="Login"><dir name="Block"><file name="Login.php" hash="a51bc0ee76d20a9f4cb32bb21420ecd9"/><file name="Reg.php" hash="4eece8d78391b6578b0ba5e2c764dba5"/></dir><dir name="controllers"><file name="IndexController.php" hash="245a41408a8c593f8c1fefaee9890d6b"/></dir><dir name="etc"><file name="config.xml" hash="85a6f77373fb37d7da2766986c05767b"/></dir><dir name="Helper"><file name="Data.php" hash="e87f15957335101d5ae643befcc06817"/></dir></dir><dir name="Mobile"><dir name="Block"><file name="Landing.php" hash="b4b57c0b56f275e644fad5290ee44f02"/></dir><dir name="controllers"><file name="IndexController.php" hash="304ebc607cc3d25103b1a2354da0a890"/></dir><dir name="etc"><file name="config.xml" hash="0f5c5f05570b7d93a97b6f3e4bb69365"/></dir><dir name="Helper"><file name="Data.php" hash="12e07ea9d92ab8e90886104e08c96c8a"/></dir></dir></dir></dir></dir><dir name="design"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="turnto"><file name="catalog_feed_tab.phtml" hash="2a37f6daa5261ee972d4938a9f328893"/><file name="historical_feed_tab.phtml" hash="14b3a1940e98f3f44db732afd1c81946"/><file name="overview.phtml" hash="4cc20b32c3b0cd36cd349f0be44e4615"/><file name="product_ratings_feed_tab.phtml" hash="3733a056ab45f0af0b6a93ea30e257e0"/><dir name="adminhtml"><dir name="system"><dir name="config"><file name="feed.phtml" hash="c4b453ab154a34408bc34021630653bf"/></dir></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="turnto_client.xml" hash="11522aa361c8c98a00afed75287ad3e3"/><file name="turnto_login.xml" hash="618272fcb19620431cd7b27369e34eb4"/><file name="turnto_mobile.xml" hash="2a40a08b07570c9b8585b7715cc5b831"/></dir><dir name="template"><dir name="turnto"><dir name="client"><file name="ccpinboard_js.phtml" hash="9c20636bff1c5f22a7f468231c18c7f5"/><file name="checkout.tra_js.phtml" hash="4d88c969f8522138e60c97c32dee2b22"/><file name="checkoutchatter.pdp.phtml" hash="8dce4bad4b2d95cb698ad84e7d874a3e"/><file name="pinboard.phtml" hash="8179a6a336ece6db321ef92eaa52337b"/><file name="qa.phtml" hash="076489bac4fc7a7c6b266c9028b2a264"/><file name="qa.teaser.phtml" hash="5f115adc06c7b11d0e7673f49b5c7945"/><file name="reviews.phtml" hash="f7bab2adcb3c700830903f758af75f48"/><file name="reviews.teaser.phtml" hash="525e1fa2fed50187f418fedcd5f7ef17"/><file name="tra_js.phtml" hash="188d8bf4fa7edbfcd4f1c088dec3ebe4"/><file name="vcgallery.phtml" hash="47979dc4877a7a70e6006fe0c4da7e04"/><file name="vcpinboard_js.phtml" hash="f09e9b97314d27aaf2bb43017c7b9feb"/></dir><dir name="login"><file name="login.phtml" hash="7ec602a8ca09180f324229a77ea3e2db"/><file name="login_form.phtml" hash="a176124e54fc105d09e8a219114d9cfe"/><file name="reg.phtml" hash="7ec602a8ca09180f324229a77ea3e2db"/><file name="reg_form.phtml" hash="8d513aa7b9b582f748f5a484f2e81568"/></dir><dir name="mobile"><file name="landing.phtml" hash="169ed8421ff2d36dbbb1eb98d1b27dcb"/></dir></dir></dir></dir></dir></dir></dir><dir name="etc"><dir name="modules"><file name="Turnto_Admin.xml" hash="0932b63ab068e1e8b12ff7b997ae83ee"/><file name="Turnto_Client.xml" hash="8c68147ee810f2b61d3fd50874b19efa"/><file name="Turnto_Login.xml" hash="734c463c75970bd14ac7d7a90fa2de11"/><file name="Turnto_Mobile.xml" hash="57cc2be45fb4ccd836e8953b5305aa58"/></dir></dir></dir></target></contents></package>
|