Version Notes
Initial Release
Download this release
Release Info
Developer | Trusted Shops |
Extension | Trustedshops_Trustedshops |
Version | 1.0.0 |
Comparing to | |
See all releases |
Version 1.0.0
- app/code/community/Trustedshops/Trustedshops/Block/Abstract.php +143 -0
- app/code/community/Trustedshops/Trustedshops/Block/Adminhtml/Field/Expertnotice.php +56 -0
- app/code/community/Trustedshops/Trustedshops/Block/Adminhtml/Field/Integration.php +44 -0
- app/code/community/Trustedshops/Trustedshops/Block/Adminhtml/Field/Intro.php +68 -0
- app/code/community/Trustedshops/Trustedshops/Block/Adminhtml/Field/Notice.php +36 -0
- app/code/community/Trustedshops/Trustedshops/Block/Rating.php +88 -0
- app/code/community/Trustedshops/Trustedshops/Block/Review.php +78 -0
- app/code/community/Trustedshops/Trustedshops/Block/Review/Tab.php +32 -0
- app/code/community/Trustedshops/Trustedshops/Block/Trustbadge.php +69 -0
- app/code/community/Trustedshops/Trustedshops/Block/Trustcard.php +116 -0
- app/code/community/Trustedshops/Trustedshops/Helper/Data.php +15 -0
- app/code/community/Trustedshops/Trustedshops/Model/Observer.php +67 -0
- app/code/community/Trustedshops/Trustedshops/Model/System/Config/Source/Mode.php +46 -0
- app/code/community/Trustedshops/Trustedshops/Model/System/Config/Source/Variant.php +49 -0
- app/code/community/Trustedshops/Trustedshops/etc/adminhtml.xml +49 -0
- app/code/community/Trustedshops/Trustedshops/etc/config.xml +175 -0
- app/code/community/Trustedshops/Trustedshops/etc/system.xml +531 -0
- app/design/frontend/base/default/layout/trustedshops.xml +32 -0
- app/design/frontend/base/default/template/trustedshops/rating.phtml +49 -0
- app/design/frontend/base/default/template/trustedshops/review.phtml +43 -0
- app/design/frontend/base/default/template/trustedshops/review_tab.phtml +18 -0
- app/design/frontend/base/default/template/trustedshops/trustbadge.phtml +41 -0
- app/design/frontend/base/default/template/trustedshops/trustcard.phtml +38 -0
- app/etc/modules/Trustedshops_Trustedshops.xml +19 -0
- app/locale/de_AT/Trustedshops_Trustedshops.csv +38 -0
- app/locale/de_CH/Trustedshops_Trustedshops.csv +38 -0
- app/locale/de_DE/Trustedshops_Trustedshops.csv +38 -0
- app/locale/fr_CA/Trustedshops_Trustedshops.csv +36 -0
- app/locale/fr_FR/Trustedshops_Trustedshops.csv +36 -0
- package.xml +18 -0
- skin/adminhtml/default/default/images/trustedshops/trustedshops_de.jpg +0 -0
- skin/adminhtml/default/default/images/trustedshops/trustedshops_en.jpg +0 -0
- skin/adminhtml/default/default/images/trustedshops/trustedshops_fr.jpg +0 -0
app/code/community/Trustedshops/Trustedshops/Block/Abstract.php
ADDED
@@ -0,0 +1,143 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* @category Trustedshops
|
5 |
+
* @package Trustedshops_Trustedshops
|
6 |
+
* @author Trusted Shops GmbH
|
7 |
+
* @copyright 2016 Trusted Shops GmbH
|
8 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
9 |
+
* @link http://www.trustedshops.de/
|
10 |
+
*/
|
11 |
+
abstract class Trustedshops_Trustedshops_Block_Abstract extends Mage_Core_Block_Template
|
12 |
+
{
|
13 |
+
/**
|
14 |
+
* list of supported locales
|
15 |
+
*
|
16 |
+
* @var array
|
17 |
+
*/
|
18 |
+
protected $supportedLocales = array(
|
19 |
+
'de_DE',
|
20 |
+
'en_GB',
|
21 |
+
'fr_FR',
|
22 |
+
'es_ES',
|
23 |
+
'it_IT',
|
24 |
+
'nl_NL',
|
25 |
+
'pl_PL',
|
26 |
+
);
|
27 |
+
|
28 |
+
/**
|
29 |
+
* locale to use if no appropriate one was found
|
30 |
+
*
|
31 |
+
* @var string
|
32 |
+
*/
|
33 |
+
protected $fallbackLocale = 'en_GB';
|
34 |
+
|
35 |
+
/**
|
36 |
+
* get configuration value by field and area
|
37 |
+
*
|
38 |
+
* @param $field string
|
39 |
+
* @param $area string
|
40 |
+
*
|
41 |
+
* @return mixed
|
42 |
+
*/
|
43 |
+
public function getConfig($field, $area)
|
44 |
+
{
|
45 |
+
return Mage::getStoreConfig('trustedshops/' . $area . '/' . $field);
|
46 |
+
}
|
47 |
+
|
48 |
+
/**
|
49 |
+
* get the trustedshops id
|
50 |
+
*
|
51 |
+
* @return string
|
52 |
+
*/
|
53 |
+
public function getTsId()
|
54 |
+
{
|
55 |
+
return $this->getConfig('tsid', 'info');
|
56 |
+
}
|
57 |
+
|
58 |
+
/**
|
59 |
+
* get the current shop locale
|
60 |
+
*
|
61 |
+
* @return string
|
62 |
+
*/
|
63 |
+
public function getLocale()
|
64 |
+
{
|
65 |
+
$shopLocale = Mage::app()->getLocale()->getLocaleCode();
|
66 |
+
|
67 |
+
if (in_array($shopLocale, $this->supportedLocales)) {
|
68 |
+
return $shopLocale;
|
69 |
+
}
|
70 |
+
|
71 |
+
// find base locale
|
72 |
+
$localeParts = explode('_', $shopLocale);
|
73 |
+
foreach ($this->supportedLocales as $supportedLocale) {
|
74 |
+
if (strpos($supportedLocale, $localeParts[0]) !== false) {
|
75 |
+
return $supportedLocale;
|
76 |
+
}
|
77 |
+
}
|
78 |
+
|
79 |
+
return $this->fallbackLocale;
|
80 |
+
}
|
81 |
+
|
82 |
+
/**
|
83 |
+
* check if the extension has a trustedshops id
|
84 |
+
*
|
85 |
+
* @return bool
|
86 |
+
*/
|
87 |
+
public function isActive()
|
88 |
+
{
|
89 |
+
$tsId = $this->getTsId();
|
90 |
+
if (!empty($tsId)) {
|
91 |
+
return true;
|
92 |
+
}
|
93 |
+
return false;
|
94 |
+
}
|
95 |
+
|
96 |
+
/**
|
97 |
+
* check if the mode is expert
|
98 |
+
*
|
99 |
+
* @return bool
|
100 |
+
*/
|
101 |
+
public function isExpert()
|
102 |
+
{
|
103 |
+
return (Trustedshops_Trustedshops_Model_System_Config_Source_Mode::MODE_EXPERT == $this->getConfig('mode', 'info'));
|
104 |
+
}
|
105 |
+
|
106 |
+
/**
|
107 |
+
* get the current product sku
|
108 |
+
*
|
109 |
+
* @return string
|
110 |
+
*/
|
111 |
+
public function getProductSku()
|
112 |
+
{
|
113 |
+
/**
|
114 |
+
* @var $product Mage_Catalog_Model_Product
|
115 |
+
*/
|
116 |
+
$product = Mage::registry('current_product');
|
117 |
+
if (!$product) {
|
118 |
+
return "";
|
119 |
+
}
|
120 |
+
return $product->getSku();
|
121 |
+
}
|
122 |
+
|
123 |
+
/**
|
124 |
+
* replace variables in expert codes
|
125 |
+
*
|
126 |
+
* @param $code string
|
127 |
+
*
|
128 |
+
* @return string
|
129 |
+
*/
|
130 |
+
public function replaceVariables($code)
|
131 |
+
{
|
132 |
+
$vars = array(
|
133 |
+
'tsid' => $this->getTsId(),
|
134 |
+
'sku' => $this->getProductSku()
|
135 |
+
);
|
136 |
+
|
137 |
+
foreach ($vars as $_placeholder => $_replaceValue) {
|
138 |
+
$code = str_replace('%' . $_placeholder . '%', $_replaceValue, $code);
|
139 |
+
}
|
140 |
+
|
141 |
+
return $code;
|
142 |
+
}
|
143 |
+
}
|
app/code/community/Trustedshops/Trustedshops/Block/Adminhtml/Field/Expertnotice.php
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* @category Trustedshops
|
5 |
+
* @package Trustedshops_Trustedshops
|
6 |
+
* @author Trusted Shops GmbH
|
7 |
+
* @copyright 2016 Trusted Shops GmbH
|
8 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
9 |
+
* @link http://www.trustedshops.de/
|
10 |
+
*/
|
11 |
+
class Trustedshops_Trustedshops_Block_Adminhtml_Field_Expertnotice
|
12 |
+
extends Mage_Adminhtml_Block_Abstract implements Varien_Data_Form_Element_Renderer_Interface
|
13 |
+
{
|
14 |
+
/**
|
15 |
+
* Render notice for expert mode
|
16 |
+
*
|
17 |
+
* @param Varien_Data_Form_Element_Abstract $element
|
18 |
+
*
|
19 |
+
* @return string
|
20 |
+
*/
|
21 |
+
public function render(Varien_Data_Form_Element_Abstract $element)
|
22 |
+
{
|
23 |
+
$helper = Mage::helper('trustedshops');
|
24 |
+
|
25 |
+
// build the base html structure
|
26 |
+
$noticeTml = '<div>';
|
27 |
+
$noticeTml .= ' <span>%s</span>';
|
28 |
+
$noticeTml .= ' <ul style="list-style: disc; margin-left: 20px;">';
|
29 |
+
$noticeTml .= ' <li>%s</li>';
|
30 |
+
$noticeTml .= ' <li>%s</li>';
|
31 |
+
$noticeTml .= ' <li>%s</li>';
|
32 |
+
$noticeTml .= ' </ul>';
|
33 |
+
$noticeTml .= ' <span>%s</span>';
|
34 |
+
$noticeTml .= '</div>';
|
35 |
+
|
36 |
+
// create the language specific links
|
37 |
+
$noticeLinkHtml = $helper->__('Learn more about %s options and %s configuration.');
|
38 |
+
$noticeLinkHtml = sprintf($noticeLinkHtml,
|
39 |
+
'<a target="_blank" href="' . $helper->__('http://www.trustedshops.co.uk/support/trustbadge/trustbadge-custom/') . '">' . $helper->__('Trustbadge') . '</a>',
|
40 |
+
'<a target="_blank" href="' . $helper->__('http://www.trustedshops.co.uk/support/product-reviews/') . '">' . $helper->__('Product Reviews') . '</a>'
|
41 |
+
);
|
42 |
+
|
43 |
+
// put everything together
|
44 |
+
$notice = sprintf($noticeTml,
|
45 |
+
$helper->__('Use additional options to customize your Trusted Shops Integration or use the latest code version here. E.g.:'),
|
46 |
+
$helper->__('Place your Trustbadge wherever you want'),
|
47 |
+
$helper->__('Deactivate mobile use'),
|
48 |
+
$helper->__('Jump from your Product Reviews stars directly to your Product Reviews'),
|
49 |
+
$noticeLinkHtml
|
50 |
+
);
|
51 |
+
|
52 |
+
return sprintf('<tr id="row_%s"></td><td colspan="5" class="value"><span id="%s">%s</td></tr>',
|
53 |
+
$element->getHtmlId(), $element->getHtmlId(), nl2br($notice)
|
54 |
+
);
|
55 |
+
}
|
56 |
+
}
|
app/code/community/Trustedshops/Trustedshops/Block/Adminhtml/Field/Integration.php
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* @category Trustedshops
|
5 |
+
* @package Trustedshops_Trustedshops
|
6 |
+
* @author Trusted Shops GmbH
|
7 |
+
* @copyright 2016 Trusted Shops GmbH
|
8 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
9 |
+
* @link http://www.trustedshops.de/
|
10 |
+
*/
|
11 |
+
class Trustedshops_Trustedshops_Block_Adminhtml_Field_Integration
|
12 |
+
extends Mage_Adminhtml_Block_Abstract implements Varien_Data_Form_Element_Renderer_Interface
|
13 |
+
{
|
14 |
+
/**
|
15 |
+
* Render integration notice html
|
16 |
+
*
|
17 |
+
* @param Varien_Data_Form_Element_Abstract $element
|
18 |
+
*
|
19 |
+
* @return string
|
20 |
+
*/
|
21 |
+
public function render(Varien_Data_Form_Element_Abstract $element)
|
22 |
+
{
|
23 |
+
return sprintf('<tr id="row_%s"><td colspan="5" class="label"><span id="%s">%s <a href="%s" target="_blank">%s</a></td></tr>',
|
24 |
+
$element->getHtmlId(), $element->getHtmlId(), $element->getComment(), $this->getLink(), $element->getLabel()
|
25 |
+
);
|
26 |
+
}
|
27 |
+
|
28 |
+
/**
|
29 |
+
* create param specific integration link
|
30 |
+
*
|
31 |
+
* @return string
|
32 |
+
*/
|
33 |
+
protected function getLink()
|
34 |
+
{
|
35 |
+
$tsId = Mage::getStoreConfig('trustedshops/general/tsid');
|
36 |
+
$language = Mage::app()->getLocale()->getLocaleCode();
|
37 |
+
$software = "MAGENTO";
|
38 |
+
$shopVersion = Mage::getVersion();
|
39 |
+
$extensionVersion = (string)Mage::getConfig()->getNode('modules/Trustedshops_Trustedshops/version');
|
40 |
+
return sprintf('https://www.trustedshops.com/integration/?shop_id=%s&backend_language=%s&shopsw=%s&shopsw_version=%s&plugin_version=%s&context=trustbadge&Google_Analytics',
|
41 |
+
$tsId, $language, $software, $shopVersion, $extensionVersion
|
42 |
+
);
|
43 |
+
}
|
44 |
+
}
|
app/code/community/Trustedshops/Trustedshops/Block/Adminhtml/Field/Intro.php
ADDED
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* @category Trustedshops
|
5 |
+
* @package Trustedshops_Trustedshops
|
6 |
+
* @author Trusted Shops GmbH
|
7 |
+
* @copyright 2016 Trusted Shops GmbH
|
8 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
9 |
+
* @link http://www.trustedshops.de/
|
10 |
+
*/
|
11 |
+
class Trustedshops_Trustedshops_Block_Adminhtml_Field_Intro
|
12 |
+
extends Mage_Adminhtml_Block_Abstract implements Varien_Data_Form_Element_Renderer_Interface
|
13 |
+
{
|
14 |
+
/**
|
15 |
+
* Render intro html
|
16 |
+
*
|
17 |
+
* @param Varien_Data_Form_Element_Abstract $element
|
18 |
+
*
|
19 |
+
* @return string
|
20 |
+
*/
|
21 |
+
public function render(Varien_Data_Form_Element_Abstract $element)
|
22 |
+
{
|
23 |
+
$imageContent = $this->getImageContent();
|
24 |
+
$buttonContent = $this->getMemberButtonContent();
|
25 |
+
|
26 |
+
return sprintf('<tr id="row_%s"><td colspan="5" class="value"><div id="%s">%s</div>%s</td></tr>',
|
27 |
+
$element->getHtmlId(), $element->getHtmlId(), $imageContent, $buttonContent
|
28 |
+
);
|
29 |
+
}
|
30 |
+
|
31 |
+
/**
|
32 |
+
* get the member button html
|
33 |
+
*
|
34 |
+
* @return string
|
35 |
+
*/
|
36 |
+
protected function getMemberButtonContent()
|
37 |
+
{
|
38 |
+
$trustedShopsLink = $this->getTrustedshopsRegistrationLink();
|
39 |
+
$buttonText = Mage::helper('trustedshops')->__("Get your account");
|
40 |
+
$memberLink = "window.open('" . $trustedShopsLink . "'); return false;";
|
41 |
+
$buttonContent = '<button style="display:block; margin: 20px auto;" onclick="' . $memberLink . '"><span><span><span>' . $buttonText . '</span></span></span></button>';
|
42 |
+
return $buttonContent;
|
43 |
+
}
|
44 |
+
|
45 |
+
/**
|
46 |
+
* build the language specific url
|
47 |
+
*
|
48 |
+
* @return string
|
49 |
+
*/
|
50 |
+
protected function getTrustedshopsRegistrationLink()
|
51 |
+
{
|
52 |
+
return Mage::helper('trustedshops')->__("http://www.trustbadge.com/en/pricing/")
|
53 |
+
. '?utm_source=magento&utm_medium=software-app&utm_content=marketing-page&utm_campaign=magento-app';
|
54 |
+
}
|
55 |
+
|
56 |
+
/**
|
57 |
+
* get the language specific intro image
|
58 |
+
*
|
59 |
+
* @return string
|
60 |
+
*/
|
61 |
+
protected function getImageContent()
|
62 |
+
{
|
63 |
+
$imageFilename = Mage::helper('trustedshops')->__('trustedshops_en.jpg');
|
64 |
+
$imageUrl = Mage::getDesign()->getSkinUrl('images/trustedshops/' . $imageFilename);
|
65 |
+
$imageContent = '<img title="" alt="" src="' . $imageUrl . '" />';
|
66 |
+
return $imageContent;
|
67 |
+
}
|
68 |
+
}
|
app/code/community/Trustedshops/Trustedshops/Block/Adminhtml/Field/Notice.php
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* @category Trustedshops
|
5 |
+
* @package Trustedshops_Trustedshops
|
6 |
+
* @author Trusted Shops GmbH
|
7 |
+
* @copyright 2016 Trusted Shops GmbH
|
8 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
9 |
+
* @link http://www.trustedshops.de/
|
10 |
+
*/
|
11 |
+
class Trustedshops_Trustedshops_Block_Adminhtml_Field_Notice
|
12 |
+
extends Mage_Adminhtml_Block_Abstract implements Varien_Data_Form_Element_Renderer_Interface
|
13 |
+
{
|
14 |
+
/**
|
15 |
+
* Render notice html
|
16 |
+
*
|
17 |
+
* @param Varien_Data_Form_Element_Abstract $element
|
18 |
+
*
|
19 |
+
* @return string
|
20 |
+
*/
|
21 |
+
public function render(Varien_Data_Form_Element_Abstract $element)
|
22 |
+
{
|
23 |
+
$comment = $element->getComment();
|
24 |
+
// check if comments have a parameter
|
25 |
+
if (strpos($comment, '%s') !== false) {
|
26 |
+
// translate parameter
|
27 |
+
$comment = sprintf($comment,
|
28 |
+
Mage::helper('trustedshops')->__($element->getOriginalData('comment_param'))
|
29 |
+
);
|
30 |
+
}
|
31 |
+
|
32 |
+
return sprintf('<tr id="row_%s"></td><td colspan="5" class="value"><span id="%s">%s</td></tr>',
|
33 |
+
$element->getHtmlId(), $element->getHtmlId(), nl2br($comment)
|
34 |
+
);
|
35 |
+
}
|
36 |
+
}
|
app/code/community/Trustedshops/Trustedshops/Block/Rating.php
ADDED
@@ -0,0 +1,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* @category Trustedshops
|
5 |
+
* @package Trustedshops_Trustedshops
|
6 |
+
* @author Trusted Shops GmbH
|
7 |
+
* @copyright 2016 Trusted Shops GmbH
|
8 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
9 |
+
* @link http://www.trustedshops.de/
|
10 |
+
*/
|
11 |
+
class Trustedshops_Trustedshops_Block_Rating extends Trustedshops_Trustedshops_Block_Abstract
|
12 |
+
{
|
13 |
+
/**
|
14 |
+
* path to layout file
|
15 |
+
*
|
16 |
+
* @var string
|
17 |
+
*/
|
18 |
+
protected $_template = "trustedshops/rating.phtml";
|
19 |
+
|
20 |
+
/**
|
21 |
+
* check if ratings are active
|
22 |
+
*
|
23 |
+
* @return bool
|
24 |
+
*/
|
25 |
+
public function isActive()
|
26 |
+
{
|
27 |
+
if (!parent::isActive()) {
|
28 |
+
return false;
|
29 |
+
}
|
30 |
+
|
31 |
+
if ($this->isExpert()) {
|
32 |
+
if (!$this->getConfig('collect_orders', 'trustbadge')) {
|
33 |
+
return false;
|
34 |
+
}
|
35 |
+
if (!$this->getConfig('expert_collect_reviews', 'product')) {
|
36 |
+
return false;
|
37 |
+
}
|
38 |
+
return $this->getConfig('expert_rating_active', 'product');
|
39 |
+
}
|
40 |
+
|
41 |
+
if (!$this->getConfig('collect_reviews', 'product')) {
|
42 |
+
return false;
|
43 |
+
}
|
44 |
+
return $this->getConfig('rating_active', 'product');
|
45 |
+
}
|
46 |
+
|
47 |
+
/**
|
48 |
+
* get the star color
|
49 |
+
*
|
50 |
+
* @return string
|
51 |
+
*/
|
52 |
+
public function getStarColor()
|
53 |
+
{
|
54 |
+
return $this->getConfig('rating_star_color', 'product');
|
55 |
+
}
|
56 |
+
|
57 |
+
/**
|
58 |
+
* get the star size
|
59 |
+
*
|
60 |
+
* @return string
|
61 |
+
*/
|
62 |
+
public function getStarSize()
|
63 |
+
{
|
64 |
+
return $this->getConfig('rating_star_size', 'product');
|
65 |
+
}
|
66 |
+
|
67 |
+
/**
|
68 |
+
* get the font size
|
69 |
+
*
|
70 |
+
* @return string
|
71 |
+
*/
|
72 |
+
public function getFontSize()
|
73 |
+
{
|
74 |
+
return $this->getConfig('rating_font_size', 'product');
|
75 |
+
}
|
76 |
+
|
77 |
+
/**
|
78 |
+
* get the expert rating code
|
79 |
+
* and replace variables
|
80 |
+
*
|
81 |
+
* @return string
|
82 |
+
*/
|
83 |
+
public function getCode()
|
84 |
+
{
|
85 |
+
$expertCode = $this->getConfig('rating_code', 'product');
|
86 |
+
return $this->replaceVariables($expertCode);
|
87 |
+
}
|
88 |
+
}
|
app/code/community/Trustedshops/Trustedshops/Block/Review.php
ADDED
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* @category Trustedshops
|
5 |
+
* @package Trustedshops_Trustedshops
|
6 |
+
* @author Trusted Shops GmbH
|
7 |
+
* @copyright 2016 Trusted Shops GmbH
|
8 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
9 |
+
* @link http://www.trustedshops.de/
|
10 |
+
*/
|
11 |
+
class Trustedshops_Trustedshops_Block_Review extends Trustedshops_Trustedshops_Block_Abstract
|
12 |
+
{
|
13 |
+
/**
|
14 |
+
* path to layout file
|
15 |
+
*
|
16 |
+
* @var string
|
17 |
+
*/
|
18 |
+
protected $_template = "trustedshops/review.phtml";
|
19 |
+
|
20 |
+
/**
|
21 |
+
* check if reviews are active
|
22 |
+
*
|
23 |
+
* @return bool
|
24 |
+
*/
|
25 |
+
public function isActive()
|
26 |
+
{
|
27 |
+
if (!parent::isActive()) {
|
28 |
+
return false;
|
29 |
+
}
|
30 |
+
|
31 |
+
if ($this->isExpert()) {
|
32 |
+
if (!$this->getConfig('collect_orders', 'trustbadge')) {
|
33 |
+
return false;
|
34 |
+
}
|
35 |
+
if (!$this->getConfig('expert_collect_reviews', 'product')) {
|
36 |
+
return false;
|
37 |
+
}
|
38 |
+
return $this->getConfig('expert_review_active', 'product');
|
39 |
+
}
|
40 |
+
|
41 |
+
if (!$this->getConfig('collect_reviews', 'product')) {
|
42 |
+
return false;
|
43 |
+
}
|
44 |
+
return $this->getConfig('review_active', 'product');
|
45 |
+
}
|
46 |
+
|
47 |
+
/**
|
48 |
+
* get the border color
|
49 |
+
*
|
50 |
+
* @return string
|
51 |
+
*/
|
52 |
+
public function getBorderColor()
|
53 |
+
{
|
54 |
+
return $this->getConfig('review_border_color', 'product');
|
55 |
+
}
|
56 |
+
|
57 |
+
/**
|
58 |
+
* get the star color
|
59 |
+
*
|
60 |
+
* @return string
|
61 |
+
*/
|
62 |
+
public function getStarColor()
|
63 |
+
{
|
64 |
+
return $this->getConfig('review_star_color', 'product');
|
65 |
+
}
|
66 |
+
|
67 |
+
/**
|
68 |
+
* get the expert reviews code
|
69 |
+
* and replace variables
|
70 |
+
*
|
71 |
+
* @return string
|
72 |
+
*/
|
73 |
+
public function getCode()
|
74 |
+
{
|
75 |
+
$expertCode = $this->getConfig('review_code', 'product');
|
76 |
+
return $this->replaceVariables($expertCode);
|
77 |
+
}
|
78 |
+
}
|
app/code/community/Trustedshops/Trustedshops/Block/Review/Tab.php
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* @category Trustedshops
|
5 |
+
* @package Trustedshops_Trustedshops
|
6 |
+
* @author Trusted Shops GmbH
|
7 |
+
* @copyright 2016 Trusted Shops GmbH
|
8 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
9 |
+
* @link http://www.trustedshops.de/
|
10 |
+
*/
|
11 |
+
class Trustedshops_Trustedshops_Block_Review_Tab extends Trustedshops_Trustedshops_Block_Review
|
12 |
+
{
|
13 |
+
/**
|
14 |
+
* path to layout file
|
15 |
+
*
|
16 |
+
* @var string
|
17 |
+
*/
|
18 |
+
protected $_template = 'trustedshops/review_tab.phtml';
|
19 |
+
|
20 |
+
/**
|
21 |
+
* only add the additional product tab if reviews are active
|
22 |
+
*
|
23 |
+
* @return bool|string
|
24 |
+
*/
|
25 |
+
protected function _toHtml()
|
26 |
+
{
|
27 |
+
if (!$this->isActive()) {
|
28 |
+
return false;
|
29 |
+
}
|
30 |
+
return parent::_toHtml();
|
31 |
+
}
|
32 |
+
}
|
app/code/community/Trustedshops/Trustedshops/Block/Trustbadge.php
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* @category Trustedshops
|
5 |
+
* @package Trustedshops_Trustedshops
|
6 |
+
* @author Trusted Shops GmbH
|
7 |
+
* @copyright 2016 Trusted Shops GmbH
|
8 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
9 |
+
* @link http://www.trustedshops.de/
|
10 |
+
*/
|
11 |
+
class Trustedshops_Trustedshops_Block_Trustbadge extends Trustedshops_Trustedshops_Block_Abstract
|
12 |
+
{
|
13 |
+
/**
|
14 |
+
* path to layout file
|
15 |
+
*
|
16 |
+
* @var string
|
17 |
+
*/
|
18 |
+
protected $_template = 'trustedshops/trustbadge.phtml';
|
19 |
+
|
20 |
+
/**
|
21 |
+
* get the selected trustbadge variant
|
22 |
+
*
|
23 |
+
* @return string
|
24 |
+
*/
|
25 |
+
public function getVariant()
|
26 |
+
{
|
27 |
+
$isHidden = $this->getDisplayTrustbadge();
|
28 |
+
if ($isHidden === "true") {
|
29 |
+
return Trustedshops_Trustedshops_Model_System_Config_Source_Variant::VARIANT_REVIEWS;
|
30 |
+
}
|
31 |
+
return $this->getConfig('variant', 'trustbadge');
|
32 |
+
}
|
33 |
+
|
34 |
+
/**
|
35 |
+
* get the y-offset
|
36 |
+
* must be between 0 and 250
|
37 |
+
*
|
38 |
+
* @return int|number
|
39 |
+
*/
|
40 |
+
public function getOffset()
|
41 |
+
{
|
42 |
+
$offset = abs($this->getConfig('offset', 'trustbadge'));
|
43 |
+
return ($offset > 250) ? 250 : $offset;
|
44 |
+
}
|
45 |
+
|
46 |
+
/**
|
47 |
+
* check if we should display the trustbadge
|
48 |
+
*
|
49 |
+
* @return string
|
50 |
+
*/
|
51 |
+
public function getDisplayTrustbadge()
|
52 |
+
{
|
53 |
+
return ($this->getConfig('variant', 'trustbadge') == Trustedshops_Trustedshops_Model_System_Config_Source_Variant::VARIANT_HIDE)
|
54 |
+
? 'true'
|
55 |
+
: 'false';
|
56 |
+
}
|
57 |
+
|
58 |
+
/**
|
59 |
+
* get the expert trustbadge code
|
60 |
+
* and replace the variables
|
61 |
+
*
|
62 |
+
* @return string
|
63 |
+
*/
|
64 |
+
public function getCode()
|
65 |
+
{
|
66 |
+
$expertCode = $this->getConfig('code', 'trustbadge');
|
67 |
+
return $this->replaceVariables($expertCode);
|
68 |
+
}
|
69 |
+
}
|
app/code/community/Trustedshops/Trustedshops/Block/Trustcard.php
ADDED
@@ -0,0 +1,116 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* @category Trustedshops
|
5 |
+
* @package Trustedshops_Trustedshops
|
6 |
+
* @author Trusted Shops GmbH
|
7 |
+
* @copyright 2016 Trusted Shops GmbH
|
8 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
9 |
+
* @link http://www.trustedshops.de/
|
10 |
+
*/
|
11 |
+
class Trustedshops_Trustedshops_Block_Trustcard extends Trustedshops_Trustedshops_Block_Abstract
|
12 |
+
{
|
13 |
+
/**
|
14 |
+
* path to layout file
|
15 |
+
*
|
16 |
+
* @var string
|
17 |
+
*/
|
18 |
+
protected $_template = 'trustedshops/trustcard.phtml';
|
19 |
+
|
20 |
+
/**
|
21 |
+
* @var Mage_Sales_Model_Order
|
22 |
+
*/
|
23 |
+
protected $_order;
|
24 |
+
|
25 |
+
/**
|
26 |
+
* get the current order from the checkout session
|
27 |
+
* used on the checkout success page
|
28 |
+
*
|
29 |
+
* @return Mage_Sales_Model_Order
|
30 |
+
*/
|
31 |
+
public function getOrder()
|
32 |
+
{
|
33 |
+
if (is_null($this->_order)) {
|
34 |
+
$session = Mage::getSingleton('checkout/session');
|
35 |
+
$lastOrder = $session->getLastRealOrder();
|
36 |
+
if (empty($lastOrder)) {
|
37 |
+
$lastOrder = $session->getLastOrderId();
|
38 |
+
$lastOrder = Mage::getModel('sales/order')->load($lastOrder);
|
39 |
+
}
|
40 |
+
$this->_order = $lastOrder;
|
41 |
+
}
|
42 |
+
return $this->_order;
|
43 |
+
}
|
44 |
+
|
45 |
+
/**
|
46 |
+
* check if we should collect order data
|
47 |
+
* always true for standard mode
|
48 |
+
*
|
49 |
+
* @return bool
|
50 |
+
*/
|
51 |
+
public function collectOrders()
|
52 |
+
{
|
53 |
+
if (!$this->isActive()) {
|
54 |
+
return false;
|
55 |
+
}
|
56 |
+
|
57 |
+
if ($this->isExpert()) {
|
58 |
+
return $this->getConfig('collect_orders', 'trustbadge');
|
59 |
+
}
|
60 |
+
return true;
|
61 |
+
}
|
62 |
+
|
63 |
+
/**
|
64 |
+
* check if we should collect product data
|
65 |
+
*
|
66 |
+
* @return bool
|
67 |
+
*/
|
68 |
+
public function collectReviews()
|
69 |
+
{
|
70 |
+
if ($this->isExpert()) {
|
71 |
+
if (!$this->getConfig('collect_orders', 'trustbadge')) {
|
72 |
+
return false;
|
73 |
+
}
|
74 |
+
return $this->getConfig('expert_collect_reviews', 'product');
|
75 |
+
}
|
76 |
+
return $this->getConfig('collect_reviews', 'product');
|
77 |
+
}
|
78 |
+
|
79 |
+
/**
|
80 |
+
* get the formatted order amount
|
81 |
+
*
|
82 |
+
* @return string
|
83 |
+
*/
|
84 |
+
public function getOrderAmount()
|
85 |
+
{
|
86 |
+
return $this->getOrder()->getGrandTotal();
|
87 |
+
}
|
88 |
+
|
89 |
+
/**
|
90 |
+
* get the product image url
|
91 |
+
*
|
92 |
+
* @param Mage_Sales_Model_Order_Item $item
|
93 |
+
*
|
94 |
+
* @return string
|
95 |
+
*/
|
96 |
+
public function getProductImage($item)
|
97 |
+
{
|
98 |
+
return (string)Mage::helper('catalog/image')->init($item->getProduct(), 'image');
|
99 |
+
}
|
100 |
+
|
101 |
+
/**
|
102 |
+
* get the product sku
|
103 |
+
* for composite products get the parents sku
|
104 |
+
*
|
105 |
+
* @param Mage_Sales_Model_Order_Item $item
|
106 |
+
*
|
107 |
+
* @return string
|
108 |
+
*/
|
109 |
+
public function getProductSku($item)
|
110 |
+
{
|
111 |
+
if ($item->getHasChildren()) {
|
112 |
+
return $item->getProduct()->getSku();
|
113 |
+
}
|
114 |
+
return $item->getSku();
|
115 |
+
}
|
116 |
+
}
|
app/code/community/Trustedshops/Trustedshops/Helper/Data.php
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* @category Trustedshops
|
5 |
+
* @package Trustedshops_Trustedshops
|
6 |
+
* @author Trusted Shops GmbH
|
7 |
+
* @copyright 2016 Trusted Shops GmbH
|
8 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
9 |
+
* @link http://www.trustedshops.de/
|
10 |
+
*/
|
11 |
+
class Trustedshops_Trustedshops_Helper_Data extends Mage_Core_Helper_Abstract
|
12 |
+
{
|
13 |
+
// nothing to do here
|
14 |
+
// only used to enable translations
|
15 |
+
}
|
app/code/community/Trustedshops/Trustedshops/Model/Observer.php
ADDED
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* @category Trustedshops
|
5 |
+
* @package Trustedshops_Trustedshops
|
6 |
+
* @author Trusted Shops GmbH
|
7 |
+
* @copyright 2016 Trusted Shops GmbH
|
8 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
9 |
+
* @link http://www.trustedshops.de/
|
10 |
+
*/
|
11 |
+
class Trustedshops_Trustedshops_Model_Observer
|
12 |
+
{
|
13 |
+
/**
|
14 |
+
* load module configurations so we can access the default configurations
|
15 |
+
*/
|
16 |
+
public function __construct()
|
17 |
+
{
|
18 |
+
Mage::getConfig()->loadModules();
|
19 |
+
}
|
20 |
+
|
21 |
+
/**
|
22 |
+
* prevent saving of empty expert code fields
|
23 |
+
*
|
24 |
+
* @param Varien_Event_Observer $observer
|
25 |
+
*/
|
26 |
+
public function adminSystemConfigChangedSectionTrustedshops(Varien_Event_Observer $observer)
|
27 |
+
{
|
28 |
+
/**
|
29 |
+
* find the correct scope to save the default values
|
30 |
+
*/
|
31 |
+
$store = Mage::app()->getRequest()->getParam('store');
|
32 |
+
$website = Mage::app()->getRequest()->getParam('website');
|
33 |
+
if ($store) {
|
34 |
+
$scope = 'stores';
|
35 |
+
$scopeId = (int)Mage::app()->getStore($store)->getId();
|
36 |
+
} elseif ($website) {
|
37 |
+
$scope = 'websites';
|
38 |
+
$scopeId = (int)Mage::app()->getWebsite($website)->getId();
|
39 |
+
} else {
|
40 |
+
$scope = 'default';
|
41 |
+
$scopeId = 0;
|
42 |
+
}
|
43 |
+
|
44 |
+
$this->_checkFields('trustbadge', 'code', $scope, $scopeId);
|
45 |
+
$this->_checkFields('product', 'review_code', $scope, $scopeId);
|
46 |
+
$this->_checkFields('product', 'rating_code', $scope, $scopeId);
|
47 |
+
}
|
48 |
+
|
49 |
+
/**
|
50 |
+
* check post params and set default value if they are empty
|
51 |
+
*
|
52 |
+
* @param string $area
|
53 |
+
* @param string $field
|
54 |
+
* @param string $scope
|
55 |
+
* @param int $scopeId
|
56 |
+
*/
|
57 |
+
protected function _checkFields($area, $field, $scope, $scopeId)
|
58 |
+
{
|
59 |
+
$configPath = "trustedshops/" . $area . "/" . $field;
|
60 |
+
|
61 |
+
$currentConfiguration = Mage::getStoreConfig($configPath, $scopeId);
|
62 |
+
if (empty($currentConfiguration)) {
|
63 |
+
$defaultConfigurationValue = (string)Mage::getConfig()->getNode('default/' . $configPath);
|
64 |
+
Mage::getConfig()->saveConfig($configPath, $defaultConfigurationValue, $scope, $scopeId);
|
65 |
+
}
|
66 |
+
}
|
67 |
+
}
|
app/code/community/Trustedshops/Trustedshops/Model/System/Config/Source/Mode.php
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Trustedshops_Trustedshops_Model_System_Config_Source_Mode
|
4 |
+
{
|
5 |
+
const MODE_STANDARD = 'standard';
|
6 |
+
const MODE_EXPERT = 'expert';
|
7 |
+
|
8 |
+
/**
|
9 |
+
* @var Trustedshops_Trustedshops_Helper_Data
|
10 |
+
*/
|
11 |
+
protected $_helper;
|
12 |
+
|
13 |
+
/**
|
14 |
+
* @return Trustedshops_Trustedshops_Helper_Data
|
15 |
+
*/
|
16 |
+
public function getHelper()
|
17 |
+
{
|
18 |
+
if (is_null($this->_helper))
|
19 |
+
{
|
20 |
+
$this->_helper = Mage::helper('trustedshops');
|
21 |
+
}
|
22 |
+
return $this->_helper;
|
23 |
+
}
|
24 |
+
|
25 |
+
/**
|
26 |
+
* @return array
|
27 |
+
*/
|
28 |
+
public function toOptionArray()
|
29 |
+
{
|
30 |
+
return array(
|
31 |
+
array('value' => self::MODE_STANDARD, 'label' => $this->getHelper()->__('Standard')),
|
32 |
+
array('value' => self::MODE_EXPERT, 'label' => $this->getHelper()->__('Expert')),
|
33 |
+
);
|
34 |
+
}
|
35 |
+
|
36 |
+
/**
|
37 |
+
* @return array
|
38 |
+
*/
|
39 |
+
public function toArray()
|
40 |
+
{
|
41 |
+
return array(
|
42 |
+
self::MODE_STANDARD => $this->getHelper()->__('Standard'),
|
43 |
+
self::MODE_EXPERT => $this->getHelper()->__('Expert'),
|
44 |
+
);
|
45 |
+
}
|
46 |
+
}
|
app/code/community/Trustedshops/Trustedshops/Model/System/Config/Source/Variant.php
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Trustedshops_Trustedshops_Model_System_Config_Source_Variant
|
4 |
+
{
|
5 |
+
const VARIANT_HIDE = 'hide';
|
6 |
+
const VARIANT_REVIEWS = 'reviews';
|
7 |
+
const VARIANT_NO_REVIEWS = 'default';
|
8 |
+
|
9 |
+
/**
|
10 |
+
* @var Trustedshops_Trustedshops_Helper_Data
|
11 |
+
*/
|
12 |
+
protected $_helper;
|
13 |
+
|
14 |
+
/**
|
15 |
+
* @return Trustedshops_Trustedshops_Helper_Data
|
16 |
+
*/
|
17 |
+
public function getHelper()
|
18 |
+
{
|
19 |
+
if (is_null($this->_helper))
|
20 |
+
{
|
21 |
+
$this->_helper = Mage::helper('trustedshops');
|
22 |
+
}
|
23 |
+
return $this->_helper;
|
24 |
+
}
|
25 |
+
|
26 |
+
/**
|
27 |
+
* @return array
|
28 |
+
*/
|
29 |
+
public function toOptionArray()
|
30 |
+
{
|
31 |
+
return array(
|
32 |
+
array('value' => self::VARIANT_REVIEWS, 'label' => $this->getHelper()->__('Display Trustbadge with review stars')),
|
33 |
+
array('value' => self::VARIANT_NO_REVIEWS, 'label' => $this->getHelper()->__('Display Trustbadge without review stars')),
|
34 |
+
array('value' => self::VARIANT_HIDE, 'label' => $this->getHelper()->__("Don't show Trustbadge")),
|
35 |
+
);
|
36 |
+
}
|
37 |
+
|
38 |
+
/**
|
39 |
+
* @return array
|
40 |
+
*/
|
41 |
+
public function toArray()
|
42 |
+
{
|
43 |
+
return array(
|
44 |
+
self::VARIANT_REVIEWS => $this->getHelper()->__('Display Trustbadge with reviews'),
|
45 |
+
self::VARIANT_NO_REVIEWS => $this->getHelper()->__('Display Trustbadge without reviews'),
|
46 |
+
self::VARIANT_HIDE => $this->getHelper()->__("Don't show Trustbadge"),
|
47 |
+
);
|
48 |
+
}
|
49 |
+
}
|
app/code/community/Trustedshops/Trustedshops/etc/adminhtml.xml
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* @category Trustedshops
|
5 |
+
* @package Trustedshops_Trustedshops
|
6 |
+
* @author Trusted Shops GmbH
|
7 |
+
* @copyright 2016 Trusted Shops GmbH
|
8 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
9 |
+
* @link http://www.trustedshops.de/
|
10 |
+
*/
|
11 |
+
-->
|
12 |
+
<config>
|
13 |
+
<acl>
|
14 |
+
<resources>
|
15 |
+
<admin>
|
16 |
+
<children>
|
17 |
+
<system>
|
18 |
+
<children>
|
19 |
+
<trustedshops>
|
20 |
+
<children>
|
21 |
+
<info translate="title" module="trustedshops">
|
22 |
+
<title>Information</title>
|
23 |
+
<sort_order>10</sort_order>
|
24 |
+
</info>
|
25 |
+
<trustbadge translate="title" module="trustedshops">
|
26 |
+
<title>Trustbadge</title>
|
27 |
+
<sort_order>20</sort_order>
|
28 |
+
</trustbadge>
|
29 |
+
<product translate="title" module="trustedshops">
|
30 |
+
<title>Product Reviews</title>
|
31 |
+
<sort_order>30</sort_order>
|
32 |
+
</product>
|
33 |
+
</children>
|
34 |
+
</trustedshops>
|
35 |
+
<config>
|
36 |
+
<children>
|
37 |
+
<trustedshops translate="title">
|
38 |
+
<title>Trusted Shops</title>
|
39 |
+
<sort_order>30</sort_order>
|
40 |
+
</trustedshops>
|
41 |
+
</children>
|
42 |
+
</config>
|
43 |
+
</children>
|
44 |
+
</system>
|
45 |
+
</children>
|
46 |
+
</admin>
|
47 |
+
</resources>
|
48 |
+
</acl>
|
49 |
+
</config>
|
app/code/community/Trustedshops/Trustedshops/etc/config.xml
ADDED
@@ -0,0 +1,175 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* @category Trustedshops
|
5 |
+
* @package Trustedshops_Trustedshops
|
6 |
+
* @author Trusted Shops GmbH
|
7 |
+
* @copyright 2016 Trusted Shops GmbH
|
8 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
9 |
+
* @link http://www.trustedshops.de/
|
10 |
+
*/
|
11 |
+
-->
|
12 |
+
<config>
|
13 |
+
<modules>
|
14 |
+
<Trustedshops_Trustedshops>
|
15 |
+
<version>1.0.0</version>
|
16 |
+
</Trustedshops_Trustedshops>
|
17 |
+
</modules>
|
18 |
+
<global>
|
19 |
+
<models>
|
20 |
+
<trustedshops>
|
21 |
+
<class>Trustedshops_Trustedshops_Model</class>
|
22 |
+
</trustedshops>
|
23 |
+
</models>
|
24 |
+
<blocks>
|
25 |
+
<trustedshops>
|
26 |
+
<class>Trustedshops_Trustedshops_Block</class>
|
27 |
+
</trustedshops>
|
28 |
+
</blocks>
|
29 |
+
<helpers>
|
30 |
+
<trustedshops>
|
31 |
+
<class>Trustedshops_Trustedshops_Helper</class>
|
32 |
+
</trustedshops>
|
33 |
+
</helpers>
|
34 |
+
</global>
|
35 |
+
<frontend>
|
36 |
+
<layout>
|
37 |
+
<updates>
|
38 |
+
<trustedshops_trustedshops>
|
39 |
+
<file>trustedshops.xml</file>
|
40 |
+
</trustedshops_trustedshops>
|
41 |
+
</updates>
|
42 |
+
</layout>
|
43 |
+
<translate>
|
44 |
+
<modules>
|
45 |
+
<trustedshops_trustedshops>
|
46 |
+
<files>
|
47 |
+
<default>Trustedshops_Trustedshops.csv</default>
|
48 |
+
</files>
|
49 |
+
</trustedshops_trustedshops>
|
50 |
+
</modules>
|
51 |
+
</translate>
|
52 |
+
</frontend>
|
53 |
+
<adminhtml>
|
54 |
+
<translate>
|
55 |
+
<modules>
|
56 |
+
<trustedshops_trustedshops>
|
57 |
+
<files>
|
58 |
+
<default>Trustedshops_Trustedshops.csv</default>
|
59 |
+
</files>
|
60 |
+
</trustedshops_trustedshops>
|
61 |
+
</modules>
|
62 |
+
</translate>
|
63 |
+
<events>
|
64 |
+
<admin_system_config_changed_section_trustedshops>
|
65 |
+
<observers>
|
66 |
+
<trustedshops_trustedshops>
|
67 |
+
<type>singleton</type>
|
68 |
+
<class>trustedshops/observer</class>
|
69 |
+
<method>adminSystemConfigChangedSectionTrustedshops</method>
|
70 |
+
</trustedshops_trustedshops>
|
71 |
+
</observers>
|
72 |
+
</admin_system_config_changed_section_trustedshops>
|
73 |
+
</events>
|
74 |
+
</adminhtml>
|
75 |
+
<default>
|
76 |
+
<trustedshops>
|
77 |
+
<info>
|
78 |
+
<mode>standard</mode>
|
79 |
+
</info>
|
80 |
+
<trustbadge>
|
81 |
+
<variant>reviews</variant>
|
82 |
+
<offset>0</offset>
|
83 |
+
<collect_orders>1</collect_orders>
|
84 |
+
<code><![CDATA[
|
85 |
+
<script type="text/javascript">
|
86 |
+
(function () {
|
87 |
+
var _tsid = '%tsid%';
|
88 |
+
_tsConfig = {
|
89 |
+
'yOffset': '0',
|
90 |
+
'variant': 'reviews',
|
91 |
+
'customElementId': '',
|
92 |
+
'trustcardDirection': '',
|
93 |
+
'customBadgeWidth': '',
|
94 |
+
'customBadgeHeight': '',
|
95 |
+
'disableResponsive': 'false',
|
96 |
+
'disableTrustbadge': 'false',
|
97 |
+
'trustCardTrigger': 'mouseenter',
|
98 |
+
'customCheckoutElementId': ''
|
99 |
+
};
|
100 |
+
var _ts = document.createElement('script');
|
101 |
+
_ts.type = 'text/javascript';
|
102 |
+
_ts.charset = 'utf-8';
|
103 |
+
_ts.async = true;
|
104 |
+
_ts.src = '//widgets.trustedshops.com/js/' + _tsid + '.js';
|
105 |
+
var __ts = document.getElementsByTagName('script')[0];
|
106 |
+
__ts.parentNode.insertBefore(_ts, __ts);
|
107 |
+
})();
|
108 |
+
</script>
|
109 |
+
]]></code>
|
110 |
+
</trustbadge>
|
111 |
+
<product>
|
112 |
+
<collect_reviews>0</collect_reviews>
|
113 |
+
<review_code><![CDATA[
|
114 |
+
<script type="text/javascript">
|
115 |
+
_tsProductReviewsConfig = {
|
116 |
+
tsid: '%tsid%',
|
117 |
+
sku: ['%sku%'],
|
118 |
+
variant: 'productreviews',
|
119 |
+
borderColor: '#0DBEDC',
|
120 |
+
locale: 'de_DE',
|
121 |
+
starColor: '#FFDC0F',
|
122 |
+
starSize: '15px',
|
123 |
+
ratingSummary: 'false',
|
124 |
+
maxHeight: '1200px',
|
125 |
+
'element': '#ts_product_sticker',
|
126 |
+
introtext: '' /* optional */
|
127 |
+
};
|
128 |
+
var scripts = document.getElementsByTagName('SCRIPT'),
|
129 |
+
me = scripts[scripts.length - 1];
|
130 |
+
var _ts = document.createElement('SCRIPT');
|
131 |
+
_ts.type = 'text/javascript';
|
132 |
+
_ts.async = true;
|
133 |
+
_ts.charset = 'utf-8';
|
134 |
+
_ts.src
|
135 |
+
='//widgets.trustedshops.com/reviews/tsSticker/tsProductSticker.js';
|
136 |
+
me.parentNode.insertBefore(_ts, me);
|
137 |
+
_tsProductReviewsConfig.script = _ts;
|
138 |
+
</script>
|
139 |
+
]]></review_code>
|
140 |
+
<review_border_color>#FFDC0F</review_border_color>
|
141 |
+
<review_star_color>#C0C0C0</review_star_color>
|
142 |
+
<rating_code><![CDATA[
|
143 |
+
<script type="text/javascript"
|
144 |
+
src="//widgets.trustedshops.com/reviews/tsSticker/tsProductStickerSummary.
|
145 |
+
js"></script>
|
146 |
+
<script>
|
147 |
+
var summaryBadge = new productStickerSummary();
|
148 |
+
summaryBadge.showSummary(
|
149 |
+
{
|
150 |
+
'tsId': '%tsid%',
|
151 |
+
'sku': ['%sku%'],
|
152 |
+
'element': '#ts_product_widget',
|
153 |
+
'starColor' : '#FFDC0F',
|
154 |
+
'starSize' : '14px',
|
155 |
+
'fontSize' : '12px',
|
156 |
+
'showRating' : true,
|
157 |
+
'scrollToReviews' : false
|
158 |
+
}
|
159 |
+
);
|
160 |
+
</script>
|
161 |
+
]]></rating_code>
|
162 |
+
<rating_star_color>#FFDC0F</rating_star_color>
|
163 |
+
<rating_star_size>15px</rating_star_size>
|
164 |
+
<rating_font_size>12px</rating_font_size>
|
165 |
+
</product>
|
166 |
+
</trustedshops>
|
167 |
+
</default>
|
168 |
+
<phpunit>
|
169 |
+
<suite>
|
170 |
+
<modules>
|
171 |
+
<Trustedshops_Trustedshops/>
|
172 |
+
</modules>
|
173 |
+
</suite>
|
174 |
+
</phpunit>
|
175 |
+
</config>
|
app/code/community/Trustedshops/Trustedshops/etc/system.xml
ADDED
@@ -0,0 +1,531 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* @category Trustedshops
|
5 |
+
* @package Trustedshops_Trustedshops
|
6 |
+
* @author Trusted Shops GmbH
|
7 |
+
* @copyright 2016 Trusted Shops GmbH
|
8 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
9 |
+
* @link http://www.trustedshops.de/
|
10 |
+
*/
|
11 |
+
-->
|
12 |
+
<config>
|
13 |
+
<sections>
|
14 |
+
<trustedshops translate="label" module="trustedshops">
|
15 |
+
<label>Trusted Shops</label>
|
16 |
+
<tab>service</tab>
|
17 |
+
<frontend_type>text</frontend_type>
|
18 |
+
<sort_order>400</sort_order>
|
19 |
+
<show_in_default>1</show_in_default>
|
20 |
+
<show_in_website>1</show_in_website>
|
21 |
+
<show_in_store>1</show_in_store>
|
22 |
+
<groups>
|
23 |
+
<info translate="label" module="trustedshops">
|
24 |
+
<label>Information</label>
|
25 |
+
<frontend_type>text</frontend_type>
|
26 |
+
<expanded>1</expanded>
|
27 |
+
<sort_order>100</sort_order>
|
28 |
+
<show_in_default>1</show_in_default>
|
29 |
+
<show_in_website>1</show_in_website>
|
30 |
+
<show_in_store>1</show_in_store>
|
31 |
+
<fields>
|
32 |
+
<intro translate="label" module="trustedshops">
|
33 |
+
<label>Intro</label>
|
34 |
+
<frontend_model>trustedshops/adminhtml_field_intro</frontend_model>
|
35 |
+
<sort_order>10</sort_order>
|
36 |
+
<show_in_default>1</show_in_default>
|
37 |
+
<show_in_website>1</show_in_website>
|
38 |
+
<show_in_store>1</show_in_store>
|
39 |
+
</intro>
|
40 |
+
|
41 |
+
<tsid translate="label tooltip" module="trustedshops">
|
42 |
+
<label>Trusted Shops ID</label>
|
43 |
+
<frontend_type>text</frontend_type>
|
44 |
+
<tooltip>The Trusted Shops ID is a unique identifier for your shop. You can find your Trusted Shops ID in your confirmation email after signing up.</tooltip>
|
45 |
+
<sort_order>20</sort_order>
|
46 |
+
<show_in_default>1</show_in_default>
|
47 |
+
<show_in_website>1</show_in_website>
|
48 |
+
<show_in_store>1</show_in_store>
|
49 |
+
</tsid>
|
50 |
+
|
51 |
+
<mode translate="label" module="trustedshops">
|
52 |
+
<label>Mode</label>
|
53 |
+
<frontend_type>select</frontend_type>
|
54 |
+
<source_model>trustedshops/system_config_source_mode</source_model>
|
55 |
+
<sort_order>30</sort_order>
|
56 |
+
<show_in_default>1</show_in_default>
|
57 |
+
<show_in_website>1</show_in_website>
|
58 |
+
<show_in_store>1</show_in_store>
|
59 |
+
</mode>
|
60 |
+
<mode_notice translate="label" module="trustedshops">
|
61 |
+
<label>Mode Expert</label>
|
62 |
+
<frontend_model>trustedshops/adminhtml_field_expertnotice</frontend_model>
|
63 |
+
<sort_order>40</sort_order>
|
64 |
+
<show_in_default>1</show_in_default>
|
65 |
+
<show_in_website>1</show_in_website>
|
66 |
+
<show_in_store>1</show_in_store>
|
67 |
+
<depends>
|
68 |
+
<mode>expert</mode>
|
69 |
+
</depends>
|
70 |
+
</mode_notice>
|
71 |
+
</fields>
|
72 |
+
</info>
|
73 |
+
|
74 |
+
|
75 |
+
<trustbadge translate="label" module="trustedshops">
|
76 |
+
<label>Trustbadge</label>
|
77 |
+
<frontend_type>text</frontend_type>
|
78 |
+
<expanded>1</expanded>
|
79 |
+
<sort_order>200</sort_order>
|
80 |
+
<show_in_default>1</show_in_default>
|
81 |
+
<show_in_website>1</show_in_website>
|
82 |
+
<show_in_store>1</show_in_store>
|
83 |
+
<fields>
|
84 |
+
<variant translate="label" module="trustedshops">
|
85 |
+
<label>Variant</label>
|
86 |
+
<frontend_type>select</frontend_type>
|
87 |
+
<source_model>trustedshops/system_config_source_variant</source_model>
|
88 |
+
<sort_order>10</sort_order>
|
89 |
+
<show_in_default>1</show_in_default>
|
90 |
+
<show_in_website>1</show_in_website>
|
91 |
+
<show_in_store>1</show_in_store>
|
92 |
+
<depends>
|
93 |
+
<mode>
|
94 |
+
<fieldset>info</fieldset>
|
95 |
+
<value>standard</value>
|
96 |
+
</mode>
|
97 |
+
</depends>
|
98 |
+
</variant>
|
99 |
+
|
100 |
+
<offset translate="label tooltip" module="trustedshops">
|
101 |
+
<label>Y-Offset</label>
|
102 |
+
<tooltip><![CDATA[Adjust the y-axis position of your Trustbadge up to 250px vertically from the lower right corner of your shop.]]></tooltip>
|
103 |
+
<frontend_type>text</frontend_type>
|
104 |
+
<validate>validate-css-length</validate>
|
105 |
+
<sort_order>20</sort_order>
|
106 |
+
<show_in_default>1</show_in_default>
|
107 |
+
<show_in_website>1</show_in_website>
|
108 |
+
<show_in_store>1</show_in_store>
|
109 |
+
<depends>
|
110 |
+
<mode>
|
111 |
+
<fieldset>info</fieldset>
|
112 |
+
<value>standard</value>
|
113 |
+
</mode>
|
114 |
+
</depends>
|
115 |
+
</offset>
|
116 |
+
|
117 |
+
<code translate="label" module="trustedshops">
|
118 |
+
<label>Trustbadge code</label>
|
119 |
+
<frontend_type>textarea</frontend_type>
|
120 |
+
<sort_order>40</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 |
+
<depends>
|
125 |
+
<mode>
|
126 |
+
<fieldset>info</fieldset>
|
127 |
+
<value>expert</value>
|
128 |
+
</mode>
|
129 |
+
</depends>
|
130 |
+
</code>
|
131 |
+
|
132 |
+
<collect_orders translate="label comment" module="trustedshops">
|
133 |
+
<label>Collect Reviews and enable money-back guarantee on your Thank you page</label>
|
134 |
+
<frontend_type>select</frontend_type>
|
135 |
+
<comment><![CDATA[<span style="color:orange; font-weight:bold">Guarantee is mandatory for certified shops</span>]]></comment>
|
136 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
137 |
+
<sort_order>50</sort_order>
|
138 |
+
<show_in_default>1</show_in_default>
|
139 |
+
<show_in_website>1</show_in_website>
|
140 |
+
<show_in_store>1</show_in_store>
|
141 |
+
<depends>
|
142 |
+
<mode>
|
143 |
+
<fieldset>info</fieldset>
|
144 |
+
<value>expert</value>
|
145 |
+
</mode>
|
146 |
+
</depends>
|
147 |
+
</collect_orders>
|
148 |
+
</fields>
|
149 |
+
</trustbadge>
|
150 |
+
|
151 |
+
<product translate="label" module="trustedshops">
|
152 |
+
<label>Product Reviews </label>
|
153 |
+
<frontend_type>text</frontend_type>
|
154 |
+
<expanded>1</expanded>
|
155 |
+
<sort_order>300</sort_order>
|
156 |
+
<show_in_default>1</show_in_default>
|
157 |
+
<show_in_website>1</show_in_website>
|
158 |
+
<show_in_store>1</show_in_store>
|
159 |
+
<fields>
|
160 |
+
|
161 |
+
<collect_reviews translate="label" module="trustedshops">
|
162 |
+
<label>Collect Product Reviews</label>
|
163 |
+
<frontend_type>select</frontend_type>
|
164 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
165 |
+
<sort_order>10</sort_order>
|
166 |
+
<show_in_default>1</show_in_default>
|
167 |
+
<show_in_website>1</show_in_website>
|
168 |
+
<show_in_store>1</show_in_store>
|
169 |
+
<depends>
|
170 |
+
<mode>
|
171 |
+
<fieldset>info</fieldset>
|
172 |
+
<value>standard</value>
|
173 |
+
</mode>
|
174 |
+
</depends>
|
175 |
+
</collect_reviews>
|
176 |
+
<collect_reviews_notice translate="label" module="trustedshops">
|
177 |
+
<label>Collect Product Reviews Notice</label>
|
178 |
+
<comment><![CDATA[More Traffic, less returns:<br/>Make sure to unlock unlimited Product Reviews in your Trusted Shops plan]]></comment>
|
179 |
+
<frontend_model>trustedshops/adminhtml_field_notice</frontend_model>
|
180 |
+
<sort_order>20</sort_order>
|
181 |
+
<show_in_default>1</show_in_default>
|
182 |
+
<show_in_website>1</show_in_website>
|
183 |
+
<show_in_store>1</show_in_store>
|
184 |
+
<depends>
|
185 |
+
<mode>
|
186 |
+
<fieldset>info</fieldset>
|
187 |
+
<value>standard</value>
|
188 |
+
</mode>
|
189 |
+
<collect_reviews>1</collect_reviews>
|
190 |
+
</depends>
|
191 |
+
</collect_reviews_notice>
|
192 |
+
|
193 |
+
<expert_collect_orders_notice translate="label" module="trustedshops">
|
194 |
+
<label>Notice</label>
|
195 |
+
<comment><![CDATA[Please activate "Collect Reviews and enable customer guarantee card on your Thank you page"]]></comment>
|
196 |
+
<frontend_model>trustedshops/adminhtml_field_notice</frontend_model>
|
197 |
+
<sort_order>30</sort_order>
|
198 |
+
<show_in_default>1</show_in_default>
|
199 |
+
<show_in_website>1</show_in_website>
|
200 |
+
<show_in_store>1</show_in_store>
|
201 |
+
<depends>
|
202 |
+
<mode>
|
203 |
+
<fieldset>info</fieldset>
|
204 |
+
<value>expert</value>
|
205 |
+
</mode>
|
206 |
+
<collect_orders>
|
207 |
+
<fieldset>trustbadge</fieldset>
|
208 |
+
<value>0</value>
|
209 |
+
</collect_orders>
|
210 |
+
</depends>
|
211 |
+
</expert_collect_orders_notice>
|
212 |
+
<expert_collect_reviews translate="label" module="trustedshops">
|
213 |
+
<label>Collect Product Reviews</label>
|
214 |
+
<frontend_type>select</frontend_type>
|
215 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
216 |
+
<sort_order>40</sort_order>
|
217 |
+
<show_in_default>1</show_in_default>
|
218 |
+
<show_in_website>1</show_in_website>
|
219 |
+
<show_in_store>1</show_in_store>
|
220 |
+
<depends>
|
221 |
+
<mode>
|
222 |
+
<fieldset>info</fieldset>
|
223 |
+
<value>expert</value>
|
224 |
+
</mode>
|
225 |
+
<collect_orders>
|
226 |
+
<fieldset>trustbadge</fieldset>
|
227 |
+
<value>1</value>
|
228 |
+
</collect_orders>
|
229 |
+
</depends>
|
230 |
+
</expert_collect_reviews>
|
231 |
+
<expert_collect_reviews_notice translate="label" module="trustedshops">
|
232 |
+
<label>Collect Product Reviews Notice</label>
|
233 |
+
<comment><![CDATA[More Traffic, less returns:
|
234 |
+
Make sure to unlock unlimited Product Reviews in your Trusted Shops plan]]></comment>
|
235 |
+
<frontend_model>trustedshops/adminhtml_field_notice</frontend_model>
|
236 |
+
<sort_order>50</sort_order>
|
237 |
+
<show_in_default>1</show_in_default>
|
238 |
+
<show_in_website>1</show_in_website>
|
239 |
+
<show_in_store>1</show_in_store>
|
240 |
+
<depends>
|
241 |
+
<mode>
|
242 |
+
<fieldset>info</fieldset>
|
243 |
+
<value>expert</value>
|
244 |
+
</mode>
|
245 |
+
<collect_orders>
|
246 |
+
<fieldset>trustbadge</fieldset>
|
247 |
+
<value>1</value>
|
248 |
+
</collect_orders>
|
249 |
+
<expert_collect_reviews>1</expert_collect_reviews>
|
250 |
+
</depends>
|
251 |
+
</expert_collect_reviews_notice>
|
252 |
+
|
253 |
+
<review_header translate="label" module="trustedshops">
|
254 |
+
<label>Product Review Sticker</label>
|
255 |
+
<frontend_type>text</frontend_type>
|
256 |
+
<frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
|
257 |
+
<sort_order>60</sort_order>
|
258 |
+
<show_in_default>1</show_in_default>
|
259 |
+
<show_in_website>1</show_in_website>
|
260 |
+
<show_in_store>1</show_in_store>
|
261 |
+
<depends>
|
262 |
+
<mode>
|
263 |
+
<fieldset>info</fieldset>
|
264 |
+
<value>standard</value>
|
265 |
+
</mode>
|
266 |
+
<collect_reviews>1</collect_reviews>
|
267 |
+
</depends>
|
268 |
+
</review_header>
|
269 |
+
<expert_review_header translate="label" module="trustedshops">
|
270 |
+
<label>Product Review Sticker</label>
|
271 |
+
<frontend_type>text</frontend_type>
|
272 |
+
<frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
|
273 |
+
<sort_order>70</sort_order>
|
274 |
+
<show_in_default>1</show_in_default>
|
275 |
+
<show_in_website>1</show_in_website>
|
276 |
+
<show_in_store>1</show_in_store>
|
277 |
+
<depends>
|
278 |
+
<mode>
|
279 |
+
<fieldset>info</fieldset>
|
280 |
+
<value>expert</value>
|
281 |
+
</mode>
|
282 |
+
<collect_orders>
|
283 |
+
<fieldset>trustbadge</fieldset>
|
284 |
+
<value>1</value>
|
285 |
+
</collect_orders>
|
286 |
+
<expert_collect_reviews>1</expert_collect_reviews>
|
287 |
+
</depends>
|
288 |
+
</expert_review_header>
|
289 |
+
|
290 |
+
<review_active translate="label" module="trustedshops">
|
291 |
+
<label>Show Product Reviews on Product Detail page on additional tab "Trusted Shops Reviews"</label>
|
292 |
+
<frontend_type>select</frontend_type>
|
293 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
294 |
+
<sort_order>80</sort_order>
|
295 |
+
<show_in_default>1</show_in_default>
|
296 |
+
<show_in_website>1</show_in_website>
|
297 |
+
<show_in_store>1</show_in_store>
|
298 |
+
<depends>
|
299 |
+
<mode>
|
300 |
+
<fieldset>info</fieldset>
|
301 |
+
<value>standard</value>
|
302 |
+
</mode>
|
303 |
+
<collect_reviews>1</collect_reviews>
|
304 |
+
</depends>
|
305 |
+
</review_active>
|
306 |
+
<expert_review_active translate="label" module="trustedshops">
|
307 |
+
<label>Show Product Reviews on Product Detail page on additional tab "Trusted Shops Reviews"</label>
|
308 |
+
<frontend_type>select</frontend_type>
|
309 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
310 |
+
<sort_order>90</sort_order>
|
311 |
+
<show_in_default>1</show_in_default>
|
312 |
+
<show_in_website>1</show_in_website>
|
313 |
+
<show_in_store>1</show_in_store>
|
314 |
+
<depends>
|
315 |
+
<mode>
|
316 |
+
<fieldset>info</fieldset>
|
317 |
+
<value>expert</value>
|
318 |
+
</mode>
|
319 |
+
<collect_orders>
|
320 |
+
<fieldset>trustbadge</fieldset>
|
321 |
+
<value>1</value>
|
322 |
+
</collect_orders>
|
323 |
+
<expert_collect_reviews>1</expert_collect_reviews>
|
324 |
+
</depends>
|
325 |
+
</expert_review_active>
|
326 |
+
|
327 |
+
<review_border_color translate="label" module="trustedshops">
|
328 |
+
<label>Border Colour</label>
|
329 |
+
<frontend_type>text</frontend_type>
|
330 |
+
<sort_order>100</sort_order>
|
331 |
+
<show_in_default>1</show_in_default>
|
332 |
+
<show_in_website>1</show_in_website>
|
333 |
+
<show_in_store>1</show_in_store>
|
334 |
+
<depends>
|
335 |
+
<mode>
|
336 |
+
<fieldset>info</fieldset>
|
337 |
+
<value>standard</value>
|
338 |
+
</mode>
|
339 |
+
<collect_reviews>1</collect_reviews>
|
340 |
+
<review_active>1</review_active>
|
341 |
+
</depends>
|
342 |
+
</review_border_color>
|
343 |
+
<review_star_color translate="label" module="trustedshops">
|
344 |
+
<label>Star Colour</label>
|
345 |
+
<frontend_type>text</frontend_type>
|
346 |
+
<sort_order>110</sort_order>
|
347 |
+
<show_in_default>1</show_in_default>
|
348 |
+
<show_in_website>1</show_in_website>
|
349 |
+
<show_in_store>1</show_in_store>
|
350 |
+
<depends>
|
351 |
+
<mode>
|
352 |
+
<fieldset>info</fieldset>
|
353 |
+
<value>standard</value>
|
354 |
+
</mode>
|
355 |
+
<collect_reviews>1</collect_reviews>
|
356 |
+
<review_active>1</review_active>
|
357 |
+
</depends>
|
358 |
+
</review_star_color>
|
359 |
+
|
360 |
+
<review_code translate="label" module="trustedshops">
|
361 |
+
<label>Code for Product Review Sticker</label>
|
362 |
+
<frontend_type>textarea</frontend_type>
|
363 |
+
<sort_order>130</sort_order>
|
364 |
+
<show_in_default>1</show_in_default>
|
365 |
+
<show_in_website>1</show_in_website>
|
366 |
+
<show_in_store>1</show_in_store>
|
367 |
+
<depends>
|
368 |
+
<mode>
|
369 |
+
<fieldset>info</fieldset>
|
370 |
+
<value>expert</value>
|
371 |
+
</mode>
|
372 |
+
<collect_orders>
|
373 |
+
<fieldset>trustbadge</fieldset>
|
374 |
+
<value>1</value>
|
375 |
+
</collect_orders>
|
376 |
+
<expert_collect_reviews>1</expert_collect_reviews>
|
377 |
+
<expert_review_active>1</expert_review_active>
|
378 |
+
</depends>
|
379 |
+
</review_code>
|
380 |
+
|
381 |
+
<!-- Product Widget -->
|
382 |
+
|
383 |
+
<rating_header translate="label" module="trustedshops">
|
384 |
+
<label>Product Review Stars</label>
|
385 |
+
<frontend_type>text</frontend_type>
|
386 |
+
<frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
|
387 |
+
<sort_order>140</sort_order>
|
388 |
+
<show_in_default>1</show_in_default>
|
389 |
+
<show_in_website>1</show_in_website>
|
390 |
+
<show_in_store>1</show_in_store>
|
391 |
+
<depends>
|
392 |
+
<mode>
|
393 |
+
<fieldset>info</fieldset>
|
394 |
+
<value>standard</value>
|
395 |
+
</mode>
|
396 |
+
<collect_reviews>1</collect_reviews>
|
397 |
+
</depends>
|
398 |
+
</rating_header>
|
399 |
+
<expert_rating_header translate="label" module="trustedshops">
|
400 |
+
<label>Product Review Stars</label>
|
401 |
+
<frontend_type>text</frontend_type>
|
402 |
+
<frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
|
403 |
+
<sort_order>150</sort_order>
|
404 |
+
<show_in_default>1</show_in_default>
|
405 |
+
<show_in_website>1</show_in_website>
|
406 |
+
<show_in_store>1</show_in_store>
|
407 |
+
<depends>
|
408 |
+
<mode>
|
409 |
+
<fieldset>info</fieldset>
|
410 |
+
<value>expert</value>
|
411 |
+
</mode>
|
412 |
+
<collect_orders>
|
413 |
+
<fieldset>trustbadge</fieldset>
|
414 |
+
<value>1</value>
|
415 |
+
</collect_orders>
|
416 |
+
<expert_collect_reviews>1</expert_collect_reviews>
|
417 |
+
</depends>
|
418 |
+
</expert_rating_header>
|
419 |
+
|
420 |
+
<rating_active translate="label" module="trustedshops">
|
421 |
+
<label>Show Star ratings on Product Detail Page below your Product Name</label>
|
422 |
+
<frontend_type>select</frontend_type>
|
423 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
424 |
+
<sort_order>160</sort_order>
|
425 |
+
<show_in_default>1</show_in_default>
|
426 |
+
<show_in_website>1</show_in_website>
|
427 |
+
<show_in_store>1</show_in_store>
|
428 |
+
<depends>
|
429 |
+
<mode>
|
430 |
+
<fieldset>info</fieldset>
|
431 |
+
<value>standard</value>
|
432 |
+
</mode>
|
433 |
+
<collect_reviews>1</collect_reviews>
|
434 |
+
</depends>
|
435 |
+
</rating_active>
|
436 |
+
<expert_rating_active translate="label" module="trustedshops">
|
437 |
+
<label>Show Star ratings on Product Detail Page below your Product Name</label>
|
438 |
+
<frontend_type>select</frontend_type>
|
439 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
440 |
+
<sort_order>170</sort_order>
|
441 |
+
<show_in_default>1</show_in_default>
|
442 |
+
<show_in_website>1</show_in_website>
|
443 |
+
<show_in_store>1</show_in_store>
|
444 |
+
<depends>
|
445 |
+
<mode>
|
446 |
+
<fieldset>info</fieldset>
|
447 |
+
<value>expert</value>
|
448 |
+
</mode>
|
449 |
+
<collect_orders>
|
450 |
+
<fieldset>trustbadge</fieldset>
|
451 |
+
<value>1</value>
|
452 |
+
</collect_orders>
|
453 |
+
<expert_collect_reviews>1</expert_collect_reviews>
|
454 |
+
</depends>
|
455 |
+
</expert_rating_active>
|
456 |
+
|
457 |
+
<rating_star_color translate="label" module="trustedshops">
|
458 |
+
<label>Star Colour</label>
|
459 |
+
<frontend_type>text</frontend_type>
|
460 |
+
<sort_order>180</sort_order>
|
461 |
+
<show_in_default>1</show_in_default>
|
462 |
+
<show_in_website>1</show_in_website>
|
463 |
+
<show_in_store>1</show_in_store>
|
464 |
+
<depends>
|
465 |
+
<mode>
|
466 |
+
<fieldset>info</fieldset>
|
467 |
+
<value>standard</value>
|
468 |
+
</mode>
|
469 |
+
<collect_reviews>1</collect_reviews>
|
470 |
+
<rating_active>1</rating_active>
|
471 |
+
</depends>
|
472 |
+
</rating_star_color>
|
473 |
+
<rating_star_size translate="label" module="trustedshops">
|
474 |
+
<label>Star Size</label>
|
475 |
+
<frontend_type>text</frontend_type>
|
476 |
+
<sort_order>190</sort_order>
|
477 |
+
<show_in_default>1</show_in_default>
|
478 |
+
<show_in_website>1</show_in_website>
|
479 |
+
<show_in_store>1</show_in_store>
|
480 |
+
<depends>
|
481 |
+
<mode>
|
482 |
+
<fieldset>info</fieldset>
|
483 |
+
<value>standard</value>
|
484 |
+
</mode>
|
485 |
+
<collect_reviews>1</collect_reviews>
|
486 |
+
<rating_active>1</rating_active>
|
487 |
+
</depends>
|
488 |
+
</rating_star_size>
|
489 |
+
<rating_font_size translate="label" module="trustedshops">
|
490 |
+
<label>Font Size</label>
|
491 |
+
<frontend_type>text</frontend_type>
|
492 |
+
<sort_order>200</sort_order>
|
493 |
+
<show_in_default>1</show_in_default>
|
494 |
+
<show_in_website>1</show_in_website>
|
495 |
+
<show_in_store>1</show_in_store>
|
496 |
+
<depends>
|
497 |
+
<mode>
|
498 |
+
<fieldset>info</fieldset>
|
499 |
+
<value>standard</value>
|
500 |
+
</mode>
|
501 |
+
<collect_reviews>1</collect_reviews>
|
502 |
+
<rating_active>1</rating_active>
|
503 |
+
</depends>
|
504 |
+
</rating_font_size>
|
505 |
+
|
506 |
+
<rating_code translate="label" module="trustedshops">
|
507 |
+
<label>Code for Product Review Stars</label>
|
508 |
+
<frontend_type>textarea</frontend_type>
|
509 |
+
<sort_order>220</sort_order>
|
510 |
+
<show_in_default>1</show_in_default>
|
511 |
+
<show_in_website>1</show_in_website>
|
512 |
+
<show_in_store>1</show_in_store>
|
513 |
+
<depends>
|
514 |
+
<mode>
|
515 |
+
<fieldset>info</fieldset>
|
516 |
+
<value>expert</value>
|
517 |
+
</mode>
|
518 |
+
<collect_orders>
|
519 |
+
<fieldset>trustbadge</fieldset>
|
520 |
+
<value>1</value>
|
521 |
+
</collect_orders>
|
522 |
+
<expert_collect_reviews>1</expert_collect_reviews>
|
523 |
+
<expert_rating_active>1</expert_rating_active>
|
524 |
+
</depends>
|
525 |
+
</rating_code>
|
526 |
+
</fields>
|
527 |
+
</product>
|
528 |
+
</groups>
|
529 |
+
</trustedshops>
|
530 |
+
</sections>
|
531 |
+
</config>
|
app/design/frontend/base/default/layout/trustedshops.xml
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<layout version="1.0.0">
|
3 |
+
<default>
|
4 |
+
<reference name="before_body_end">
|
5 |
+
<block type="trustedshops/trustbadge" name="trustedshops.trustbadge" as="trustedshops_trustbadge"/>
|
6 |
+
</reference>
|
7 |
+
</default>
|
8 |
+
|
9 |
+
<catalog_product_view>
|
10 |
+
<reference name="product.info">
|
11 |
+
<block type="trustedshops/review_tab" name="trustedshops.review.tab" as="trustedshops_review_tab">
|
12 |
+
<action method="addToParentGroup">
|
13 |
+
<group>detailed_info</group>
|
14 |
+
</action>
|
15 |
+
<action method="setTitle" translate="title" module="trustedshops">
|
16 |
+
<title>Trusted Shops Reviews</title>
|
17 |
+
</action>
|
18 |
+
</block>
|
19 |
+
</reference>
|
20 |
+
|
21 |
+
<reference name="before_body_end">
|
22 |
+
<block type="trustedshops/review" name="trustedshops.review" as="trustedshops_review" />
|
23 |
+
<block type="trustedshops/rating" name="trustedshops.rating" as="trustedshops_rating"/>
|
24 |
+
</reference>
|
25 |
+
</catalog_product_view>
|
26 |
+
|
27 |
+
<checkout_onepage_success>
|
28 |
+
<reference name="before_body_end">
|
29 |
+
<block type="trustedshops/trustcard" name="trustedshops.trustcard" as="trustedshops_product" before="trustedshops.trustbadge" />
|
30 |
+
</reference>
|
31 |
+
</checkout_onepage_success>
|
32 |
+
</layout>
|
app/design/frontend/base/default/template/trustedshops/rating.phtml
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* @category Trustedshops
|
4 |
+
* @package Trustedshops_Trustedshops
|
5 |
+
* @author Trusted Shops GmbH
|
6 |
+
* @copyright 2016 Trusted Shops GmbH
|
7 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
+
* @link http://www.trustedshops.de/
|
9 |
+
*/
|
10 |
+
?>
|
11 |
+
<?php /** @var Trustedshops_Trustedshops_Block_Product_Rating $this */ ?>
|
12 |
+
<?php if ($this->isActive()) : ?>
|
13 |
+
<script type="text/javascript">
|
14 |
+
<?php
|
15 |
+
/**
|
16 |
+
* since magento does not provide a suitable layout block after the product name
|
17 |
+
* we inject the html div via javascript to the appropriate position
|
18 |
+
*/
|
19 |
+
?>
|
20 |
+
if ($$('.extra-info').size() > 0) {
|
21 |
+
// CE 1.9 and EE 1.14
|
22 |
+
$$('.extra-info')[0].insert({top: "<div id='ts_product_widget'></div>"});
|
23 |
+
} else if ($$('.product-view .product-shop .product-name').size() > 0) {
|
24 |
+
// CE < 1.9 and EE < 1.14
|
25 |
+
$$('.product-name')[0].insert({after: "<div id='ts_product_widget'></div>"});
|
26 |
+
}
|
27 |
+
</script>
|
28 |
+
<?php if ($this->isExpert()) : ?>
|
29 |
+
<?php echo $this->getCode() ?>
|
30 |
+
<?php else : ?>
|
31 |
+
<script type="text/javascript"
|
32 |
+
src="//widgets.trustedshops.com/reviews/tsSticker/tsProductStickerSummary.js"></script>
|
33 |
+
<script type="text/javascript">
|
34 |
+
var summaryBadge = new productStickerSummary();
|
35 |
+
summaryBadge.showSummary(
|
36 |
+
{
|
37 |
+
'tsId': '<?php echo $this->getTsId() ?>',
|
38 |
+
'sku': ['<?php echo $this->getProductSku() ?>'],
|
39 |
+
'element': '#ts_product_widget',
|
40 |
+
'starColor': '<?php echo $this->getStarColor() ?>',
|
41 |
+
'starSize': '<?php echo $this->getStarSize() ?>',
|
42 |
+
'fontSize': '<?php echo $this->getFontSize() ?>',
|
43 |
+
'showRating': true,
|
44 |
+
'scrollToReviews': false
|
45 |
+
}
|
46 |
+
);
|
47 |
+
</script>
|
48 |
+
<?php endif; ?>
|
49 |
+
<?php endif; ?>
|
app/design/frontend/base/default/template/trustedshops/review.phtml
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* @category Trustedshops
|
4 |
+
* @package Trustedshops_Trustedshops
|
5 |
+
* @author Trusted Shops GmbH
|
6 |
+
* @copyright 2016 Trusted Shops GmbH
|
7 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
+
* @link http://www.trustedshops.de/
|
9 |
+
*/
|
10 |
+
?>
|
11 |
+
<?php /** @var Trustedshops_Trustedshops_Block_Product_Review $this */ ?>
|
12 |
+
<?php if ($this->isActive()) : ?>
|
13 |
+
<?php if ($this->isExpert()) : ?>
|
14 |
+
<?php echo $this->getCode() ?>
|
15 |
+
<?php else : ?>
|
16 |
+
<script type="text/javascript">
|
17 |
+
_tsProductReviewsConfig = {
|
18 |
+
tsid: '<?php echo $this->getTsId() ?>',
|
19 |
+
sku: ['<?php echo $this->getProductSku() ?>'],
|
20 |
+
variant: 'productreviews',
|
21 |
+
borderColor: '<?php echo $this->getBorderColor() ?>',
|
22 |
+
locale: '<?php echo $this->getLocale() ?>',
|
23 |
+
starColor: '<?php echo $this->getStarColor() ?>',
|
24 |
+
starSize: '15px',
|
25 |
+
ratingSummary: 'false',
|
26 |
+
maxHeight: '1200px',
|
27 |
+
'element': '#ts_product_sticker',
|
28 |
+
introtext: '' /* optional */
|
29 |
+
};
|
30 |
+
var scripts = document.getElementsByTagName('SCRIPT'),
|
31 |
+
me = scripts[scripts.length - 1];
|
32 |
+
var _ts = document.createElement('SCRIPT');
|
33 |
+
_ts.type = 'text/javascript';
|
34 |
+
_ts.async = true;
|
35 |
+
_ts.charset = 'utf-8';
|
36 |
+
_ts.src
|
37 |
+
= '//widgets.trustedshops.com/reviews/tsSticker/tsProductSticker.js';
|
38 |
+
me.parentNode.insertBefore(_ts, me);
|
39 |
+
_tsProductReviewsConfig.script = _ts;
|
40 |
+
</script>
|
41 |
+
<?php endif; ?>
|
42 |
+
<?php endif; ?>
|
43 |
+
|
app/design/frontend/base/default/template/trustedshops/review_tab.phtml
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* @category Trustedshops
|
4 |
+
* @package Trustedshops_Trustedshops
|
5 |
+
* @author Trusted Shops GmbH
|
6 |
+
* @copyright 2016 Trusted Shops GmbH
|
7 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
+
* @link http://www.trustedshops.de/
|
9 |
+
*/
|
10 |
+
?>
|
11 |
+
<?php /** @var Trustedshops_Trustedshops_Block_Review_Tab $this */ ?>
|
12 |
+
<?php
|
13 |
+
/**
|
14 |
+
* content element for trustedshops review
|
15 |
+
* will be added as additional block to product tabs
|
16 |
+
*/
|
17 |
+
?>
|
18 |
+
<div id="ts_product_sticker"></div>
|
app/design/frontend/base/default/template/trustedshops/trustbadge.phtml
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* @category Trustedshops
|
4 |
+
* @package Trustedshops_Trustedshops
|
5 |
+
* @author Trusted Shops GmbH
|
6 |
+
* @copyright 2016 Trusted Shops GmbH
|
7 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
+
* @link http://www.trustedshops.de/
|
9 |
+
*/
|
10 |
+
?>
|
11 |
+
<?php /** @var Trustedshops_Trustedshops_Block_Trustbadge $this */ ?>
|
12 |
+
<?php if ($this->isActive()) : ?>
|
13 |
+
<?php if ($this->isExpert()) : ?>
|
14 |
+
<?php echo $this->getCode() ?>
|
15 |
+
<?php else : ?>
|
16 |
+
<script type="text/javascript">
|
17 |
+
(function () {
|
18 |
+
var _tsid = '<?php echo $this->getTsId() ?>';
|
19 |
+
_tsConfig = {
|
20 |
+
'yOffset': '<?php echo $this->getOffset() ?>', /* offset from page bottom */
|
21 |
+
'variant': '<?php echo $this->getVariant() ?>', /* text, default, small, reviews, custom, custom_reviews */
|
22 |
+
'customElementId': '', /* required for variants custom and custom_reviews */
|
23 |
+
'trustcardDirection': '', /* for custom variants: topRight, topLeft, bottomRight, bottomLeft */
|
24 |
+
'customBadgeWidth': '', /* for custom variants: 40 - 90 (in pixels) */
|
25 |
+
'customBadgeHeight': '', /* for custom variants: 40 - 90 (in pixels) */
|
26 |
+
'disableResponsive': 'false', /* deactivate responsive behaviour */
|
27 |
+
'disableTrustbadge': '<?php echo $this->getDisplayTrustbadge() ?>', /* deactivate trustbadge */
|
28 |
+
'trustCardTrigger': 'mouseenter', /* set to 'click' if you want the trustcard to be opened on click instead */
|
29 |
+
'customCheckoutElementId': '' /* required for custom trustcard */
|
30 |
+
};
|
31 |
+
var _ts = document.createElement('script');
|
32 |
+
_ts.type = 'text/javascript';
|
33 |
+
_ts.charset = 'utf-8';
|
34 |
+
_ts.async = true;
|
35 |
+
_ts.src = '//widgets.trustedshops.com/js/' + _tsid + '.js';
|
36 |
+
var __ts = document.getElementsByTagName('script')[0];
|
37 |
+
__ts.parentNode.insertBefore(_ts, __ts);
|
38 |
+
})();
|
39 |
+
</script>
|
40 |
+
<?php endif; ?>
|
41 |
+
<?php endif; ?>
|
app/design/frontend/base/default/template/trustedshops/trustcard.phtml
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* @category Trustedshops
|
4 |
+
* @package Trustedshops_Trustedshops
|
5 |
+
* @author Trusted Shops GmbH
|
6 |
+
* @copyright 2016 Trusted Shops GmbH
|
7 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
+
* @link http://www.trustedshops.de/
|
9 |
+
*/
|
10 |
+
?>
|
11 |
+
<?php /** @var Trustedshops_Trustedshops_Block_Trustcard $this */ ?>
|
12 |
+
<?php if ($this->collectOrders()) : ?>
|
13 |
+
<div id="trustedShopsCheckout" style="display: none;">
|
14 |
+
<span id="tsCheckoutOrderNr"><?php echo $this->getOrder()->getIncrementId() ?></span>
|
15 |
+
<span id="tsCheckoutBuyerEmail"><?php echo $this->getOrder()->getCustomerEmail() ?></span>
|
16 |
+
<span id="tsCheckoutOrderAmount"><?php echo $this->getOrderAmount() ?></span>
|
17 |
+
<span id="tsCheckoutOrderCurrency"><?php echo $this->getOrder()->getStoreCurrencyCode() ?></span>
|
18 |
+
<span id="tsCheckoutOrderPaymentType"><?php echo $this->getOrder()->getPayment()->getMethod() ?></span>
|
19 |
+
<span id="tsCheckoutOrderEstDeliveryDate"></span>
|
20 |
+
<?php if ($this->collectReviews()) : ?>
|
21 |
+
<!-- product reviews start -->
|
22 |
+
<!-- for each product in the basket full set of data is required -->
|
23 |
+
<?php /** @var Mage_Sales_Model_Order_Item $item */ ?>
|
24 |
+
<?php foreach ($this->getOrder()->getAllVisibleItems() as $item) : ?>
|
25 |
+
<span class="tsCheckoutProductItem">
|
26 |
+
<span class="tsCheckoutProductUrl"><?php echo $item->getProduct()->getProductUrl() ?></span>
|
27 |
+
<span class="tsCheckoutProductImageUrl"><?php echo $this->getProductImage($item) ?></span>
|
28 |
+
<span class="tsCheckoutProductName"><?php echo $item->getName() ?></span>
|
29 |
+
<span class="tsCheckoutProductSKU"><?php echo $this->getProductSku($item) ?></span>
|
30 |
+
<span class="tsCheckoutProductGTIN"></span>
|
31 |
+
<span class="tsCheckoutProductMPN"></span>
|
32 |
+
<span class="tsCheckoutProductBrand"></span>
|
33 |
+
</span>
|
34 |
+
<?php endforeach; ?>
|
35 |
+
<!-- product reviews end -->
|
36 |
+
<?php endif; ?>
|
37 |
+
</div>
|
38 |
+
<?php endif; ?>
|
app/etc/modules/Trustedshops_Trustedshops.xml
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* @category Trustedshops
|
5 |
+
* @package Trustedshops_Trustedshops
|
6 |
+
* @author Trusted Shops GmbH
|
7 |
+
* @copyright 2016 Trusted Shops GmbH
|
8 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
9 |
+
* @link http://www.trustedshops.de/
|
10 |
+
*/
|
11 |
+
-->
|
12 |
+
<config>
|
13 |
+
<modules>
|
14 |
+
<Trustedshops_Trustedshops>
|
15 |
+
<active>true</active>
|
16 |
+
<codePool>community</codePool>
|
17 |
+
</Trustedshops_Trustedshops>
|
18 |
+
</modules>
|
19 |
+
</config>
|
app/locale/de_AT/Trustedshops_Trustedshops.csv
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"trustedshops_en.jpg","trustedshops_de.jpg"
|
2 |
+
"Get your account","Erstellen Sie Ihren Account"
|
3 |
+
"http://www.trustbadge.com/en/pricing/","http://www.trustbadge.com/de/preise/"
|
4 |
+
"The Trusted Shops ID is a unique identifier for your shop. You can find your Trusted Shops ID in your confirmation email after signing up.","Die Trusted Shops ID identifiziert Ihren Shop eindeutig bei Trusted Shops. Sie wird Ihnen in der Bestätigungsmail Ihrer Anmeldung zugesendet."
|
5 |
+
"Mode","Modus"
|
6 |
+
"Expert","Experte"
|
7 |
+
"Variant","Variante"
|
8 |
+
"Display Trustbadge with review stars","Trustbadge mit Bewertungssternchen anzeigen"
|
9 |
+
"Display Trustbadge without review stars","Trustbadge ohne Bewertungssternchen anzeigen"
|
10 |
+
"Don't show Trustbadge","Trustbadge ausblenden"
|
11 |
+
"Adjust the y-axis position of your Trustbadge up to 250px vertically from the lower right corner of your shop.","Wählen Sie einen Abstand für das Trustbadge von 0-250px vom rechten unteren Rand Ihres Shops."
|
12 |
+
"Trustbadge code","Trustbadge Code"
|
13 |
+
"Collect Reviews and enable money-back guarantee on your Thank you page","Auf der Bestellbestätigungsseite Reviews sammeln und die Geld-zurück-Garantie anbieten"
|
14 |
+
"<span style=""color:orange; font-weight:bold"">Guarantee is mandatory for certified shops</span>","<span style=""color:orange; font-weight:bold"">Die Garantie ist für zertifizierte Shops verpflichtend</span>"
|
15 |
+
"Product Reviews ","Produktbewertungen"
|
16 |
+
"Please activate ""Collect Reviews and enable customer guarantee card on your Thank you page""","Bitte aktivieren Sie ""Auf der Bestellbestätigungsseite Reviews sammeln und die Garantiekarte anbieten"""
|
17 |
+
"Collect Product Reviews","Produktbewertungen sammeln"
|
18 |
+
"More Traffic, less returns:<br/>Make sure to unlock unlimited Product Reviews in your Trusted Shops plan","Mehr Traffic, weniger Retouren:<br/>Schalten Sie unbegrenzte Produktbewertungen in Ihrem Trusted Shops Paket frei"
|
19 |
+
"Product Review Sticker","Produktbewertungen im Shop"
|
20 |
+
"Show Product Reviews on Product Detail page on additional tab ""Trusted Shops Reviews""","Produktbewertungen auf der Produktseite in einem zusätzlichen Reiter ""Trusted Shops Bewertungen"" anzeigen"
|
21 |
+
"Border Colour","Rahmenfarbe"
|
22 |
+
"Star Colour","Farbe der Sterne"
|
23 |
+
"Code for Product Review Sticker","Code für Produktbewertungen"
|
24 |
+
"Product Review Stars","Produktbewertungssterne"
|
25 |
+
"Show Star ratings on Product Detail Page below your Product Name","Produktbewertungen auf der Produktdetailseite unter dem Produktnamen anzeigen"
|
26 |
+
"Star Colour","Farbe der Sterne"
|
27 |
+
"Star Size","Größe der Sterne"
|
28 |
+
"Font Size","Schriftgröße"
|
29 |
+
"Code for Product Review Stars","Code für Produktbewertungssterne"
|
30 |
+
|
31 |
+
"Use additional options to customize your Trusted Shops Integration or use the latest code version here. E.g.:","Hier können Sie Ihre Trusted Shops Integration detaillierter konfigurieren oder den neuesten Code einbinden:"
|
32 |
+
"Place your Trustbadge wherever you want","Platzieren Sie Ihr Trustbadge wo immer Sie möchten"
|
33 |
+
"Deactivate mobile use","Deaktivieren Sie die mobile Anzeige"
|
34 |
+
"Jump from your Product Reviews stars directly to your Product Reviews","Springen Sie durch einen Klick von Ihren Produktbewertungssternen direkt zu Ihren Produktbewertungen"
|
35 |
+
"Learn more about %s options and %s configuration.","Erfahren Sie mehr über Einstellungsmöglichkeiten des %s oder von %s."
|
36 |
+
"http://www.trustedshops.co.uk/support/trustbadge/trustbadge-custom/","http://www.trustedshops.de/shopbetreiber/integration/trustbadge/trustbadge-custom/"
|
37 |
+
"http://www.trustedshops.co.uk/support/product-reviews/","http://www.trustedshops.de/shopbetreiber/integration/product-reviews/"
|
38 |
+
"Trusted Shops Reviews","Trusted Shops Bewertungen"
|
app/locale/de_CH/Trustedshops_Trustedshops.csv
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"trustedshops_en.jpg","trustedshops_de.jpg"
|
2 |
+
"Get your account","Erstellen Sie Ihren Account"
|
3 |
+
"http://www.trustbadge.com/en/pricing/","http://www.trustbadge.com/de/preise/"
|
4 |
+
"The Trusted Shops ID is a unique identifier for your shop. You can find your Trusted Shops ID in your confirmation email after signing up.","Die Trusted Shops ID identifiziert Ihren Shop eindeutig bei Trusted Shops. Sie wird Ihnen in der Bestätigungsmail Ihrer Anmeldung zugesendet."
|
5 |
+
"Mode","Modus"
|
6 |
+
"Expert","Experte"
|
7 |
+
"Variant","Variante"
|
8 |
+
"Display Trustbadge with review stars","Trustbadge mit Bewertungssternchen anzeigen"
|
9 |
+
"Display Trustbadge without review stars","Trustbadge ohne Bewertungssternchen anzeigen"
|
10 |
+
"Don't show Trustbadge","Trustbadge ausblenden"
|
11 |
+
"Adjust the y-axis position of your Trustbadge up to 250px vertically from the lower right corner of your shop.","Wählen Sie einen Abstand für das Trustbadge von 0-250px vom rechten unteren Rand Ihres Shops."
|
12 |
+
"Trustbadge code","Trustbadge Code"
|
13 |
+
"Collect Reviews and enable money-back guarantee on your Thank you page","Auf der Bestellbestätigungsseite Reviews sammeln und die Geld-zurück-Garantie anbieten"
|
14 |
+
"<span style=""color:orange; font-weight:bold"">Guarantee is mandatory for certified shops</span>","<span style=""color:orange; font-weight:bold"">Die Garantie ist für zertifizierte Shops verpflichtend</span>"
|
15 |
+
"Product Reviews ","Produktbewertungen"
|
16 |
+
"Please activate ""Collect Reviews and enable customer guarantee card on your Thank you page""","Bitte aktivieren Sie ""Auf der Bestellbestätigungsseite Reviews sammeln und die Garantiekarte anbieten"""
|
17 |
+
"Collect Product Reviews","Produktbewertungen sammeln"
|
18 |
+
"More Traffic, less returns:<br/>Make sure to unlock unlimited Product Reviews in your Trusted Shops plan","Mehr Traffic, weniger Retouren:<br/>Schalten Sie unbegrenzte Produktbewertungen in Ihrem Trusted Shops Paket frei"
|
19 |
+
"Product Review Sticker","Produktbewertungen im Shop"
|
20 |
+
"Show Product Reviews on Product Detail page on additional tab ""Trusted Shops Reviews""","Produktbewertungen auf der Produktseite in einem zusätzlichen Reiter ""Trusted Shops Bewertungen"" anzeigen"
|
21 |
+
"Border Colour","Rahmenfarbe"
|
22 |
+
"Star Colour","Farbe der Sterne"
|
23 |
+
"Code for Product Review Sticker","Code für Produktbewertungen"
|
24 |
+
"Product Review Stars","Produktbewertungssterne"
|
25 |
+
"Show Star ratings on Product Detail Page below your Product Name","Produktbewertungen auf der Produktdetailseite unter dem Produktnamen anzeigen"
|
26 |
+
"Star Colour","Farbe der Sterne"
|
27 |
+
"Star Size","Größe der Sterne"
|
28 |
+
"Font Size","Schriftgröße"
|
29 |
+
"Code for Product Review Stars","Code für Produktbewertungssterne"
|
30 |
+
|
31 |
+
"Use additional options to customize your Trusted Shops Integration or use the latest code version here. E.g.:","Hier können Sie Ihre Trusted Shops Integration detaillierter konfigurieren oder den neuesten Code einbinden:"
|
32 |
+
"Place your Trustbadge wherever you want","Platzieren Sie Ihr Trustbadge wo immer Sie möchten"
|
33 |
+
"Deactivate mobile use","Deaktivieren Sie die mobile Anzeige"
|
34 |
+
"Jump from your Product Reviews stars directly to your Product Reviews","Springen Sie durch einen Klick von Ihren Produktbewertungssternen direkt zu Ihren Produktbewertungen"
|
35 |
+
"Learn more about %s options and %s configuration.","Erfahren Sie mehr über Einstellungsmöglichkeiten des %s oder von %s."
|
36 |
+
"http://www.trustedshops.co.uk/support/trustbadge/trustbadge-custom/","http://www.trustedshops.de/shopbetreiber/integration/trustbadge/trustbadge-custom/"
|
37 |
+
"http://www.trustedshops.co.uk/support/product-reviews/","http://www.trustedshops.de/shopbetreiber/integration/product-reviews/"
|
38 |
+
"Trusted Shops Reviews","Trusted Shops Bewertungen"
|
app/locale/de_DE/Trustedshops_Trustedshops.csv
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"trustedshops_en.jpg","trustedshops_de.jpg"
|
2 |
+
"Get your account","Erstellen Sie Ihren Account"
|
3 |
+
"http://www.trustbadge.com/en/pricing/","http://www.trustbadge.com/de/preise/"
|
4 |
+
"The Trusted Shops ID is a unique identifier for your shop. You can find your Trusted Shops ID in your confirmation email after signing up.","Die Trusted Shops ID identifiziert Ihren Shop eindeutig bei Trusted Shops. Sie wird Ihnen in der Bestätigungsmail Ihrer Anmeldung zugesendet."
|
5 |
+
"Mode","Modus"
|
6 |
+
"Expert","Experte"
|
7 |
+
"Variant","Variante"
|
8 |
+
"Display Trustbadge with review stars","Trustbadge mit Bewertungssternchen anzeigen"
|
9 |
+
"Display Trustbadge without review stars","Trustbadge ohne Bewertungssternchen anzeigen"
|
10 |
+
"Don't show Trustbadge","Trustbadge ausblenden"
|
11 |
+
"Adjust the y-axis position of your Trustbadge up to 250px vertically from the lower right corner of your shop.","Wählen Sie einen Abstand für das Trustbadge von 0-250px vom rechten unteren Rand Ihres Shops."
|
12 |
+
"Trustbadge code","Trustbadge Code"
|
13 |
+
"Collect Reviews and enable money-back guarantee on your Thank you page","Auf der Bestellbestätigungsseite Reviews sammeln und die Geld-zurück-Garantie anbieten"
|
14 |
+
"<span style=""color:orange; font-weight:bold"">Guarantee is mandatory for certified shops</span>","<span style=""color:orange; font-weight:bold"">Die Garantie ist für zertifizierte Shops verpflichtend</span>"
|
15 |
+
"Product Reviews ","Produktbewertungen"
|
16 |
+
"Please activate ""Collect Reviews and enable customer guarantee card on your Thank you page""","Bitte aktivieren Sie ""Auf der Bestellbestätigungsseite Reviews sammeln und die Garantiekarte anbieten"""
|
17 |
+
"Collect Product Reviews","Produktbewertungen sammeln"
|
18 |
+
"More Traffic, less returns:<br/>Make sure to unlock unlimited Product Reviews in your Trusted Shops plan","Mehr Traffic, weniger Retouren:<br/>Schalten Sie unbegrenzte Produktbewertungen in Ihrem Trusted Shops Paket frei"
|
19 |
+
"Product Review Sticker","Produktbewertungen im Shop"
|
20 |
+
"Show Product Reviews on Product Detail page on additional tab ""Trusted Shops Reviews""","Produktbewertungen auf der Produktseite in einem zusätzlichen Reiter ""Trusted Shops Bewertungen"" anzeigen"
|
21 |
+
"Border Colour","Rahmenfarbe"
|
22 |
+
"Star Colour","Farbe der Sterne"
|
23 |
+
"Code for Product Review Sticker","Code für Produktbewertungen"
|
24 |
+
"Product Review Stars","Produktbewertungssterne"
|
25 |
+
"Show Star ratings on Product Detail Page below your Product Name","Produktbewertungen auf der Produktdetailseite unter dem Produktnamen anzeigen"
|
26 |
+
"Star Colour","Farbe der Sterne"
|
27 |
+
"Star Size","Größe der Sterne"
|
28 |
+
"Font Size","Schriftgröße"
|
29 |
+
"Code for Product Review Stars","Code für Produktbewertungssterne"
|
30 |
+
|
31 |
+
"Use additional options to customize your Trusted Shops Integration or use the latest code version here. E.g.:","Hier können Sie Ihre Trusted Shops Integration detaillierter konfigurieren oder den neuesten Code einbinden:"
|
32 |
+
"Place your Trustbadge wherever you want","Platzieren Sie Ihr Trustbadge wo immer Sie möchten"
|
33 |
+
"Deactivate mobile use","Deaktivieren Sie die mobile Anzeige"
|
34 |
+
"Jump from your Product Reviews stars directly to your Product Reviews","Springen Sie durch einen Klick von Ihren Produktbewertungssternen direkt zu Ihren Produktbewertungen"
|
35 |
+
"Learn more about %s options and %s configuration.","Erfahren Sie mehr über Einstellungsmöglichkeiten des %s oder von %s."
|
36 |
+
"http://www.trustedshops.co.uk/support/trustbadge/trustbadge-custom/","http://www.trustedshops.de/shopbetreiber/integration/trustbadge/trustbadge-custom/"
|
37 |
+
"http://www.trustedshops.co.uk/support/product-reviews/","http://www.trustedshops.de/shopbetreiber/integration/product-reviews/"
|
38 |
+
"Trusted Shops Reviews","Trusted Shops Bewertungen"
|
app/locale/fr_CA/Trustedshops_Trustedshops.csv
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"trustedshops_en.jpg","trustedshops_fr.jpg"
|
2 |
+
"Get your account","Créez votre compte"
|
3 |
+
"http://www.trustbadge.com/en/pricing/","http://www.trustbadge.com/fr/tarifs/"
|
4 |
+
"The Trusted Shops ID is a unique identifier for your shop. You can find your Trusted Shops ID in your confirmation email after signing up.","L’ID Trusted Shops est un identifiant unique pour votre boutique. Il vous sera envoyé via l’email de confirmation après votre enregistrement."
|
5 |
+
"Variant","Variante"
|
6 |
+
"Display Trustbadge with review stars","Afficher le Trustbadge avec les étoiles d'évaluation"
|
7 |
+
"Display Trustbadge without review stars","Afficher le Trustbadge sans les étoiles d'évaluation"
|
8 |
+
"Don't show Trustbadge","Masquer le Trustbadge"
|
9 |
+
"Adjust the y-axis position of your Trustbadge up to 250px vertically from the lower right corner of your shop.","Ajustez la position verticale de votre Trustbadge jusqu'à 250px"
|
10 |
+
"Trustbadge code","Code Trustbadge"
|
11 |
+
"Collect Reviews and enable money-back guarantee on your Thank you page","Collecter des avis et activer la garantie de remboursement sur la page remerciements"
|
12 |
+
"<span style=""color:orange; font-weight:bold"">Guarantee is mandatory for certified shops</span>","<span style=""color:orange; font-weight:bold"">La garantie est obligatoire pour les boutiques certifiées</span>"
|
13 |
+
"Product Reviews ","Avis produits"
|
14 |
+
"Please activate ""Collect Reviews and enable customer guarantee card on your Thank you page""","Veuillez activer ""Collecter des avis et activer la garantie acheteur sur la page remerciements"""
|
15 |
+
"Collect Product Reviews","Collecter des avis produits"
|
16 |
+
"More Traffic, less returns:<br/>Make sure to unlock unlimited Product Reviews in your Trusted Shops plan","Plus de trafic, moins de retours:<br/>Activez les avis produits illimités dans votre formule Trusted Shops."
|
17 |
+
"Product Review Sticker","Vignette avis produits"
|
18 |
+
"Show Product Reviews on Product Detail page on additional tab ""Trusted Shops Reviews""","Afficher les avis produits dans un onglet supplémentaire ""Avis produits Trusted Shops"" sur la page produit"
|
19 |
+
"Border Colour","Couleur bordure"
|
20 |
+
"Star Colour","Couleur étoiles"
|
21 |
+
"Code for Product Review Sticker","Code pour la vignette avis produits"
|
22 |
+
"Product Review Stars","Étoiles d'évaluation"
|
23 |
+
"Show Star ratings on Product Detail Page below your Product Name","Afficher les étoiles d'évaluation en-dessous du nom de votre produit"
|
24 |
+
"Star Colour","Couleur des étoiles"
|
25 |
+
"Star Size","Taille des étoiles"
|
26 |
+
"Font Size","Taille de la police"
|
27 |
+
"Code for Product Review Stars","Code pour les étoiles d'évaluation"
|
28 |
+
|
29 |
+
"Use additional options to customize your Trusted Shops Integration or use the latest code version here. E.g.:","Utilisez les options avancées afin de personnaliser votre intégration ou"
|
30 |
+
"Place your Trustbadge wherever you want","Affichez votre Trustbadge où vous le souhaitez"
|
31 |
+
"Deactivate mobile use","Désactivez l’affichage sur mobile"
|
32 |
+
"Jump from your Product Reviews stars directly to your Product Reviews","Passez en un clic de vos étoiles avis produits au détail de vos avis produits"
|
33 |
+
"Learn more about %s options and %s configuration.","En savoir plus sur les options de paramétrage du %s ou des %s"
|
34 |
+
"http://www.trustedshops.co.uk/support/trustbadge/trustbadge-custom/","http://www.trustedshops.fr/support/trustbadge/trustbadge-custom/"
|
35 |
+
"http://www.trustedshops.co.uk/support/product-reviews/","http://www.trustedshops.fr/support/integrer-les-avis-produits/"
|
36 |
+
"Trusted Shops Reviews","Avis Trusted Shops"
|
app/locale/fr_FR/Trustedshops_Trustedshops.csv
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"trustedshops_en.jpg","trustedshops_fr.jpg"
|
2 |
+
"Get your account","Créez votre compte"
|
3 |
+
"http://www.trustbadge.com/en/pricing/","http://www.trustbadge.com/fr/tarifs/"
|
4 |
+
"The Trusted Shops ID is a unique identifier for your shop. You can find your Trusted Shops ID in your confirmation email after signing up.","L’ID Trusted Shops est un identifiant unique pour votre boutique. Il vous sera envoyé via l’email de confirmation après votre enregistrement."
|
5 |
+
"Variant","Variante"
|
6 |
+
"Display Trustbadge with review stars","Afficher le Trustbadge avec les étoiles d'évaluation"
|
7 |
+
"Display Trustbadge without review stars","Afficher le Trustbadge sans les étoiles d'évaluation"
|
8 |
+
"Don't show Trustbadge","Masquer le Trustbadge"
|
9 |
+
"Adjust the y-axis position of your Trustbadge up to 250px vertically from the lower right corner of your shop.","Ajustez la position verticale de votre Trustbadge jusqu'à 250px"
|
10 |
+
"Trustbadge code","Code Trustbadge"
|
11 |
+
"Collect Reviews and enable money-back guarantee on your Thank you page","Collecter des avis et activer la garantie de remboursement sur la page remerciements"
|
12 |
+
"<span style=""color:orange; font-weight:bold"">Guarantee is mandatory for certified shops</span>","<span style=""color:orange; font-weight:bold"">La garantie est obligatoire pour les boutiques certifiées</span>"
|
13 |
+
"Product Reviews ","Avis produits"
|
14 |
+
"Please activate ""Collect Reviews and enable customer guarantee card on your Thank you page""","Veuillez activer ""Collecter des avis et activer la garantie acheteur sur la page remerciements"""
|
15 |
+
"Collect Product Reviews","Collecter des avis produits"
|
16 |
+
"More Traffic, less returns:<br/>Make sure to unlock unlimited Product Reviews in your Trusted Shops plan","Plus de trafic, moins de retours:<br/>Activez les avis produits illimités dans votre formule Trusted Shops."
|
17 |
+
"Product Review Sticker","Vignette avis produits"
|
18 |
+
"Show Product Reviews on Product Detail page on additional tab ""Trusted Shops Reviews""","Afficher les avis produits dans un onglet supplémentaire ""Avis produits Trusted Shops"" sur la page produit"
|
19 |
+
"Border Colour","Couleur bordure"
|
20 |
+
"Star Colour","Couleur étoiles"
|
21 |
+
"Code for Product Review Sticker","Code pour la vignette avis produits"
|
22 |
+
"Product Review Stars","Étoiles d'évaluation"
|
23 |
+
"Show Star ratings on Product Detail Page below your Product Name","Afficher les étoiles d'évaluation en-dessous du nom de votre produit"
|
24 |
+
"Star Colour","Couleur des étoiles"
|
25 |
+
"Star Size","Taille des étoiles"
|
26 |
+
"Font Size","Taille de la police"
|
27 |
+
"Code for Product Review Stars","Code pour les étoiles d'évaluation"
|
28 |
+
|
29 |
+
"Use additional options to customize your Trusted Shops Integration or use the latest code version here. E.g.:","Utilisez les options avancées afin de personnaliser votre intégration ou"
|
30 |
+
"Place your Trustbadge wherever you want","Affichez votre Trustbadge où vous le souhaitez"
|
31 |
+
"Deactivate mobile use","Désactivez l’affichage sur mobile"
|
32 |
+
"Jump from your Product Reviews stars directly to your Product Reviews","Passez en un clic de vos étoiles avis produits au détail de vos avis produits"
|
33 |
+
"Learn more about %s options and %s configuration.","En savoir plus sur les options de paramétrage du %s ou des %s"
|
34 |
+
"http://www.trustedshops.co.uk/support/trustbadge/trustbadge-custom/","http://www.trustedshops.fr/support/trustbadge/trustbadge-custom/"
|
35 |
+
"http://www.trustedshops.co.uk/support/product-reviews/","http://www.trustedshops.fr/support/integrer-les-avis-produits/"
|
36 |
+
"Trusted Shops Reviews","Avis Trusted Shops"
|
package.xml
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package>
|
3 |
+
<name>Trustedshops_Trustedshops</name>
|
4 |
+
<version>1.0.0</version>
|
5 |
+
<stability>stable</stability>
|
6 |
+
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
|
7 |
+
<channel>community</channel>
|
8 |
+
<extends/>
|
9 |
+
<summary>Trustedshops Integration</summary>
|
10 |
+
<description>Trustedshops Integration</description>
|
11 |
+
<notes>Initial Release</notes>
|
12 |
+
<authors><author><name>Trusted Shops</name><user>Burck</user><email>productfeedback@trustedshops.com</email></author></authors>
|
13 |
+
<date>2016-04-18</date>
|
14 |
+
<time>13:36:40</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Trustedshops"><dir name="Trustedshops"><dir name="Block"><file name="Abstract.php" hash="2dea70550d50f85777c83728b1bddea5"/><dir name="Adminhtml"><dir name="Field"><file name="Expertnotice.php" hash="d3c2dfe2f73f5bf05fbd14c2fdf78cb5"/><file name="Integration.php" hash="254335a9e4583b5017dedd94cd1919f5"/><file name="Intro.php" hash="adfa0209519aa101d507a94b6f963819"/><file name="Notice.php" hash="586200702537efaf28592fc104a99c84"/></dir></dir><file name="Rating.php" hash="fd0da4aaab2433888f6635898e5b2f93"/><dir name="Review"><file name="Tab.php" hash="afc3eb61d16074042ff1dab0abae4954"/></dir><file name="Review.php" hash="e8cbc25fff3fd7f0562c257b14dad84a"/><file name="Trustbadge.php" hash="430bf1bbf7c5993c0c3b06ea3d7a3b17"/><file name="Trustcard.php" hash="ddd900ec769a48fb628c2cbac5e8add4"/></dir><dir name="Helper"><file name="Data.php" hash="70cca035ec45b854253cd678b65bb422"/></dir><dir name="Model"><file name="Observer.php" hash="9488fecac965e8babcb90b422b64350f"/><dir name="System"><dir name="Config"><dir name="Source"><file name="Mode.php" hash="2db89acc46905cb2b557b8e0151589d1"/><file name="Variant.php" hash="256ae7759180764b7891debdf53e49ec"/></dir></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="422b4d54a7765b44a71089b728ed5481"/><file name="config.xml" hash="083a2cd1f8ac4bf3233a22dc25cdf94d"/><file name="system.xml" hash="3c2bfe5f7b95012bc6b297fabb83f60a"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="trustedshops.xml" hash="5fb8e437eacd818f4ae69b90f752cffc"/></dir><dir name="template"><dir name="trustedshops"><file name="rating.phtml" hash="02df47873f916afcd7699cc99efd3de0"/><file name="review.phtml" hash="52cf3a7d10d235fd4389491f35cf56f6"/><file name="review_tab.phtml" hash="bfe1e9709121f861a40b9fbfdddf7fae"/><file name="trustbadge.phtml" hash="11ac32d48c4dcc236b6f6a8057c5d65e"/><file name="trustcard.phtml" hash="acee0ec8a7bedc1b724592993e9b8472"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Trustedshops_Trustedshops.xml" hash="30b3e1bafa2c765173d109e862901fef"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="images"><dir name="trustedshops"><file name="trustedshops_de.jpg" hash="05e410dc03ff247f174f6a972ada598f"/><file name="trustedshops_en.jpg" hash="196f8042dd61d812af126e11c28ad63d"/><file name="trustedshops_fr.jpg" hash="461ae3156ed09632fad459dd72d406a7"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir><dir name="de_AT"><file name="Trustedshops_Trustedshops.csv" hash="2901b203ee713b552f1f1eff786fe46f"/></dir><dir name="de_CH"><file name="Trustedshops_Trustedshops.csv" hash="2901b203ee713b552f1f1eff786fe46f"/></dir><dir name="de_DE"><file name="Trustedshops_Trustedshops.csv" hash="2901b203ee713b552f1f1eff786fe46f"/></dir><dir name="fr_CA"><file name="Trustedshops_Trustedshops.csv" hash="90655032af3cf289f78136b9643edb5f"/></dir><dir name="fr_FR"><file name="Trustedshops_Trustedshops.csv" hash="90655032af3cf289f78136b9643edb5f"/></dir></dir></target></contents>
|
16 |
+
<compatible/>
|
17 |
+
<dependencies><required><php><min>5.3.0</min><max>7.0.5</max></php></required></dependencies>
|
18 |
+
</package>
|
skin/adminhtml/default/default/images/trustedshops/trustedshops_de.jpg
ADDED
Binary file
|
skin/adminhtml/default/default/images/trustedshops/trustedshops_en.jpg
ADDED
Binary file
|
skin/adminhtml/default/default/images/trustedshops/trustedshops_fr.jpg
ADDED
Binary file
|