Bizrate_Buyerssurvey - Version 0.2.0

Version Notes

This Magento extension allows retailers to easily and seamlessly implement Bizrate.com's seller ratings solution. Bizrate's seller ratings product allows retailers to collect ratings and feedback for improvements from their customers. The solution's features include: rating & review collection, reports & analytics, and reputation building & word-of-mouth support. Bizrate syndicates these ratings to Google and Bing, which helps ensure that your seller ratings & reputation have the largest reach possible. This extension as well as Bizrate's industry-leading ratings & review service are free.

Download this release

Release Info

Developer Bizrate.com
Extension Bizrate_Buyerssurvey
Version 0.2.0
Comparing to
See all releases


Version 0.2.0

Files changed (26) hide show
  1. app/code/local/Bizrate/Buyerssurvey/Block/Buyerssurvey.php +152 -0
  2. app/code/local/Bizrate/Buyerssurvey/Block/Footer.php +64 -0
  3. app/code/local/Bizrate/Buyerssurvey/Block/Leftsidebar.php +11 -0
  4. app/code/local/Bizrate/Buyerssurvey/Block/Sidebar.php +11 -0
  5. app/code/local/Bizrate/Buyerssurvey/Block/System/Config/Source/Help.php +32 -0
  6. app/code/local/Bizrate/Buyerssurvey/Block/System/Config/Source/Signup.php +63 -0
  7. app/code/local/Bizrate/Buyerssurvey/Helper/Data.php +6 -0
  8. app/code/local/Bizrate/Buyerssurvey/Model/Observer.php +85 -0
  9. app/code/local/Bizrate/Buyerssurvey/Model/System/Config/Source/Bizratemedal.php +37 -0
  10. app/code/local/Bizrate/Buyerssurvey/Model/System/Config/Source/Position.php +33 -0
  11. app/code/local/Bizrate/Buyerssurvey/Model/System/Config/Source/Productattributes.php +46 -0
  12. app/code/local/Bizrate/Buyerssurvey/etc/adminhtml.xml +26 -0
  13. app/code/local/Bizrate/Buyerssurvey/etc/config.xml +126 -0
  14. app/code/local/Bizrate/Buyerssurvey/etc/system.xml +137 -0
  15. app/design/adminhtml/default/default/template/buyerssurvey/system/config/signup.phtml +4 -0
  16. app/design/frontend/default/default/layout/buyerssurvey.xml +22 -0
  17. app/design/frontend/default/default/template/buyerssurvey/buyerssurvey.phtml +10 -0
  18. app/design/frontend/default/default/template/buyerssurvey/footer.phtml +1 -0
  19. app/design/frontend/default/default/template/buyerssurvey/sidebar.phtml +1 -0
  20. app/design/frontend/enterprise/default/layout/buyerssurvey.xml +22 -0
  21. app/design/frontend/enterprise/default/template/buyerssurvey/buyerssurvey.phtml +10 -0
  22. app/design/frontend/enterprise/default/template/buyerssurvey/footer.phtml +1 -0
  23. app/design/frontend/enterprise/default/template/buyerssurvey/sidebar.phtml +1 -0
  24. app/etc/modules/Bizrate_Buyerssurvey.xml +17 -0
  25. app/locale/en_US/Bizrate_Buyerssurvey.csv +43 -0
  26. package.xml +20 -0
app/code/local/Bizrate/Buyerssurvey/Block/Buyerssurvey.php ADDED
@@ -0,0 +1,152 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Bizrate_Buyerssurvey_Block_Buyerssurvey extends Mage_Core_Block_Template
3
+ {
4
+ public function _prepareLayout()
5
+ {
6
+ return parent::_prepareLayout();
7
+ }
8
+
9
+ // public function getBuyerssurvey()
10
+ // {
11
+ // if (!$this->hasData('buyerssurvey')) {
12
+ // $this->setData('buyerssurvey', Mage::registry('buyerssurvey'));
13
+ // }
14
+ // return $this->getData('buyerssurvey');
15
+ //
16
+ // }
17
+
18
+ public function getOrder()
19
+ {
20
+ if(!$this->_order)
21
+ {
22
+ $orderId = $this->getOrderId();
23
+ if($orderId)
24
+ {
25
+ $this->_order = Mage::getModel('sales/order')->load($orderId);
26
+ }
27
+ }
28
+ return $this->_order;
29
+ }
30
+
31
+ public function getOrderId()
32
+ {
33
+ $orderIds = $this->getOrderIds();
34
+ if(is_array($orderIds) && count($orderIds))
35
+ {
36
+ return $orderIds[0];
37
+ }
38
+ return false;
39
+ }
40
+
41
+ public function getOrderTotal()
42
+ {
43
+ $order = $this->getOrder();
44
+
45
+ if (!is_object($order) || !$order->getId())
46
+ {
47
+ return '0.00';
48
+ }
49
+
50
+ return number_format($order->getBaseSubtotal(),2);
51
+ }
52
+
53
+ public function getBillingPostal()
54
+ {
55
+ $order = $this->getOrder();
56
+
57
+ if (!is_object($order) || !$order->getId())
58
+ {
59
+ return;
60
+ }
61
+
62
+ if ($order->getIsVirtual()) {
63
+ $address = $order->getBillingAddress();
64
+ } else {
65
+ $address = $order->getShippingAddress();
66
+ }
67
+ return $address->getPostcode();
68
+ }
69
+
70
+ public function getGtinField()
71
+ {
72
+ return Mage::getStoreConfig('buyerssurvey/buyerssurvey/product_gtin_field');
73
+ }
74
+
75
+ public function getMid()
76
+ {
77
+ return Mage::getStoreConfig('buyerssurvey/buyerssurvey/mid');
78
+ }
79
+
80
+ public function _outPutCleanedText($x)
81
+ {
82
+ $x = str_replace("'","",$x);
83
+ $x = str_replace("^","",$x);
84
+ return $x;
85
+ }
86
+
87
+ public function getProductsPurchased()
88
+ {
89
+ $order = $this->getOrder();
90
+
91
+ $blank_row = "URL=^SKU=^GTIN=^PRICE=";
92
+ if (!is_object($order) || !$order->getId())
93
+ {
94
+ return $blank_row;
95
+ }
96
+ //'URL=^SKU=^GTIN=^PRICE=|URL=^SKU=^GTIN=^PRICE=|URL=^SKU=^GTIN=^PRICE=|URL=^SKU=^GTIN=^PRICE=|URL=^SKU=^GTIN=^PRICE='
97
+ $product_data = '';
98
+ $count = 0;
99
+ $max = 4;
100
+ // we can only have 5
101
+ foreach ($order->getAllVisibleItems() as $item)
102
+ {
103
+ if($count > $max)
104
+ {
105
+ break;
106
+ }
107
+
108
+ $product = Mage::getModel('catalog/product')->loadByAttribute('sku', $item->getSku());
109
+ $gtin = $this->_outPutCleanedText($product->getData($this->getGtinField()));
110
+ $price = number_format($item->getBasePrice(),2);
111
+ $sku = $this->_outPutCleanedText($item->getSku());
112
+
113
+ if(!$gtin)
114
+ {
115
+ $gtin = $sku;
116
+ }
117
+ $gtin = '';
118
+
119
+ if($product_data != '')
120
+ {
121
+ $product_data .= "|";
122
+ }
123
+
124
+ $product_data .= "URL={$product->getProductUrl()}^SKU={$sku}^GTIN={$gtin}^PRICE={$price}";
125
+ $count++;
126
+ }
127
+
128
+ if($product_data == '')
129
+ {
130
+ $product_data = $blank_row;
131
+ }
132
+
133
+ return $product_data;
134
+ }
135
+
136
+ protected function _toHtml()
137
+ {
138
+
139
+ if(!strstr(mage::helper('core/url')->getCurrentUrl(), 'checkout/onepage/success'))
140
+ {
141
+ return '';
142
+ }
143
+
144
+ if (!Mage::getStoreConfig('buyerssurvey/buyerssurvey/enabled') || !Mage::getStoreConfig('buyerssurvey/buyerssurvey/mid'))
145
+ {
146
+ return '';
147
+ }
148
+
149
+ return parent::_toHtml();
150
+ }
151
+
152
+ }
app/code/local/Bizrate/Buyerssurvey/Block/Footer.php ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Bizrate_Buyerssurvey_Block_Footer extends Mage_Core_Block_Template
3
+ {
4
+ protected $_code = 'footer';
5
+
6
+ public function _prepareLayout()
7
+ {
8
+ return parent::_prepareLayout();
9
+ }
10
+
11
+ public function getMid()
12
+ {
13
+ return Mage::getStoreConfig('buyerssurvey/buyerssurvey/mid');
14
+ }
15
+
16
+ public function dontUseMedal()
17
+ {
18
+ return $this->useMedal() == "0";
19
+ }
20
+
21
+ public function hasMid()
22
+ {
23
+ return $this->getMid() != '';
24
+ }
25
+
26
+ public function isBlockActive()
27
+ {
28
+ return Mage::getStoreConfig('buyerssurvey/buyerssurvey/medal_position') == $this->_code;
29
+ }
30
+
31
+ public function useMedal()
32
+ {
33
+ return (string)Mage::getStoreConfig('buyerssurvey/buyerssurvey/enable_medal');
34
+ }
35
+
36
+ public function getMedalCode()
37
+ {
38
+ $mid = $this->getMid();
39
+
40
+ $code = Mage::getStoreConfig('buyerssurvey/buyerssurvey/large_medal_html');
41
+
42
+ if($this->useMedal() == 'small')
43
+ {
44
+ $code = Mage::getStoreConfig('buyerssurvey/buyerssurvey/small_medal_html');
45
+ }
46
+
47
+ $code = str_replace('__MID__',$this->getMid(),$code);
48
+ $code = str_replace('__STORENAME__',Mage::getStoreConfig('general/store_information/name'),$code);
49
+
50
+ return $code;
51
+ }
52
+
53
+ protected function _toHtml()
54
+ {
55
+
56
+ if (!$this->isBlockActive() || !$this->hasMid() || $this->dontUseMedal())
57
+ {
58
+ return '';
59
+ }
60
+
61
+ return parent::_toHtml();
62
+ }
63
+
64
+ }
app/code/local/Bizrate/Buyerssurvey/Block/Leftsidebar.php ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Bizrate_Buyerssurvey_Block_Leftsidebar extends Bizrate_Buyerssurvey_Block_Footer
3
+ {
4
+ protected $_code = 'left';
5
+
6
+ public function _prepareLayout()
7
+ {
8
+ return parent::_prepareLayout();
9
+ }
10
+
11
+ }
app/code/local/Bizrate/Buyerssurvey/Block/Sidebar.php ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Bizrate_Buyerssurvey_Block_Sidebar extends Bizrate_Buyerssurvey_Block_Footer
3
+ {
4
+ protected $_code = 'right';
5
+
6
+ public function _prepareLayout()
7
+ {
8
+ return parent::_prepareLayout();
9
+ }
10
+
11
+ }
app/code/local/Bizrate/Buyerssurvey/Block/System/Config/Source/Help.php ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Bizrate_Buyerssurvey_Block_System_Config_Source_Help
4
+ extends Mage_Adminhtml_Block_Abstract implements Varien_Data_Form_Element_Renderer_Interface
5
+ {
6
+
7
+
8
+ public function render(Varien_Data_Form_Element_Abstract $element)
9
+ {
10
+ mage::log(__METHOD__);
11
+ $useContainerId = $element->getData('use_container_id');
12
+ $mid = Mage::getStoreConfig('buyerssurvey/buyerssurvey/mid');
13
+
14
+ $label = ' <a href="mailto:bizrateinsights@bizrate.com?subject=Bizrate Buyers Survey assistance – Magento Enterprise__MID__">bizrateinsights@bizrate.com</a>.';
15
+
16
+ $replace = '';
17
+ if($mid)
18
+ {
19
+ $replace = ' MID - '.$mid;
20
+ }
21
+
22
+ $label = str_replace('__MID__',$replace,$label);
23
+
24
+ $label = $element->getLabel() . $label;
25
+
26
+ return sprintf('<tr class="system-fieldset-sub-head" id="row_%s"><td colspan="5"><h4 id="%s">%s</h4></td></tr>',
27
+ $element->getHtmlId(), $element->getHtmlId(), $label
28
+ );
29
+ }
30
+
31
+
32
+ }
app/code/local/Bizrate/Buyerssurvey/Block/System/Config/Source/Signup.php ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Bizrate_Buyerssurvey_Block_System_Config_Source_Signup
4
+ extends Mage_Adminhtml_Block_System_Config_Form_Field
5
+ {
6
+
7
+ /**
8
+ * Set template to itself
9
+ */
10
+ protected function _prepareLayout()
11
+ {
12
+
13
+ parent::_prepareLayout();
14
+
15
+ if (!$this->getTemplate()) {
16
+
17
+ $this->setTemplate('buyerssurvey/system/config/signup.phtml');
18
+
19
+ }
20
+
21
+ return $this;
22
+
23
+ }
24
+
25
+
26
+ /**
27
+ * Unset some non-related element parameters
28
+ *
29
+ * @param Varien_Data_Form_Element_Abstract $element
30
+ * @return string
31
+ */
32
+ public function render(Varien_Data_Form_Element_Abstract $element)
33
+ {
34
+
35
+ $element->unsScope()->unsCanUseWebsiteValue()->unsCanUseDefaultValue();
36
+
37
+ return parent::render($element);
38
+
39
+ }
40
+
41
+
42
+ /**
43
+ * Get the button and scripts contents
44
+ *
45
+ * @param Varien_Data_Form_Element_Abstract $element
46
+ * @return string
47
+ */
48
+ protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
49
+ {
50
+
51
+ $originalData = $element->getOriginalData();
52
+
53
+ $this->addData(array(
54
+ 'button_label' => Mage::helper('buyerssurvey')->__($originalData['button_label']),
55
+ 'html_id' => $element->getHtmlId(),
56
+ // 'endpoint' => $this->getUrl('adminhtml/signup/update')
57
+ ));
58
+
59
+ return $this->_toHtml();
60
+
61
+ }
62
+
63
+ }
app/code/local/Bizrate/Buyerssurvey/Helper/Data.php ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Bizrate_Buyerssurvey_Helper_Data extends Mage_Core_Helper_Abstract
4
+ {
5
+
6
+ }
app/code/local/Bizrate/Buyerssurvey/Model/Observer.php ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Bizrate_Buyerssurvey_Model_Observer extends Mage_Core_Block_Template
4
+ {
5
+
6
+ public function _order_success_page($observer)
7
+ {
8
+ $orderIds = $observer->getEvent()->getOrderIds();
9
+ if (empty($orderIds) || !is_array($orderIds)) {
10
+ return;
11
+ }
12
+ $block = Mage::app()->getFrontController()->getAction()->getLayout()->getBlock('buyerssurvey');
13
+ if ($block) {
14
+ $block->setOrderIds($orderIds);
15
+ }
16
+ }
17
+
18
+ public function updateConfig($observer)
19
+ {
20
+ $parts = $observer->getEvent();
21
+
22
+ if (!Mage::getStoreConfig('buyerssurvey/buyerssurvey/enabled') || !Mage::getStoreConfig('buyerssurvey/buyerssurvey/mid'))
23
+ {
24
+ return '';
25
+ }
26
+
27
+ $config = new Mage_Core_Model_Config();
28
+
29
+ $collection = Mage::getModel('core/config_data')->getCollection()->addFieldToFilter('path', 'buyerssurvey/buyerssurvey/medal_position');
30
+
31
+ $found_scopes = array();
32
+ foreach($collection as $conf_data)
33
+ {
34
+ $configs = array(
35
+ 'buyerssurvey/buyerssurvey/medal_footer' => 0,
36
+ 'buyerssurvey/buyerssurvey/medal_left' => 0,
37
+ 'buyerssurvey/buyerssurvey/medal_sidebar' => 0,
38
+ );
39
+ // foreach($configs as $k => $v)
40
+ // {
41
+
42
+ switch($conf_data->getValue())
43
+ {
44
+ case 'left':
45
+ $configs['buyerssurvey/buyerssurvey/medal_left'] = 1;
46
+ break;
47
+ case 'right':
48
+ $configs['buyerssurvey/buyerssurvey/medal_sidebar'] = 1;
49
+ break;
50
+ case 'footer':
51
+ $configs['buyerssurvey/buyerssurvey/medal_footer'] = 1;
52
+ break;
53
+ default:
54
+ $configs = array(
55
+ 'buyerssurvey/buyerssurvey/medal_footer' => 0,
56
+ 'buyerssurvey/buyerssurvey/medal_left' => 0,
57
+ 'buyerssurvey/buyerssurvey/medal_sidebar' => 0,
58
+ );
59
+ break;
60
+ }
61
+
62
+ $found_scopes[] = $conf_data->getScopeId();
63
+ foreach($configs as $k => $v)
64
+ {
65
+ $config->saveConfig($k, $v, $conf_data->getScope(), $conf_data->getScopeId());
66
+ }
67
+
68
+ // because we inject config values.
69
+ // we need to remove the scopes if they dont exist now.
70
+ $configs_to_clean = array('buyerssurvey/buyerssurvey/medal_footer', 'buyerssurvey/buyerssurvey/medal_left', 'buyerssurvey/buyerssurvey/medal_sidebar' );
71
+
72
+ $collection = Mage::getModel('core/config_data')->getCollection()
73
+ ->addFieldToFilter('path', array('in' => $configs_to_clean))
74
+ ->addFieldToFilter('scope_id', array('nin' => $found_scopes));
75
+ foreach($collection as $conf_data)
76
+ {
77
+ $conf_data->delete();
78
+ }
79
+ }
80
+
81
+ Mage::getConfig()->reinit();
82
+ Mage::app()->reinitStores();
83
+
84
+ }
85
+ }
app/code/local/Bizrate/Buyerssurvey/Model/System/Config/Source/Bizratemedal.php ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Bizrate_Buyerssurvey_Model_System_Config_Source_Bizratemedal extends Mage_Core_Block_Template
4
+ {
5
+ /**
6
+ * Options getter
7
+ *
8
+ * @return array
9
+ */
10
+ public function toOptionArray()
11
+ {
12
+ return array(
13
+ array('value' => '0', 'label'=>Mage::helper('buyerssurvey')->__('Disabled')),
14
+ array('value' => 'large', 'label'=>Mage::helper('buyerssurvey')->__('Large (125x73 pixels)')),
15
+ array('value' => 'small', 'label'=>Mage::helper('buyerssurvey')->__('Small (112x37 pixels)')),
16
+
17
+ );
18
+ }
19
+
20
+ /**
21
+ * Get options in "key-value" format
22
+ *
23
+ * @return array
24
+ */
25
+ public function toArray(array $arrAttributes = Array())
26
+ {
27
+ return array(
28
+ '0' => Mage::helper('buyerssurvey')->__('None'),
29
+ 'footer' => Mage::helper('buyerssurvey')->__('Footer'),
30
+ //'header' => Mage::helper('buyerssurvey')->__('Header'),
31
+ // 'header' => Mage::helper('buyerssurvey')->__('Header'),
32
+ 'left' => Mage::helper('buyerssurvey')->__('Left'),
33
+ 'right' => Mage::helper('buyerssurvey')->__('Right Column'),
34
+ );
35
+ }
36
+
37
+ }
app/code/local/Bizrate/Buyerssurvey/Model/System/Config/Source/Position.php ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Bizrate_Buyerssurvey_Model_System_Config_Source_Position extends Mage_Core_Block_Template
4
+ {
5
+ /**
6
+ * Options getter
7
+ *
8
+ * @return array
9
+ */
10
+ public function toOptionArray()
11
+ {
12
+ return array(
13
+ array('value' => 'footer', 'label'=>Mage::helper('buyerssurvey')->__('Footer')),
14
+ array('value' => 'left', 'label'=>Mage::helper('buyerssurvey')->__('Left Column')),
15
+ array('value' => 'right', 'label'=>Mage::helper('buyerssurvey')->__('Right Column')),
16
+ );
17
+ }
18
+
19
+ /**
20
+ * Get options in "key-value" format
21
+ *
22
+ * @return array
23
+ */
24
+ public function toArray(array $arrAttributes = Array())
25
+ {
26
+ return array(
27
+ 'footer' => Mage::helper('buyerssurvey')->__('Footer'),
28
+ 'left' => Mage::helper('buyerssurvey')->__('Left Column'),
29
+ 'right' => Mage::helper('buyerssurvey')->__('Right Column'),
30
+ );
31
+ }
32
+
33
+ }
app/code/local/Bizrate/Buyerssurvey/Model/System/Config/Source/Productattributes.php ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Bizrate_Buyerssurvey_Model_System_Config_Source_Productattributes extends Mage_Core_Block_Template
4
+ {
5
+ /**
6
+ * Options getter
7
+ *
8
+ * @return array
9
+ */
10
+ public function toOptionArray()
11
+ {
12
+ $array = array();
13
+ foreach($this->getValues() as $k => $v)
14
+ {
15
+ $array[] = array('value' => $k, 'label'=>$v);
16
+ }
17
+ return $array;
18
+ }
19
+
20
+ /**
21
+ * Get options in "key-value" format
22
+ *
23
+ * @return array
24
+ */
25
+ public function toArray(array $arrAttributes = Array())
26
+ {
27
+ return $this->getValues();
28
+ }
29
+
30
+ public function getValues()
31
+ {
32
+ $product = Mage::getModel('catalog/product');
33
+ $attr = $product->getAttributes();
34
+ $array = array();
35
+ foreach($attr as $x)
36
+ {
37
+ if($x->getFrontendLabel() == '')
38
+ {
39
+ continue;
40
+ }
41
+
42
+ $array[$x->getAttributeCode()] = $x->getFrontendLabel();
43
+ }
44
+ return $array;
45
+ }
46
+ }
app/code/local/Bizrate/Buyerssurvey/etc/adminhtml.xml ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <acl>
4
+ <resources>
5
+ <all>
6
+ <title>Allow Everything</title>
7
+ </all>
8
+ <admin>
9
+ <children>
10
+ <system>
11
+ <children>
12
+ <config>
13
+ <children>
14
+ <buyerssurvey translate="title" module="buyerssurvey">
15
+ <title>Bizrate Module</title>
16
+ <sort_order>50</sort_order>
17
+ </buyerssurvey>
18
+ </children>
19
+ </config>
20
+ </children>
21
+ </system>
22
+ </children>
23
+ </admin>
24
+ </resources>
25
+ </acl>
26
+ </config>
app/code/local/Bizrate/Buyerssurvey/etc/config.xml ADDED
@@ -0,0 +1,126 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * @category Bizrate
5
+ * @package Bizrate_Buyerssurvey
6
+ * @author Collinsharper.com
7
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
8
+ */
9
+ -->
10
+ <config>
11
+ <modules>
12
+ <Bizrate_Buyerssurvey>
13
+ <version>0.2.0</version>
14
+ </Bizrate_Buyerssurvey>
15
+ </modules>
16
+ <frontend>
17
+ <layout>
18
+ <updates>
19
+ <buyerssurvey>
20
+ <file>buyerssurvey.xml</file>
21
+ </buyerssurvey>
22
+ </updates>
23
+ </layout>
24
+ <translate>
25
+ <modules>
26
+ <Bizrate_Buyerssurvey>
27
+ <files>
28
+ <default>Bizrate_Buyerssurvey.csv</default>
29
+ </files>
30
+ </Bizrate_Buyerssurvey>
31
+ </modules>
32
+ </translate>
33
+ <events>
34
+ <checkout_onepage_controller_success_action>
35
+ <observers>
36
+ <bizrate_order_success>
37
+ <class>buyerssurvey/observer</class>
38
+ <method>_order_success_page</method>
39
+ </bizrate_order_success>
40
+ </observers>
41
+ </checkout_onepage_controller_success_action>
42
+ <checkout_multishipping_controller_success_action>
43
+ <observers>
44
+ <bizrate_order_success>
45
+ <class>buyerssurvey/observer</class>
46
+ <method>_order_success_page</method>
47
+ </bizrate_order_success>
48
+ </observers>
49
+ </checkout_multishipping_controller_success_action>
50
+ </events>
51
+ </frontend>
52
+ <global>
53
+ <models>
54
+ <buyerssurvey>
55
+ <class>Bizrate_Buyerssurvey_Model</class>
56
+ </buyerssurvey>
57
+ </models>
58
+ <blocks>
59
+ <buyerssurvey>
60
+ <class>Bizrate_Buyerssurvey_Block</class>
61
+ </buyerssurvey>
62
+ </blocks>
63
+ <helpers>
64
+ <buyerssurvey>
65
+ <class>Bizrate_Buyerssurvey_Helper</class>
66
+ </buyerssurvey>
67
+ </helpers>
68
+ <events>
69
+ <admin_system_config_changed_section_buyerssurvey>
70
+ <observers>
71
+ <bizrate_config_change>
72
+ <type>singleton</type>
73
+ <class>Bizrate_Buyerssurvey_Model_Observer</class>
74
+ <method>updateConfig</method>
75
+ </bizrate_config_change>
76
+ </observers>
77
+ </admin_system_config_changed_section_buyerssurvey>
78
+ </events>
79
+ </global>
80
+ <adminhtml>
81
+ <acl>
82
+ <resources>
83
+ <all>
84
+ <title>Allow Everything</title>
85
+ </all>
86
+ <admin>
87
+ <children>
88
+ <system>
89
+ <children>
90
+ <config>
91
+ <children>
92
+ <buyerssurvey translate="title" module="buyerssurvey">
93
+ <title>Bizrate Module</title>
94
+ <sort_order>50</sort_order>
95
+ </buyerssurvey>
96
+ </children>
97
+ </config>
98
+ </children>
99
+ </system>
100
+ </children>
101
+ </admin>
102
+ </resources>
103
+ </acl>
104
+ </adminhtml>
105
+ <default>
106
+ <buyerssurvey>
107
+ <buyerssurvey>
108
+ <enabled>1</enabled>
109
+ <mid></mid>
110
+ <enable_medal>large</enable_medal>
111
+ <medal_position>footer</medal_position>
112
+ <product_gtin_field>sku</product_gtin_field>
113
+ <medal_footer>0</medal_footer>
114
+ <medal_left>0</medal_left>
115
+ <medal_sidebar>0</medal_sidebar>
116
+ <advanced_options>0</advanced_options>
117
+ <small_medal_html><![CDATA[<!-- BEGIN: Bizrate Medal (112x37 pixels) --> <script type="text/javascript">var bizrate={small:"true"};</script> <script src="//medals.bizrate.com/medals/js/__MID___medal.js" type="text/javascript"></script> <a class="br-button"> <img src="//medals.bizrate.com/medals/dynamic/small/__MID___medal.gif" width="112" height="37" border="0" usemap="#__MID___medal" alt="See __STORENAME__ Reviews at Bizrate.com"/> <map name="__MID___medal"> <area shape="poly" coords="1,0,1,36,61,36,61,20,111,20,111,0" href="//www.bizrate.com/ratings_guide/merchant_detail__mid--__MID__.html?rf=sur" title="See __STORENAME__ Reviews at Bizrate.com" target="_blank"/> <area shape="rect" coords="62,21,111,36" href="//www.bizrate.com/?rf=sur" title="Bizrate" target="_blank"/> </map> </a>
118
+ <!-- END: Bizrate Medal (112x37 pixels) -->]]></small_medal_html>
119
+ <large_medal_html><![CDATA[<!-- BEGIN: Bizrate Medal (125x73 pixels) -->
120
+ <script src="//medals.bizrate.com/medals/js/__MID___medal.js" type="text/javascript"></script>
121
+ <a class="br-button"> <img src="//medals.bizrate.com/medals/dynamic/__MID___medal.gif" width="125" height="73" border="0" usemap="#__MID___medal" alt="See __STORENAME__ Reviews at Bizrate.com"/> <map name="__MID___medal"> <area shape="poly" coords="1,0,1,72,67,72,67,49,124,49,124,0" href="//www.bizrate.com/ratings_guide/merchant_detail__mid--__MID__.html?rf=sur" title="See __STORENAME__ Reviews at Bizrate.com" target="_blank"/> <area shape="rect" coords="68,50,124,72" href="//www.bizrate.com/?rf=sur" title="Bizrate" target="_blank"/> </map> </a>
122
+ <!-- END: Bizrate Medal (125x73 pixels) -->]]></large_medal_html>
123
+ </buyerssurvey>
124
+ </buyerssurvey>
125
+ </default>
126
+ </config>
app/code/local/Bizrate/Buyerssurvey/etc/system.xml ADDED
@@ -0,0 +1,137 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <tabs>
4
+ <buyerssurvey translate="label" module="buyerssurvey">
5
+ <label>Bizrate</label>
6
+ <sort_order>300</sort_order>
7
+ </buyerssurvey>
8
+ </tabs>
9
+ <sections>
10
+ <buyerssurvey translate="label" module="buyerssurvey">
11
+ <label>Bizrate Buyers Survey</label>
12
+ <tab>buyerssurvey</tab>
13
+ <frontend_type>text</frontend_type>
14
+ <sort_order>99999</sort_order>
15
+ <show_in_default>1</show_in_default>
16
+ <show_in_website>1</show_in_website>
17
+ <show_in_store>1</show_in_store>
18
+ <groups>
19
+ <buyerssurvey>
20
+ <label>Bizrate Survey</label>
21
+ <frontend_type>text</frontend_type>
22
+ <sort_order>60</sort_order>
23
+ <show_in_default>1</show_in_default>
24
+ <show_in_website>1</show_in_website>
25
+ <show_in_store>1</show_in_store>
26
+ <fields>
27
+ <enabled translate="label comment" module="buyerssurvey">
28
+ <label>Enable Bizrate Survey</label>
29
+ <comment>Enable the Bizrate POS survey on the checkout success page.</comment>
30
+ <frontend_type>select</frontend_type>
31
+ <sort_order>20</sort_order>
32
+ <show_in_default>1</show_in_default>
33
+ <show_in_website>1</show_in_website>
34
+ <show_in_store>1</show_in_store>
35
+ <source_model>adminhtml/system_config_source_yesno</source_model>
36
+ </enabled>
37
+ <mid translate="label comment" module="buyerssurvey">
38
+ <label>Shopzilla / Bizrate Merchant ID</label>
39
+ <comment>Enter your Shopzilla / Bizrate Merchant ID.</comment>
40
+ <frontend_type>text</frontend_type>
41
+ <sort_order>21</sort_order>
42
+ <show_in_default>1</show_in_default>
43
+ <show_in_website>1</show_in_website>
44
+ <show_in_store>1</show_in_store>
45
+ </mid>
46
+ <bizrate_signup translate="button_label comment">
47
+ <label></label>
48
+ <button_label>Create a Shopzilla / Bizrate Account</button_label>
49
+ <comment>If you do not have a Shopzilla / Bizrate Merchant ID, then click to sign-up.</comment>
50
+ <frontend_model>buyerssurvey/system_config_source_signup</frontend_model>
51
+ <sort_order>23</sort_order>
52
+ <show_in_default>1</show_in_default>
53
+ <show_in_website>1</show_in_website>
54
+ <show_in_store>1</show_in_store>
55
+ <depends><mid></mid></depends>
56
+ </bizrate_signup>
57
+
58
+ <medal_position translate="label comment" module="buyerssurvey">
59
+ <label>Bizrate Medal Placement</label>
60
+ <comment>Select a placement for the Bizrate medal on your site.</comment>
61
+ <frontend_type>select</frontend_type>
62
+ <sort_order>36</sort_order>
63
+ <show_in_default>1</show_in_default>
64
+ <show_in_website>1</show_in_website>
65
+ <show_in_store>1</show_in_store>
66
+ <source_model>buyerssurvey/system_config_source_position</source_model>
67
+ </medal_position>
68
+
69
+ <enable_medal translate="label" module="buyerssurvey">
70
+ <label>Enable Bizrate Medal</label>
71
+ <frontend_type>select</frontend_type>
72
+ <sort_order>38</sort_order>
73
+ <show_in_default>1</show_in_default>
74
+ <show_in_website>1</show_in_website>
75
+ <show_in_store>1</show_in_store>
76
+ <source_model>buyerssurvey/system_config_source_bizratemedal</source_model>
77
+ </enable_medal>
78
+ <!-- <product_gtin_field translate="label comment" module="buyerssurvey">
79
+ <label>GTIN field</label>
80
+ <comment>Select the attribute that represents your EAN, UPC, or ISBN (*defaults to SKU)</comment>
81
+ <frontend_type>select</frontend_type>
82
+ <sort_order>50</sort_order>
83
+ <show_in_default>1</show_in_default>
84
+ <show_in_website>1</show_in_website>
85
+ <show_in_store>1</show_in_store>
86
+ <source_model>buyerssurvey/system_config_source_productattributes</source_model>
87
+ </product_gtin_field>
88
+
89
+ <advanced_options translate="label comment" module="buyerssurvey">
90
+ <label>Advanced options?</label>
91
+ <comment>Show advanced options?</comment>
92
+ <frontend_type>select</frontend_type>
93
+ <sort_order>55</sort_order>
94
+ <show_in_default>1</show_in_default>
95
+ <show_in_website>1</show_in_website>
96
+ <show_in_store>1</show_in_store>
97
+ <source_model>adminhtml/system_config_source_yesno</source_model>
98
+ </advanced_options>
99
+
100
+ <small_medal_html translate="label comment" module="buyerssurvey">
101
+ <label>Bizrate Small Medal</label>
102
+ <comment>HTML for the small Bizrate Medal - The values __MID__ and __STORENAME__ will be replaced with your merchant ID as well as your Store Name</comment>
103
+ <frontend_type>textarea</frontend_type>
104
+ <sort_order>70</sort_order>
105
+ <show_in_default>1</show_in_default>
106
+ <show_in_website>1</show_in_website>
107
+ <show_in_store>1</show_in_store>
108
+ <depends><advanced_options>1</advanced_options></depends>
109
+ </small_medal_html>
110
+ <large_medal_html translate="label comment" module="buyerssurvey">
111
+ <label>Bizrate Large Medal</label>
112
+ <comment>HTML for the Large Bizrate Medal - The values __MID__ and __STORENAME__ will be replaced with your merchant ID as well as your Store Name</comment>
113
+ <frontend_type>textarea</frontend_type>
114
+ <sort_order>75</sort_order>
115
+ <show_in_default>1</show_in_default>
116
+ <show_in_website>1</show_in_website>
117
+ <show_in_store>1</show_in_store>
118
+ <depends><advanced_options>1</advanced_options></depends>
119
+ </large_medal_html>
120
+ -->
121
+
122
+ <heading_help translate="label">
123
+ <label>If you have questions or need assistance, then contact us </label>
124
+
125
+ <frontend_model>buyerssurvey/system_config_source_help</frontend_model>
126
+ <sort_order>1000</sort_order>
127
+ <show_in_default>1</show_in_default>
128
+ <show_in_website>1</show_in_website>
129
+ </heading_help>
130
+
131
+
132
+ </fields>
133
+ </buyerssurvey>
134
+ </groups>
135
+ </buyerssurvey>
136
+ </sections>
137
+ </config>
app/design/adminhtml/default/default/template/buyerssurvey/system/config/signup.phtml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+
2
+ <button onClick="window.open('http://merchant.shopzilla.com/oa/registration/index.xpml','Bizrate Signup')" class="scalable" type="button" id="<?php echo $this->getHtmlId() ?>">
3
+ <span><span><span id="bizrate_signup"><?php echo $this->escapeHtml($this->getButtonLabel()) ?></span></span></span>
4
+ </button>
app/design/frontend/default/default/layout/buyerssurvey.xml ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <layout version="0.1.0">
3
+ <default>
4
+
5
+ <reference name="after_body_start">
6
+ <block type="buyerssurvey/buyerssurvey" name="buyerssurvey" template="buyerssurvey/buyerssurvey.phtml" />
7
+ </reference>
8
+
9
+ <reference name="footer">
10
+ <block type="buyerssurvey/footer" after="-" name="bizrate.footer" ifconfig="buyerssurvey/buyerssurvey/medal_footer" template="buyerssurvey/footer.phtml"/>
11
+ </reference>
12
+
13
+ <reference name="right">
14
+ <block type="buyerssurvey/sidebar" after="-" name="bizrate.sidebar" ifconfig="buyerssurvey/buyerssurvey/medal_sidebar" template="buyerssurvey/sidebar.phtml"/>
15
+ </reference>
16
+
17
+ <reference name="left">
18
+ <block type="buyerssurvey/leftsidebar" after="-" name="bizrate.sidebarleft" ifconfig="buyerssurvey/buyerssurvey/medal_sidebar" template="buyerssurvey/sidebar.phtml"/>
19
+ </reference>
20
+
21
+ </default>
22
+ </layout>
app/design/frontend/default/default/template/buyerssurvey/buyerssurvey.phtml ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <!-- Start Bizrate POS Code -->
2
+ <script language="JavaScript">
3
+ var orderId='<?php echo $this->getOrder()->getIncrementId(); ?>';
4
+ var cartTotal='<?php echo $this->getOrderTotal(); ?>';
5
+ var billingZipCode='<?php echo $this->getBillingPostal(); ?>';
6
+ var productsPurchased= '<?php echo $this->getProductsPurchased(); ?>';
7
+ </script>
8
+ <script type="text/javascript" src="//eval.bizrate.com/js/pos_<?php echo $this->getMid(); ?>.js">
9
+ </script>
10
+ <!-- End Bizrate POS Code -->
app/design/frontend/default/default/template/buyerssurvey/footer.phtml ADDED
@@ -0,0 +1 @@
 
1
+ <?php echo $this->getMedalCode(); ?>
app/design/frontend/default/default/template/buyerssurvey/sidebar.phtml ADDED
@@ -0,0 +1 @@
 
1
+ <div id="bizrate_medal_<?php echo rand(); ?>" style="text-align: center; display: block; margin: 10px 0;" > <?php echo $this->getMedalCode(); ?></div>
app/design/frontend/enterprise/default/layout/buyerssurvey.xml ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <layout version="0.1.0">
3
+ <default>
4
+
5
+ <reference name="after_body_start">
6
+ <block type="buyerssurvey/buyerssurvey" name="buyerssurvey" template="buyerssurvey/buyerssurvey.phtml" />
7
+ </reference>
8
+
9
+ <reference name="footer">
10
+ <block type="buyerssurvey/footer" after="-" name="bizrate.footer" ifconfig="buyerssurvey/buyerssurvey/medal_footer" template="buyerssurvey/footer.phtml"/>
11
+ </reference>
12
+
13
+ <reference name="right">
14
+ <block type="buyerssurvey/sidebar" after="-" name="bizrate.sidebar" ifconfig="buyerssurvey/buyerssurvey/medal_sidebar" template="buyerssurvey/sidebar.phtml"/>
15
+ </reference>
16
+
17
+ <reference name="left">
18
+ <block type="buyerssurvey/leftsidebar" after="-" name="bizrate.sidebarleft" ifconfig="buyerssurvey/buyerssurvey/medal_sidebar" template="buyerssurvey/sidebar.phtml"/>
19
+ </reference>
20
+
21
+ </default>
22
+ </layout>
app/design/frontend/enterprise/default/template/buyerssurvey/buyerssurvey.phtml ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <!-- Start Bizrate POS Code -->
2
+ <script language="JavaScript">
3
+ var orderId='<?php echo $this->getOrder()->getIncrementId(); ?>';
4
+ var cartTotal='<?php echo $this->getOrderTotal(); ?>';
5
+ var billingZipCode='<?php echo $this->getBillingPostal(); ?>';
6
+ var productsPurchased= '<?php echo $this->getProductsPurchased(); ?>';
7
+ </script>
8
+ <script type="text/javascript" src="//eval.bizrate.com/js/pos_<?php echo $this->getMid(); ?>.js">
9
+ </script>
10
+ <!-- End Bizrate POS Code -->
app/design/frontend/enterprise/default/template/buyerssurvey/footer.phtml ADDED
@@ -0,0 +1 @@
 
1
+ <?php echo $this->getMedalCode(); ?>
app/design/frontend/enterprise/default/template/buyerssurvey/sidebar.phtml ADDED
@@ -0,0 +1 @@
 
1
+ <div id="bizrate_medal_<?php echo rand(); ?>" style="text-align: center; display: block; margin: 10px 0;" > <?php echo $this->getMedalCode(); ?></div>
app/etc/modules/Bizrate_Buyerssurvey.xml ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * @category Bizrate
5
+ * @package Bizrate_Buyerssurvey
6
+ * @author ModuleCreator
7
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
8
+ */
9
+ -->
10
+ <config>
11
+ <modules>
12
+ <Bizrate_Buyerssurvey>
13
+ <active>true</active>
14
+ <codePool>local</codePool>
15
+ </Bizrate_Buyerssurvey>
16
+ </modules>
17
+ </config>
app/locale/en_US/Bizrate_Buyerssurvey.csv ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "Bizrate","Bizrate"
2
+ "Bizrate Buyers Survey","Bizrate Buyers Survey"
3
+ "Bizrate Survey","Bizrate Survey"
4
+ "Enable Survey","Enable Survey"
5
+ "Enable the Bizrate Survey for the checkout success page?","Enable the Bizrate Survey for the checkout success page?"
6
+ "Enable Bizrate Medal","Enable Bizrate Medal"
7
+ "Enable the Bizrate Medal for the site?","Enable the Bizrate Medal for the site?"
8
+ "Medal Placement","Medal Placement"
9
+ "Select an area to auto place the medal on your site?","Select an area to auto place the medal on your site?"
10
+ "Bizrate Module","Bizrate Module"
11
+ "GTIN field","GTIN field"
12
+ "Select the attribute that represents your EAN, UPC, or ISBN (*defaults to sku)","Select the attribute that represents your EAN, UPC, or ISBN (*defaults to sku)"
13
+ "Bizrate Merchant ID","Bizrate Merchant ID"
14
+ "Your Bizrate Merchant ID","Your Bizrate Merchant ID"
15
+ "Enable the Bizrate Medal in the right column?","Enable the Bizrate Medal in the right column?"
16
+ "Bizrate Medal Right","Bizrate Medal Right"
17
+ "Bizrate Medal Footer","Bizrate Medal Footer"
18
+ "Enable the Bizrate Medal in the Footer?","Enable the Bizrate Medal in the Footer?"
19
+ "Advanced options?","Advanced options?"
20
+ "Show advanced options?","Show advanced options?"
21
+ "HTML for the Large Bizrate Medal - do not change the __MID__ as it will be replaced with your Merchant ID","HTML for the Large Bizrate Medal - do not change the __MID__ as it will be replaced with your Merchant ID"
22
+ "Bizrate Large Medal","Bizrate Large Medal"
23
+ "HTML for the small Bizrate Medal - do not change the __MID__ as it will be replaced with your Merchant ID","HTML for the small Bizrate Medal - do not change the __MID__ as it will be replaced with your Merchant ID"
24
+ "Bizrate Small Medal","Bizrate Small Medal"
25
+ "Create a Shopzilla/Bizrate Account",Create a Shopzilla/Bizrate Account"
26
+ "Enable the Bizrate POS survey on the checkout success page.",Enable the Bizrate POS survey on the checkout success page."
27
+ "Enter your Shopzilla / Bizrate Merchant ID.",Enter your Shopzilla / Bizrate Merchant ID."
28
+ "If you do not have a Shopzilla or Bizrate Merchant ID, then click to sign-up.",If you do not have a Shopzilla or Bizrate Merchant ID, then click to sign-up."
29
+ "Select a placement for the Bizrate medal on your site.",Select a placement for the Bizrate medal on your site."
30
+ "Select the attribute that represents your EAN, UPC, or ISBN (*defaults to SKU)",Select the attribute that represents your EAN, UPC, or ISBN (*defaults to SKU)"
31
+ "Show advanced options?",Show advanced options?"
32
+ "Advanced options?",Advanced options?"
33
+ "Bizrate Buyers Survey",Bizrate Buyers Survey"
34
+ "Bizrate",Bizrate"
35
+ "Bizrate Large Medal",Bizrate Large Medal"
36
+ "Bizrate Medal Placement",Bizrate Medal Placement"
37
+ "Shopzilla / Bizrate Merchant ID",Bizrate Merchant ID"
38
+ "Bizrate Small Medal",Bizrate Small Medal"
39
+ "Bizrate Survey",Bizrate Survey"
40
+ "Enable Bizrate Medal",Enable Bizrate Medal"
41
+ "Enable Bizrate Survey",Enable Bizrate Survey"
42
+ "GTIN field",GTIN field"
43
+ "If you have questions or need assistance, then contact us ",If you have questions or need assistance, then contact us "
package.xml ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>Bizrate_Buyerssurvey</name>
4
+ <version>0.2.0</version>
5
+ <stability>stable</stability>
6
+ <license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>Bizrate Buyers Survey &amp; Medal Code.</summary>
10
+ <description>This module will add the Bizrate callback and Survey code to the success page on your Magento store. It also allows you to add the Bizrate Medal code to the Footer, Left sidebar or Right sidebar.&#xD;
11
+ It has the option of allowing you to choose the small or regular sized Bizrate Medal.&#xD;
12
+ There are also advanced options for selecting the Product attribute that represents the GTIN field for your products as well as direct editing of the HTML for the Bizrate Medal code. </description>
13
+ <notes>This Magento extension allows retailers to easily and seamlessly implement Bizrate.com's seller ratings solution. Bizrate's seller ratings product allows retailers to collect ratings and feedback for improvements from their customers. The solution's features include: rating &amp; review collection, reports &amp; analytics, and reputation building &amp; word-of-mouth support. Bizrate syndicates these ratings to Google and Bing, which helps ensure that your seller ratings &amp; reputation have the largest reach possible. This extension as well as Bizrate's industry-leading ratings &amp; review service are free.</notes>
14
+ <authors><author><name>Bizrate.com</name><user>bizrateInsights</user><email>bizrateinsights@bizrate.com</email></author></authors>
15
+ <date>2012-12-15</date>
16
+ <time>00:49:59</time>
17
+ <contents><target name="magelocal"><dir name="Bizrate"><dir name="Buyerssurvey"><dir name="Block"><file name="Buyerssurvey.php" hash="2ba5394620d3c61efda8008e945e5901"/><file name="Footer.php" hash="490e9e31e3f1f0d76b56abef732b9232"/><file name="Leftsidebar.php" hash="ab81db5b37e98c445a78151ef00c33fb"/><file name="Sidebar.php" hash="559f13f428bc14091cafc8217c6255f9"/><dir name="System"><dir name="Config"><dir name="Source"><file name="Help.php" hash="ef3f16f60074775589a9d2969fd1ce95"/><file name="Signup.php" hash="ac15bdab38fdd38249a5c5f3a4ffb0b2"/></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="f11cacf5b01aafef50d18ed34aba5d19"/></dir><dir name="Model"><file name="Observer.php" hash="00ac37f6752ed083ba2f971094dd173c"/><dir name="System"><dir name="Config"><dir name="Source"><file name="Bizratemedal.php" hash="e712af4b7df2785321ef909c9def1eda"/><file name="Position.php" hash="0cbf6a52c9303e726a45915add5e2201"/><file name="Productattributes.php" hash="bd71aa777801e39347b918d00aa22e8c"/></dir></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="8852e71a5b8922c2119e45d6832adb8c"/><file name="config.xml" hash="c72c54ce54f7126a54e3a26738b1b5f3"/><file name="system.xml" hash="b14af825fe0c1975ac3de5f158bbfd80"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Bizrate_Buyerssurvey.xml" hash="394493ed9c271e4a6a46b2c0fb745740"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="buyerssurvey"><file name="buyerssurvey.phtml" hash="9cb4f28258d0d3c764f135aba79487ba"/><file name="footer.phtml" hash="b1c3c335f6981aec2a62bc6f65c808c5"/><file name="sidebar.phtml" hash="bdfc057d029c47f0b85a7382d17df41f"/></dir></dir><dir name="layout"><file name="buyerssurvey.xml" hash="c872e4b27f12b37c9db800a33422765d"/></dir></dir></dir><dir name="enterprise"><dir name="default"><dir name="layout"><file name="buyerssurvey.xml" hash="c872e4b27f12b37c9db800a33422765d"/></dir><dir name="template"><dir name="buyerssurvey"><file name="buyerssurvey.phtml" hash="9cb4f28258d0d3c764f135aba79487ba"/><file name="footer.phtml" hash="b1c3c335f6981aec2a62bc6f65c808c5"/><file name="sidebar.phtml" hash="bdfc057d029c47f0b85a7382d17df41f"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="buyerssurvey"><dir name="system"><dir name="config"><file name="signup.phtml" hash="0505828d6ddf724d2b3fe449b9c938c4"/></dir></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="Bizrate_Buyerssurvey.csv" hash="39e3931f6a641e580e264f313b619e94"/></dir></target></contents>
18
+ <compatible/>
19
+ <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
20
+ </package>