Version Notes
Notes
Download this release
Release Info
| Developer | Oct8ne |
| Extension | LetsSyncroLLC_Oct8ne |
| Version | 1.1.2 |
| Comparing to | |
| See all releases | |
Code changes from version 1.1.1 to 1.1.2
- app/code/community/LetsSyncroLLC/Oct8ne/Model/Observer.php +125 -117
- app/code/community/LetsSyncroLLC/Oct8ne/controllers/AccountController.php +49 -0
- app/code/community/LetsSyncroLLC/Oct8ne/etc/config.xml +15 -2
- app/code/community/LetsSyncroLLC/Oct8ne/etc/system.xml +39 -0
- app/design/frontend/default/oct8ne/template/page/1column.phtml +46 -0
- app/design/frontend/default/oct8ne/template/page/2columns-left.phtml +46 -0
- app/design/frontend/default/oct8ne/template/page/2columns-right.phtml +46 -0
- app/design/frontend/default/oct8ne/template/page/3columns.phtml +46 -0
- app/etc/modules/LetsSyncroLLC_Oct8ne.xml +7 -1
- package.xml +166 -4
app/code/community/LetsSyncroLLC/Oct8ne/Model/Observer.php
CHANGED
|
@@ -1,117 +1,125 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
|
| 3 |
-
class LetsSyncroLLC_Oct8ne_Model_Observer
|
| 4 |
-
{
|
| 5 |
-
public function interceptMethod($observer)
|
| 6 |
-
{
|
| 7 |
-
$request = $observer->getEvent()->getData('front')->getRequest();
|
| 8 |
-
|
| 9 |
-
if(isset($request->oct8ne))
|
| 10 |
-
{
|
| 11 |
-
Mage::
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
)
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
);
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
class LetsSyncroLLC_Oct8ne_Model_Observer
|
| 4 |
+
{
|
| 5 |
+
public function interceptMethod($observer)
|
| 6 |
+
{
|
| 7 |
+
$request = $observer->getEvent()->getData('front')->getRequest();
|
| 8 |
+
|
| 9 |
+
if(isset($request->oct8ne))
|
| 10 |
+
{
|
| 11 |
+
$package = Mage::getStoreConfig('design/oct8nedesign/package');
|
| 12 |
+
$theme = Mage::getStoreConfig('design/oct8nedesign/theme');
|
| 13 |
+
|
| 14 |
+
if(empty($package))
|
| 15 |
+
$package = "default";
|
| 16 |
+
|
| 17 |
+
if(empty($theme))
|
| 18 |
+
$theme = "oct8ne";
|
| 19 |
+
|
| 20 |
+
Mage::getDesign()->setPackageName($package);
|
| 21 |
+
Mage::getDesign()->setTheme($theme);
|
| 22 |
+
Mage::register('oct8ne', 1);
|
| 23 |
+
// Mage::getModel('core/url')->setRouteParam('oct8ne', 1);
|
| 24 |
+
}
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
public function layoutRenderBefore($observer)
|
| 28 |
+
{
|
| 29 |
+
$session = Mage::getSingleton('core/session');
|
| 30 |
+
$logged_in = $session->getData("notify_oct8ne", null);
|
| 31 |
+
if(!is_null($logged_in))
|
| 32 |
+
{
|
| 33 |
+
$customer = Mage::getSingleton('customer/session')->getCustomer();
|
| 34 |
+
|
| 35 |
+
$session->unsetData("notify_oct8ne");
|
| 36 |
+
$layout = Mage::getSingleton('core/layout');
|
| 37 |
+
|
| 38 |
+
$head = $layout->getBlock('root')->getChild('head');
|
| 39 |
+
if (is_object($head)) {
|
| 40 |
+
$head->addItem("script", "oct8ne-notify", <<<EOT
|
| 41 |
+
function lookForOct8neIFrameLoaded() {
|
| 42 |
+
var iframe = document.getElementById( 'oct8ne-iframe-return' );
|
| 43 |
+
if ( iframe == null )
|
| 44 |
+
setTimeout( 'lookForOct8neIFrameLoaded()', 500 );
|
| 45 |
+
else {
|
| 46 |
+
var post_data = {
|
| 47 |
+
user: {
|
| 48 |
+
id: {$customer->getId()},
|
| 49 |
+
firstName: "{$customer->getFirstname()}",
|
| 50 |
+
lastName: "{$customer->getLastname()}",
|
| 51 |
+
email: "{$customer->getEmail()}"
|
| 52 |
+
}
|
| 53 |
+
};
|
| 54 |
+
iframe.contentWindow.postMessage( JSON.stringify(post_data), '*' );
|
| 55 |
+
}
|
| 56 |
+
};
|
| 57 |
+
lookForOct8neIFrameLoaded();
|
| 58 |
+
EOT
|
| 59 |
+
);
|
| 60 |
+
|
| 61 |
+
}
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
$logged_out = $session->getData("notify_oct8ne_logout", null);
|
| 65 |
+
if(!is_null($logged_out))
|
| 66 |
+
{
|
| 67 |
+
// $customer = Mage::getSingleton('customer/session')->getCustomer();
|
| 68 |
+
|
| 69 |
+
$session->unsetData("notify_oct8ne_logout");
|
| 70 |
+
$layout = Mage::getSingleton('core/layout');
|
| 71 |
+
|
| 72 |
+
$head = $layout->getBlock('root')->getChild('head');
|
| 73 |
+
if (is_object($head)) {
|
| 74 |
+
$head->addItem("script", "oct8ne-notify", <<<EOT
|
| 75 |
+
function lookForOct8neIFrameLoaded() {
|
| 76 |
+
var iframe = document.getElementById( 'oct8ne-iframe-return' );
|
| 77 |
+
if ( iframe == null )
|
| 78 |
+
setTimeout( 'lookForOct8neIFrameLoaded()', 500 );
|
| 79 |
+
else
|
| 80 |
+
iframe.contentWindow.postMessage( 'logout', '*' );
|
| 81 |
+
}
|
| 82 |
+
lookForOct8neIFrameLoaded();
|
| 83 |
+
EOT
|
| 84 |
+
);
|
| 85 |
+
|
| 86 |
+
}
|
| 87 |
+
}
|
| 88 |
+
}
|
| 89 |
+
|
| 90 |
+
/**
|
| 91 |
+
* Get checkout session model instance
|
| 92 |
+
*
|
| 93 |
+
* @return Mage_Checkout_Model_Session
|
| 94 |
+
*/
|
| 95 |
+
protected function _getSession() { return Mage::getSingleton('checkout/session'); }
|
| 96 |
+
|
| 97 |
+
public function placeOrderBefore($observer)
|
| 98 |
+
{
|
| 99 |
+
$order = $observer->getEvent()->getOrder();
|
| 100 |
+
$oct8ne_products = $this->_getSession()->getOct8neProducts();
|
| 101 |
+
if(!is_array($oct8ne_products))
|
| 102 |
+
$oct8ne_products = array();
|
| 103 |
+
|
| 104 |
+
$items = $order->getAllItems();
|
| 105 |
+
foreach($items as $item)
|
| 106 |
+
{
|
| 107 |
+
$product = $item->getProduct();
|
| 108 |
+
/*
|
| 109 |
+
foreach($oct8ne_products as $op)
|
| 110 |
+
{
|
| 111 |
+
$found = false;
|
| 112 |
+
if($op->getId() == $product->getId())
|
| 113 |
+
$found = true;
|
| 114 |
+
}
|
| 115 |
+
*/
|
| 116 |
+
$found = in_array($product->getId(), $oct8ne_products);
|
| 117 |
+
|
| 118 |
+
$model = Mage::getModel('oct8ne/orderproducts');
|
| 119 |
+
$model->setOrderId($order->getId());
|
| 120 |
+
$model->setProductId($product->getId());
|
| 121 |
+
$model->setOct8ne($found?'Y':'N');
|
| 122 |
+
$model->save();
|
| 123 |
+
}
|
| 124 |
+
}
|
| 125 |
+
}
|
app/code/community/LetsSyncroLLC/Oct8ne/controllers/AccountController.php
CHANGED
|
@@ -45,6 +45,55 @@ EOT;
|
|
| 45 |
parent::_loginPostRedirect();
|
| 46 |
}
|
| 47 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
|
| 49 |
/**
|
| 50 |
* Customer logout action
|
| 45 |
parent::_loginPostRedirect();
|
| 46 |
}
|
| 47 |
}
|
| 48 |
+
|
| 49 |
+
/**
|
| 50 |
+
* Add welcome message and send new account email.
|
| 51 |
+
* Returns success URL
|
| 52 |
+
*
|
| 53 |
+
* @param Mage_Customer_Model_Customer $customer
|
| 54 |
+
* @param bool $isJustConfirmed
|
| 55 |
+
* @return string
|
| 56 |
+
*/
|
| 57 |
+
protected function _welcomeCustomer(Mage_Customer_Model_Customer $customer, $isJustConfirmed = false)
|
| 58 |
+
{
|
| 59 |
+
if(!is_null(Mage::registry('oct8ne')))
|
| 60 |
+
{
|
| 61 |
+
/*
|
| 62 |
+
// die("login!!!");
|
| 63 |
+
|
| 64 |
+
*/
|
| 65 |
+
if(Mage::getSingleton('customer/session')->isLoggedIn())
|
| 66 |
+
{
|
| 67 |
+
echo <<< EOT
|
| 68 |
+
<h2 class="add2cart-msg">Logged in</h2>
|
| 69 |
+
|
| 70 |
+
<script type="text/javascript">
|
| 71 |
+
parent.postMessage("loginOK", "*");
|
| 72 |
+
</script>
|
| 73 |
+
EOT;
|
| 74 |
+
die();
|
| 75 |
+
}
|
| 76 |
+
|
| 77 |
+
}
|
| 78 |
+
else
|
| 79 |
+
{
|
| 80 |
+
if(Mage::getSingleton('customer/session')->isLoggedIn()) {
|
| 81 |
+
|
| 82 |
+
$session = Mage::getSingleton('core/session');
|
| 83 |
+
$customerData = Mage::getSingleton('customer/session')->getCustomer();
|
| 84 |
+
$url = $session->getBeforeAuthUrl();
|
| 85 |
+
// if(substr($url, -24) == '/checkout/onepage/index/') <<------------------ activar esto para notificar sólamente en el checkout
|
| 86 |
+
//Mage::register("notify_oct8ne", $customerData->getId());
|
| 87 |
+
$session->setData("notify_oct8ne", $customerData->getId());
|
| 88 |
+
}
|
| 89 |
+
|
| 90 |
+
|
| 91 |
+
// ent::_loginPostRedirect();
|
| 92 |
+
|
| 93 |
+
}
|
| 94 |
+
|
| 95 |
+
return parent::_welcomeCustomer($customer, $isJustConfirmed);
|
| 96 |
+
}
|
| 97 |
|
| 98 |
/**
|
| 99 |
* Customer logout action
|
app/code/community/LetsSyncroLLC/Oct8ne/etc/config.xml
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
<config>
|
| 3 |
<modules>
|
| 4 |
<LetsSyncroLLC_Oct8ne>
|
| 5 |
-
<version>1.1.
|
| 6 |
</LetsSyncroLLC_Oct8ne>
|
| 7 |
</modules>
|
| 8 |
<global>
|
|
@@ -208,9 +208,22 @@
|
|
| 208 |
</syncrodata>-->
|
| 209 |
</children>
|
| 210 |
</oct8ne>
|
| 211 |
-
|
| 212 |
</admin>
|
|
|
|
| 213 |
</resources>
|
|
|
|
|
|
|
| 214 |
</acl>
|
| 215 |
</adminhtml>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 216 |
</config>
|
|
|
| 2 |
<config>
|
| 3 |
<modules>
|
| 4 |
<LetsSyncroLLC_Oct8ne>
|
| 5 |
+
<version>1.1.2</version>
|
| 6 |
</LetsSyncroLLC_Oct8ne>
|
| 7 |
</modules>
|
| 8 |
<global>
|
| 208 |
</syncrodata>-->
|
| 209 |
</children>
|
| 210 |
</oct8ne>
|
| 211 |
+
</children>
|
| 212 |
</admin>
|
| 213 |
+
|
| 214 |
</resources>
|
| 215 |
+
|
| 216 |
+
|
| 217 |
</acl>
|
| 218 |
</adminhtml>
|
| 219 |
+
|
| 220 |
+
<default>
|
| 221 |
+
<design>
|
| 222 |
+
<oct8nedesign>
|
| 223 |
+
<package>default</package>
|
| 224 |
+
<theme>oct8ne</theme>
|
| 225 |
+
</oct8nedesign>
|
| 226 |
+
</design>
|
| 227 |
+
</default>
|
| 228 |
</config>
|
| 229 |
+
|
app/code/community/LetsSyncroLLC/Oct8ne/etc/system.xml
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<config>
|
| 3 |
+
<sections>
|
| 4 |
+
<design>
|
| 5 |
+
<groups>
|
| 6 |
+
<oct8nedesign translate="label">
|
| 7 |
+
<label>Oct8ne Design</label>
|
| 8 |
+
<frontend_type>text</frontend_type>
|
| 9 |
+
<sort_order>1</sort_order>
|
| 10 |
+
<show_in_default>1</show_in_default>
|
| 11 |
+
<show_in_website>1</show_in_website>
|
| 12 |
+
<show_in_store>1</show_in_store>
|
| 13 |
+
<fields>
|
| 14 |
+
<package translate="label">
|
| 15 |
+
<label>Package Name</label>
|
| 16 |
+
<frontend_type>text</frontend_type>
|
| 17 |
+
<backend_model>adminhtml/system_config_backend_design_package</backend_model>
|
| 18 |
+
<sort_order>1</sort_order>
|
| 19 |
+
<show_in_default>1</show_in_default>
|
| 20 |
+
<show_in_website>1</show_in_website>
|
| 21 |
+
<show_in_store>1</show_in_store>
|
| 22 |
+
</package>
|
| 23 |
+
|
| 24 |
+
<theme translate="label">
|
| 25 |
+
<label>Theme</label>
|
| 26 |
+
<frontend_type>text</frontend_type>
|
| 27 |
+
<sort_order>10</sort_order>
|
| 28 |
+
<show_in_default>1</show_in_default>
|
| 29 |
+
<show_in_website>1</show_in_website>
|
| 30 |
+
<show_in_store>1</show_in_store>
|
| 31 |
+
</theme>
|
| 32 |
+
</fields>
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
</oct8nedesign>
|
| 36 |
+
</groups>
|
| 37 |
+
</design>
|
| 38 |
+
</sections>
|
| 39 |
+
</config>
|
app/design/frontend/default/oct8ne/template/page/1column.phtml
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Magento
|
| 4 |
+
*
|
| 5 |
+
* NOTICE OF LICENSE
|
| 6 |
+
*
|
| 7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
| 8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
| 9 |
+
* It is also available through the world-wide-web at this URL:
|
| 10 |
+
* http://opensource.org/licenses/afl-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 design
|
| 22 |
+
* @package base_default
|
| 23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
| 24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
| 25 |
+
*/
|
| 26 |
+
?>
|
| 27 |
+
<?php
|
| 28 |
+
/**
|
| 29 |
+
* Template for Mage_Page_Block_Html
|
| 30 |
+
*/
|
| 31 |
+
?>
|
| 32 |
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
| 33 |
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->getLang() ?>" lang="<?php echo $this->getLang() ?>">
|
| 34 |
+
<head>
|
| 35 |
+
<?php echo $this->getChildHtml('head') ?>
|
| 36 |
+
</head>
|
| 37 |
+
<body class="page-empty <?php echo $this->getBodyClass()?$this->getBodyClass():'' ?>">
|
| 38 |
+
<div>
|
| 39 |
+
<?php echo $this->getChildHtml('after_body_start') ?>
|
| 40 |
+
<?php echo $this->getChildHtml('global_messages') ?>
|
| 41 |
+
<?php echo $this->getChildHtml('content') ?>
|
| 42 |
+
<?php echo $this->getChildHtml('before_body_end') ?>
|
| 43 |
+
<?php echo $this->getAbsoluteFooter() ?>
|
| 44 |
+
</div>
|
| 45 |
+
</body>
|
| 46 |
+
</html>
|
app/design/frontend/default/oct8ne/template/page/2columns-left.phtml
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Magento
|
| 4 |
+
*
|
| 5 |
+
* NOTICE OF LICENSE
|
| 6 |
+
*
|
| 7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
| 8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
| 9 |
+
* It is also available through the world-wide-web at this URL:
|
| 10 |
+
* http://opensource.org/licenses/afl-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 design
|
| 22 |
+
* @package base_default
|
| 23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
| 24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
| 25 |
+
*/
|
| 26 |
+
?>
|
| 27 |
+
<?php
|
| 28 |
+
/**
|
| 29 |
+
* Template for Mage_Page_Block_Html
|
| 30 |
+
*/
|
| 31 |
+
?>
|
| 32 |
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
| 33 |
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->getLang() ?>" lang="<?php echo $this->getLang() ?>">
|
| 34 |
+
<head>
|
| 35 |
+
<?php echo $this->getChildHtml('head') ?>
|
| 36 |
+
</head>
|
| 37 |
+
<body class="page-empty <?php echo $this->getBodyClass()?$this->getBodyClass():'' ?>">
|
| 38 |
+
<div>
|
| 39 |
+
<?php echo $this->getChildHtml('after_body_start') ?>
|
| 40 |
+
<?php echo $this->getChildHtml('global_messages') ?>
|
| 41 |
+
<?php echo $this->getChildHtml('content') ?>
|
| 42 |
+
<?php echo $this->getChildHtml('before_body_end') ?>
|
| 43 |
+
<?php echo $this->getAbsoluteFooter() ?>
|
| 44 |
+
</div>
|
| 45 |
+
</body>
|
| 46 |
+
</html>
|
app/design/frontend/default/oct8ne/template/page/2columns-right.phtml
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Magento
|
| 4 |
+
*
|
| 5 |
+
* NOTICE OF LICENSE
|
| 6 |
+
*
|
| 7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
| 8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
| 9 |
+
* It is also available through the world-wide-web at this URL:
|
| 10 |
+
* http://opensource.org/licenses/afl-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 design
|
| 22 |
+
* @package base_default
|
| 23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
| 24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
| 25 |
+
*/
|
| 26 |
+
?>
|
| 27 |
+
<?php
|
| 28 |
+
/**
|
| 29 |
+
* Template for Mage_Page_Block_Html
|
| 30 |
+
*/
|
| 31 |
+
?>
|
| 32 |
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
| 33 |
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->getLang() ?>" lang="<?php echo $this->getLang() ?>">
|
| 34 |
+
<head>
|
| 35 |
+
<?php echo $this->getChildHtml('head') ?>
|
| 36 |
+
</head>
|
| 37 |
+
<body class="page-empty <?php echo $this->getBodyClass()?$this->getBodyClass():'' ?>">
|
| 38 |
+
<div>
|
| 39 |
+
<?php echo $this->getChildHtml('after_body_start') ?>
|
| 40 |
+
<?php echo $this->getChildHtml('global_messages') ?>
|
| 41 |
+
<?php echo $this->getChildHtml('content') ?>
|
| 42 |
+
<?php echo $this->getChildHtml('before_body_end') ?>
|
| 43 |
+
<?php echo $this->getAbsoluteFooter() ?>
|
| 44 |
+
</div>
|
| 45 |
+
</body>
|
| 46 |
+
</html>
|
app/design/frontend/default/oct8ne/template/page/3columns.phtml
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Magento
|
| 4 |
+
*
|
| 5 |
+
* NOTICE OF LICENSE
|
| 6 |
+
*
|
| 7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
| 8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
| 9 |
+
* It is also available through the world-wide-web at this URL:
|
| 10 |
+
* http://opensource.org/licenses/afl-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 design
|
| 22 |
+
* @package base_default
|
| 23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
| 24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
| 25 |
+
*/
|
| 26 |
+
?>
|
| 27 |
+
<?php
|
| 28 |
+
/**
|
| 29 |
+
* Template for Mage_Page_Block_Html
|
| 30 |
+
*/
|
| 31 |
+
?>
|
| 32 |
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
| 33 |
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->getLang() ?>" lang="<?php echo $this->getLang() ?>">
|
| 34 |
+
<head>
|
| 35 |
+
<?php echo $this->getChildHtml('head') ?>
|
| 36 |
+
</head>
|
| 37 |
+
<body class="page-empty <?php echo $this->getBodyClass()?$this->getBodyClass():'' ?>">
|
| 38 |
+
<div>
|
| 39 |
+
<?php echo $this->getChildHtml('after_body_start') ?>
|
| 40 |
+
<?php echo $this->getChildHtml('global_messages') ?>
|
| 41 |
+
<?php echo $this->getChildHtml('content') ?>
|
| 42 |
+
<?php echo $this->getChildHtml('before_body_end') ?>
|
| 43 |
+
<?php echo $this->getAbsoluteFooter() ?>
|
| 44 |
+
</div>
|
| 45 |
+
</body>
|
| 46 |
+
</html>
|
app/etc/modules/LetsSyncroLLC_Oct8ne.xml
CHANGED
|
@@ -5,6 +5,12 @@
|
|
| 5 |
<active>true</active>
|
| 6 |
<codePool>community</codePool>
|
| 7 |
<version>1.0.0</version>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
</LetsSyncroLLC_Oct8ne>
|
| 9 |
</modules>
|
| 10 |
-
</config>
|
| 5 |
<active>true</active>
|
| 6 |
<codePool>community</codePool>
|
| 7 |
<version>1.0.0</version>
|
| 8 |
+
<depends>
|
| 9 |
+
<Mage_Eav/>
|
| 10 |
+
<Mage_Dataflow/>
|
| 11 |
+
<Mage_Cms/>
|
| 12 |
+
<Mage_Index/>
|
| 13 |
+
</depends>
|
| 14 |
</LetsSyncroLLC_Oct8ne>
|
| 15 |
</modules>
|
| 16 |
+
</config>
|
package.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>LetsSyncroLLC_Oct8ne</name>
|
| 4 |
-
<version>1.1.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license>license</license>
|
| 7 |
<channel>community</channel>
|
|
@@ -10,9 +10,171 @@
|
|
| 10 |
<description>Oct8ne extension description</description>
|
| 11 |
<notes>Notes</notes>
|
| 12 |
<authors><author><name>Oct8ne</name><user>Oct8ne</user><email>xavier.gonzalez@oct8ne.com</email></author></authors>
|
| 13 |
-
<date>2014-02-
|
| 14 |
-
<time>
|
| 15 |
-
<contents><target name="magecommunity"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
<compatible/>
|
| 17 |
<dependencies><required><php><min>5.3.0</min><max>5.4.12</max></php></required></dependencies>
|
| 18 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>LetsSyncroLLC_Oct8ne</name>
|
| 4 |
+
<version>1.1.2</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license>license</license>
|
| 7 |
<channel>community</channel>
|
| 10 |
<description>Oct8ne extension description</description>
|
| 11 |
<notes>Notes</notes>
|
| 12 |
<authors><author><name>Oct8ne</name><user>Oct8ne</user><email>xavier.gonzalez@oct8ne.com</email></author></authors>
|
| 13 |
+
<date>2014-02-14</date>
|
| 14 |
+
<time>19:48:21</time>
|
| 15 |
+
<contents><target name="magecommunity">
|
| 16 |
+
<dir name="LetsSyncroLLC">
|
| 17 |
+
<dir name="Oct8ne">
|
| 18 |
+
<dir name="Block">
|
| 19 |
+
<file name="Accountconfig.php"/>
|
| 20 |
+
<dir name="Customer">
|
| 21 |
+
<file name="Notifier.php"/>
|
| 22 |
+
</dir>
|
| 23 |
+
<dir name="Html">
|
| 24 |
+
<file name="Head.php"/>
|
| 25 |
+
</dir>
|
| 26 |
+
<file name="Index.php"/>
|
| 27 |
+
</dir>
|
| 28 |
+
<dir name="Helper">
|
| 29 |
+
<dir name="Customer">
|
| 30 |
+
<file name="Data.php"/>
|
| 31 |
+
</dir>
|
| 32 |
+
<file name="Data.php"/>
|
| 33 |
+
<file name="Search.php"/>
|
| 34 |
+
<file name="Url.php"/>
|
| 35 |
+
<file name="Wishlist.php"/>
|
| 36 |
+
</dir>
|
| 37 |
+
<dir name="Model">
|
| 38 |
+
<file name="Cron.php"/>
|
| 39 |
+
<file name="Letssyncro.php"/>
|
| 40 |
+
<dir name="Mage">
|
| 41 |
+
<file name="Onepage.php"/>
|
| 42 |
+
<file name="Url.php"/>
|
| 43 |
+
</dir>
|
| 44 |
+
<dir name="Mysql4">
|
| 45 |
+
<dir name="LetsSyncro">
|
| 46 |
+
<file name="Collection.php"/>
|
| 47 |
+
</dir>
|
| 48 |
+
<file name="Letssyncro.php"/>
|
| 49 |
+
<dir name="Orderproducts">
|
| 50 |
+
<file name="Collection.php"/>
|
| 51 |
+
</dir>
|
| 52 |
+
<file name="Orderproducts.php"/>
|
| 53 |
+
</dir>
|
| 54 |
+
<file name="Observer.php"/>
|
| 55 |
+
<file name="Orderproducts.php"/>
|
| 56 |
+
</dir>
|
| 57 |
+
<dir name="controllers">
|
| 58 |
+
<file name="AccountController.php"/>
|
| 59 |
+
<file name="AdminController.php"/>
|
| 60 |
+
<file name="FrameController.php"/>
|
| 61 |
+
<file name="IndexController.php"/>
|
| 62 |
+
<file name="letssyncro.phtml"/>
|
| 63 |
+
</dir>
|
| 64 |
+
<dir name="etc">
|
| 65 |
+
<file name="config.xml"/>
|
| 66 |
+
<file name="system.xml"/>
|
| 67 |
+
</dir>
|
| 68 |
+
<dir name="sql">
|
| 69 |
+
<dir name="oct8ne_setup">
|
| 70 |
+
<file name="mysql4-install-0.5.0.php"/>
|
| 71 |
+
<file name="mysql4-install-1.0.0.php"/>
|
| 72 |
+
<file name="mysql4-upgrade-1.0.0-1.1.0.php"/>
|
| 73 |
+
</dir>
|
| 74 |
+
</dir>
|
| 75 |
+
</dir>
|
| 76 |
+
</dir></target><target name="mageetc">
|
| 77 |
+
<dir name="modules">
|
| 78 |
+
<file name="LetsSyncroLLC_Oct8ne.xml"/>
|
| 79 |
+
</dir></target><target name="magedesign">
|
| 80 |
+
<dir name="frontend">
|
| 81 |
+
<dir name="default">
|
| 82 |
+
<dir name="default">
|
| 83 |
+
<dir name="layout">
|
| 84 |
+
<file name="oct8ne.xml"/>
|
| 85 |
+
</dir>
|
| 86 |
+
<dir name="template">
|
| 87 |
+
<dir name="oct8ne">
|
| 88 |
+
<dir name="frame">
|
| 89 |
+
<file name="add2cart.phtml"/>
|
| 90 |
+
<file name="addtowishlist.phtml"/>
|
| 91 |
+
<file name="clean-page.phtml"/>
|
| 92 |
+
<dir name="customer">
|
| 93 |
+
<file name="data.phtml"/>
|
| 94 |
+
<file name="notifier.phtml"/>
|
| 95 |
+
</dir>
|
| 96 |
+
<file name="getcart.phtml"/>
|
| 97 |
+
<file name="getwishlist.phtml"/>
|
| 98 |
+
<file name="json-page.phtml"/>
|
| 99 |
+
<file name="loginpost.phtml"/>
|
| 100 |
+
<file name="naked-page.phtml"/>
|
| 101 |
+
<file name="productinfo.phtml"/>
|
| 102 |
+
<file name="productrelated.phtml"/>
|
| 103 |
+
<dir name="productview">
|
| 104 |
+
<file name="additional.phtml"/>
|
| 105 |
+
<file name="addto.phtml"/>
|
| 106 |
+
<file name="addtocart.phtml"/>
|
| 107 |
+
<file name="attributes.phtml"/>
|
| 108 |
+
<file name="description.phtml"/>
|
| 109 |
+
<file name="media.phtml"/>
|
| 110 |
+
<file name="media.phtml.ORIGINAL"/>
|
| 111 |
+
<dir name="options">
|
| 112 |
+
<file name="js.phtml"/>
|
| 113 |
+
<dir name="type">
|
| 114 |
+
<file name="date.phtml"/>
|
| 115 |
+
<file name="default.phtml"/>
|
| 116 |
+
<file name="file.phtml"/>
|
| 117 |
+
<file name="select.phtml"/>
|
| 118 |
+
<file name="text.phtml"/>
|
| 119 |
+
</dir>
|
| 120 |
+
<dir name="wrapper">
|
| 121 |
+
<file name="bottom.phtml"/>
|
| 122 |
+
</dir>
|
| 123 |
+
<file name="wrapper.phtml"/>
|
| 124 |
+
</dir>
|
| 125 |
+
<file name="options.phtml"/>
|
| 126 |
+
<file name="price.phtml"/>
|
| 127 |
+
<file name="price_clone.phtml"/>
|
| 128 |
+
<file name="tierprices.phtml"/>
|
| 129 |
+
<dir name="type">
|
| 130 |
+
<file name="configurable.phtml"/>
|
| 131 |
+
<file name="default.phtml"/>
|
| 132 |
+
<file name="grouped.phtml"/>
|
| 133 |
+
<dir name="options">
|
| 134 |
+
<file name="configurable.phtml"/>
|
| 135 |
+
</dir>
|
| 136 |
+
<file name="simple.phtml"/>
|
| 137 |
+
<file name="virtual.phtml"/>
|
| 138 |
+
</dir>
|
| 139 |
+
</dir>
|
| 140 |
+
<file name="productview-FROM-SCRATCH.phtml"/>
|
| 141 |
+
<file name="productview.phtml"/>
|
| 142 |
+
<file name="removefromwishlist.phtml"/>
|
| 143 |
+
<file name="search.phtml"/>
|
| 144 |
+
</dir>
|
| 145 |
+
<file name="letssyncro.phtml"/>
|
| 146 |
+
</dir>
|
| 147 |
+
</dir>
|
| 148 |
+
</dir>
|
| 149 |
+
<dir name="oct8ne">
|
| 150 |
+
<dir name="template">
|
| 151 |
+
<dir name="page">
|
| 152 |
+
<file name="1column.phtml" />
|
| 153 |
+
<file name="2columns-left.phtml" />
|
| 154 |
+
<file name="2columns-right.phtml" />
|
| 155 |
+
<file name="3columns.phtml" />
|
| 156 |
+
</dir>
|
| 157 |
+
</dir>
|
| 158 |
+
</dir>
|
| 159 |
+
</dir>
|
| 160 |
+
</dir></target><target name="magelocale">
|
| 161 |
+
<dir>
|
| 162 |
+
<dir name="en_US">
|
| 163 |
+
<file name="LetsSyncroLLC_Oct8ne.csv"/>
|
| 164 |
+
</dir>
|
| 165 |
+
<dir name="es_ES">
|
| 166 |
+
<file name="LetsSyncroLLC_Oct8ne.csv"/>
|
| 167 |
+
</dir>
|
| 168 |
+
</dir></target><target name="mageskin">
|
| 169 |
+
<dir name="adminhtml">
|
| 170 |
+
<dir name="default">
|
| 171 |
+
<dir name="default">
|
| 172 |
+
<dir name="images">
|
| 173 |
+
<file name="LetsSyncro_Logo.png"/>
|
| 174 |
+
</dir>
|
| 175 |
+
</dir>
|
| 176 |
+
</dir>
|
| 177 |
+
</dir></target></contents>
|
| 178 |
<compatible/>
|
| 179 |
<dependencies><required><php><min>5.3.0</min><max>5.4.12</max></php></required></dependencies>
|
| 180 |
</package>
|
