Version Notes
First stable release
Download this release
Release Info
Developer | Magento Core Team |
Extension | Magmodules_Webwinkelconnect |
Version | 1.0.6 |
Comparing to | |
See all releases |
Code changes from version 1.0.5 to 1.0.6
- app/code/local/Magmodules/Webwinkelconnect/Block/Sidebar.php +0 -4
- app/code/local/Magmodules/Webwinkelconnect/Model/Api.php +18 -14
- app/code/local/Magmodules/Webwinkelconnect/etc/config.xml +1 -1
- app/design/frontend/base/default/template/magmodules/webwinkelconnect/index.phtml +1 -1
- app/locale/nl_NL/Magmodules_Webwinkelconnect.csv +1 -1
- package.xml +4 -4
app/code/local/Magmodules/Webwinkelconnect/Block/Sidebar.php
CHANGED
@@ -21,10 +21,6 @@
|
|
21 |
|
22 |
class Magmodules_Webwinkelconnect_Block_Sidebar extends Mage_Core_Block_Template {
|
23 |
|
24 |
-
protected function _construct() {
|
25 |
-
parent::_construct();
|
26 |
-
}
|
27 |
-
|
28 |
function getSidebarCollection($sidebar) {
|
29 |
|
30 |
$enabled = '';
|
21 |
|
22 |
class Magmodules_Webwinkelconnect_Block_Sidebar extends Mage_Core_Block_Template {
|
23 |
|
|
|
|
|
|
|
|
|
24 |
function getSidebarCollection($sidebar) {
|
25 |
|
26 |
$enabled = '';
|
app/code/local/Magmodules/Webwinkelconnect/Model/Api.php
CHANGED
@@ -43,7 +43,6 @@ class Magmodules_Webwinkelconnect_Model_Api extends Mage_Core_Model_Abstract {
|
|
43 |
|
44 |
if($api_id && $api_key) {
|
45 |
$xml = simplexml_load_file($api_url);
|
46 |
-
|
47 |
if($xml) {
|
48 |
return $xml;
|
49 |
} else {
|
@@ -64,21 +63,26 @@ class Magmodules_Webwinkelconnect_Model_Api extends Mage_Core_Model_Abstract {
|
|
64 |
$api_key = trim(Mage::getStoreConfig('webwinkelconnect/general/api_key', $order->getStoreId()));
|
65 |
$delay = trim(Mage::getStoreConfig('webwinkelconnect/invitation/delay', $order->getStoreId()));
|
66 |
$email = $order->getCustomerEmail();
|
67 |
-
$api_url = 'https://www.webwinkelkeur.nl/api.php?id=' . $api_id . '&password=' . $api_key . '&email=' . $email . '&order=' . $order_id . '&delay=' . $delay;
|
68 |
-
|
69 |
-
// Connect to API
|
70 |
-
$winkelconnect = curl_init($api_url);
|
71 |
-
curl_setopt($winkelconnect, CURLOPT_VERBOSE, 1);
|
72 |
-
curl_setopt($winkelconnect, CURLOPT_FAILONERROR, false);
|
73 |
-
curl_setopt($winkelconnect, CURLOPT_HEADER, 0);
|
74 |
-
curl_setopt($winkelconnect, CURLOPT_FOLLOWLOCATION, 1);
|
75 |
-
curl_setopt($winkelconnect, CURLOPT_RETURNTRANSFER, 1);
|
76 |
-
curl_setopt($winkelconnect, CURLOPT_SSL_VERIFYPEER, false);
|
77 |
-
$repsonse = curl_exec($winkelconnect);
|
78 |
-
curl_close($winkelconnect);
|
79 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
// Write to log
|
81 |
-
$writelog = Mage::getModel('webwinkelconnect/log')->addToLog('invitation', $order->getStoreId(), '', $
|
82 |
return true;
|
83 |
}
|
84 |
|
43 |
|
44 |
if($api_id && $api_key) {
|
45 |
$xml = simplexml_load_file($api_url);
|
|
|
46 |
if($xml) {
|
47 |
return $xml;
|
48 |
} else {
|
63 |
$api_key = trim(Mage::getStoreConfig('webwinkelconnect/general/api_key', $order->getStoreId()));
|
64 |
$delay = trim(Mage::getStoreConfig('webwinkelconnect/invitation/delay', $order->getStoreId()));
|
65 |
$email = $order->getCustomerEmail();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
66 |
|
67 |
+
$http = new Varien_Http_Adapter_Curl();
|
68 |
+
$http->setConfig(array('timeout' => 30, 'maxredirects' => 0));
|
69 |
+
|
70 |
+
$url = 'https://www.webwinkelkeur.nl/api.php?id=' . $api_id . '&password=' . $api_key . '&email=' . $email . '&order=' . $order_id . '&delay=' . $delay;
|
71 |
+
$http->write(Zend_Http_Client::POST, $url, '1.1', array());
|
72 |
+
$result = $http->read();
|
73 |
+
|
74 |
+
if($result) {
|
75 |
+
$lines = explode("text/html", $result);
|
76 |
+
if(isset($lines[1])) {
|
77 |
+
$response_html = $lines[1];
|
78 |
+
}
|
79 |
+
}
|
80 |
+
if(!isset($response_html)) {
|
81 |
+
$response_html = 'No response from https://www.webwinkelkeur.nl';
|
82 |
+
}
|
83 |
+
|
84 |
// Write to log
|
85 |
+
$writelog = Mage::getModel('webwinkelconnect/log')->addToLog('invitation', $order->getStoreId(), '', $response_html, (microtime(true) - $start_time), $crontype, $url, $order->getId());
|
86 |
return true;
|
87 |
}
|
88 |
|
app/code/local/Magmodules/Webwinkelconnect/etc/config.xml
CHANGED
@@ -24,7 +24,7 @@
|
|
24 |
<config>
|
25 |
<modules>
|
26 |
<Magmodules_Webwinkelconnect>
|
27 |
-
<version>1.0.
|
28 |
</Magmodules_Webwinkelconnect>
|
29 |
</modules>
|
30 |
<global>
|
24 |
<config>
|
25 |
<modules>
|
26 |
<Magmodules_Webwinkelconnect>
|
27 |
+
<version>1.0.6</version>
|
28 |
</Magmodules_Webwinkelconnect>
|
29 |
</modules>
|
30 |
<global>
|
app/design/frontend/base/default/template/magmodules/webwinkelconnect/index.phtml
CHANGED
@@ -52,7 +52,7 @@
|
|
52 |
<?php if($reviews->getSize()): ?>
|
53 |
<div class="content-webwinkelkeur">
|
54 |
<div class="about-webwinkelkeur">
|
55 |
-
Stichting WebwinkelKeur is een non-profit organisatie welke een keurmerk combineert met klantbeoordelingen. Als lid van Stichting WebwinkelKeur hebben we dan ook een juridische toets doorstaan. Tevens kunt u onafhankelijk verzamelde klantbeoordelingen bij hen plaatsen en lezen. Stichting WebwinkelKeur zorgt hierbij voor betrouwbare en echte klantbeoordelingen die niet door de webwinkel te beïnvloeden zijn. Bent u toch niet tevreden? Dan kunt u uw geschil melden bij WebwinkelKeur en proberen ze u te helpen. U kunt dan ook veilig bij ons winkelen. Lees meer over Stichting WebwinkelKeur op: <a href="https://www.
|
56 |
<br/>
|
57 |
<br/>
|
58 |
<strong><?php echo $this->__('Link');?>:</strong> <a href="<?php echo Mage::getStoreConfig('webwinkelconnect/general/url'); ?>" target="_blank"><?php echo Mage::getStoreConfig('webwinkelconnect/general/url'); ?></a>
|
52 |
<?php if($reviews->getSize()): ?>
|
53 |
<div class="content-webwinkelkeur">
|
54 |
<div class="about-webwinkelkeur">
|
55 |
+
Stichting WebwinkelKeur is een non-profit organisatie welke een keurmerk combineert met klantbeoordelingen. Als lid van Stichting WebwinkelKeur hebben we dan ook een juridische toets doorstaan. Tevens kunt u onafhankelijk verzamelde klantbeoordelingen bij hen plaatsen en lezen. Stichting WebwinkelKeur zorgt hierbij voor betrouwbare en echte klantbeoordelingen die niet door de webwinkel te beïnvloeden zijn. Bent u toch niet tevreden? Dan kunt u uw geschil melden bij WebwinkelKeur en proberen ze u te helpen. U kunt dan ook veilig bij ons winkelen. Lees meer over Stichting WebwinkelKeur op: <a href="https://www.webwinkelkeur.nl/consument/" target="_blank">https://www.webwinkelkeur.nl/consument/</a>.
|
56 |
<br/>
|
57 |
<br/>
|
58 |
<strong><?php echo $this->__('Link');?>:</strong> <a href="<?php echo Mage::getStoreConfig('webwinkelconnect/general/url'); ?>" target="_blank"><?php echo Mage::getStoreConfig('webwinkelconnect/general/url'); ?></a>
|
app/locale/nl_NL/Magmodules_Webwinkelconnect.csv
CHANGED
@@ -109,7 +109,7 @@
|
|
109 |
"Use the Magento Cronjob to use the automatically import. A cronjob is a daemon which keeps running and gets activated at a said interval (time period).","Gebruik de Magento Cronjob om beoordelingen volledig automatisch te importeren."
|
110 |
"Userfriendlyness","Gebruiksvriendelijkheid"
|
111 |
"View all reviews","Bekijk alle beoordelingen"
|
112 |
-
"We can import your customer reviews and display them in your store as new content.<br>Link: http://www.mywebshop.com/<strong>webwinkelkeur</strong><br><br>","Het is mogelijk om de beoordelingen direct te importeren in uw webwinkel als eigen content.<br/>Link: http://www.webwinkelnaam.nl/<strong>
|
113 |
"Webshop ID","Webshop ID"
|
114 |
"Webwinkel ID %s:","Webwinkel ID %s:"
|
115 |
"Webwinkel ID %s: no updates found, feed is empty or not foud!","Webwinkel ID %s: geen updates gevonden, feed is leeg of niet beschikbaar."
|
109 |
"Use the Magento Cronjob to use the automatically import. A cronjob is a daemon which keeps running and gets activated at a said interval (time period).","Gebruik de Magento Cronjob om beoordelingen volledig automatisch te importeren."
|
110 |
"Userfriendlyness","Gebruiksvriendelijkheid"
|
111 |
"View all reviews","Bekijk alle beoordelingen"
|
112 |
+
"We can import your customer reviews and display them in your store as new content.<br>Link: http://www.mywebshop.com/<strong>webwinkelkeur</strong><br><br>","Het is mogelijk om de beoordelingen direct te importeren in uw webwinkel als eigen content.<br/>Link: http://www.webwinkelnaam.nl/<strong>webwinkelkeur</strong><br/><br/>"
|
113 |
"Webshop ID","Webshop ID"
|
114 |
"Webwinkel ID %s:","Webwinkel ID %s:"
|
115 |
"Webwinkel ID %s: no updates found, feed is empty or not foud!","Webwinkel ID %s: geen updates gevonden, feed is leeg of niet beschikbaar."
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Magmodules_Webwinkelconnect</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license/>
|
7 |
<channel>community</channel>
|
@@ -10,9 +10,9 @@
|
|
10 |
<description>Connect your Magento shop to Webwinkelkeur</description>
|
11 |
<notes>First stable release</notes>
|
12 |
<authors><author><name>Magmodules</name><user>auto-converted</user><email>info@magmodules.nl</email></author></authors>
|
13 |
-
<date>
|
14 |
-
<time>
|
15 |
-
<contents><target name="magelocal"><dir name="Magmodules"><dir name="Webwinkelconnect"><dir name="Block"><dir name="Adminhtml"><dir name="Webwinkellog"><file name="Grid.php" hash="82ab3154d8f67defaee43f69b96ab3b1"/></dir><dir name="Webwinkelreviews"><dir name="Renderer"><file name="Experience.php" hash="aada48c75ea91d244b7b9c92cd00120f"/></dir><file name="Grid.php" hash="5577ba977b99624150b4939842aa301b"/></dir><dir name="Widget"><dir name="Buttons"><file name="Process.php" hash="4787bbaffd410554364ff4a5e1e63ac9"/><file name="Test.php" hash="b2b5c607bfac5cabd2a588ed38322749"/></dir><dir name="Form"><file name="Heading.php" hash="02e3828635cace2d0b9e027b83cd06ed"/></dir><dir name="Grid"><file name="Log.php" hash="7c14cb7ea86f63cc4561e15176b5f81c"/><file name="Seconds.php" hash="10dcf6a7640efa9fbcf7ef6ae7e9ae43"/><file name="Stars.php" hash="85ad993421de14fab686d52a8fa950f6"/></dir><dir name="Info"><file name="Info.php" hash="cce5fd559581170059c240ccbd4f494c"/></dir></dir><file name="Webwinkellog.php" hash="f612e6364574f05f809824fd8a38da88"/><file name="Webwinkelreviews.php" hash="36cf79d85b2253aabbe09c0b56d120cd"/></dir><file name="Custom.php" hash="c63942e28751a786790952f2838223bf"/><file name="Reviews.php" hash="d0bcb2f320b5467c8562352f5c99ed61"/><file name="Sidebar.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies/>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Magmodules_Webwinkelconnect</name>
|
4 |
+
<version>1.0.6</version>
|
5 |
<stability>stable</stability>
|
6 |
<license/>
|
7 |
<channel>community</channel>
|
10 |
<description>Connect your Magento shop to Webwinkelkeur</description>
|
11 |
<notes>First stable release</notes>
|
12 |
<authors><author><name>Magmodules</name><user>auto-converted</user><email>info@magmodules.nl</email></author></authors>
|
13 |
+
<date>2015-02-05</date>
|
14 |
+
<time>18:41:54</time>
|
15 |
+
<contents><target name="magelocal"><dir name="Magmodules"><dir name="Webwinkelconnect"><dir name="Block"><dir name="Adminhtml"><dir name="Webwinkellog"><file name="Grid.php" hash="82ab3154d8f67defaee43f69b96ab3b1"/></dir><dir name="Webwinkelreviews"><dir name="Renderer"><file name="Experience.php" hash="aada48c75ea91d244b7b9c92cd00120f"/></dir><file name="Grid.php" hash="5577ba977b99624150b4939842aa301b"/></dir><dir name="Widget"><dir name="Buttons"><file name="Process.php" hash="4787bbaffd410554364ff4a5e1e63ac9"/><file name="Test.php" hash="b2b5c607bfac5cabd2a588ed38322749"/></dir><dir name="Form"><file name="Heading.php" hash="02e3828635cace2d0b9e027b83cd06ed"/></dir><dir name="Grid"><file name="Log.php" hash="7c14cb7ea86f63cc4561e15176b5f81c"/><file name="Seconds.php" hash="10dcf6a7640efa9fbcf7ef6ae7e9ae43"/><file name="Stars.php" hash="85ad993421de14fab686d52a8fa950f6"/></dir><dir name="Info"><file name="Info.php" hash="cce5fd559581170059c240ccbd4f494c"/></dir></dir><file name="Webwinkellog.php" hash="f612e6364574f05f809824fd8a38da88"/><file name="Webwinkelreviews.php" hash="36cf79d85b2253aabbe09c0b56d120cd"/></dir><file name="Custom.php" hash="c63942e28751a786790952f2838223bf"/><file name="Reviews.php" hash="d0bcb2f320b5467c8562352f5c99ed61"/><file name="Sidebar.php" hash="1ca0f125e133f3d148626b9706025fd8"/><file name="Snippets.php" hash="1535a7bfbf96eddda9f69e2abb89d01d"/></dir><dir name="Helper"><file name="Data.php" hash="6a8186a71b8c8622975a944c5da0bb23"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Log"><file name="Collection.php" hash="89243624a30bf222d0b8dfb2fac1b081"/></dir><dir name="Reviews"><file name="Collection.php" hash="ce9a3bafe5fa02c3d9c6582dd5beb756"/></dir><dir name="Stats"><file name="Collection.php" hash="6fdca00a42531fea30c1c0dcd2a92ca4"/></dir><file name="Log.php" hash="dadc9bb908ece8dd9132f4def52615bd"/><file name="Reviews.php" hash="83035fb0362d9b70e082976fd5442aa6"/><file name="Stats.php" hash="0ef2b3d186d79366824ba278575d3fd5"/></dir><dir name="System"><dir name="Config"><dir name="Source"><file name="Cronfrequency.php" hash="fd8c061c265d3c4ad1c3c3dcadd8abb0"/><file name="Orderstatus.php" hash="d31db8b504538d0708c180edae7ec718"/><file name="Position.php" hash="c8982d5dd8175146c93b813d3f001360"/><file name="Sidebarlink.php" hash="2161d465770d7d8e605340a2dfb67b08"/></dir></dir></dir><file name="Api.php" hash="eea558ee72903f82cf4162ee1697f660"/><file name="Log.php" hash="853c8f468509bf73114d626d6f72150d"/><file name="Observer.php" hash="cc23d646dbb035e237e268311e1662e0"/><file name="Reviews.php" hash="58cd41469de30e84e8f297d5fee0ca17"/><file name="Stats.php" hash="1f7abb4254e239a39492116aec4675b2"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="WebwinkellogController.php" hash="e95152405a256d1fbb96188e2272dcbb"/><file name="WebwinkelreviewsController.php" hash="de304296175ac779ebb221aab376c619"/></dir><file name="IndexController.php" hash="ada8a868046d0c0709d30299a9615bfc"/></dir><dir name="etc"><file name="adminhtml.xml" hash="964a1a430ab69512e75c118b32b04edd"/><file name="config.xml" hash="2dcb524a0d9072efab720cc4be6b8be4"/><file name="system.xml" hash="ebcb4756f4fdc7b1d0ec92d4ba9911ab"/></dir><dir name="sql"><dir name="webwinkelconnect_setup"><file name="mysql4-install-1.0.1.php" hash="456058215ad80f59ec71e74d8f1af075"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="magmodules_webwinkelconnect.xml" hash="0e589fce607f517314266dea8ef7e34b"/></dir><dir name="template"><dir name="magmodules"><dir name="webwinkelconnect"><dir name="sidebar"><file name="js-sidebar.phtml" hash="24f9f033fd87089371d212b18a600130"/><file name="left.phtml" hash="192aa7247f9c6465c4d707a308eca2ee"/><file name="right.phtml" hash="71f0db4084f733eb802db5801af6d699"/></dir><dir name="widget"><file name="custom.phtml" hash="c71e537fe9f4650086afce3b59cb32aa"/><file name="richsnippets.phtml" hash="b1292310650b4a8e70ba1597276de582"/></dir><file name="index.phtml" hash="58e60168a3dfb9896f5d5819c2bf7632"/></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="magmodules_webwinkelconnect.xml" hash="34b4d3252daa7c80d230b049e0b73311"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Magmodules_Webwinkelconnect.xml" hash="1784309611987476302cb191d4da009d"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Magmodules_Webwinkelconnect.csv" hash="efbc09050642b8b557749803b1b29d62"/></dir><dir name="nl_NL"><file name="Magmodules_Webwinkelconnect.csv" hash="14c18c0b793425cb30778eedb116d8f3"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="magmodules"><dir name="webwinkelconnect"><dir name="images"><file name="5-stars-empty.png" hash="799c499ca785331e7e69d892df52dd48"/><file name="5-stars-full.png" hash="1d06151a2c4da6bb71381538c8a903a5"/><file name="greystar.png" hash="ab99888c7a8f47826ad7a83bcabf9130"/><file name="star.png" hash="647c77f0ef881fb2a90a4f53f70d75fa"/></dir><file name="richsnippets.css" hash="b2370d97684a2fa2fbc42fb6de470e42"/><file name="sidebar.css" hash="2ce0e0147ac565e6819a43fd68ea331e"/><file name="style.css" hash="f58b58fa6bdab0022c5e8ebca8c86d67"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="magmodules"><dir name="webwinkelconnect"><file name="grid.css" hash="ce720c1772a8176eabf3866fcd83bb7a"/><file name="star.png" hash="4beacfb62ebdd5feecd946494e895f4c"/></dir></dir></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies/>
|
18 |
</package>
|