Version Notes
User can select categories in admin panel for viewig button.
Download this release
Release Info
| Developer | TripleNext |
| Extension | Online_Ring_Sizer |
| Version | 1.0.0.1 |
| Comparing to | |
| See all releases | |
Code changes from version 1.0.0.0 to 1.0.0.1
- app/code/community/FMRS/Module/etc/config.xml +0 -48
- app/code/community/TripleNext/OnlineRingSizer/Helper/Data.php +5 -0
- app/code/community/TripleNext/OnlineRingSizer/Model/Categories.php +62 -0
- app/code/community/TripleNext/OnlineRingSizer/etc/adminhtml.xml +19 -0
- app/code/community/TripleNext/OnlineRingSizer/etc/config.xml +53 -0
- app/code/community/TripleNext/OnlineRingSizer/etc/system.xml +40 -0
- app/design/frontend/default/default/layout/TripleNext/OnlineRingSizer/FMRSmod.xml +21 -0
- app/design/frontend/default/default/layout/fmrs/module/FMRSmod.xml +0 -42
- app/design/frontend/default/default/template/TripleNext/OnlineRingSizer/button.phtml +22 -0
- app/design/frontend/default/default/template/{fmrs/module → TripleNext/OnlineRingSizer}/js.phtml +20 -21
- app/design/frontend/default/default/template/fmrs/module/button.phtml +0 -9
- app/etc/modules/FMRS_Module.xml +0 -40
- app/etc/modules/TripleNext_OnlineRingSizer.xml +9 -0
- package.xml +5 -5
app/code/community/FMRS/Module/etc/config.xml
DELETED
|
@@ -1,48 +0,0 @@
|
|
| 1 |
-
<?xml version="1.0"?>
|
| 2 |
-
<!--
|
| 3 |
-
/**
|
| 4 |
-
* INCHOO's FREE EXTENSION DISCLAIMER
|
| 5 |
-
*
|
| 6 |
-
* Please do not edit or add to this file if you wish to upgrade Magento
|
| 7 |
-
* or this extension to newer versions in the future.
|
| 8 |
-
*
|
| 9 |
-
* Inchoo developers (Inchooer's) give their best to conform to
|
| 10 |
-
* "non-obtrusive, best Magento practices" style of coding.
|
| 11 |
-
* However, Inchoo does not guarantee functional accuracy of specific
|
| 12 |
-
* extension behavior. Additionally we take no responsibility for any
|
| 13 |
-
* possible issue(s) resulting from extension usage.
|
| 14 |
-
*
|
| 15 |
-
* We reserve the full right not to provide any kind of support for our free extensions.
|
| 16 |
-
*
|
| 17 |
-
* You are encouraged to report a bug, if you spot any,
|
| 18 |
-
* via sending an email to bugreport@inchoo.net. However we do not guaranty
|
| 19 |
-
* fix will be released in any reasonable time, if ever,
|
| 20 |
-
* or that it will actually fix any issue resulting from it.
|
| 21 |
-
*
|
| 22 |
-
* Thank you for your understanding.
|
| 23 |
-
*/
|
| 24 |
-
|
| 25 |
-
/**
|
| 26 |
-
* @category Inchoo
|
| 27 |
-
* @package Inchoo_Prevnext
|
| 28 |
-
* @author Branko Ajzele <ajzele@gmail.com, http://foggyline.net>
|
| 29 |
-
* @copyright Inchoo <http://inchoo.net>
|
| 30 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 31 |
-
*/
|
| 32 |
-
-->
|
| 33 |
-
<config>
|
| 34 |
-
<modules>
|
| 35 |
-
<FMRS_Module>
|
| 36 |
-
<version>1.0.0.0</version>
|
| 37 |
-
</FMRS_Module>
|
| 38 |
-
</modules>
|
| 39 |
-
<frontend>
|
| 40 |
-
<layout>
|
| 41 |
-
<updates>
|
| 42 |
-
<fmrs_Module>
|
| 43 |
-
<file>fmrs/module/FMRSmod.xml</file>
|
| 44 |
-
</fmrs_Module>
|
| 45 |
-
</updates>
|
| 46 |
-
</layout>
|
| 47 |
-
</frontend>
|
| 48 |
-
</config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/TripleNext/OnlineRingSizer/Helper/Data.php
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
class TripleNext_OnlineRingSizer_Helper_Data extends Mage_Core_Helper_Abstract
|
| 3 |
+
{
|
| 4 |
+
}
|
| 5 |
+
?>
|
app/code/community/TripleNext/OnlineRingSizer/Model/Categories.php
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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_Adminhtml
|
| 23 |
+
* @copyright Copyright (c) 2012 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 |
+
* Used in creating options for Yes|No config value selection
|
| 29 |
+
*
|
| 30 |
+
*/
|
| 31 |
+
class TripleNext_OnlineRingSizer_Model_Categories
|
| 32 |
+
{
|
| 33 |
+
|
| 34 |
+
/**
|
| 35 |
+
* Options getter
|
| 36 |
+
*
|
| 37 |
+
* @return array
|
| 38 |
+
*/
|
| 39 |
+
public function toOptionArray($addEmpty = true)
|
| 40 |
+
{
|
| 41 |
+
$collection = Mage::getModel('catalog/category')->getCollection();
|
| 42 |
+
$collection->addAttributeToSelect('name')->addIsActiveFilter();
|
| 43 |
+
$options = array();
|
| 44 |
+
if ($addEmpty) {
|
| 45 |
+
$options[] = array(
|
| 46 |
+
'label' => Mage::helper('adminhtml')->__('-- Please Select --'),
|
| 47 |
+
'value' => ''
|
| 48 |
+
);
|
| 49 |
+
}
|
| 50 |
+
foreach ($collection as $category) {
|
| 51 |
+
if ($category->getName() != "") { // to skip blank category name
|
| 52 |
+
$options[] = array(
|
| 53 |
+
'label' => $category->getName(),
|
| 54 |
+
'value' => $category->getId()
|
| 55 |
+
);
|
| 56 |
+
}
|
| 57 |
+
}
|
| 58 |
+
|
| 59 |
+
return $options;
|
| 60 |
+
}
|
| 61 |
+
|
| 62 |
+
}
|
app/code/community/TripleNext/OnlineRingSizer/etc/adminhtml.xml
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<acl>
|
| 2 |
+
<resources>
|
| 3 |
+
<admin>
|
| 4 |
+
<children>
|
| 5 |
+
<system>
|
| 6 |
+
<children>
|
| 7 |
+
<config>
|
| 8 |
+
<children>
|
| 9 |
+
<my_section>
|
| 10 |
+
<title>My Section</title>
|
| 11 |
+
</my_section>
|
| 12 |
+
</children>
|
| 13 |
+
</config>
|
| 14 |
+
</children>
|
| 15 |
+
</system>
|
| 16 |
+
</children>
|
| 17 |
+
</admin>
|
| 18 |
+
</resources>
|
| 19 |
+
</acl>
|
app/code/community/TripleNext/OnlineRingSizer/etc/config.xml
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<config>
|
| 3 |
+
<modules>
|
| 4 |
+
<TripleNext_OnlineRingSizer>
|
| 5 |
+
<version>1.0.0.1</version>
|
| 6 |
+
</TripleNext_OnlineRingSizer>
|
| 7 |
+
</modules>
|
| 8 |
+
<global>
|
| 9 |
+
<helpers>
|
| 10 |
+
<onlineringsizer>
|
| 11 |
+
<class>TripleNext_OnlineRingSizer_Helper</class>
|
| 12 |
+
</onlineringsizer>
|
| 13 |
+
</helpers>
|
| 14 |
+
<models>
|
| 15 |
+
<!-- ... -->
|
| 16 |
+
<onlineringsizer>
|
| 17 |
+
<class>TripleNext_OnlineRingSizer_Model</class>
|
| 18 |
+
</onlineringsizer>
|
| 19 |
+
<!-- ... -->
|
| 20 |
+
</models>
|
| 21 |
+
</global>
|
| 22 |
+
<frontend>
|
| 23 |
+
<layout>
|
| 24 |
+
<updates>
|
| 25 |
+
<TripleNext_OnlineRingSizer>
|
| 26 |
+
<file>TripleNext/OnlineRingSizer/FMRSmod.xml</file>
|
| 27 |
+
</TripleNext_OnlineRingSizer>
|
| 28 |
+
</updates>
|
| 29 |
+
</layout>
|
| 30 |
+
</frontend>
|
| 31 |
+
<adminhtml>
|
| 32 |
+
<acl>
|
| 33 |
+
<resources>
|
| 34 |
+
<admin>
|
| 35 |
+
<children>
|
| 36 |
+
<system>
|
| 37 |
+
<children>
|
| 38 |
+
<config>
|
| 39 |
+
<children>
|
| 40 |
+
<my_section>
|
| 41 |
+
<title>My Section</title>
|
| 42 |
+
</my_section>
|
| 43 |
+
</children>
|
| 44 |
+
</config>
|
| 45 |
+
</children>
|
| 46 |
+
</system>
|
| 47 |
+
</children>
|
| 48 |
+
</admin>
|
| 49 |
+
</resources>
|
| 50 |
+
</acl>
|
| 51 |
+
</adminhtml>
|
| 52 |
+
|
| 53 |
+
</config>
|
app/code/community/TripleNext/OnlineRingSizer/etc/system.xml
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<config>
|
| 2 |
+
<tabs>
|
| 3 |
+
<sizerconfig module="onlineringsizer">>
|
| 4 |
+
<label>Online Ring Sizer</label>
|
| 5 |
+
<sort_order>100000</sort_order>
|
| 6 |
+
</sizerconfig>
|
| 7 |
+
</tabs>
|
| 8 |
+
<sections>
|
| 9 |
+
<my_section translate="label">
|
| 10 |
+
<label>Select Categories</label>
|
| 11 |
+
<tab>sizerconfig</tab>
|
| 12 |
+
<frontend_type></frontend_type>
|
| 13 |
+
<sort_order>910</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 |
+
<categories_group translate="label">
|
| 19 |
+
<label>Categories Group</label>
|
| 20 |
+
<sort_order>4</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 |
+
<category>
|
| 26 |
+
<label>Active Categories (Categories where Ring Sizer button will be visible)</label>
|
| 27 |
+
<frontend_type>multiselect</frontend_type>
|
| 28 |
+
<!-- adding a source model-->
|
| 29 |
+
<source_model>TripleNext_OnlineRingSizer_Model_Categories</source_model>
|
| 30 |
+
<sort_order>1</sort_order>
|
| 31 |
+
<show_in_default>1</show_in_default>
|
| 32 |
+
<show_in_website>1</show_in_website>
|
| 33 |
+
<show_in_store>1</show_in_store>
|
| 34 |
+
</category>
|
| 35 |
+
</fields>
|
| 36 |
+
</categories_group>
|
| 37 |
+
</groups>
|
| 38 |
+
</my_section>
|
| 39 |
+
</sections>
|
| 40 |
+
</config>
|
app/design/frontend/default/default/layout/TripleNext/OnlineRingSizer/FMRSmod.xml
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<layout version="0.1.0">
|
| 3 |
+
<catalog_product_view>
|
| 4 |
+
<reference name="head">
|
| 5 |
+
<block type="core/text" name="google.cdn.jquery">
|
| 6 |
+
<action method="setText">
|
| 7 |
+
<text>
|
| 8 |
+
<![CDATA[<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script><script type="text/javascript">jQuery.noConflict();</script>]]>
|
| 9 |
+
</text>
|
| 10 |
+
</action>
|
| 11 |
+
</block>
|
| 12 |
+
<block type="core/template" name="fmrs_module_js" template="TripleNext/OnlineRingSizer/js.phtml" before="-" />
|
| 13 |
+
</reference>
|
| 14 |
+
<reference name="head">
|
| 15 |
+
<action method="addJs"><script>folder/file.js</script></action>
|
| 16 |
+
</reference>
|
| 17 |
+
<reference name="alert.urls">
|
| 18 |
+
<block type="core/template" name="fmrs_module_button" template="TripleNext/OnlineRingSizer/button.phtml" before="-" />
|
| 19 |
+
</reference>
|
| 20 |
+
</catalog_product_view>
|
| 21 |
+
</layout>
|
app/design/frontend/default/default/layout/fmrs/module/FMRSmod.xml
DELETED
|
@@ -1,42 +0,0 @@
|
|
| 1 |
-
<?xml version="1.0"?>
|
| 2 |
-
<!--
|
| 3 |
-
/**
|
| 4 |
-
* INCHOO's FREE EXTENSION DISCLAIMER
|
| 5 |
-
*
|
| 6 |
-
* Please do not edit or add to this file if you wish to upgrade Magento
|
| 7 |
-
* or this extension to newer versions in the future.
|
| 8 |
-
*
|
| 9 |
-
* Inchoo developers (Inchooer's) give their best to conform to
|
| 10 |
-
* "non-obtrusive, best Magento practices" style of coding.
|
| 11 |
-
* However, Inchoo does not guarantee functional accuracy of specific
|
| 12 |
-
* extension behavior. Additionally we take no responsibility for any
|
| 13 |
-
* possible issue(s) resulting from extension usage.
|
| 14 |
-
*
|
| 15 |
-
* We reserve the full right not to provide any kind of support for our free extensions.
|
| 16 |
-
*
|
| 17 |
-
* You are encouraged to report a bug, if you spot any,
|
| 18 |
-
* via sending an email to bugreport@inchoo.net. However we do not guaranty
|
| 19 |
-
* fix will be released in any reasonable time, if ever,
|
| 20 |
-
* or that it will actually fix any issue resulting from it.
|
| 21 |
-
*
|
| 22 |
-
* Thank you for your understanding.
|
| 23 |
-
*/
|
| 24 |
-
|
| 25 |
-
/**
|
| 26 |
-
* @category Inchoo
|
| 27 |
-
* @package Inchoo_Prevnext
|
| 28 |
-
* @author Branko Ajzele <ajzele@gmail.com, http://foggyline.net>
|
| 29 |
-
* @copyright Inchoo <http://inchoo.net>
|
| 30 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 31 |
-
*/
|
| 32 |
-
-->
|
| 33 |
-
<layout version="0.1.0">
|
| 34 |
-
<catalog_product_view>
|
| 35 |
-
<reference name="before_body_end">
|
| 36 |
-
<block type="core/template" name="fmrs_module_js" template="fmrs/module/js.phtml" before="-" />
|
| 37 |
-
</reference>
|
| 38 |
-
<reference name="alert.urls">
|
| 39 |
-
<block type="core/template" name="fmrs_module_button" template="fmrs/module/button.phtml" before="-" />
|
| 40 |
-
</reference>
|
| 41 |
-
</catalog_product_view>
|
| 42 |
-
</layout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/default/default/template/TripleNext/OnlineRingSizer/button.phtml
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php $_product = Mage::registry('current_product') ?>
|
| 2 |
+
|
| 3 |
+
<?php $curProductCategoryIds = $_product->getCategoryIds() ?>
|
| 4 |
+
|
| 5 |
+
<?php $selectedCategoryIds = (Mage::getStoreConfig('my_section/categories_group/category'))//Ids of selected category in System->Configuration?>
|
| 6 |
+
|
| 7 |
+
<?php $selCategoryIds = explode(",", $selectedCategoryIds); ?>
|
| 8 |
+
|
| 9 |
+
<?php foreach($curProductCategoryIds as $curProductCategoryId) {?>
|
| 10 |
+
|
| 11 |
+
<?php foreach($selCategoryIds as $selCategoryId) {?>
|
| 12 |
+
|
| 13 |
+
<?php if ($curProductCategoryId == $selCategoryId): ?>
|
| 14 |
+
<!--this is your button -->
|
| 15 |
+
<!--FMRS-BUTTON:BEGIN-->
|
| 16 |
+
<link href='http://static.findmyringsize.com/shared/buttons/fmrs-buttons.css' rel='stylesheet' type='text/css' />
|
| 17 |
+
<a id='ringsizer' class='fmrs-bsize-l fmrs-bdes-bl9 fmrs-button-host' alt='Find Your Ring Size' href='http://sizer.findmyringsize.com' target='_blank' >Find Your Ring Size</a>
|
| 18 |
+
<!--FMRS-BUTTON:END-->
|
| 19 |
+
|
| 20 |
+
<?php break;endif; ?>
|
| 21 |
+
<?php }?>
|
| 22 |
+
<?php }?>
|
app/design/frontend/default/default/template/{fmrs/module → TripleNext/OnlineRingSizer}/js.phtml
RENAMED
|
@@ -1,21 +1,20 @@
|
|
| 1 |
-
<?php $_product = Mage::registry('current_product') ?>
|
| 2 |
-
|
| 3 |
-
<!--
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
'
|
| 13 |
-
'
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
<?php endif; ?>
|
| 1 |
+
<?php $_product = Mage::registry('current_product') ?><?php $curProductCategoryIds = $_product->getCategoryIds() ?><?php $selectedCategoryIds = (Mage::getStoreConfig('my_section/categories_group/category'))//Ids of selected category in System->Configuration?><?php $selCategoryIds = explode(",", $selectedCategoryIds); ?><?php foreach($curProductCategoryIds as $curProductCategoryId) {?><?php foreach($selCategoryIds as $selCategoryId) {?><?php if ($curProductCategoryId == $selCategoryId): ?>
|
| 2 |
+
<!--this is your pop-up ring sizer magic : put this on the bottom of your page before your <\body> tag -->
|
| 3 |
+
<!--FMRS-POPUP:BEGIN -->
|
| 4 |
+
<script type='text/javascript'>
|
| 5 |
+
var host = (("https:" == document.location.protocol) ? "https://" : "http://"); document.write(unescape("%3Cscript src='" + host + "findmyringsize.com/Shared/Embed/fmrs-1.0.js' type='text/javascript'%3E%3C/script%3E"));
|
| 6 |
+
</script>
|
| 7 |
+
|
| 8 |
+
<script>
|
| 9 |
+
var ringsizer = new FMRS();
|
| 10 |
+
ringsizer.initialize({
|
| 11 |
+
'client': 'sizer',
|
| 12 |
+
'mode': 'overlay',
|
| 13 |
+
'overlaySettings': { boxTheme: 'facebook', shadowOverlay: true }
|
| 14 |
+
});
|
| 15 |
+
ringsizer.bind();
|
| 16 |
+
</script>
|
| 17 |
+
|
| 18 |
+
<!--FMRS-POPUP:END-->
|
| 19 |
+
|
| 20 |
+
<?php break;endif; ?><?php }?><?php }?>
|
|
|
app/design/frontend/default/default/template/fmrs/module/button.phtml
DELETED
|
@@ -1,9 +0,0 @@
|
|
| 1 |
-
<?php $_product = Mage::registry('current_product') ?>
|
| 2 |
-
<?php if ($_product && $_product->getId()): ?>
|
| 3 |
-
<!--this is your button -->
|
| 4 |
-
<!--FMRS-BUTTON:BEGIN-->
|
| 5 |
-
<link href='http://static.findmyringsize.com/shared/buttons/fmrs-buttons.css' rel='stylesheet' type='text/css' />
|
| 6 |
-
<a id='ringsizer' class='fmrs-bsize-l fmrs-bdes-bl9 fmrs-button-host' alt='Find Your Ring Size' href='http://sizer.findmyringsize.com' target='_blank' >Find Your Ring Size</a>
|
| 7 |
-
<!--FMRS-BUTTON:END-->
|
| 8 |
-
|
| 9 |
-
<?php endif; ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/etc/modules/FMRS_Module.xml
DELETED
|
@@ -1,40 +0,0 @@
|
|
| 1 |
-
<?xml version="1.0"?>
|
| 2 |
-
<!--
|
| 3 |
-
/**
|
| 4 |
-
* INCHOO's FREE EXTENSION DISCLAIMER
|
| 5 |
-
*
|
| 6 |
-
* Please do not edit or add to this file if you wish to upgrade Magento
|
| 7 |
-
* or this extension to newer versions in the future.
|
| 8 |
-
*
|
| 9 |
-
* Inchoo developers (Inchooer's) give their best to conform to
|
| 10 |
-
* "non-obtrusive, best Magento practices" style of coding.
|
| 11 |
-
* However, Inchoo does not guarantee functional accuracy of specific
|
| 12 |
-
* extension behavior. Additionally we take no responsibility for any
|
| 13 |
-
* possible issue(s) resulting from extension usage.
|
| 14 |
-
*
|
| 15 |
-
* We reserve the full right not to provide any kind of support for our free extensions.
|
| 16 |
-
*
|
| 17 |
-
* You are encouraged to report a bug, if you spot any,
|
| 18 |
-
* via sending an email to bugreport@inchoo.net. However we do not guaranty
|
| 19 |
-
* fix will be released in any reasonable time, if ever,
|
| 20 |
-
* or that it will actually fix any issue resulting from it.
|
| 21 |
-
*
|
| 22 |
-
* Thank you for your understanding.
|
| 23 |
-
*/
|
| 24 |
-
|
| 25 |
-
/**
|
| 26 |
-
* @category Inchoo
|
| 27 |
-
* @package Inchoo_Prevnext
|
| 28 |
-
* @author Branko Ajzele <ajzele@gmail.com>
|
| 29 |
-
* @copyright Inchoo <http://inchoo.net>
|
| 30 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 31 |
-
*/
|
| 32 |
-
-->
|
| 33 |
-
<config>
|
| 34 |
-
<modules>
|
| 35 |
-
<FMRS_Module>
|
| 36 |
-
<active>true</active>
|
| 37 |
-
<codePool>community</codePool>
|
| 38 |
-
</FMRS_Module>
|
| 39 |
-
</modules>
|
| 40 |
-
</config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/etc/modules/TripleNext_OnlineRingSizer.xml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<config>
|
| 3 |
+
<modules>
|
| 4 |
+
<TripleNext_OnlineRingSizer>
|
| 5 |
+
<active>true</active>
|
| 6 |
+
<codePool>community</codePool>
|
| 7 |
+
</TripleNext_OnlineRingSizer>
|
| 8 |
+
</modules>
|
| 9 |
+
</config>
|
package.xml
CHANGED
|
@@ -1,18 +1,18 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Online_Ring_Sizer</name>
|
| 4 |
-
<version>1.0.0.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://findmyringsize.com/en/Info/TermsAndConditions.aspx">OSL v3.0</license>
|
| 7 |
<channel>community</channel>
|
| 8 |
<extends/>
|
| 9 |
<summary>A simple on display ring sizer widget that let your customers find their ring size online</summary>
|
| 10 |
<description>FindMyRingSize is a unique On Display Ring Sizer. Our unique technology offers a simple, reliable and highly accurate solution for online jewelry customers to find their ring size. It's an intuitive process, which takes less than a minute.</description>
|
| 11 |
-
<notes>
|
| 12 |
<authors><author><name>TripleNext</name><user>triplenext</user><email>ev@triplenext.com</email></author></authors>
|
| 13 |
-
<date>2013-
|
| 14 |
-
<time>
|
| 15 |
-
<contents><target name="
|
| 16 |
<compatible/>
|
| 17 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
| 18 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Online_Ring_Sizer</name>
|
| 4 |
+
<version>1.0.0.1</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://findmyringsize.com/en/Info/TermsAndConditions.aspx">OSL v3.0</license>
|
| 7 |
<channel>community</channel>
|
| 8 |
<extends/>
|
| 9 |
<summary>A simple on display ring sizer widget that let your customers find their ring size online</summary>
|
| 10 |
<description>FindMyRingSize is a unique On Display Ring Sizer. Our unique technology offers a simple, reliable and highly accurate solution for online jewelry customers to find their ring size. It's an intuitive process, which takes less than a minute.</description>
|
| 11 |
+
<notes>User can select categories in admin panel for viewig button.</notes>
|
| 12 |
<authors><author><name>TripleNext</name><user>triplenext</user><email>ev@triplenext.com</email></author></authors>
|
| 13 |
+
<date>2013-08-12</date>
|
| 14 |
+
<time>08:35:18</time>
|
| 15 |
+
<contents><target name="magecommunity"><dir name="TripleNext"><dir name="OnlineRingSizer"><dir name="etc"><file name="config.xml" hash="eb1d9724ca0249133fc82a6021122ba0"/><file name="system.xml" hash="a3eb2103424f0a75a54b17bfc3469801"/><file name="adminhtml.xml" hash="9bc4c7cc422ecf059757b7fc97f619ce"/></dir><dir name="Helper"><file name="Data.php" hash="a40e9f10f180b266efcae390590f3b76"/></dir><dir name="Model"><file name="Categories.php" hash="9c06b0a6d8a51ab9a0d026c8541b66d6"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="TripleNext_OnlineRingSizer.xml" hash="b421e9c14e473a46a10968ea6e176412"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="TripleNext"><dir name="OnlineRingSizer"><file name="button.phtml" hash="1128c16c2ae6a115b51e99674aa44d66"/><file name="js.phtml" hash="55788d4062e2eb80e1a36a51aea58ac4"/></dir></dir></dir><dir name="layout"><dir name="TripleNext"><dir name="OnlineRingSizer"><file name="FMRSmod.xml" hash="6109f74629271dc141bbecdc9ea137fc"/></dir></dir></dir></dir></dir></dir></target></contents>
|
| 16 |
<compatible/>
|
| 17 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
| 18 |
</package>
|
