Version Notes
Get addwish on your site and we'll show your products on ours!
addwish is a wish list that lets users share the products they want with people who want to buy them. But unlike other wish lists, with addwish your products also appear as inspiration in searches for similar products on addwish.com. If addwish users select your product for their list, their family and friends are automatically directed to your web shop where they can make the purchase.
- Easy to install and maintenance free
- Increases traffic to your shop
- High conversion rates
Download this release
Release Info
Developer | addwish |
Extension | addwish |
Version | 0.5.0 |
Comparing to | |
See all releases |
Code changes from version 0.0.4 to 0.5.0
- app/code/local/Addwish/Integrator/Model/Observer.php +16 -72
- app/code/local/Addwish/Integrator/controllers/Adminhtml/IntegratorController.php +1 -1
- app/code/local/Addwish/Integrator/controllers/IndexController.php +67 -1
- app/code/local/Addwish/Integrator/etc/config.xml +32 -19
- app/code/local/Addwish/Integrator/sql/addwish_setup/mysql4-install-0.0.4.php +2 -1
- app/design/adminhtml/default/default/template/integrator/integrator/list.phtml +8 -17
- app/design/frontend/base/default/layout/integrator.xml +10 -1
- app/design/frontend/base/default/template/addwish/addwish-head.phtml +15 -0
- package.xml +5 -5
app/code/local/Addwish/Integrator/Model/Observer.php
CHANGED
@@ -13,78 +13,22 @@ class Addwish_Integrator_Model_Observer
|
|
13 |
exit;
|
14 |
}
|
15 |
}
|
16 |
-
public function
|
17 |
-
$
|
18 |
-
$
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
$
|
25 |
-
$products = Mage::getModel('catalog/product')->getCollection()->addAttributeToFilter('visibility', 4);
|
26 |
-
$products->addAttributeToSelect('*');
|
27 |
-
foreach($products as $product) {
|
28 |
-
$imageUrl = Mage::helper('catalog/image')->init($product , 'thumbnail')->resize(256);
|
29 |
-
$specialPrice = number_format($product->getSpecialPrice(), 2, '.', '');
|
30 |
-
$regularPrice = number_format($product->getPrice(), 2, '.', '');
|
31 |
-
$products_out.="<product><url>".$product->getProductUrl()."</url><title>".htmlentities($product->getName(),ENT_QUOTES,'UTF-8')."</title><imgurl>".$imageUrl."</imgurl>";
|
32 |
-
if(isset($specialPrice) && $specialPrice>0){
|
33 |
-
$products_out.= "<price>".$specialPrice."</price>";
|
34 |
-
$products_out.= "<previousprice>".$regularPrice."</previousprice>";
|
35 |
-
}else{
|
36 |
-
$products_out.= "<price>".$regularPrice."</price>";
|
37 |
-
}
|
38 |
-
if($product->getMetaKeyword()!=''){
|
39 |
-
$products_out.= "<keywords>".htmlentities($product->getMetaKeyword(),ENT_QUOTES,'UTF-8')."</keywords>";
|
40 |
-
}
|
41 |
-
if($product->getDescription()!=''){
|
42 |
-
$products_out.= "<description>".htmlentities($product->getDescription(),ENT_QUOTES,'UTF-8')."</description>";
|
43 |
-
}
|
44 |
-
$products_out.= "<productnumber>".$product->getId()."</productnumber>";
|
45 |
-
$products_out.= "<currency>".Mage::app()->getStore()->getCurrentCurrencyCode()."</currency>";
|
46 |
-
$cats = $product->getCategoryIds();
|
47 |
-
$products_out.= "<hierarchies>";
|
48 |
-
foreach ($cats as $category_id) {
|
49 |
-
$products_out.= "<hierarchy> ";
|
50 |
-
$category = Mage::getModel('catalog/category')->load($category_id) ;
|
51 |
-
$catnames = array();
|
52 |
-
foreach ($category->getParentCategories() as $parent) {
|
53 |
-
if(trim($parent->getName())!=""){
|
54 |
-
$catnames[] = $parent->getName();
|
55 |
-
$products_out.= "<category>".htmlspecialchars(htmlentities($parent->getName(),ENT_QUOTES,'UTF-8'))."</category>";
|
56 |
-
}
|
57 |
-
}
|
58 |
-
|
59 |
-
$products_out.= "</hierarchy> ";
|
60 |
-
}
|
61 |
-
$products_out.= "</hierarchies>";
|
62 |
-
if($product->getData('brand')){
|
63 |
-
$products_out.= "<brand>".$product->getData('brand')."</brand>";
|
64 |
-
}
|
65 |
-
|
66 |
-
if($product->isInStock()){
|
67 |
-
$products_out.= "<instock>true</instock>";
|
68 |
-
}else{
|
69 |
-
$products_out.= "<instock>false</instock>";
|
70 |
-
}
|
71 |
-
|
72 |
-
if($product->getData('gender')){
|
73 |
-
$products_out.= "<gender>".$product->getData('gender')."</gender>";
|
74 |
-
}
|
75 |
-
if($product->getData('pricedetail')){
|
76 |
-
$products_out.= "<pricedetail>".$product->getData('pricedetail')."</pricedetail>";
|
77 |
-
}
|
78 |
-
//
|
79 |
-
$products_out.= "</product>";
|
80 |
-
}
|
81 |
-
$products_out.= "</products>";
|
82 |
-
$file_path=Mage::getBaseDir()."/addwishProductExport.xml";
|
83 |
-
$addwishProductExport = fopen($file_path, "w");
|
84 |
-
fwrite($addwishProductExport, $products_out);
|
85 |
-
fclose($addwishProductExport);
|
86 |
-
Mage::log('Feed Generated successfully.');
|
87 |
}
|
88 |
-
|
|
|
|
|
|
|
|
|
|
|
89 |
}
|
|
|
90 |
?>
|
13 |
exit;
|
14 |
}
|
15 |
}
|
16 |
+
public function customerRegisterData($observer=null){
|
17 |
+
$event = $observer->getEvent();
|
18 |
+
$customer = $event->getCustomer();
|
19 |
+
$email = $customer->getEmail();
|
20 |
+
Mage::getSingleton('core/session')->setAddWishEmail($email);
|
21 |
+
}
|
22 |
+
public function addwishHeader($observer=null){
|
23 |
+
$update=Mage::getSingleton('core/layout')->getUpdate();
|
24 |
+
$update->addHandle('addwish_head_add');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
}
|
26 |
+
public function getbillingData($observer=null){
|
27 |
+
$addressObject=$observer->getEvent()->getQuoteAddress();
|
28 |
+
$quote = $observer->getEvent()->getQuoteAddress()->getQuote();
|
29 |
+
$email=$quote->getBillingAddress()->getEmail();
|
30 |
+
Mage::getSingleton('core/session')->setAddWishEmail($email);
|
31 |
+
}
|
32 |
}
|
33 |
+
|
34 |
?>
|
app/code/local/Addwish/Integrator/controllers/Adminhtml/IntegratorController.php
CHANGED
@@ -96,7 +96,7 @@ class Addwish_Integrator_Adminhtml_IntegratorController extends Mage_Adminhtml_C
|
|
96 |
$products_out.= "<price>".$regularPrice."</price>";
|
97 |
}
|
98 |
if($product->getMetaKeyword()!=''){
|
99 |
-
$products_out.= "<keywords>".htmlentities($product->getMetaKeyword(),ENT_QUOTES,'UTF-8')."</keywords>";
|
100 |
}
|
101 |
if($product->getDescription()!=''){
|
102 |
$products_out.= "<description>".htmlspecialchars(htmlentities($product->getDescription(),ENT_QUOTES,'UTF-8'))."</description>";
|
96 |
$products_out.= "<price>".$regularPrice."</price>";
|
97 |
}
|
98 |
if($product->getMetaKeyword()!=''){
|
99 |
+
$products_out.= "<keywords>".htmlspecialchars(htmlentities($product->getMetaKeyword(),ENT_QUOTES,'UTF-8'))."</keywords>";
|
100 |
}
|
101 |
if($product->getDescription()!=''){
|
102 |
$products_out.= "<description>".htmlspecialchars(htmlentities($product->getDescription(),ENT_QUOTES,'UTF-8'))."</description>";
|
app/code/local/Addwish/Integrator/controllers/IndexController.php
CHANGED
@@ -66,7 +66,73 @@ class Addwish_Integrator_IndexController extends Mage_Core_Controller_Front_Acti
|
|
66 |
}
|
67 |
public function indexAction()
|
68 |
{
|
69 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
}
|
71 |
}
|
72 |
?>
|
66 |
}
|
67 |
public function indexAction()
|
68 |
{
|
69 |
+
$model = Mage::getModel('integrator/integrator')->load(1);
|
70 |
+
if($model->getData('enable_product_feed')==0){
|
71 |
+
echo "Access Denied";
|
72 |
+
exit;
|
73 |
+
}
|
74 |
+
header("Content-type: text/xml");
|
75 |
+
$products_out='<?xml version="1.0" encoding="UTF-8"?><products>';
|
76 |
+
$products = Mage::getModel('catalog/product')->getCollection()->addAttributeToFilter('visibility', 4);
|
77 |
+
$products->addAttributeToSelect('*');
|
78 |
+
foreach($products as $product) {
|
79 |
+
$imageUrl = Mage::helper('catalog/image')->init($product , 'thumbnail')->resize(256);
|
80 |
+
$specialPrice = number_format($product->getSpecialPrice(), 2, '.', '');
|
81 |
+
$regularPrice = number_format($product->getPrice(), 2, '.', '');
|
82 |
+
$products_out.="<product><url>".$product->getProductUrl()."</url><title>".htmlspecialchars(htmlentities($product->getName(),ENT_QUOTES,'UTF-8'))."</title><imgurl>".$imageUrl."</imgurl>";
|
83 |
+
if(isset($specialPrice) && $specialPrice>0){
|
84 |
+
$products_out.= "<price>".$specialPrice."</price>";
|
85 |
+
$products_out.= "<previousprice>".$regularPrice."</previousprice>";
|
86 |
+
}else{
|
87 |
+
$products_out.= "<price>".$regularPrice."</price>";
|
88 |
+
}
|
89 |
+
if($product->getMetaKeyword()!=''){
|
90 |
+
$products_out.= "<keywords>".htmlspecialchars(htmlentities($product->getMetaKeyword(),ENT_QUOTES,'UTF-8'))."</keywords>";
|
91 |
+
}
|
92 |
+
if($product->getDescription()!=''){
|
93 |
+
$products_out.= "<description>".htmlspecialchars(htmlentities($product->getDescription(),ENT_QUOTES,'UTF-8'))."</description>";
|
94 |
+
}
|
95 |
+
$products_out.= "<productnumber>".$product->getId()."</productnumber>";
|
96 |
+
$products_out.= "<currency>".Mage::app()->getStore()->getCurrentCurrencyCode()."</currency>";
|
97 |
+
$cats = $product->getCategoryIds();
|
98 |
+
$products_out.= "<hierarchies>";
|
99 |
+
foreach ($cats as $category_id) {
|
100 |
+
$products_out.= "<hierarchy> ";
|
101 |
+
$category = Mage::getModel('catalog/category')->load($category_id) ;
|
102 |
+
$catnames = array();
|
103 |
+
foreach ($category->getParentCategories() as $parent) {
|
104 |
+
if(trim($parent->getName())!=""){
|
105 |
+
$catnames[] = $parent->getName();
|
106 |
+
|
107 |
+
$products_out.= "<category>".htmlspecialchars(htmlentities($parent->getName(),ENT_QUOTES,'UTF-8'))."</category>";
|
108 |
+
}
|
109 |
+
}
|
110 |
+
|
111 |
+
$products_out.= "</hierarchy> ";
|
112 |
+
}
|
113 |
+
$products_out.= "</hierarchies>";
|
114 |
+
if($product->getData('brand')){
|
115 |
+
$products_out.= "<brand>".$product->getData('brand')."</brand>";
|
116 |
+
}
|
117 |
+
|
118 |
+
if($product->isInStock()){
|
119 |
+
$products_out.= "<instock>true</instock>";
|
120 |
+
}else{
|
121 |
+
$products_out.= "<instock>false</instock>";
|
122 |
+
}
|
123 |
+
|
124 |
+
if($product->getData('gender')){
|
125 |
+
$products_out.= "<gender>".$product->getData('gender')."</gender>";
|
126 |
+
}
|
127 |
+
if($product->getData('pricedetail')){
|
128 |
+
$products_out.= "<pricedetail>".$product->getData('pricedetail')."</pricedetail>";
|
129 |
+
}
|
130 |
+
//
|
131 |
+
$products_out.= "</product>";
|
132 |
+
}
|
133 |
+
$products_out.= "</products>";
|
134 |
+
echo $products_out;
|
135 |
+
exit;
|
136 |
}
|
137 |
}
|
138 |
?>
|
app/code/local/Addwish/Integrator/etc/config.xml
CHANGED
@@ -5,29 +5,42 @@
|
|
5 |
<version>0.2.0</version>
|
6 |
</Addwish_Integrator>
|
7 |
</modules>
|
8 |
-
|
9 |
-
<jobs>
|
10 |
-
<addwish_cron>
|
11 |
-
<schedule>
|
12 |
-
<cron_expr>*/50 * * * *</cron_expr>
|
13 |
-
</schedule>
|
14 |
-
<run>
|
15 |
-
<model>integrator/observer::addWishCron</model>
|
16 |
-
</run>
|
17 |
-
</addwish_cron>
|
18 |
-
</jobs>
|
19 |
-
</crontab>
|
20 |
<frontend>
|
21 |
|
22 |
-
|
23 |
<events>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
<checkout_cart_add_product_complete>
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
</checkout_cart_add_product_complete>
|
32 |
</events>
|
33 |
<routers>
|
5 |
<version>0.2.0</version>
|
6 |
</Addwish_Integrator>
|
7 |
</modules>
|
8 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
<frontend>
|
10 |
|
11 |
+
|
12 |
<events>
|
13 |
+
<sales_quote_address_save_after>
|
14 |
+
<observers>
|
15 |
+
<getbillingData>
|
16 |
+
<class>Addwish_Integrator_Model_Observer</class>
|
17 |
+
<method>getbillingData</method>
|
18 |
+
</getbillingData>
|
19 |
+
</observers>
|
20 |
+
</sales_quote_address_save_after>
|
21 |
+
<controller_action_layout_load_before>
|
22 |
+
<observers>
|
23 |
+
<addwishHeader>
|
24 |
+
<class>Addwish_Integrator_Model_Observer</class>
|
25 |
+
<method>addwishHeader</method>
|
26 |
+
</addwishHeader>
|
27 |
+
</observers>
|
28 |
+
</controller_action_layout_load_before>
|
29 |
+
<customer_register_success>
|
30 |
+
<observers>
|
31 |
+
<inspectCartAddData>
|
32 |
+
<class>Addwish_Integrator_Model_Observer</class>
|
33 |
+
<method>customerRegisterData</method>
|
34 |
+
</inspectCartAddData>
|
35 |
+
</observers>
|
36 |
+
</customer_register_success>
|
37 |
<checkout_cart_add_product_complete>
|
38 |
+
<observers>
|
39 |
+
<inspectCartAddData>
|
40 |
+
<class>Addwish_Integrator_Model_Observer</class>
|
41 |
+
<method>inspectCartAddData</method>
|
42 |
+
</inspectCartAddData>
|
43 |
+
</observers>
|
44 |
</checkout_cart_add_product_complete>
|
45 |
</events>
|
46 |
<routers>
|
app/code/local/Addwish/Integrator/sql/addwish_setup/mysql4-install-0.0.4.php
CHANGED
@@ -17,7 +17,8 @@ $installer->run("CREATE TABLE IF NOT EXISTS `".$prefix."addwish` (
|
|
17 |
--
|
18 |
-- Dumping data for table `addwish`
|
19 |
--
|
20 |
-
|
|
|
21 |
INSERT INTO `".$prefix."addwish` (`id`, `userId`, `enableUpsells`,`ipaddress`) VALUES ('1', '', '0','46.137.110.51');");
|
22 |
|
23 |
Mage::getModel('core/url_rewrite')->setIsSystem(0)->setOptions('')->setIdPath('Add Wish Search')->setTargetPath('/integrator/index/search')->setRequestPath('addwish-search-result.html')->save();
|
17 |
--
|
18 |
-- Dumping data for table `addwish`
|
19 |
--
|
20 |
+
truncate `".$prefix."addwish`;
|
21 |
+
delete from `".$prefix."core_url_rewrite` where request_path in ('addwish-search-result.html','orderExportFeed.xml');
|
22 |
INSERT INTO `".$prefix."addwish` (`id`, `userId`, `enableUpsells`,`ipaddress`) VALUES ('1', '', '0','46.137.110.51');");
|
23 |
|
24 |
Mage::getModel('core/url_rewrite')->setIsSystem(0)->setOptions('')->setIdPath('Add Wish Search')->setTargetPath('/integrator/index/search')->setRequestPath('addwish-search-result.html')->save();
|
app/design/adminhtml/default/default/template/integrator/integrator/list.phtml
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
<img src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN);?>adminhtml/default/default/images/addwish/addwish.png" alt="addwish logo" />
|
5 |
</div>
|
6 |
<div class='clear'></div>
|
7 |
-
<div class="introtext"
|
8 |
<div class="entry-edit">
|
9 |
<div class="entry-edit-head collapseable">
|
10 |
<a onclick="Fieldset.toggleCollapse('general_region', ''); return false;" href="#" id="general_region-head" class="">Script Setup</a>
|
@@ -43,14 +43,14 @@ Once you have an addwish business ID enter it in the box below and press save.</
|
|
43 |
<div class="entry-edit">
|
44 |
<div class="entry-edit-head collapseable">
|
45 |
<a
|
46 |
-
onclick="Fieldset.toggleCollapse('
|
47 |
-
href="#" id="
|
48 |
</div>
|
49 |
<form action='' method='post'>
|
50 |
<input type='hidden' name='action' value='dataexport'/>
|
51 |
<input name="form_key" type="hidden"
|
52 |
value="<?php echo Mage::getSingleton('core/session')->getFormKey() ?>" />
|
53 |
-
<fieldset id="
|
54 |
<legend>Data Export Setup</legend>
|
55 |
<?php
|
56 |
$model = Mage::getModel('integrator/integrator')->load(1);
|
@@ -69,22 +69,13 @@ We have included a text area, where you can enter the IP addresses that you woul
|
|
69 |
|
70 |
|
71 |
</div>
|
72 |
-
<h6>Product feed</h6>
|
73 |
<div style="float:left">
|
74 |
<input type="checkbox" value="1" name="enable_product_feed" <?php if($model->getData('enable_product_feed')==1){echo "checked='checked'";} ?>/><label style="margin-left: 10px;">Product feed</label>
|
75 |
-
|
76 |
-
|
77 |
-
for($i=1;$i<=24;$i++){
|
78 |
-
$selected='';
|
79 |
-
if($i==$model->getData('cron_time')){
|
80 |
-
$selected='selected="selected"';
|
81 |
-
}
|
82 |
-
echo "<option value='".$i."' ".$selected.">".date("H:i",strtotime("$i:00"))."</option>";
|
83 |
-
}
|
84 |
-
?> </select>
|
85 |
</div>
|
86 |
-
|
87 |
-
<span style="margin-left: 10px;"><i>Click the button to update the product feed now. Usefull if you just updated prices, and you want it populated to addwish</i></span></div>
|
88 |
<br>
|
89 |
|
90 |
<br>
|
4 |
<img src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN);?>adminhtml/default/default/images/addwish/addwish.png" alt="addwish logo" />
|
5 |
</div>
|
6 |
<div class='clear'></div>
|
7 |
+
<div class="introtext">Great! You’ve successfully installed the addwish for business extension. This will allow you to quickly implement changes to how addwish functions on your webshop. We’ve made the extension as easy to use as possible but if you do have any questions don’t hesitate to contact us on <a href="mailto:support@addwish.com">support@addwish.com</a>. Alternatively, check out our FAQs on <a href="http://addwish.com/company/faq.html" target="_blank">http://addwish.com/company/faq.html</a>. We hope you enjoy growing your business with addwish!</div>
|
8 |
<div class="entry-edit">
|
9 |
<div class="entry-edit-head collapseable">
|
10 |
<a onclick="Fieldset.toggleCollapse('general_region', ''); return false;" href="#" id="general_region-head" class="">Script Setup</a>
|
43 |
<div class="entry-edit">
|
44 |
<div class="entry-edit-head collapseable">
|
45 |
<a
|
46 |
+
onclick="Fieldset.toggleCollapse('general_Dataregion', ''); return false;"
|
47 |
+
href="#" id="general_Dataregion-head" class="">Data Export Setup</a>
|
48 |
</div>
|
49 |
<form action='' method='post'>
|
50 |
<input type='hidden' name='action' value='dataexport'/>
|
51 |
<input name="form_key" type="hidden"
|
52 |
value="<?php echo Mage::getSingleton('core/session')->getFormKey() ?>" />
|
53 |
+
<fieldset id="general_Dataregion" class="config collapseable">
|
54 |
<legend>Data Export Setup</legend>
|
55 |
<?php
|
56 |
$model = Mage::getModel('integrator/integrator')->load(1);
|
69 |
|
70 |
|
71 |
</div>
|
72 |
+
<h6>Product feed</h6>
|
73 |
<div style="float:left">
|
74 |
<input type="checkbox" value="1" name="enable_product_feed" <?php if($model->getData('enable_product_feed')==1){echo "checked='checked'";} ?>/><label style="margin-left: 10px;">Product feed</label>
|
75 |
+
<p>You can access the feed from this URL: <a target="_blank" href="<?php echo Mage::getBaseUrl();?>integrator/index">/index.php/integrator/index</a> - <i><b>Please note that the feed is generated when ever the feed is requested, so coordinate with addwish as for when is the best time to request the feed</b></i></p><i><b>
|
76 |
+
</b></i>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
</div>
|
78 |
+
|
|
|
79 |
<br>
|
80 |
|
81 |
<br>
|
app/design/frontend/base/default/layout/integrator.xml
CHANGED
@@ -22,6 +22,15 @@
|
|
22 |
<reference name="content"><block type="core/template" name="addwish" template="addwish/upsells-page.phtml" /></reference>
|
23 |
</integrator_index_upsells>
|
24 |
|
25 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
</layout>
|
27 |
|
22 |
<reference name="content"><block type="core/template" name="addwish" template="addwish/upsells-page.phtml" /></reference>
|
23 |
</integrator_index_upsells>
|
24 |
|
25 |
+
<addwish_head_add translate="label">
|
26 |
+
<label>Custom Product View Based on New Handle</label>
|
27 |
+
<block type="core/template" name="addwish" template="addwish/addwish-head.phtml" />
|
28 |
+
<reference name="header">
|
29 |
+
<action method="append"><block>addwish</block></action>
|
30 |
+
</reference>
|
31 |
+
<reference name="head">
|
32 |
+
<action method="append"><block>addwish</block></action>
|
33 |
+
</reference>
|
34 |
+
</addwish_head_add>
|
35 |
</layout>
|
36 |
|
app/design/frontend/base/default/template/addwish/addwish-head.phtml
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$customerEmail=Mage::getSingleton('core/session')->getAddWishEmail($email);
|
3 |
+
if(isset($customerEmail)){
|
4 |
+
?>
|
5 |
+
<meta content="<?php echo $customerEmail;?>" name="aw:userEmail"/>
|
6 |
+
<?php
|
7 |
+
}else{
|
8 |
+
if(Mage::getSingleton('customer/session')->isLoggedIn()){
|
9 |
+
$customer=Mage::getSingleton('customer/session')->getCustomer();
|
10 |
+
?>
|
11 |
+
<meta content="<?php echo $customer->getEmail();?>" name="aw:userEmail"/>
|
12 |
+
<?php
|
13 |
+
}
|
14 |
+
}
|
15 |
+
?>
|
package.xml
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>addwish</name>
|
4 |
-
<version>0.0
|
5 |
-
<stability>
|
6 |
<license>OSL</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
@@ -26,9 +26,9 @@
|
|
26 |
<li>High conversion rates</li>
|
27 |
</ul></notes>
|
28 |
<authors><author><name>addwish</name><user>addwish</user><email>krj@addwish.com</email></author></authors>
|
29 |
-
<date>2016-
|
30 |
-
<time>
|
31 |
-
<contents><target name="magelocal"><dir name="Addwish"><dir name="Integrator"><dir name="Block"><dir name="Adminhtml"><dir name="Integrator"><file name="Grid.php" hash="3fa75f93b5251ffd849c662f964a1d57"/><file name="Renderer.php" hash="a7469e6df67f94a039a92874321da38e"/><dir name="View"><dir name="Tab"><dir name="Details"><file name="List.php" hash="d08e9b7f83f98b3050a7118ac2369242"/></dir><file name="Details.php" hash="b5220cabab90ccede514fa0e6766555b"/><file name="Form.php" hash="ad6373c64686899d246a11bb2fe17fc1"/><dir name="Recommend"><file name="List.php" hash="b35150ab52310670ab518cb45c1a2e33"/></dir><file name="Recommend.php" hash="6f19611e2e83f8247d97e591fc958bf1"/><dir name="Search"><file name="List.php" hash="5df43f1363e6ae96b94188d45ce7801a"/></dir><file name="Search.php" hash="73ffb13e76137acd67f9a9b9c7751358"/></dir><file name="Tabs.php" hash="1c573a29d7ceb90873409af2b674fc95"/></dir><file name="View.php" hash="42c8b170dae90fc7ef89d8dc5e99bc83"/></dir><file name="Integrator.php" hash="40496a2bd632188c498ada4477ac3752"/></dir><file name="Integrator.php" hash="458f91e566dc29429a8f4506485b254a"/></dir><dir name="Helper"><file name="Data.php" hash="a4de920a156bda655d1ae676f5080514"/></dir><dir name="Model"><file name="Integrator.php" hash="c41ae42230aa6837714da7922c626945"/><dir name="Mysql4"><dir name="Integrator"><file name="Collection.php" hash="d622ef3fcda60d4f980b1c504073c6a6"/></dir><file name="Integrator.php" hash="052377e4c9fdb94a912653287997e58b"/></dir><file name="Observer.php" hash="
|
32 |
<compatible/>
|
33 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
34 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>addwish</name>
|
4 |
+
<version>0.5.0</version>
|
5 |
+
<stability>stable</stability>
|
6 |
<license>OSL</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
26 |
<li>High conversion rates</li>
|
27 |
</ul></notes>
|
28 |
<authors><author><name>addwish</name><user>addwish</user><email>krj@addwish.com</email></author></authors>
|
29 |
+
<date>2016-02-02</date>
|
30 |
+
<time>10:44:53</time>
|
31 |
+
<contents><target name="magelocal"><dir name="Addwish"><dir name="Integrator"><dir name="Block"><dir name="Adminhtml"><dir name="Integrator"><file name="Grid.php" hash="3fa75f93b5251ffd849c662f964a1d57"/><file name="Renderer.php" hash="a7469e6df67f94a039a92874321da38e"/><dir name="View"><dir name="Tab"><dir name="Details"><file name="List.php" hash="d08e9b7f83f98b3050a7118ac2369242"/></dir><file name="Details.php" hash="b5220cabab90ccede514fa0e6766555b"/><file name="Form.php" hash="ad6373c64686899d246a11bb2fe17fc1"/><dir name="Recommend"><file name="List.php" hash="b35150ab52310670ab518cb45c1a2e33"/></dir><file name="Recommend.php" hash="6f19611e2e83f8247d97e591fc958bf1"/><dir name="Search"><file name="List.php" hash="5df43f1363e6ae96b94188d45ce7801a"/></dir><file name="Search.php" hash="73ffb13e76137acd67f9a9b9c7751358"/></dir><file name="Tabs.php" hash="1c573a29d7ceb90873409af2b674fc95"/></dir><file name="View.php" hash="42c8b170dae90fc7ef89d8dc5e99bc83"/></dir><file name="Integrator.php" hash="40496a2bd632188c498ada4477ac3752"/></dir><file name="Integrator.php" hash="458f91e566dc29429a8f4506485b254a"/></dir><dir name="Helper"><file name="Data.php" hash="a4de920a156bda655d1ae676f5080514"/></dir><dir name="Model"><file name="Integrator.php" hash="c41ae42230aa6837714da7922c626945"/><dir name="Mysql4"><dir name="Integrator"><file name="Collection.php" hash="d622ef3fcda60d4f980b1c504073c6a6"/></dir><file name="Integrator.php" hash="052377e4c9fdb94a912653287997e58b"/></dir><file name="Observer.php" hash="ca28f56253adfb730a4726220f377853"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="IntegratorController.php" hash="f08d441ac42d91de43c7357a084a08c1"/></dir><file name="IndexController.php" hash="612eec4325576ed8f91978945ed90efd"/></dir><dir name="etc"><file name="config.xml" hash="78297eba85c1ff665b916739b596a13a"/></dir><dir name="sql"><dir name="addwish_setup"><file name="mysql4-install-0.0.4.php" hash="1dc029b0477be30c99ea8520f872c241"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="css"><file name="addwish.css" hash="f8711a6d3845f2c39698ca95064abb4c"/></dir><dir name="images"><dir name="addwish"><file name="addwish.png" hash="a588d24d1919d9206eff40a886b88ef1"/></dir></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="integrator.xml" hash="7c7d92345ca22fb3f3ed42324d7b4656"/></dir><dir name="template"><dir name="integrator"><dir name="integrator"><file name="list.phtml" hash="886923c23566da59f0bf1810769782fc"/></dir><file name="recommendations.phtml" hash="961ff25fb0409a75f222c58d5c48ef22"/><file name="search.phtml" hash="bcf56fe0d8728a45ca5421a0d6273385"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="integrator.xml" hash="c47b8a68f3b4b9b7290167d792478a0d"/></dir><dir name="template"><dir name="addwish"><file name="addwish-head.phtml" hash="bdb8f773ac619853c7a77b48c0ffef06"/><file name="basket-span.phtml" hash="43ae1f4ca8daad61d16ef84bbfcab2cf"/><file name="conversion-span.phtml" hash="69ab18c525182edc1b83b0690556ac8c"/><file name="integrator.phtml" hash="c28de947018ddc40f1a9dc9d6c51ee60"/><file name="product-span.phtml" hash="c1a0a4db17271f9d9ba522d159805e0c"/><file name="search-result-page.phtml" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="upsells-page.phtml" hash="6045046fe46f56ea37f0f3c43f6c5a1e"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Addwish_Integrator.xml" hash="b445d0c5897f7ecefabd04e2e4bc9530"/></dir></target></contents>
|
32 |
<compatible/>
|
33 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
34 |
</package>
|