Version Notes
First Version
Download this release
Release Info
Developer | Magento Core Team |
Extension | LiftSuggest_Price_Discovery_Engine |
Version | 1.0.0 |
Comparing to | |
See all releases |
Version 1.0.0
- app/code/community/LiftSuggest/PriceDiscoveryEngine/etc/adminhtml.xml +22 -0
- app/code/community/LiftSuggest/PriceDiscoveryEngine/etc/config.xml +15 -0
- app/code/community/LiftSuggest/PriceDiscoveryEngine/etc/system.xml +39 -0
- app/code/local/Pde/Placeholder/Block/Html/Head.php +91 -0
- app/code/local/Pde/Placeholder/etc/config.xml +32 -0
- app/design/frontend/default/default/layout/ls_pde.xml +38 -0
- app/etc/modules/LiftSuggest_PriceDiscoveryEngine.xml +9 -0
- app/etc/modules/Pde_Placeholder.xml +9 -0
- package.xml +18 -0
app/code/community/LiftSuggest/PriceDiscoveryEngine/etc/adminhtml.xml
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<acl>
|
4 |
+
<resources>
|
5 |
+
<admin>
|
6 |
+
<children>
|
7 |
+
<system>
|
8 |
+
<children>
|
9 |
+
<config>
|
10 |
+
<children>
|
11 |
+
<tab1>
|
12 |
+
<title>Price Discovery Engine</title>
|
13 |
+
</tab1>
|
14 |
+
</children>
|
15 |
+
</config>
|
16 |
+
</children>
|
17 |
+
</system>
|
18 |
+
</children>
|
19 |
+
</admin>
|
20 |
+
</resources>
|
21 |
+
</acl>
|
22 |
+
</config>
|
app/code/community/LiftSuggest/PriceDiscoveryEngine/etc/config.xml
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<LiftSuggest_PriceDiscoveryEngine>
|
5 |
+
<version>0.1.0</version>
|
6 |
+
</LiftSuggest_PriceDiscoveryEngine>
|
7 |
+
</modules>
|
8 |
+
<default>
|
9 |
+
<tab1>
|
10 |
+
<general>
|
11 |
+
<text_field>Default value</text_field>
|
12 |
+
</general>
|
13 |
+
</tab1>
|
14 |
+
</default>
|
15 |
+
</config>
|
app/code/community/LiftSuggest/PriceDiscoveryEngine/etc/system.xml
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<tabs>
|
4 |
+
<myconf translate="label">
|
5 |
+
<label>LiftSuggest</label>
|
6 |
+
<sort_order>150</sort_order>
|
7 |
+
</myconf>
|
8 |
+
</tabs>
|
9 |
+
<sections>
|
10 |
+
<tab1 translate="label" module="adminhtml">
|
11 |
+
<label>Price Discovery Engine</label>
|
12 |
+
<tab>myconf</tab>
|
13 |
+
<sort_order>10</sort_order>
|
14 |
+
<show_in_default>1</show_in_default>
|
15 |
+
<show_in_website>1</show_in_website>
|
16 |
+
<show_in_store>1</show_in_store>
|
17 |
+
<groups>
|
18 |
+
<general translate="label comment">
|
19 |
+
<label>General</label>
|
20 |
+
<sort_order>50</sort_order>
|
21 |
+
<show_in_default>1</show_in_default>
|
22 |
+
<show_in_website>1</show_in_website>
|
23 |
+
<show_in_store>1</show_in_store>
|
24 |
+
<fields>
|
25 |
+
<text_field translate="label comment">
|
26 |
+
<label>Price Discovery Engine URL</label>
|
27 |
+
<comment>Eg. :- http://d2blwevgjs7yom.cloudfront.net/liftsuggest-70830-745816.js</comment>
|
28 |
+
<frontend_type>text</frontend_type>
|
29 |
+
<sort_order>10</sort_order>
|
30 |
+
<show_in_default>1</show_in_default>
|
31 |
+
<show_in_website>1</show_in_website>
|
32 |
+
<show_in_store>1</show_in_store>
|
33 |
+
</text_field>
|
34 |
+
</fields>
|
35 |
+
</general>
|
36 |
+
</groups>
|
37 |
+
</tab1>
|
38 |
+
</sections>
|
39 |
+
</config>
|
app/code/local/Pde/Placeholder/Block/Html/Head.php
ADDED
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category Mage
|
22 |
+
* @package Mage_Page
|
23 |
+
* @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
+
*/
|
26 |
+
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Inchoo Xternal Html page block
|
30 |
+
*
|
31 |
+
* @category Liftsuggest
|
32 |
+
* @package Pde_Placeholder
|
33 |
+
* @author Liftsuggest developer
|
34 |
+
*/
|
35 |
+
class Pde_Placeholder_Block_Html_Head extends Mage_Page_Block_Html_Head
|
36 |
+
{
|
37 |
+
/**
|
38 |
+
* Initialize template
|
39 |
+
*
|
40 |
+
*/
|
41 |
+
protected function _construct()
|
42 |
+
{
|
43 |
+
$this->setTemplate('page/html/head.phtml');
|
44 |
+
}
|
45 |
+
|
46 |
+
|
47 |
+
public function addLSJS($type, $name, $params=null, $if=null, $cond=null)
|
48 |
+
{
|
49 |
+
$pdeJS = Mage::getStoreConfig('tab1/general/text_field',Mage::app()->getStore());
|
50 |
+
if($pdeJS != ""){
|
51 |
+
parent::addItem("external_js", $pdeJS, $params=null, $if=null, $cond=null);
|
52 |
+
}
|
53 |
+
}
|
54 |
+
|
55 |
+
|
56 |
+
/**
|
57 |
+
* Classify HTML head item and queue it into "lines" array
|
58 |
+
*
|
59 |
+
* @see self::getCssJsHtml()
|
60 |
+
* @param array &$lines
|
61 |
+
* @param string $itemIf
|
62 |
+
* @param string $itemType
|
63 |
+
* @param string $itemParams
|
64 |
+
* @param string $itemName
|
65 |
+
* @param array $itemThe
|
66 |
+
*/
|
67 |
+
protected function _separateOtherHtmlHeadElements(&$lines, $itemIf, $itemType, $itemParams, $itemName, $itemThe)
|
68 |
+
{
|
69 |
+
$params = $itemParams ? ' ' . $itemParams : '';
|
70 |
+
$href = $itemName;
|
71 |
+
switch ($itemType) {
|
72 |
+
case 'rss':
|
73 |
+
$lines[$itemIf]['other'][] = sprintf('<link href="%s"%s rel="alternate" type="application/rss+xml" />',
|
74 |
+
$href, $params
|
75 |
+
);
|
76 |
+
break;
|
77 |
+
case 'link_rel':
|
78 |
+
$lines[$itemIf]['other'][] = sprintf('<link%s href="%s" />', $params, $href);
|
79 |
+
break;
|
80 |
+
|
81 |
+
case 'external_js':
|
82 |
+
$lines[$itemIf]['other'][] = sprintf('<script type="text/javascript" src="%s" %s></script>', $href, $params);
|
83 |
+
break;
|
84 |
+
|
85 |
+
case 'external_css':
|
86 |
+
$lines[$itemIf]['other'][] = sprintf('<link rel="stylesheet" type="text/css" href="%s" %s/>', $href, $params);
|
87 |
+
break;
|
88 |
+
}
|
89 |
+
}
|
90 |
+
|
91 |
+
}
|
app/code/local/Pde/Placeholder/etc/config.xml
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Pde_Placeholder>
|
5 |
+
<version>1.0.0</version>
|
6 |
+
</Pde_Placeholder>
|
7 |
+
</modules>
|
8 |
+
<global>
|
9 |
+
|
10 |
+
<blocks>
|
11 |
+
<ls_pde_block>
|
12 |
+
<class>Pde_Placeholder_Block</class>
|
13 |
+
</ls_pde_block>
|
14 |
+
<page>
|
15 |
+
<rewrite>
|
16 |
+
<html_head>Pde_Placeholder_Block_Html_Head</html_head>
|
17 |
+
</rewrite>
|
18 |
+
</page>
|
19 |
+
</blocks>
|
20 |
+
|
21 |
+
</global>
|
22 |
+
<frontend>
|
23 |
+
<layout>
|
24 |
+
<updates>
|
25 |
+
<ls_pde module="Pde_Placeholder">
|
26 |
+
<file>ls_pde.xml</file>
|
27 |
+
</ls_pde>
|
28 |
+
</updates>
|
29 |
+
</layout>
|
30 |
+
</frontend>
|
31 |
+
|
32 |
+
</config>
|
app/design/frontend/default/default/layout/ls_pde.xml
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Magento
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://opensource.org/licenses/afl-3.0.php
|
12 |
+
* If you did not receive a copy of the license and are unable to
|
13 |
+
* obtain it through the world-wide-web, please send an email
|
14 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* DISCLAIMER
|
17 |
+
*
|
18 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
19 |
+
* versions in the future. If you wish to customize Magento for your
|
20 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
21 |
+
*
|
22 |
+
* @category design
|
23 |
+
* @package default_default
|
24 |
+
* @author Liftsuggest developer
|
25 |
+
*/
|
26 |
+
|
27 |
+
-->
|
28 |
+
<layout version="0.1.0">
|
29 |
+
|
30 |
+
<default>
|
31 |
+
|
32 |
+
<reference name="head">
|
33 |
+
<action method="addLSJS"></action>
|
34 |
+
</reference>
|
35 |
+
|
36 |
+
</default>
|
37 |
+
|
38 |
+
</layout>
|
app/etc/modules/LiftSuggest_PriceDiscoveryEngine.xml
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<LiftSuggest_PriceDiscoveryEngine>
|
5 |
+
<active>true</active>
|
6 |
+
<codePool>community</codePool>
|
7 |
+
</LiftSuggest_PriceDiscoveryEngine>
|
8 |
+
</modules>
|
9 |
+
</config>
|
app/etc/modules/Pde_Placeholder.xml
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Pde_Placeholder>
|
5 |
+
<active>true</active>
|
6 |
+
<codePool>local</codePool>
|
7 |
+
</Pde_Placeholder>
|
8 |
+
</modules>
|
9 |
+
</config>
|
package.xml
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package>
|
3 |
+
<name>LiftSuggest_Price_Discovery_Engine</name>
|
4 |
+
<version>1.0.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>This extension lets you install Price Discovery Engine javascript into your site pages.</summary>
|
10 |
+
<description>Once you signup on http://www.liftsuggest.com/ for Price Discovery Engine, you are provided with a Javascript URL which needs to be installed into all your site pages. This plugin helps you to achieve this step</description>
|
11 |
+
<notes>First Version</notes>
|
12 |
+
<authors><author><name>Vishal Chawla</name><user>auto-converted</user><email>vishal@tatvic.com</email></author></authors>
|
13 |
+
<date>2013-09-06</date>
|
14 |
+
<time>11:38:47</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="LiftSuggest"><dir name="PriceDiscoveryEngine"><dir name="etc"><file name="adminhtml.xml" hash="a3e3570074b1c78445883a6d0966431d"/><file name="config.xml" hash="0117a09ecf7c117d2fb2a63f59670170"/><file name="system.xml" hash="565b3f4f5385ba84b2874c74ec004006"/></dir></dir></dir></target><target name="magelocal"><dir name="Pde"><dir name="Placeholder"><dir name="Block"><dir name="Html"><file name="Head.php" hash="4a24100fdce411e1aa03887f0c0ca0d2"/></dir></dir><dir name="etc"><file name="config.xml" hash="b944977ecf499eb6a81677326f9ebe85"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="LiftSuggest_PriceDiscoveryEngine.xml" hash="cbfcbc35f912d1f2d6670418e9c2dc1c"/><file name="Pde_Placeholder.xml" hash="08f1de4a9bf52679d7562f4ceeef0b7d"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="ls_pde.xml" hash="7dcd5a0e7f0794cdd334894d4e24f126"/></dir></dir></dir></dir></target></contents>
|
16 |
+
<compatible/>
|
17 |
+
<dependencies/>
|
18 |
+
</package>
|