Version Notes
Fixed typo on the noscript fallback tracking pixel image path.
Download this release
Release Info
Developer | Eke Digital |
Extension | Eke_Facebook |
Version | 0.1.1 |
Comparing to | |
See all releases |
Code changes from version 0.1.0 to 0.1.1
- app/code/community/Eke/Facebook/Block/Adminhtml/About.php +23 -0
- app/code/community/Eke/Facebook/etc/config.xml +2 -2
- app/code/community/Eke/Facebook/etc/system.xml +7 -0
- app/design/frontend/base/default/template/eke/ajaxcategory/init.phtml +64 -0
- app/design/frontend/base/default/template/eke/avant/checkout.phtml +21 -0
- app/design/frontend/base/default/template/eke/avant/default.phtml +18 -0
- app/design/frontend/base/default/template/eke/blockdomain/domain.phtml +15 -0
- app/design/frontend/base/default/template/eke/checkoutmap/order_view.phtml +226 -0
- app/design/frontend/base/default/template/eke/defaultoption/product.phtml +30 -0
- app/design/frontend/base/default/template/eke/facebook/tracker.phtml +17 -18
- app/design/frontend/base/default/template/eke/freeshipnotice/cart.phtml +36 -0
- app/design/frontend/base/default/template/eke/freeshipnotice/top_page.phtml +45 -0
- app/design/frontend/base/default/template/eke/fullcheckout/onepage.phtml +68 -0
- app/design/frontend/base/default/template/eke/fullcheckout/onepage/billing.phtml +204 -0
- app/design/frontend/base/default/template/eke/fullcheckout/onepage/shipping.phtml +156 -0
- app/design/frontend/base/default/template/eke/fullcheckout/summary.phtml +37 -0
- app/design/frontend/base/default/template/eke/fullcheckout/summary/default.phtml +128 -0
- app/design/frontend/base/default/template/eke/fullcheckout/widget/name.phtml +50 -0
- app/design/frontend/base/default/template/eke/gtrusted/checkout.phtml +54 -0
- app/design/frontend/base/default/template/eke/gtrusted/default.phtml +30 -0
- app/design/frontend/base/default/template/eke/inspectlet/tracker.phtml +38 -0
- app/design/frontend/base/default/template/eke/maptrack/order_view.phtml +108 -0
- app/design/frontend/base/default/template/eke/mouseflow/tracker.phtml +45 -0
- app/design/frontend/base/default/template/eke/ogmeta/blog.phtml +17 -0
- app/design/frontend/base/default/template/eke/ogmeta/blog_post.phtml +17 -0
- app/design/frontend/base/default/template/eke/ogmeta/category.phtml +17 -0
- app/design/frontend/base/default/template/eke/ogmeta/cms.phtml +17 -0
- app/design/frontend/base/default/template/eke/ogmeta/home.phtml +17 -0
- app/design/frontend/base/default/template/eke/ogmeta/product.phtml +17 -0
- app/design/frontend/base/default/template/eke/socialcheckout/order_view.phtml +54 -0
- package.xml +5 -5
app/code/community/Eke/Facebook/Block/Adminhtml/About.php
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Eke_Facebook_Block_Adminhtml_About
|
4 |
+
extends Mage_Adminhtml_Block_Abstract
|
5 |
+
implements Varien_Data_Form_Element_Renderer_Interface
|
6 |
+
{
|
7 |
+
|
8 |
+
|
9 |
+
public function render(Varien_Data_Form_Element_Abstract $element)
|
10 |
+
{
|
11 |
+
$logo = "//www.ekedigital.com/assets/eke_logo_modules.png";
|
12 |
+
$html = <<<HTML
|
13 |
+
|
14 |
+
<div style="background:url('$logo') no-repeat scroll 15px 15px #e7efef; border:1px solid #ccc; min-height:60px; margin:5px 0; padding:15px 15px 15px 140px;">
|
15 |
+
<p><strong>Facebook Tracking Pixel v0.1.1</strong> by <a href="https://www.ekedigital.com/?utm_source=Magento_Extension&utm_medium=Extension_Settings&utm_campaign=FacebookPixel" target="_blank">Eke Digital</a>
|
16 |
+
<br /> Easily integrate Facebook’s pixel and tracks user interactions such as add to cart, checkout, page view, etc.
|
17 |
+
</p>For questions or support requests please email us at <a href="mailto:support@ekedigital.com">support@ekedigital.com</a>.</p>
|
18 |
+
</div>
|
19 |
+
|
20 |
+
HTML;
|
21 |
+
return $html;
|
22 |
+
}
|
23 |
+
}
|
app/code/community/Eke/Facebook/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Eke_Facebook>
|
5 |
-
<version>0.1.
|
6 |
</Eke_Facebook>
|
7 |
</modules>
|
8 |
<global>
|
@@ -42,4 +42,4 @@
|
|
42 |
</tracker>
|
43 |
</eke_facebook>
|
44 |
</default>
|
45 |
-
</config>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Eke_Facebook>
|
5 |
+
<version>0.1.1</version>
|
6 |
</Eke_Facebook>
|
7 |
</modules>
|
8 |
<global>
|
42 |
</tracker>
|
43 |
</eke_facebook>
|
44 |
</default>
|
45 |
+
</config>
|
app/code/community/Eke/Facebook/etc/system.xml
CHANGED
@@ -16,6 +16,13 @@
|
|
16 |
<show_in_website>1</show_in_website>
|
17 |
<show_in_store>1</show_in_store>
|
18 |
<groups>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
<tracker translate="label">
|
20 |
<label>Configuration</label>
|
21 |
<show_in_default>1</show_in_default>
|
16 |
<show_in_website>1</show_in_website>
|
17 |
<show_in_store>1</show_in_store>
|
18 |
<groups>
|
19 |
+
<about>
|
20 |
+
<frontend_model>eke_facebook/adminhtml_about</frontend_model>
|
21 |
+
<sort_order>0</sort_order>
|
22 |
+
<show_in_default>1</show_in_default>
|
23 |
+
<show_in_website>1</show_in_website>
|
24 |
+
<show_in_store>1</show_in_store>
|
25 |
+
</about>
|
26 |
<tracker translate="label">
|
27 |
<label>Configuration</label>
|
28 |
<show_in_default>1</show_in_default>
|
app/design/frontend/base/default/template/eke/ajaxcategory/init.phtml
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$helper = Mage::helper('ajaxcategory');
|
3 |
+
if (!$helper->isEnabled()) {
|
4 |
+
return;
|
5 |
+
}
|
6 |
+
|
7 |
+
$actionName = $this->getAction()->getFullActionName();
|
8 |
+
if ($actionName == 'catalog_category_view')
|
9 |
+
{
|
10 |
+
$mode = $this->getLayout()->createBlock('catalog/product_list_toolbar')->setChild('product_list_toolbar_pager', $pager)->getCurrentMode();
|
11 |
+
|
12 |
+
$category = Mage::registry('current_category');
|
13 |
+
$prodCol = $category->getProductCollection()->addAttributeToFilter('status', 1)->addAttributeToFilter('visibility', array('in' => array(Mage_Catalog_Model_Product_Visibility::VISIBILITY_IN_CATALOG, Mage_Catalog_Model_Product_Visibility::VISIBILITY_BOTH)));
|
14 |
+
$tool = $this->getLayout()->createBlock('page/html_pager')->setLimit($this->getLayout()->createBlock('catalog/product_list_toolbar')->getLimit())->setCollection($prodCol);
|
15 |
+
$linkPrev = false;
|
16 |
+
$linkNext = false;
|
17 |
+
if ($tool->getCollection()->getSelectCountSql()) {
|
18 |
+
if ($tool->getLastPageNum() > 1) {
|
19 |
+
if (!$tool->isFirstPage()) {
|
20 |
+
$linkPrev = true;
|
21 |
+
if ($tool->getCurrentPage() == 2) {
|
22 |
+
$url = explode('?', $tool->getPreviousPageUrl());
|
23 |
+
$prevUrl = @$url[0];
|
24 |
+
}
|
25 |
+
else {
|
26 |
+
$prevUrl = $tool->getPreviousPageUrl();
|
27 |
+
}
|
28 |
+
}
|
29 |
+
if (!$tool->isLastPage()) {
|
30 |
+
$linkNext = true;
|
31 |
+
$nextUrl = $tool->getNextPageUrl();
|
32 |
+
}
|
33 |
+
}
|
34 |
+
}
|
35 |
+
if ($linkPrev) {
|
36 |
+
echo '<link id="ekeAjaxPrev" rel="prev" href="' . $prevUrl . '" />';
|
37 |
+
}
|
38 |
+
if ($linkNext) {
|
39 |
+
echo '<link id="ekeAjaxNext" rel="next" href="' . $nextUrl . '" />';
|
40 |
+
}
|
41 |
+
}
|
42 |
+
?>
|
43 |
+
|
44 |
+
<script type="text/javascript">
|
45 |
+
jQuery.getScript("<?php echo $this->getJsUrl('eke/ajaxcategory/jquery-ias.js') ?>", function() {
|
46 |
+
jQuery(function() {
|
47 |
+
|
48 |
+
var ias = jQuery.ias({
|
49 |
+
container : "<?php echo $helper->getContainerSelector(); ?>",
|
50 |
+
item : "<?php if($mode == 'grid'){ echo $helper->getGridSelector(); } else {echo $helper->getListSelector(); }?>",
|
51 |
+
next : "#ekeAjaxNext"
|
52 |
+
});
|
53 |
+
|
54 |
+
ias.extension(new IASPagingExtension());
|
55 |
+
ias.extension(new IASSpinnerExtension({ html: '<div style="text-align: center;"><img style="display:inline" src="<?php echo $this->getSkinUrl('images/ajaxcategory/loading.svg'); ?>"/></div>' }));
|
56 |
+
ias.extension(new IASNoneLeftExtension({text: '<?php echo $helper->getNoMore(); ?>'}));
|
57 |
+
|
58 |
+
jQuery.ias().on('pageChange', function(pageNum, scrollOffset, url) {
|
59 |
+
window.history.pushState('','',url)
|
60 |
+
});
|
61 |
+
|
62 |
+
});
|
63 |
+
});
|
64 |
+
</script>
|
app/design/frontend/base/default/template/eke/avant/checkout.phtml
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$helper = Mage::helper("eke_avant");
|
3 |
+
if (!$helper->isAvantMetaEnabled()) {
|
4 |
+
return;
|
5 |
+
}
|
6 |
+
|
7 |
+
$siteid = $helper->getAvantSiteid();
|
8 |
+
|
9 |
+
$order_id = Mage::getSingleton('checkout/session')->getLastRealOrderId();
|
10 |
+
$_order = Mage::getModel('sales/order')->loadByIncrementId($order_id);
|
11 |
+
|
12 |
+
?>
|
13 |
+
|
14 |
+
<!-- AvantLink Checkout Tracking -->
|
15 |
+
<script type="text/javascript">
|
16 |
+
var _AvantMetrics = _AvantMetrics || [];
|
17 |
+
_AvantMetrics.push(['order',{ order_id:'<?php echo $_order->getIncrementId(); ?>', amount:'<?php echo round($_order->getGrandTotal(), 2); ?>', state:'<?php echo $_order->getShippingAddress()->getRegionCode(); ?>', country:'<?php echo $_order->getShippingAddress()->getCountry(); ?>' }]);
|
18 |
+
<?php foreach($_order->getAllVisibleItems() as $item): ?>
|
19 |
+
_AvantMetrics.push(['item',{ order_id:'<?php echo $_order->getIncrementId(); ?>', parent_sku:'<?php echo $item->getSku(); ?>', price:'<?php echo round($item->getPrice(), 2); ?>', qty:'<?php echo round($item->getQtyOrdered(), 0); ?>' }]);
|
20 |
+
<?php endforeach ?>
|
21 |
+
</script>
|
app/design/frontend/base/default/template/eke/avant/default.phtml
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$helper = Mage::helper("eke_avant");
|
3 |
+
if (!$helper->isAvantMetaEnabled()) {
|
4 |
+
return;
|
5 |
+
}
|
6 |
+
|
7 |
+
$siteid = $helper->getAvantSiteid();
|
8 |
+
?>
|
9 |
+
|
10 |
+
<!-- AvantLink Standard Tracking -->
|
11 |
+
<script type="text/javascript">
|
12 |
+
(function() {
|
13 |
+
var avm = document.createElement('script'); avm.type = 'text/javascript'; avm.async = true;
|
14 |
+
avm.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'cdn.avmws.com/<?php echo $siteid; ?>/';
|
15 |
+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(avm, s);
|
16 |
+
})();
|
17 |
+
</script>
|
18 |
+
|
app/design/frontend/base/default/template/eke/blockdomain/domain.phtml
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$helper = Mage::helper("eke_blockdomain");
|
3 |
+
if (!$helper->isDomainBlockEnabled()) {
|
4 |
+
return;
|
5 |
+
}
|
6 |
+
$domain = $helper->getDomainsList();
|
7 |
+
$domain = explode(",", $domain);
|
8 |
+
?>
|
9 |
+
|
10 |
+
<script type="text/javascript">
|
11 |
+
Validation.add('validate-email','This domain is not allowed for registration.',function(v){
|
12 |
+
<?php foreach ($domain as $_domain){echo "if (/$_domain/i.test(v)){ return false; }\n";} ?>
|
13 |
+
else { return true; }
|
14 |
+
});
|
15 |
+
</script>
|
app/design/frontend/base/default/template/eke/checkoutmap/order_view.phtml
ADDED
@@ -0,0 +1,226 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$currencySymbol = Mage::app()->getLocale()->currency(Mage::app()->getStore()->getCurrentCurrencyCode())->getSymbol();
|
3 |
+
?>
|
4 |
+
|
5 |
+
<div class="heading col2-set">
|
6 |
+
<div class="col-1">
|
7 |
+
<div class="content">
|
8 |
+
<h1><?php echo $this->__('Order Details') ?></h1>
|
9 |
+
</div>
|
10 |
+
</div>
|
11 |
+
|
12 |
+
<div class="col-2">
|
13 |
+
<div class="content">
|
14 |
+
<?php if ($this->getOrderId()):?>
|
15 |
+
<?php if ($this->getCanViewOrder()) :?>
|
16 |
+
<p><?php echo $this->__('Order # <span class="ordertext">%s</span>', sprintf('<a href="%s">%s</a>', $this->escapeHtml($this->getViewOrderUrl()), $this->escapeHtml($this->getOrderId()))) ?></p>
|
17 |
+
<?php else :?>
|
18 |
+
<p><?php echo $this->__('Order # <span class="ordertext">%s</span>', $this->escapeHtml($this->getOrderId())) ?></p>
|
19 |
+
<?php endif;?>
|
20 |
+
<?php endif;?>
|
21 |
+
</div>
|
22 |
+
</div>
|
23 |
+
|
24 |
+
</div>
|
25 |
+
|
26 |
+
<?php
|
27 |
+
// Order Details
|
28 |
+
$orderInfo = Mage::getModel('sales/order')->load(Mage::getSingleton('checkout/session')->getLastOrderId());
|
29 |
+
|
30 |
+
$customerName = $orderInfo->getShippingAddress()->getName();
|
31 |
+
$customerAddress = $orderInfo->getShippingAddress()->getStreet();
|
32 |
+
$customerZip = $orderInfo->getShippingAddress()->getPostcode();
|
33 |
+
$customerCity = $orderInfo->getShippingAddress()->getCity();
|
34 |
+
$customerRegion = $orderInfo->getShippingAddress()->getRegion();
|
35 |
+
$customerCountry = $orderInfo->getShippingAddress()->getCountry();
|
36 |
+
$customerPhone = $orderInfo->getShippingAddress()->getPhone();
|
37 |
+
|
38 |
+
//Ship Details
|
39 |
+
$ship = $orderInfo->getShippingDescription();
|
40 |
+
|
41 |
+
//Get Payment
|
42 |
+
$payment_method_code = $orderInfo->getPayment()->getMethodInstance()->getCode();
|
43 |
+
$ccType = $orderInfo->getPayment()->getCcType();
|
44 |
+
$ccLast4 = $orderInfo->getPayment()->getCcLast4();
|
45 |
+
|
46 |
+
//Order Totals
|
47 |
+
$orderSub = Mage::helper('core')->currency($orderInfo->getSubtotal(), true, false);
|
48 |
+
$orderTax = Mage::helper('core')->currency($orderInfo->getTaxAmount(), true, false);
|
49 |
+
$orderShip = Mage::helper('core')->currency($orderInfo->getShippingAmount(), true, false);
|
50 |
+
$orderGrand = Mage::helper('core')->currency($orderInfo->getGrandTotal(), true, false);
|
51 |
+
|
52 |
+
//var_dump($orderInfo);
|
53 |
+
|
54 |
+
?>
|
55 |
+
|
56 |
+
<div class="orderinfo col3-set">
|
57 |
+
<div class="col col-1">
|
58 |
+
<div class="content">
|
59 |
+
<h1><?php echo $this->__('Ship To') ?></h1>
|
60 |
+
<p class="bold"><?php echo $customerName; ?></p>
|
61 |
+
<p><?php echo $customerAddress[0]; ?></p>
|
62 |
+
<p><?php echo $customerAddress[1]; ?></p>
|
63 |
+
<p><?php echo $customerAddress[2]; ?></p>
|
64 |
+
<p><?php echo $customerAddress[3]; ?></p>
|
65 |
+
<p><?php echo $customerCity; ?>, <?php echo $customerRegion; ?>, <?php echo $customerCountry; ?></p>
|
66 |
+
<p><?php echo $customerZip; ?></p>
|
67 |
+
<p><?php echo $customerPhone; ?></p>
|
68 |
+
</div>
|
69 |
+
</div>
|
70 |
+
|
71 |
+
<div class="col col-2">
|
72 |
+
<div class="content">
|
73 |
+
<h1><?php echo $this->__('Payment') ?></h1>
|
74 |
+
<p><?php echo $ccType; ?></p>
|
75 |
+
<p>***<?php echo $ccLast4; ?></p>
|
76 |
+
</div>
|
77 |
+
</div>
|
78 |
+
|
79 |
+
<div class="col col-3">
|
80 |
+
<div class="totals content">
|
81 |
+
<h1><?php echo $this->__('Order Total') ?></h1>
|
82 |
+
<p><span class="title bold">Subtotal:</span> <span class="value"><?php echo $orderSub; ?></span></p>
|
83 |
+
<p><span class="title">Shipping:</span> <span class="value"><?php echo $orderTax; ?></span></p>
|
84 |
+
<p><span class="title">Sales Tax:</span> <span class="value"><?php echo $orderShip; ?></span></p>
|
85 |
+
<p class="dashed"><span class="title">You Pay:</span> <span class="value"><?php echo $orderGrand; ?></span></p>
|
86 |
+
</div>
|
87 |
+
</div>
|
88 |
+
|
89 |
+
</div>
|
90 |
+
|
91 |
+
|
92 |
+
<div class="col1-set">
|
93 |
+
|
94 |
+
<h1>Order Details</h1>
|
95 |
+
<div style="height:500px;" id="map"></div>
|
96 |
+
|
97 |
+
</div>
|
98 |
+
|
99 |
+
|
100 |
+
|
101 |
+
<div class="col1-set">
|
102 |
+
|
103 |
+
<?php
|
104 |
+
$order_id = Mage::getSingleton('checkout/session')->getLastRealOrderId();
|
105 |
+
$order_details = Mage::getModel('sales/order')->loadByIncrementId($order_id);
|
106 |
+
$shipping_address_data = $order_details->getShippingAddress();
|
107 |
+
?>
|
108 |
+
<table class="tableproducts">
|
109 |
+
<tr>
|
110 |
+
<th><?php echo $this->__('Description A') ?></th
|
111 |
+
<th><?php echo $this->__('Qty') ?></th>
|
112 |
+
<th><?php echo $this->__('Unit Price') ?></th>
|
113 |
+
</tr>
|
114 |
+
|
115 |
+
<?php foreach($order_details->getAllVisibleItems() as $item):
|
116 |
+
$configItem = Mage::getModel('catalog/product')->loadByAttribute('sku', $item->getSku());
|
117 |
+
?>
|
118 |
+
<tr>
|
119 |
+
<td><img src="<?php echo $this->helper('catalog/image')->init($configItem, 'small_image')->resize(200); ?>" width="200" height="200" class="media-object img-responsive" alt="<?php echo $this->getImageLabel($configItem, 'small_image'); ?>"/></td>
|
120 |
+
<td><?php echo $item->getName() ?></td>
|
121 |
+
<td><?php echo round($item->getQtyOrdered(), 0) ?></td>
|
122 |
+
<td><?php echo Mage::helper("core")->currency($item->getPrice()) ?></td>
|
123 |
+
</tr>
|
124 |
+
</table>
|
125 |
+
<?php endforeach ?>
|
126 |
+
|
127 |
+
<?php echo "<br>" . $shipping_address_data['country_name']; ?>
|
128 |
+
|
129 |
+
</div>
|
130 |
+
|
131 |
+
|
132 |
+
|
133 |
+
<br>
|
134 |
+
<br>
|
135 |
+
<br>
|
136 |
+
<br>
|
137 |
+
<br>
|
138 |
+
<br>
|
139 |
+
<br>
|
140 |
+
<br>
|
141 |
+
<br>
|
142 |
+
|
143 |
+
|
144 |
+
|
145 |
+
<?php
|
146 |
+
|
147 |
+
$address = str_replace(" ", "+", $customerAddress[0]);
|
148 |
+
$customerRegion = str_replace(" ", "+", $customerRegion);
|
149 |
+
$url = "http://maps.google.com/maps/api/geocode/json?address=$address&sensor=false®ion=$customerRegion";
|
150 |
+
$json = file_get_contents($url);
|
151 |
+
$json = json_decode($json);
|
152 |
+
|
153 |
+
$lat = $json->{'results'}[0]->{'geometry'}->{'location'}->{'lat'};
|
154 |
+
$long = $json->{'results'}[0]->{'geometry'}->{'location'}->{'lng'};
|
155 |
+
|
156 |
+
|
157 |
+
$srcLat = 25.7899435;
|
158 |
+
$srcLong = -80.3221517;
|
159 |
+
?>
|
160 |
+
|
161 |
+
|
162 |
+
<script>
|
163 |
+
|
164 |
+
var map;
|
165 |
+
|
166 |
+
function init() {
|
167 |
+
|
168 |
+
|
169 |
+
|
170 |
+
map = new google.maps.Map(document.getElementById('map'));
|
171 |
+
|
172 |
+
var p1 = new google.maps.LatLng(<?php echo $lat; ?>, <?php echo $long; ?>);
|
173 |
+
var p2 = new google.maps.LatLng(<?php echo $srcLat; ?>, <?php echo $srcLong; ?>);
|
174 |
+
var bounds = new google.maps.LatLngBounds();
|
175 |
+
bounds.extend(p1);
|
176 |
+
bounds.extend(p2);
|
177 |
+
map.fitBounds(bounds);
|
178 |
+
var markerP1 = new google.maps.Marker({
|
179 |
+
position: p1,
|
180 |
+
map: map
|
181 |
+
});
|
182 |
+
var markerP2 = new google.maps.Marker({
|
183 |
+
position: p2,
|
184 |
+
map: map
|
185 |
+
});
|
186 |
+
google.maps.event.addListener(map, 'projection_changed', function () {
|
187 |
+
var p1 = map.getProjection().fromLatLngToPoint(markerP1.getPosition());
|
188 |
+
var p2 = map.getProjection().fromLatLngToPoint(markerP2.getPosition());
|
189 |
+
var e = new google.maps.Point(p1.x - p2.x, p1.y - p2.y);
|
190 |
+
var m = new google.maps.Point(e.x / 2, e.y / 2);
|
191 |
+
var o = new google.maps.Point(0, 7);
|
192 |
+
var c = new google.maps.Point(m.x + o.x, m.y + o.y);
|
193 |
+
var curveMarker2 = new google.maps.Marker({
|
194 |
+
position: markerP1.getPosition(),
|
195 |
+
icon: {
|
196 |
+
path: "M 0 0 q " + c.x + " " + c.y + " " + e.x + " " + e.y,
|
197 |
+
scale: 24,
|
198 |
+
strokeWeight: 2,
|
199 |
+
fillColor: '#009933',
|
200 |
+
fillOpacity: 0,
|
201 |
+
rotation: 180,
|
202 |
+
anchor: new google.maps.Point(0, 0)
|
203 |
+
}
|
204 |
+
});
|
205 |
+
curveMarker2.setMap(map);
|
206 |
+
google.maps.event.addListener(map, 'zoom_changed', function () {
|
207 |
+
var zoom = map.getZoom();
|
208 |
+
var scale = 1 / (Math.pow(2, -zoom));
|
209 |
+
var icon = {
|
210 |
+
path: "M 0 0 q " + c.x + " " + c.y + " " + e.x + " " + e.y,
|
211 |
+
scale: scale,
|
212 |
+
strokeWeight: 2,
|
213 |
+
fillColor: '#009933',
|
214 |
+
fillOpacity: 0,
|
215 |
+
rotation: 180,
|
216 |
+
anchor: new google.maps.Point(0, 0)
|
217 |
+
};
|
218 |
+
curveMarker2.setIcon(icon);
|
219 |
+
});
|
220 |
+
3
|
221 |
+
});
|
222 |
+
}
|
223 |
+
|
224 |
+
</script>
|
225 |
+
|
226 |
+
<script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAGW8TBVdcpyjp7tNA6CB18Ol0wM2U1_EI&callback=init"> </script>
|
app/design/frontend/base/default/template/eke/defaultoption/product.phtml
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/* $helper = Mage::helper("eke_ogmeta");
|
3 |
+
if (!$helper->isOgMetaEnabled()) {
|
4 |
+
return;
|
5 |
+
}
|
6 |
+
$siteName = $helper->getSiteName();
|
7 |
+
*/
|
8 |
+
|
9 |
+
$_option = Mage::registry('current_product')->getOption();
|
10 |
+
|
11 |
+
var_dump($_option);
|
12 |
+
$_optionTitle = Mage::registry('current_product')->getOptions()->getTitle();
|
13 |
+
$_optionRequired = Mage::registry('current_product')->getOptions()->getIsRequire();
|
14 |
+
$_optionType = Mage::registry('current_product')->getOptions()->getType();
|
15 |
+
|
16 |
+
?>
|
17 |
+
|
18 |
+
|
19 |
+
<dt><label<?php if ($_optionRequired) echo ' class="required"' ?>><?php if ($_optionRequired) echo '<em>*</em>' ?><?php echo $this->escapeHtml($_option->getTitle()) ?></label></dt>
|
20 |
+
<dd<?php if ($_option->decoratedIsLast){?> class="last"<?php }?>>
|
21 |
+
<div class="input-box">
|
22 |
+
<?php echo $this->getValuesHtml() ?>
|
23 |
+
<?php if ($_option->getIsRequire()): ?>
|
24 |
+
<?php if ($_option->getType() == Mage_Catalog_Model_Product_Option::OPTION_TYPE_RADIO || $_option->getType() == Mage_Catalog_Model_Product_Option::OPTION_TYPE_CHECKBOX): ?>
|
25 |
+
<span id="options-<?php echo $_option->getId() ?>-container"></span>
|
26 |
+
<?php endif; ?>
|
27 |
+
<?php endif;?>
|
28 |
+
</div>
|
29 |
+
</dd>
|
30 |
+
|
app/design/frontend/base/default/template/eke/facebook/tracker.phtml
CHANGED
@@ -6,38 +6,37 @@ if (!$helper->isTrackerPixelEnabled()) {
|
|
6 |
$id = $helper->getTrackerPixelId();
|
7 |
?>
|
8 |
|
9 |
-
<!-- Facebook Pixel Code-->
|
10 |
-
<script>
|
11 |
-
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
|
12 |
-
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
|
13 |
-
n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
|
14 |
-
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
|
15 |
document,'script','//connect.facebook.net/en_US/fbevents.js');
|
16 |
fbq('init', '<?php echo $id ?>');
|
17 |
fbq('track', "PageView");
|
18 |
-
|
19 |
-
<?php
|
20 |
$request = $this->getRequest();
|
21 |
$module = $request->getModuleName();
|
22 |
$controller = $request->getControllerName();
|
23 |
$action = $request->getActionName();
|
24 |
-
|
25 |
if(Mage::registry('current_product')) {echo "fbq('track', 'ViewContent');"; }
|
26 |
if($controller == 'result' || $controller =='advanced') { echo "fbq('track', 'Search');"; }
|
27 |
if($module == 'customer' && $controller == 'account' && $action == 'index'){echo "fbq('track', 'CompleteRegistration')";}
|
28 |
if($module == 'checkout' && $controller == 'cart' && $action == 'index') {echo "fbq('track', 'AddToCart');"; }
|
29 |
-
if($module == 'wishlist') { echo "fbq('track', 'AddToWishlist');"; }
|
30 |
if($module == 'checkout' && $action == 'index') { echo "fbq('track', 'InitiateCheckout');"; }
|
31 |
-
if($module == 'checkout' && $action == 'success') {
|
32 |
$orderId = Mage::getSingleton('checkout/session')->getLastOrderId();
|
33 |
$order = Mage::getModel('sales/order')->load($orderId);
|
34 |
$total = round($order->getGrandTotal(), 2);
|
35 |
$currency = Mage::app()->getStore()->getCurrentCurrencyCode();
|
36 |
-
echo "fbq('track', 'Purchase', {value: '$total', currency: '$currency'});";
|
37 |
-
}
|
38 |
-
?>
|
39 |
-
|
40 |
-
</script>
|
41 |
-
<noscript><img height="1" width="1" style="display:none" src=" https://www.fbpixel.com/tr?id=<?php echo $id ?>&ev=PageView&noscript=1" /></noscript>
|
42 |
-
<!-- End Facebook Pixel Code -->
|
43 |
|
|
|
|
|
|
6 |
$id = $helper->getTrackerPixelId();
|
7 |
?>
|
8 |
|
9 |
+
<!-- Facebook Pixel Code-->
|
10 |
+
<script>
|
11 |
+
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
|
12 |
+
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
|
13 |
+
n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
|
14 |
+
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
|
15 |
document,'script','//connect.facebook.net/en_US/fbevents.js');
|
16 |
fbq('init', '<?php echo $id ?>');
|
17 |
fbq('track', "PageView");
|
18 |
+
|
19 |
+
<?php
|
20 |
$request = $this->getRequest();
|
21 |
$module = $request->getModuleName();
|
22 |
$controller = $request->getControllerName();
|
23 |
$action = $request->getActionName();
|
24 |
+
|
25 |
if(Mage::registry('current_product')) {echo "fbq('track', 'ViewContent');"; }
|
26 |
if($controller == 'result' || $controller =='advanced') { echo "fbq('track', 'Search');"; }
|
27 |
if($module == 'customer' && $controller == 'account' && $action == 'index'){echo "fbq('track', 'CompleteRegistration')";}
|
28 |
if($module == 'checkout' && $controller == 'cart' && $action == 'index') {echo "fbq('track', 'AddToCart');"; }
|
29 |
+
if($module == 'wishlist') { echo "fbq('track', 'AddToWishlist');"; }
|
30 |
if($module == 'checkout' && $action == 'index') { echo "fbq('track', 'InitiateCheckout');"; }
|
31 |
+
if($module == 'checkout' && $action == 'success') {
|
32 |
$orderId = Mage::getSingleton('checkout/session')->getLastOrderId();
|
33 |
$order = Mage::getModel('sales/order')->load($orderId);
|
34 |
$total = round($order->getGrandTotal(), 2);
|
35 |
$currency = Mage::app()->getStore()->getCurrentCurrencyCode();
|
36 |
+
echo "fbq('track', 'Purchase', {value: '$total', currency: '$currency'});";
|
37 |
+
}
|
38 |
+
?>
|
|
|
|
|
|
|
|
|
39 |
|
40 |
+
</script>
|
41 |
+
<noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=<?php echo $id ?>&ev=PageView&noscript=1" /></noscript>
|
42 |
+
<!-- End Facebook Pixel Code -->
|
app/design/frontend/base/default/template/eke/freeshipnotice/cart.phtml
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$helper = Mage::helper("eke_freeshipnotice");
|
3 |
+
if (!$helper->isFreeshipnotice_cartEnabled()) {
|
4 |
+
return;
|
5 |
+
}
|
6 |
+
|
7 |
+
$bgColor = $helper->getCartBgColor();
|
8 |
+
$textColor = $helper->getCartTextColor();
|
9 |
+
$textContent = $helper->getCartTextContent();
|
10 |
+
$freeShipAmount = $helper->getFreeShipAmount();
|
11 |
+
$freeShipText = $helper->getFreeShipText();
|
12 |
+
|
13 |
+
$currencySymbol = Mage::app()->getLocale()->currency(Mage::app()->getStore()->getCurrentCurrencyCode())->getSymbol();
|
14 |
+
$orderTotal = $this->helper('checkout/cart')->getQuote()->getGrandTotal();
|
15 |
+
|
16 |
+
if ($orderTotal == 0){
|
17 |
+
return;
|
18 |
+
}
|
19 |
+
|
20 |
+
$amountLeft = $freeShipAmount - $orderTotal;
|
21 |
+
$amountLeftCur = $currencySymbol . $amountLeft;
|
22 |
+
|
23 |
+
|
24 |
+
$vars = array( '{{total}}' => $amountLeftCur);
|
25 |
+
|
26 |
+
|
27 |
+
?>
|
28 |
+
|
29 |
+
|
30 |
+
<div style="background-color:#<?php echo $bgColor; ?>; color:#<?php echo $textColor; ?>" class="ekeFsnCart">
|
31 |
+
<?php if ($amountLeft < 0 ) {
|
32 |
+
echo $freeShipText;
|
33 |
+
} else {
|
34 |
+
echo strtr($textContent, $vars);
|
35 |
+
} ?>
|
36 |
+
</div>
|
app/design/frontend/base/default/template/eke/freeshipnotice/top_page.phtml
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$helper = Mage::helper("eke_freeshipnotice");
|
3 |
+
if (!$helper->isFreeshipnotice_topEnabled()) {
|
4 |
+
return;
|
5 |
+
}
|
6 |
+
|
7 |
+
$bgColor = $helper->getTopBgColor();
|
8 |
+
$textColor = $helper->getTopTextColor();
|
9 |
+
$textContent = $helper->getTopTextContent();
|
10 |
+
$freeShipAmount = $helper->getFreeShipAmount();
|
11 |
+
$freeShipText = $helper->getFreeShipText();
|
12 |
+
|
13 |
+
$currencySymbol = Mage::app()->getLocale()->currency(Mage::app()->getStore()->getCurrentCurrencyCode())->getSymbol();
|
14 |
+
$orderTotal = $this->helper('checkout/cart')->getQuote()->getGrandTotal();
|
15 |
+
|
16 |
+
if ($orderTotal == 0){
|
17 |
+
return;
|
18 |
+
}
|
19 |
+
|
20 |
+
$request = $this->getRequest();
|
21 |
+
$module = $request->getModuleName();
|
22 |
+
$controller = $request->getControllerName();
|
23 |
+
$action = $request->getActionName();
|
24 |
+
|
25 |
+
if($module == 'checkout' && $controller == 'cart' && $action == 'index' && $helper->isFreeshipnotice_topEnabled()) {
|
26 |
+
return;
|
27 |
+
}
|
28 |
+
|
29 |
+
$amountLeft = $freeShipAmount - $orderTotal;
|
30 |
+
$amountLeftCur = $currencySymbol . $amountLeft;
|
31 |
+
|
32 |
+
|
33 |
+
$vars = array( '{{total}}' => $amountLeftCur);
|
34 |
+
|
35 |
+
|
36 |
+
?>
|
37 |
+
|
38 |
+
|
39 |
+
<div style="background-color:#<?php echo $bgColor; ?>; color:#<?php echo $textColor; ?>" class="ekeFsnTop">
|
40 |
+
<?php if ($amountLeft < 0 ) {
|
41 |
+
echo $freeShipText;
|
42 |
+
} else {
|
43 |
+
echo strtr($textContent, $vars);
|
44 |
+
} ?>
|
45 |
+
</div>
|
app/design/frontend/base/default/template/eke/fullcheckout/onepage.phtml
ADDED
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
$configLogo = Mage::getStoreConfig('eke_fullcheckout/design/logo');
|
4 |
+
|
5 |
+
if(!empty($configLogo)){
|
6 |
+
$logoPath = Mage::getBaseUrl('media').'eke/fullcheckout/' . Mage::getStoreConfig('eke_fullcheckout/design/logo');
|
7 |
+
} else {
|
8 |
+
$logoSrc = Mage::getStoreConfig('design/header/logo_src');
|
9 |
+
$logoPath = $this->getSkinUrl($logoSrc);
|
10 |
+
}
|
11 |
+
|
12 |
+
|
13 |
+
?>
|
14 |
+
|
15 |
+
<div class="storeLogo">
|
16 |
+
<a href="/" /><img src="<?php echo $logoPath; ?>" alt="<?php echo $logoAlt; ?>" /></a>
|
17 |
+
</div>
|
18 |
+
|
19 |
+
|
20 |
+
Customer Information > Shipping Method > Payment Method
|
21 |
+
|
22 |
+
<script type="text/javascript" src="<?php echo $this->getJsUrl('varien/accordion.js') ?>"></script>
|
23 |
+
<script type="text/javascript" src="<?php echo $this->getSkinUrl('js/opcheckout.js') ?>"></script>
|
24 |
+
<ol class="opc" id="checkoutSteps">
|
25 |
+
<?php $i=0; foreach($this->getSteps() as $_stepId => $_stepInfo): ?>
|
26 |
+
<?php if (!$this->getChild($_stepId) || !$this->getChild($_stepId)->isShow()): continue; endif; $i++ ?>
|
27 |
+
<li id="opc-<?php echo $_stepId ?>" class="section<?php echo !empty($_stepInfo['allow'])?' allow':'' ?><?php echo !empty($_stepInfo['complete'])?' saved':'' ?>">
|
28 |
+
<div class="step-title">
|
29 |
+
<span class="number"><?php echo $i ?></span>
|
30 |
+
<h2><?php echo $_stepInfo['label'] ?></h2>
|
31 |
+
<a href="#"><?php echo $this->__('Edit') ?></a>
|
32 |
+
</div>
|
33 |
+
<div id="checkout-step-<?php echo $_stepId ?>" class="step a-item" style="display:none;">
|
34 |
+
<?php echo $this->getChildHtml($_stepId) ?>
|
35 |
+
</div>
|
36 |
+
</li>
|
37 |
+
<?php endforeach ?>
|
38 |
+
</ol>
|
39 |
+
|
40 |
+
|
41 |
+
|
42 |
+
|
43 |
+
|
44 |
+
<input type="hidden" name="checkout_method" id="login:guest" checked="checked" value="guest">
|
45 |
+
|
46 |
+
<script type="text/javascript">
|
47 |
+
//<![CDATA[
|
48 |
+
var accordion = new Accordion('checkoutSteps', '.head', true);
|
49 |
+
<?php if($this->getActiveStep()): ?>
|
50 |
+
accordion.openSection('opc-billing');
|
51 |
+
<?php endif ?>
|
52 |
+
var checkout = new Checkout(accordion,{
|
53 |
+
progress: '<?php echo $this->getUrl('checkout/onepage/progress') ?>',
|
54 |
+
review: '<?php echo $this->getUrl('checkout/onepage/review') ?>',
|
55 |
+
saveMethod: '<?php echo $this->getUrl('checkout/onepage/saveMethod') ?>',
|
56 |
+
failure: '<?php echo $this->getUrl('checkout/cart') ?>'}
|
57 |
+
);
|
58 |
+
|
59 |
+
var chkmethod = $("login:guest");
|
60 |
+
chkmethod.checked = true;
|
61 |
+
checkout.setMethod();
|
62 |
+
//]]>
|
63 |
+
</script>
|
64 |
+
|
65 |
+
|
66 |
+
<div id="footer" class="row">
|
67 |
+
<p><?php echo Mage::getStoreConfig('design/footer/copyright'); ?></p>
|
68 |
+
</div>
|
app/design/frontend/base/default/template/eke/fullcheckout/onepage/billing.phtml
ADDED
@@ -0,0 +1,204 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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@magento.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.magento.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<form class="form-horizontal" id="co-billing-form" action="">
|
28 |
+
<fieldset>
|
29 |
+
<ul class="form-list">
|
30 |
+
<?php if ($this->customerHasAddresses()): ?>
|
31 |
+
<li class="form-group">
|
32 |
+
<label for="billing-address-select"><?php echo $this->__('Select a billing address from your address book or enter a new address.') ?></label>
|
33 |
+
<div class="input-box">
|
34 |
+
<?php echo $this->getAddressesHtmlSelect('billing') ?>
|
35 |
+
</div>
|
36 |
+
</li>
|
37 |
+
<?php endif; ?>
|
38 |
+
<li id="billing-new-address-form"<?php if ($this->customerHasAddresses()): ?> style="display:none;"<?php endif; ?>>
|
39 |
+
<fieldset>
|
40 |
+
<input type="hidden" name="billing[address_id]" value="<?php echo $this->getAddress()->getId() ?>" id="billing:address_id" />
|
41 |
+
<ul>
|
42 |
+
<li class="form-group"><?php echo $this->getLayout()->createBlock('eke_fullcheckout/widget_name')->setObject($this->getAddress()->getFirstname() ? $this->getAddress() : $this->getQuote()->getCustomer())->setForceUseCustomerRequiredAttributes(!$this->isCustomerLoggedIn())->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml() ?></li>
|
43 |
+
<li class="form-group">
|
44 |
+
<div class="col-lg-6">
|
45 |
+
<div class="input-box">
|
46 |
+
<input placeholder="<?php echo $this->__('Company') ?>" type="text" id="billing:company" name="billing[company]" value="<?php echo $this->escapeHtml($this->getAddress()->getCompany()) ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Company')) ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('company') ?>" />
|
47 |
+
</div>
|
48 |
+
</div>
|
49 |
+
<?php if(!$this->isCustomerLoggedIn()): ?>
|
50 |
+
<div class="col-lg-6">
|
51 |
+
<div class="input-box">
|
52 |
+
<input placeholder="<?php echo $this->__('Email Address') ?>" type="text" name="billing[email]" id="billing:email" value="<?php echo $this->escapeHtml($this->getAddress()->getEmail()) ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Email Address')) ?>" class="input-text validate-email required-entry" />
|
53 |
+
</div>
|
54 |
+
</div>
|
55 |
+
<?php endif; ?>
|
56 |
+
</li>
|
57 |
+
<?php $_streetValidationClass = $this->helper('customer/address')->getAttributeValidationClass('street'); ?>
|
58 |
+
<li class="form-group">
|
59 |
+
<div class="col-md-12 input-box">
|
60 |
+
<input placeholder="<?php echo $this->__('Address Line 1') ?>" type="text" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Street Address')) ?>" name="billing[street][]" id="billing:street1" value="<?php echo $this->escapeHtml($this->getAddress()->getStreet(1)) ?>" class="input-text <?php echo $_streetValidationClass ?>" />
|
61 |
+
</div>
|
62 |
+
</li>
|
63 |
+
<?php $_streetValidationClass = trim(str_replace('required-entry', '', $_streetValidationClass)); ?>
|
64 |
+
<?php for ($_i = 2, $_n = $this->helper('customer/address')->getStreetLines(); $_i <= $_n; $_i++): ?>
|
65 |
+
<li class="form-group">
|
66 |
+
<div class="col-md-12 input-box">
|
67 |
+
<input placeholder="<?php echo Mage::helper('core')->quoteEscape($this->__('Address Line %s', $_i)) ?>" type="text" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Street Address %s', $_i)) ?>" name="billing[street][]" id="billing:street<?php echo $_i ?>" value="<?php echo $this->escapeHtml($this->getAddress()->getStreet($_i)) ?>" class="input-text <?php echo $_streetValidationClass ?>" />
|
68 |
+
</div>
|
69 |
+
</li>
|
70 |
+
<?php endfor; ?>
|
71 |
+
<?php if ($this->helper('customer/address')->isVatAttributeVisible()) : ?>
|
72 |
+
<li class="form-group">
|
73 |
+
<div class="input-box">
|
74 |
+
<input placeholder="<?php echo $this->__('VAT Number') ?>" type="text" id="billing:vat_id" name="billing[vat_id]" value="<?php echo $this->escapeHtml($this->getAddress()->getVatId()) ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->__('VAT Number')) ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('vat_id') ?>" />
|
75 |
+
</div>
|
76 |
+
</li>
|
77 |
+
<?php endif; ?>
|
78 |
+
<li class="form-group">
|
79 |
+
<div class="col-lg-6">
|
80 |
+
<div class="input-box">
|
81 |
+
<input placeholder="<?php echo $this->__('City') ?>" type="text" title="<?php echo Mage::helper('core')->quoteEscape($this->__('City')) ?>" name="billing[city]" value="<?php echo $this->escapeHtml($this->getAddress()->getCity()) ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('city') ?>" id="billing:city" />
|
82 |
+
</div>
|
83 |
+
</div>
|
84 |
+
<div class="col-lg-6">
|
85 |
+
<div class="input-box">
|
86 |
+
<select id="billing:region_id" name="billing[region_id]" title="<?php echo Mage::helper('core')->quoteEscape($this->__('State/Province')) ?>" class="validate-select" style="display:none;">
|
87 |
+
<option value=""><?php echo $this->__('Please select region, state or province') ?></option>
|
88 |
+
</select>
|
89 |
+
<script type="text/javascript">
|
90 |
+
//<![CDATA[
|
91 |
+
$('billing:region_id').setAttribute('defaultValue', "<?php echo $this->getAddress()->getRegionId() ?>");
|
92 |
+
//]]>
|
93 |
+
</script>
|
94 |
+
<input type="text" id="billing:region" name="billing[region]" value="<?php echo $this->escapeHtml($this->getAddress()->getRegion()) ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->__('State/Province')) ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('region') ?>" style="display:none;" />
|
95 |
+
</div>
|
96 |
+
</div>
|
97 |
+
</li>
|
98 |
+
<li class="form-group">
|
99 |
+
<div class="col-lg-6">
|
100 |
+
<div class="input-box">
|
101 |
+
<input placeholder="<?php echo $this->__('Zip/Postal Code') ?>" type="text" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Zip/Postal Code')) ?>" name="billing[postcode]" id="billing:postcode" value="<?php echo $this->escapeHtml($this->getAddress()->getPostcode()) ?>" class="input-text validate-zip-international <?php echo $this->helper('customer/address')->getAttributeValidationClass('postcode') ?>" />
|
102 |
+
</div>
|
103 |
+
</div>
|
104 |
+
<div class="col-lg-6">
|
105 |
+
<div class="input-box">
|
106 |
+
<?php echo $this->getCountryHtmlSelect('billing') ?>
|
107 |
+
</div>
|
108 |
+
</div>
|
109 |
+
</li>
|
110 |
+
<li class="form-group">
|
111 |
+
<div class="col-lg-6">
|
112 |
+
<div class="input-box">
|
113 |
+
<input placeholder="<?php echo $this->__('Telephone') ?>" type="text" name="billing[telephone]" value="<?php echo $this->escapeHtml($this->getAddress()->getTelephone()) ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Telephone')) ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('telephone') ?>" id="billing:telephone" />
|
114 |
+
</div>
|
115 |
+
</div>
|
116 |
+
<div class="col-lg-6">
|
117 |
+
<div class="input-box">
|
118 |
+
<input placeholder="<?php echo $this->__('Fax') ?>" type="text" name="billing[fax]" value="<?php echo $this->escapeHtml($this->getAddress()->getFax()) ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Fax')) ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('fax') ?>" id="billing:fax" />
|
119 |
+
</div>
|
120 |
+
</div>
|
121 |
+
</li>
|
122 |
+
<?php if(!$this->isCustomerLoggedIn()): ?>
|
123 |
+
|
124 |
+
<?php $_dob = $this->getLayout()->createBlock('customer/widget_dob') ?>
|
125 |
+
<?php $_gender = $this->getLayout()->createBlock('customer/widget_gender') ?>
|
126 |
+
<?php if ($_dob->isEnabled() || $_gender->isEnabled()): ?>
|
127 |
+
<li class="form-group">
|
128 |
+
<?php if ($_dob->isEnabled()): ?>
|
129 |
+
<div class="col-lg-6">
|
130 |
+
<?php echo $_dob->setDate($this->getQuote()->getCustomerDob())->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml() ?>
|
131 |
+
</div>
|
132 |
+
<?php endif; ?>
|
133 |
+
<?php if ($_gender->isEnabled()): ?>
|
134 |
+
<div class="col-lg-6">
|
135 |
+
<?php echo $_gender->setGender($this->getQuote()->getCustomerGender())->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml() ?>
|
136 |
+
</div>
|
137 |
+
<?php endif ?>
|
138 |
+
</li>
|
139 |
+
<?php endif ?>
|
140 |
+
|
141 |
+
<?php $_taxvat = $this->getLayout()->createBlock('customer/widget_taxvat') ?>
|
142 |
+
<?php if ($_taxvat->isEnabled()): ?>
|
143 |
+
<li>
|
144 |
+
<?php echo $_taxvat->setTaxvat($this->getQuote()->getCustomerTaxvat())->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml() ?>
|
145 |
+
</li>
|
146 |
+
<?php endif ?>
|
147 |
+
|
148 |
+
<li class="form-group" id="register-customer-password">
|
149 |
+
<div class="col-lg-6">
|
150 |
+
<div class="input-box">
|
151 |
+
<input placeholder="<?php echo $this->__('Password') ?>" type="password" name="billing[customer_password]" id="billing:customer_password" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Password')) ?>" class="input-text required-entry validate-password" />
|
152 |
+
</div>
|
153 |
+
</div>
|
154 |
+
<div class="col-lg-6">
|
155 |
+
<div class="input-box">
|
156 |
+
<input placeholder="<?php echo $this->__('Confirm Password') ?>" type="password" name="billing[confirm_password]" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Confirm Password')) ?>" id="billing:confirm_password" class="input-text required-entry validate-cpassword" />
|
157 |
+
</div>
|
158 |
+
</div>
|
159 |
+
</li>
|
160 |
+
<?php endif; ?>
|
161 |
+
<?php if ($this->isCustomerLoggedIn() && $this->customerHasAddresses()):?>
|
162 |
+
<li class="control">
|
163 |
+
<input type="checkbox" name="billing[save_in_address_book]" value="1" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Save in address book')) ?>" id="billing:save_in_address_book" onchange="if(window.shipping) shipping.setSameAsBilling(false);"<?php if ($this->getAddress()->getSaveInAddressBook()):?> checked="checked"<?php endif;?> class="checkbox" /><label for="billing:save_in_address_book"><?php echo $this->__('Save in address book') ?></label>
|
164 |
+
</li>
|
165 |
+
<?php else:?>
|
166 |
+
<li class="no-display"><input type="hidden" name="billing[save_in_address_book]" value="1" /></li>
|
167 |
+
<?php endif; ?>
|
168 |
+
<?php echo $this->getChildHtml('form.additional.info'); ?>
|
169 |
+
</ul>
|
170 |
+
</fieldset>
|
171 |
+
</li>
|
172 |
+
<?php /* Extensions placeholder */ ?>
|
173 |
+
<?php echo $this->getChildHtml('checkout.onepage.billing.extra')?>
|
174 |
+
<?php if ($this->canShip()): ?>
|
175 |
+
<li class="control">
|
176 |
+
<input type="radio" name="billing[use_for_shipping]" id="billing:use_for_shipping_yes" value="1"<?php if ($this->isUseBillingAddressForShipping()) {?> checked="checked"<?php }?> title="<?php echo Mage::helper('core')->quoteEscape($this->__('Ship to this address')) ?>" onclick="$('shipping:same_as_billing').checked = true;" class="radio" /><label for="billing:use_for_shipping_yes"><?php echo $this->__('Ship to this address') ?></label></li>
|
177 |
+
<li class="control">
|
178 |
+
<input type="radio" name="billing[use_for_shipping]" id="billing:use_for_shipping_no" value="0"<?php if (!$this->isUseBillingAddressForShipping()) {?> checked="checked"<?php }?> title="<?php echo Mage::helper('core')->quoteEscape($this->__('Ship to different address')) ?>" onclick="$('shipping:same_as_billing').checked = false;" class="radio" /><label for="billing:use_for_shipping_no"><?php echo $this->__('Ship to different address') ?></label>
|
179 |
+
</li>
|
180 |
+
<?php endif; ?>
|
181 |
+
</ul>
|
182 |
+
<?php if (!$this->canShip()): ?>
|
183 |
+
<input type="hidden" name="billing[use_for_shipping]" value="1" />
|
184 |
+
<?php endif; ?>
|
185 |
+
<div class="buttons-set" id="billing-buttons-container">
|
186 |
+
<p class="required"><?php echo $this->__('* Required Fields') ?></p>
|
187 |
+
<button type="button" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Continue')) ?>" class="button" onclick="billing.save()"><span><span><?php echo $this->__('Continue') ?></span></span></button>
|
188 |
+
<span class="please-wait" id="billing-please-wait" style="display:none;">
|
189 |
+
<img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="<?php echo Mage::helper('core')->quoteEscape($this->__('Loading next step...')) ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Loading next step...')) ?>" class="v-middle" /> <?php echo $this->__('Loading next step...') ?>
|
190 |
+
</span>
|
191 |
+
</div>
|
192 |
+
</fieldset>
|
193 |
+
</form>
|
194 |
+
<script type="text/javascript">
|
195 |
+
//<![CDATA[
|
196 |
+
var billing = new Billing('co-billing-form', '<?php echo $this->getUrl('checkout/onepage/getAddress') ?>address/', '<?php echo $this->getUrl('checkout/onepage/saveBilling') ?>');
|
197 |
+
var billingForm = new VarienForm('co-billing-form');
|
198 |
+
|
199 |
+
//billingForm.setElementsRelation('billing:country_id', 'billing:region', '<?php echo $this->getUrl('directory/json/childRegion') ?>', '<?php echo $this->__('Select State/Province...') ?>');
|
200 |
+
$('billing-address-select') && billing.newAddress(!$('billing-address-select').value);
|
201 |
+
|
202 |
+
var billingRegionUpdater = new RegionUpdater('billing:country_id', 'billing:region', 'billing:region_id', <?php echo $this->helper('directory')->getRegionJson() ?>, undefined, 'billing:postcode');
|
203 |
+
//]]>
|
204 |
+
</script>
|
app/design/frontend/base/default/template/eke/fullcheckout/onepage/shipping.phtml
ADDED
@@ -0,0 +1,156 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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@magento.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.magento.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<form action="" id="co-shipping-form">
|
28 |
+
<ul class="form-list">
|
29 |
+
<?php if ($this->customerHasAddresses()): ?>
|
30 |
+
<li class="wide">
|
31 |
+
<label for="shipping-address-select"><?php echo $this->__('Select a shipping address from your address book or enter a new address.') ?></label>
|
32 |
+
<div class="input-box">
|
33 |
+
<?php echo $this->getAddressesHtmlSelect('shipping') ?>
|
34 |
+
</div>
|
35 |
+
</li>
|
36 |
+
<?php endif ?>
|
37 |
+
<li id="shipping-new-address-form"<?php if ($this->customerHasAddresses()): ?> style="display:none;"<?php endif ?>>
|
38 |
+
<fieldset>
|
39 |
+
<input type="hidden" name="shipping[address_id]" value="<?php echo $this->getAddress()->getId() ?>" id="shipping:address_id" />
|
40 |
+
<ul>
|
41 |
+
<li class="fields"><?php echo $this->getLayout()->createBlock('customer/widget_name')->setObject($this->getAddress())->setFieldIdFormat('shipping:%s')->setFieldNameFormat('shipping[%s]')->setFieldParams('onchange="shipping.setSameAsBilling(false)"')->toHtml() ?></li>
|
42 |
+
<li class="fields">
|
43 |
+
<div class="fields">
|
44 |
+
<label for="shipping:company"><?php echo $this->__('Company') ?></label>
|
45 |
+
<div class="input-box">
|
46 |
+
<input type="text" id="shipping:company" name="shipping[company]" value="<?php echo $this->escapeHtml($this->getAddress()->getCompany()) ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Company')) ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('company') ?>" onchange="shipping.setSameAsBilling(false);" />
|
47 |
+
</div>
|
48 |
+
</div>
|
49 |
+
</li>
|
50 |
+
<?php $_streetValidationClass = $this->helper('customer/address')->getAttributeValidationClass('street'); ?>
|
51 |
+
<li class="wide">
|
52 |
+
<label for="shipping:street1" class="required"><em>*</em><?php echo $this->__('Address') ?></label>
|
53 |
+
<div class="input-box">
|
54 |
+
<input type="text" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Street Address')) ?>" name="shipping[street][]" id="shipping:street1" value="<?php echo $this->escapeHtml($this->getAddress()->getStreet(1)) ?>" class="input-text <?php echo $_streetValidationClass ?>" onchange="shipping.setSameAsBilling(false);" />
|
55 |
+
</div>
|
56 |
+
</li>
|
57 |
+
<?php $_streetValidationClass = trim(str_replace('required-entry', '', $_streetValidationClass)); ?>
|
58 |
+
<?php for ($_i = 2, $_n = $this->helper('customer/address')->getStreetLines(); $_i <= $_n; $_i++): ?>
|
59 |
+
<li class="wide">
|
60 |
+
<div class="input-box">
|
61 |
+
<input type="text" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Street Address %s', $_i)) ?>" name="shipping[street][]" id="shipping:street<?php echo $_i ?>" value="<?php echo $this->escapeHtml($this->getAddress()->getStreet($_i)) ?>" class="input-text <?php echo $_streetValidationClass ?>" onchange="shipping.setSameAsBilling(false);" />
|
62 |
+
</div>
|
63 |
+
</li>
|
64 |
+
<?php endfor; ?>
|
65 |
+
<?php if ($this->helper('customer/address')->isVatAttributeVisible()) : ?>
|
66 |
+
<li class="wide">
|
67 |
+
<label for="billing:vat_id"><?php echo $this->__('VAT Number'); ?></label>
|
68 |
+
<div class="input-box">
|
69 |
+
<input type="text" id="shipping:vat_id" name="shipping[vat_id]" value="<?php echo $this->escapeHtml($this->getAddress()->getVatId()); ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->__('VAT Number')); ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('vat_id') ?>" />
|
70 |
+
</div>
|
71 |
+
</li>
|
72 |
+
<?php endif; ?>
|
73 |
+
<li class="fields">
|
74 |
+
<div class="field">
|
75 |
+
<label for="shipping:city" class="required"><em>*</em><?php echo $this->__('City') ?></label>
|
76 |
+
<div class="input-box">
|
77 |
+
<input type="text" title="<?php echo Mage::helper('core')->quoteEscape($this->__('City')) ?>" name="shipping[city]" value="<?php echo $this->escapeHtml($this->getAddress()->getCity()) ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('city') ?>" id="shipping:city" onchange="shipping.setSameAsBilling(false);" />
|
78 |
+
</div>
|
79 |
+
</div>
|
80 |
+
<div class="field">
|
81 |
+
<label for="shipping:region" class="required"><em>*</em><?php echo $this->__('State/Province') ?></label>
|
82 |
+
<div class="input-box">
|
83 |
+
<select id="shipping:region_id" name="shipping[region_id]" title="<?php echo Mage::helper('core')->quoteEscape($this->__('State/Province')) ?>" class="validate-select" style="display:none;">
|
84 |
+
<option value=""><?php echo $this->__('Please select region, state or province') ?></option>
|
85 |
+
</select>
|
86 |
+
<script type="text/javascript">
|
87 |
+
//<![CDATA[
|
88 |
+
$('shipping:region_id').setAttribute('defaultValue', "<?php echo $this->getAddress()->getRegionId() ?>");
|
89 |
+
//]]>
|
90 |
+
</script>
|
91 |
+
<input type="text" id="shipping:region" name="shipping[region]" value="<?php echo $this->escapeHtml($this->getAddress()->getRegion()) ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->__('State/Province')) ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('region') ?>" style="display:none;" />
|
92 |
+
</div>
|
93 |
+
</div>
|
94 |
+
</li>
|
95 |
+
<li class="fields">
|
96 |
+
<div class="field">
|
97 |
+
<label for="shipping:postcode" class="required"><em>*</em><?php echo $this->__('Zip/Postal Code') ?></label>
|
98 |
+
<div class="input-box">
|
99 |
+
<input type="text" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Zip/Postal Code')) ?>" name="shipping[postcode]" id="shipping:postcode" value="<?php echo $this->escapeHtml($this->getAddress()->getPostcode()) ?>" class="input-text validate-zip-international <?php echo $this->helper('customer/address')->getAttributeValidationClass('postcode') ?>" onchange="shipping.setSameAsBilling(false);" />
|
100 |
+
</div>
|
101 |
+
</div>
|
102 |
+
<div class="field">
|
103 |
+
<label for="shipping:country_id" class="required"><em>*</em><?php echo $this->__('Country') ?></label>
|
104 |
+
<div class="input-box">
|
105 |
+
<?php echo $this->getCountryHtmlSelect('shipping') ?>
|
106 |
+
</div>
|
107 |
+
</div>
|
108 |
+
</li>
|
109 |
+
<li class="fields">
|
110 |
+
<div class="field">
|
111 |
+
<label for="shipping:telephone" class="required"><em>*</em><?php echo $this->__('Telephone') ?></label>
|
112 |
+
<div class="input-box">
|
113 |
+
<input type="text" name="shipping[telephone]" value="<?php echo $this->escapeHtml($this->getAddress()->getTelephone()) ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Telephone')) ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('telephone') ?>" id="shipping:telephone" onchange="shipping.setSameAsBilling(false);" />
|
114 |
+
</div>
|
115 |
+
</div>
|
116 |
+
<div class="field">
|
117 |
+
<label for="shipping:fax"><?php echo $this->__('Fax') ?></label>
|
118 |
+
<div class="input-box">
|
119 |
+
<input type="text" name="shipping[fax]" value="<?php echo $this->escapeHtml($this->getAddress()->getFax()) ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Fax')) ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('fax') ?>" id="shipping:fax" onchange="shipping.setSameAsBilling(false);" />
|
120 |
+
</div>
|
121 |
+
</div>
|
122 |
+
</li>
|
123 |
+
<?php if ($this->isCustomerLoggedIn() && $this->customerHasAddresses()):?>
|
124 |
+
<li class="control">
|
125 |
+
<input type="checkbox" name="shipping[save_in_address_book]" value="1" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Save in address book')) ?>" id="shipping:save_in_address_book" onchange="shipping.setSameAsBilling(false);"<?php if ($this->getAddress()->getSaveInAddressBook()):?> checked="checked"<?php endif;?> class="checkbox" /><label for="shipping:save_in_address_book"><?php echo $this->__('Save in address book') ?></label></li>
|
126 |
+
<?php else:?>
|
127 |
+
<li class="no-display"><input type="hidden" name="shipping[save_in_address_book]" value="1" /></li>
|
128 |
+
<?php endif;?>
|
129 |
+
</ul>
|
130 |
+
</fieldset>
|
131 |
+
</li>
|
132 |
+
<li class="control">
|
133 |
+
<input type="checkbox" name="shipping[same_as_billing]" id="shipping:same_as_billing" value="1"<?php if($this->getAddress()->getSameAsBilling()): ?> checked="checked"<?php endif; ?> title="<?php echo $this->__('Use Billing Address') ?>" onclick="shipping.setSameAsBilling(this.checked)" class="checkbox" /><label for="shipping:same_as_billing"><?php echo $this->__('Use Billing Address') ?></label>
|
134 |
+
</li>
|
135 |
+
</ul>
|
136 |
+
<div class="buttons-set" id="shipping-buttons-container">
|
137 |
+
<p class="required"><?php echo $this->__('* Required Fields') ?></p>
|
138 |
+
<p class="back-link"><a href="#" onclick="checkout.back(); return false;"><small>« </small><?php echo $this->__('Back') ?></a></p>
|
139 |
+
<button type="button" class="button" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Continue')) ?>" onclick="shipping.save()"><span><span><?php echo $this->__('Continue') ?></span></span></button>
|
140 |
+
<span id="shipping-please-wait" class="please-wait" style="display:none;">
|
141 |
+
<img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="<?php echo Mage::helper('core')->quoteEscape($this->__('Loading next step...')) ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Loading next step...')) ?>" class="v-middle" /> <?php echo $this->__('Loading next step...') ?>
|
142 |
+
</span>
|
143 |
+
</div>
|
144 |
+
</form>
|
145 |
+
<script type="text/javascript">
|
146 |
+
//<![CDATA[
|
147 |
+
var shipping = new Shipping('co-shipping-form', '<?php echo $this->getUrl('checkout/onepage/getAddress') ?>address/', '<?php echo $this->getUrl('checkout/onepage/saveShipping') ?>',
|
148 |
+
'<?php echo $this->getUrl('checkout/onepage/shippingMethod') ?>');
|
149 |
+
var shippingForm = new VarienForm('co-shipping-form');
|
150 |
+
shippingForm.extraChildParams = ' onchange="shipping.setSameAsBilling(false);"';
|
151 |
+
//shippingForm.setElementsRelation('shipping:country_id', 'shipping:region', '<?php echo $this->getUrl('directory/json/childRegion') ?>', '<?php echo Mage::helper('core')->jsQuoteEscape($this->__('Select State/Province...')) ?>');
|
152 |
+
$('shipping-address-select') && shipping.newAddress(!$('shipping-address-select').value);
|
153 |
+
|
154 |
+
var shippingRegionUpdater = new RegionUpdater('shipping:country_id', 'shipping:region', 'shipping:region_id', <?php echo $this->helper('directory')->getRegionJson() ?>, undefined, 'shipping:postcode');
|
155 |
+
//]]>
|
156 |
+
</script>
|
app/design/frontend/base/default/template/eke/fullcheckout/summary.phtml
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
<div class="heading">
|
3 |
+
<h3><?php echo $this->__('Order Summary') ?></h3>
|
4 |
+
</div>
|
5 |
+
|
6 |
+
<?php $_items = $this->getItems() ?>
|
7 |
+
|
8 |
+
<?php if(count($_items)): ?>
|
9 |
+
<div id="eke_FCsummary" class="col-sm-12">
|
10 |
+
<?php foreach($_items as $_item): ?>
|
11 |
+
<?php echo $this->getItemHtml($_item) ?>
|
12 |
+
<?php endforeach; ?>
|
13 |
+
</div>
|
14 |
+
<?php else: ?>
|
15 |
+
<p class="empty"><?php echo $this->__('You have no items in your shopping cart.') ?></p>
|
16 |
+
<?php endif ?>
|
17 |
+
|
18 |
+
|
19 |
+
|
20 |
+
|
21 |
+
<div class="summary">
|
22 |
+
Subtotal<br>
|
23 |
+
Shipping<br>
|
24 |
+
Total
|
25 |
+
<p class="subtotal">
|
26 |
+
<?php if ($this->canApplyMsrp()): ?>
|
27 |
+
<span class="map-cart-sidebar-total"><?php echo $this->__('ORDER TOTAL WILL BE DISPLAYED BEFORE YOU SUBMIT THE ORDER'); ?></span>
|
28 |
+
<?php else: ?>
|
29 |
+
<span class="label"><?php echo $this->__('Cart Subtotal:') ?></span> <?php echo Mage::helper('checkout')->formatPrice($this->getSubtotal()) ?>
|
30 |
+
<?php if ($_subtotalInclTax = $this->getSubtotalInclTax()): ?>
|
31 |
+
<br />(<?php echo Mage::helper('checkout')->formatPrice($_subtotalInclTax) ?> <?php echo Mage::helper('tax')->getIncExcText(true) ?>)
|
32 |
+
<?php endif; ?>
|
33 |
+
<?php endif; ?>
|
34 |
+
</p>
|
35 |
+
</div>
|
36 |
+
|
37 |
+
|
app/design/frontend/base/default/template/eke/fullcheckout/summary/default.phtml
ADDED
@@ -0,0 +1,128 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$_item = $this->getItem();
|
3 |
+
$isVisibleProduct = $_item->getProduct()->isVisibleInSiteVisibility();
|
4 |
+
$canApplyMsrp = Mage::helper('catalog')->canApplyMsrp($_item->getProduct(), Mage_Catalog_Model_Product_Attribute_Source_Msrp_Type::TYPE_BEFORE_ORDER_CONFIRM);
|
5 |
+
?>
|
6 |
+
<div class="item row">
|
7 |
+
|
8 |
+
|
9 |
+
<div class="product-image col-md-2">
|
10 |
+
<img class="image" src="<?php echo $this->getProductThumbnail()->resize(125, 125)->setWatermarkSize('30x10'); ?>" alt="<?php echo $this->escapeHtml($this->getProductName()) ?>" />
|
11 |
+
</div >
|
12 |
+
|
13 |
+
|
14 |
+
<div class="product-details col-md-10">
|
15 |
+
|
16 |
+
|
17 |
+
|
18 |
+
<div class="col-md-11 info">
|
19 |
+
<p class="product-name"><?php if ($this->hasProductUrl()): ?><a href="<?php echo $this->getProductUrl() ?>"><?php endif; ?><?php echo $this->escapeHtml($this->getProductName()) ?><?php if ($this->hasProductUrl()): ?></a><?php endif; ?></p>
|
20 |
+
<p class="product-sku">Sku: <?php echo $this->escapeHtml($_item->getSku()); ?></p>
|
21 |
+
<?php if ($_options = $this->getOptionList()):?>
|
22 |
+
<?php foreach ($_options as $_option) : ?>
|
23 |
+
<p class="options"><strong><?php echo $this->escapeHtml($_option['label']) ?>: </strong>
|
24 |
+
|
25 |
+
<?php if (is_array($_option['value'])): ?>
|
26 |
+
<?php echo nl2br(implode("\n", $_option['value'])) ?>
|
27 |
+
<?php else: ?>
|
28 |
+
<?php echo $_option['value'] ?>
|
29 |
+
<?php endif; ?>
|
30 |
+
</p>
|
31 |
+
<?php endforeach; ?>
|
32 |
+
|
33 |
+
<?php endif; ?>
|
34 |
+
|
35 |
+
<p class="pricing">
|
36 |
+
<strong><?php echo $this->getQty() ?></strong> x
|
37 |
+
|
38 |
+
|
39 |
+
|
40 |
+
|
41 |
+
|
42 |
+
<?php if ($canApplyMsrp): ?>
|
43 |
+
|
44 |
+
<span class="map-cart-sidebar-item"><?php echo $this->__('See price before order confirmation.'); ?></span>
|
45 |
+
|
46 |
+
<?php else: ?>
|
47 |
+
|
48 |
+
<?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
49 |
+
<?php if ($this->helper('tax')->displayCartBothPrices()): ?>
|
50 |
+
<?php echo $this->__('Excl. Tax'); ?>:
|
51 |
+
<?php endif; ?>
|
52 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales')): ?>
|
53 |
+
<?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?>
|
54 |
+
<?php else: ?>
|
55 |
+
<?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()) ?>
|
56 |
+
<?php endif; ?>
|
57 |
+
<?php if (Mage::helper('weee')->getApplied($_item)): ?>
|
58 |
+
<br />
|
59 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales')): ?>
|
60 |
+
<small>
|
61 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
62 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span><br />
|
63 |
+
<?php endforeach; ?>
|
64 |
+
</small>
|
65 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales')): ?>
|
66 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
67 |
+
<span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></small></span><br />
|
68 |
+
<?php endforeach; ?>
|
69 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales')): ?>
|
70 |
+
<small>
|
71 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
72 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span><br />
|
73 |
+
<?php endforeach; ?>
|
74 |
+
</small>
|
75 |
+
<?php endif; ?>
|
76 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales')): ?>
|
77 |
+
<span class="nobr"><?php echo Mage::helper('weee')->__('Total'); ?>:<br /> <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?></span>
|
78 |
+
<?php endif; ?>
|
79 |
+
<?php endif; ?>
|
80 |
+
<?php endif; ?>
|
81 |
+
|
82 |
+
|
83 |
+
|
84 |
+
<?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
85 |
+
<?php $_incl = $this->helper('checkout')->getPriceInclTax($_item); ?>
|
86 |
+
<?php if ($this->helper('tax')->displayCartBothPrices()): ?>
|
87 |
+
<br /><?php echo $this->__('Incl. Tax'); ?>:
|
88 |
+
<?php endif; ?>
|
89 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales')): ?>
|
90 |
+
<?php echo $this->helper('checkout')->formatPrice($_incl + Mage::helper('weee')->getWeeeTaxInclTax($_item)); ?>
|
91 |
+
<?php else: ?>
|
92 |
+
<?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxDisposition()) ?>
|
93 |
+
<?php endif; ?>
|
94 |
+
<?php if (Mage::helper('weee')->getApplied($_item)): ?>
|
95 |
+
<br />
|
96 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales')): ?>
|
97 |
+
<small>
|
98 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
99 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span><br />
|
100 |
+
<?php endforeach; ?>
|
101 |
+
</small>
|
102 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales')): ?>
|
103 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
104 |
+
<span class="nobr"><small><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></small></span><br />
|
105 |
+
<?php endforeach; ?>
|
106 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales')): ?>
|
107 |
+
<small>
|
108 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
109 |
+
<span class="nobr"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span><br />
|
110 |
+
<?php endforeach; ?>
|
111 |
+
</small>
|
112 |
+
<?php endif; ?>
|
113 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales')): ?>
|
114 |
+
<span class="nobr"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>:<br /> <?php echo $this->helper('checkout')->formatPrice($_incl + Mage::helper('weee')->getWeeeTaxInclTax($_item)); ?></span>
|
115 |
+
<?php endif; ?>
|
116 |
+
<?php endif; ?>
|
117 |
+
<?php endif; ?>
|
118 |
+
|
119 |
+
<?php endif; //Can apply MSRP ?>
|
120 |
+
</p>
|
121 |
+
</div>
|
122 |
+
|
123 |
+
<div class="col-md-1 remove">
|
124 |
+
<a href="<?php echo $this->getDeleteUrl() ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Remove This Item')) ?>" onclick="return confirm('<?php echo Mage::helper('core')->quoteEscape($this->__('Are you sure you would like to remove this item from the shopping cart?'), true) ?>');" class="btn-remove">Remove</a>
|
125 |
+
</div>
|
126 |
+
|
127 |
+
</div>
|
128 |
+
</div>
|
app/design/frontend/base/default/template/eke/fullcheckout/widget/name.phtml
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div class="<?php echo $this->getContainerClassName()?>">
|
2 |
+
<?php if ($this->showPrefix()): ?>
|
3 |
+
<div class="col-md-6 name-prefix">
|
4 |
+
<div class="input-box">
|
5 |
+
<?php if ($this->getPrefixOptions() === false): ?>
|
6 |
+
<input type="text" id="<?php echo $this->getFieldId('prefix')?>" name="<?php echo $this->getFieldName('prefix')?>" value="<?php echo $this->escapeHtml($this->getObject()->getPrefix()) ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->getStoreLabel('prefix')) ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('prefix') ?>" <?php echo $this->getFieldParams() ?> />
|
7 |
+
<?php else: ?>
|
8 |
+
<select id="<?php echo $this->getFieldId('prefix')?>" name="<?php echo $this->getFieldName('prefix')?>" title="<?php echo Mage::helper('core')->quoteEscape($this->getStoreLabel('prefix')) ?>" class="<?php echo $this->helper('customer/address')->getAttributeValidationClass('prefix') ?>" <?php echo $this->getFieldParams() ?>>
|
9 |
+
<?php foreach ($this->getPrefixOptions() as $_option): ?>
|
10 |
+
<option value="<?php echo $_option?>"<?php if ($this->getObject()->getPrefix()==$_option):?> selected="selected"<?php endif; ?>><?php echo $this->__($_option)?></option>
|
11 |
+
<?php endforeach; ?>
|
12 |
+
</select>
|
13 |
+
<?php endif; ?>
|
14 |
+
</div>
|
15 |
+
</div>
|
16 |
+
<?php endif; ?>
|
17 |
+
<div class="col-md-6 name-firstname">
|
18 |
+
<div class="input-box">
|
19 |
+
<input placeholder="<?php echo $this->getStoreLabel('firstname') ?>" type="text" id="<?php echo $this->getFieldId('firstname')?>" name="<?php echo $this->getFieldName('firstname')?>" value="<?php echo $this->escapeHtml($this->getObject()->getFirstname()) ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->getStoreLabel('firstname')) ?>" maxlength="255" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('firstname') ?>" <?php echo $this->getFieldParams() ?> />
|
20 |
+
</div>
|
21 |
+
</div>
|
22 |
+
<?php if ($this->showMiddlename()): ?>
|
23 |
+
<?php $isMiddlenameRequired = $this->isMiddlenameRequired(); ?>
|
24 |
+
<div class="col-md-6 name-middlename">
|
25 |
+
<div class="input-box">
|
26 |
+
<input placeholder="<?php echo $this->getStoreLabel('middlename') ?>" type="text" id="<?php echo $this->getFieldId('middlename')?>" name="<?php echo $this->getFieldName('middlename')?>" value="<?php echo $this->escapeHtml($this->getObject()->getMiddlename()) ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->getStoreLabel('middlename')) ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('middlename') ?>" <?php echo $this->getFieldParams() ?> />
|
27 |
+
</div>
|
28 |
+
</div>
|
29 |
+
<?php endif; ?>
|
30 |
+
<div class="col-md-6 name-lastname">
|
31 |
+
<div class="input-box">
|
32 |
+
<input placeholder="<?php echo $this->getStoreLabel('lastname') ?>" type="text" id="<?php echo $this->getFieldId('lastname')?>" name="<?php echo $this->getFieldName('lastname')?>" value="<?php echo $this->escapeHtml($this->getObject()->getLastname()) ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->getStoreLabel('lastname')) ?>" maxlength="255" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('lastname') ?>" <?php echo $this->getFieldParams() ?> />
|
33 |
+
</div>
|
34 |
+
</div>
|
35 |
+
<?php if ($this->showSuffix()): ?>
|
36 |
+
<div class="col-md-6 name-suffix">
|
37 |
+
<div class="input-box">
|
38 |
+
<?php if ($this->getSuffixOptions() === false): ?>
|
39 |
+
<input type="text" id="<?php echo $this->getFieldId('suffix')?>" name="<?php echo $this->getFieldName('suffix')?>" value="<?php echo $this->escapeHtml($this->getObject()->getSuffix()) ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->getStoreLabel('suffix')) ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('suffix') ?>" <?php echo $this->getFieldParams() ?> />
|
40 |
+
<?php else: ?>
|
41 |
+
<select id="<?php echo $this->getFieldId('suffix')?>" name="<?php echo $this->getFieldName('suffix')?>" title="<?php echo Mage::helper('core')->quoteEscape($this->getStoreLabel('suffix')) ?>" class="<?php echo $this->helper('customer/address')->getAttributeValidationClass('suffix') ?>" <?php echo $this->getFieldParams() ?>>
|
42 |
+
<?php foreach ($this->getSuffixOptions() as $_option): ?>
|
43 |
+
<option value="<?php echo $_option?>"<?php if ($this->getObject()->getSuffix()==$_option):?> selected="selected"<?php endif; ?>><?php echo $this->__($_option)?></option>
|
44 |
+
<?php endforeach; ?>
|
45 |
+
</select>
|
46 |
+
<?php endif; ?>
|
47 |
+
</div>
|
48 |
+
</div>
|
49 |
+
<?php endif; ?>
|
50 |
+
</div>
|
app/design/frontend/base/default/template/eke/gtrusted/checkout.phtml
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$helper = Mage::helper("eke_gtrusted");
|
3 |
+
if (!$helper->isGtrustedMetaEnabled()) {
|
4 |
+
return;
|
5 |
+
}
|
6 |
+
|
7 |
+
$order_id = Mage::getSingleton('checkout/session')->getLastRealOrderId();
|
8 |
+
$_order = Mage::getModel('sales/order')->loadByIncrementId($order_id);
|
9 |
+
|
10 |
+
$estimatedDelivery = $helper->getEstimatedDelivery();
|
11 |
+
$estimatedShip = $helper->getEstimatedShip();
|
12 |
+
|
13 |
+
if(!empty($estimatedShip)){$estShipTime = $estimatedShip; } else { $estShipTime = 3; }
|
14 |
+
if(!empty($estimatedDelivery)){$estDelTime = $estimatedDelivery; } else { $estDelTime = 7; }
|
15 |
+
|
16 |
+
|
17 |
+
$est_ship = date('Y-m-d', strtotime("+$estShipTime days"));
|
18 |
+
|
19 |
+
$est_delivery = date('Y-m-d', strtotime("+$estDelTime days"));
|
20 |
+
|
21 |
+
?>
|
22 |
+
|
23 |
+
|
24 |
+
|
25 |
+
<div id="gts-order" style="display:none;" translate="no">
|
26 |
+
|
27 |
+
<!-- start order and merchant information -->
|
28 |
+
<span id="gts-o-id"><?php echo $_order->getIncrementId(); ?></span>
|
29 |
+
<span id="gts-o-email"><?php echo $_order->getCustomerEmail(); ?></span>
|
30 |
+
<span id="gts-o-country"><?php echo $_order->getShippingAddress()->getCountry(); ?></span>
|
31 |
+
<span id="gts-o-currency"><?php echo Mage::app()->getStore()->getCurrentCurrency()->getCode(); ?></span>
|
32 |
+
<span id="gts-o-total"><?php echo round($_order->getGrandTotal(), 2); ?></span>
|
33 |
+
<span id="gts-o-discounts"><?php echo round($_order->getDiscountAmount(), 2); ?></span>
|
34 |
+
<span id="gts-o-shipping-total"><?php echo round($_order->getShippingAmount(), 2); ?></span>
|
35 |
+
<span id="gts-o-tax-total"><?php echo round($_order->getTaxAmount(), 2); ?></span>
|
36 |
+
<span id="gts-o-est-ship-date"><?php echo $est_ship; ?></span>
|
37 |
+
<span id="gts-o-est-delivery-date"><?php echo $est_delivery; ?></span>
|
38 |
+
<span id="gts-o-has-preorder">N</span>
|
39 |
+
<span id="gts-o-has-digital">N</span>
|
40 |
+
<!-- end order and merchant information -->
|
41 |
+
|
42 |
+
|
43 |
+
<?php foreach($_order->getAllVisibleItems() as $item): ?>
|
44 |
+
<!-- start repeated item specific information -->
|
45 |
+
<span class="gts-item">
|
46 |
+
<span class="gts-i-name"><?php echo $item->getName(); ?></span>
|
47 |
+
<span class="gts-i-price"><?php echo round($item->getPrice(), 2); ?></span>
|
48 |
+
<span class="gts-i-quantity"><?php echo round($item->getQtyOrdered(), 0); ?></span>
|
49 |
+
<span class="gts-i-prodsearch-id"><?php echo $item->getSku(); ?></span>
|
50 |
+
</span>
|
51 |
+
<!-- end repeated item specific information -->
|
52 |
+
<?php endforeach ?>
|
53 |
+
</div>
|
54 |
+
<!-- END Google Trusted Stores Order -->
|
app/design/frontend/base/default/template/eke/gtrusted/default.phtml
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$helper = Mage::helper("eke_gtrusted");
|
3 |
+
if (!$helper->isGtrustedMetaEnabled()) {
|
4 |
+
return;
|
5 |
+
}
|
6 |
+
|
7 |
+
?>
|
8 |
+
|
9 |
+
<!-- BEGIN: Google Trusted Stores -->
|
10 |
+
<script type="text/javascript">
|
11 |
+
var gts = gts || [];
|
12 |
+
|
13 |
+
gts.push(["id", "<?php echo $helper->getGtrustedSiteid(); ?>"]);
|
14 |
+
gts.push(["badge_position", "BOTTOM_RIGHT"]);
|
15 |
+
gts.push(["locale", "en_US"]);
|
16 |
+
|
17 |
+
(function() {
|
18 |
+
var gts = document.createElement("script");
|
19 |
+
gts.type = "text/javascript";
|
20 |
+
gts.async = true;
|
21 |
+
gts.src = "https://www.googlecommerce.com/trustedstores/api/js";
|
22 |
+
var s = document.getElementsByTagName("script")[0];
|
23 |
+
s.parentNode.insertBefore(gts, s);
|
24 |
+
})();
|
25 |
+
</script>
|
26 |
+
<!-- END: Google Trusted Stores -->
|
27 |
+
|
28 |
+
|
29 |
+
|
30 |
+
|
app/design/frontend/base/default/template/eke/inspectlet/tracker.phtml
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$helper = Mage::helper("eke_inspectlet");
|
3 |
+
if (!$helper->isTrackerPixelEnabled()) {
|
4 |
+
return;
|
5 |
+
}
|
6 |
+
$id = $helper->getTrackerWid();
|
7 |
+
|
8 |
+
$request = $this->getRequest();
|
9 |
+
$module = $request->getModuleName();
|
10 |
+
$controller = $request->getControllerName();
|
11 |
+
$action = $request->getActionName();
|
12 |
+
|
13 |
+
?>
|
14 |
+
|
15 |
+
<!-- Begin Inspectlet Embed Code -->
|
16 |
+
<script type="text/javascript" id="inspectletjs">
|
17 |
+
window.__insp = window.__insp || [];
|
18 |
+
__insp.push(['wid', <?php echo $id; ?>]);
|
19 |
+
<?php if ($helper->isEmailTrackEnabled() && Mage::getSingleton('customer/session')->isLoggedIn()) { $customer = Mage::getSingleton('customer/session')->getCustomer();
|
20 |
+
echo "__insp.push(['tagSession', {email: \"".$customer->getEmail()."\"}]);\r\n";
|
21 |
+
} ?>
|
22 |
+
<?php if(Mage::registry('current_product')) { echo "__insp.push(['tagSession', \"Product Page\"]);\r\n"; } ?>
|
23 |
+
<?php if(Mage::registry('current_product')) { echo "__insp.push(['tagSession', {product: \"".Mage::registry('current_product')->getName()."\"}]);\r\n"; } ?>
|
24 |
+
<?php if(Mage::registry('current_category') && !Mage::registry('product')) { echo "__insp.push(['tagSession', \"Category Page\"]);\r\n"; } ?>
|
25 |
+
<?php if(Mage::registry('current_category') && !Mage::registry('product')) { echo "__insp.push(['tagSession', {category: \"".Mage::registry('current_category')->getName()."\"}]);\r\n"; } ?>
|
26 |
+
<?php if($controller == 'result' || $controller =='advanced') { echo "__insp.push(['tagSession', \"Search Page\"]);\r\n"; } ?>
|
27 |
+
<?php if($controller == 'result' || $controller =='advanced') { echo "__insp.push(['tagSession', {search phrase: \"".Mage::helper('catalogsearch')->getQueryText()."\"}]);\r\n"; } ?>
|
28 |
+
<?php if($module == 'checkout' && $controller == 'cart' && $action == 'index') { echo "__insp.push(['tagSession', \"Added To Cart\"]);\r\n"; } ?>
|
29 |
+
<?php if($module == 'wishlist') { echo "__insp.push(['tagSession', \"Added To Wishlist\"]);\r\n"; } ?>
|
30 |
+
<?php if($module == 'onestepcheckout' && $action == 'index') { echo "__insp.push(['tagSession', \"Checkout Initiated\"]);\r\n"; } ?>
|
31 |
+
<?php if($module == 'checkout' && $action == 'success') { echo "__insp.push(['tagSession', \"Checkout Successful\"]);\r\n"; } ?>
|
32 |
+
<?php if($module == 'customer' && $controller == 'account' && $action == 'index') { echo "__insp.push(['tagSession', \"Account Registration\"]);\r\n"; } ?>
|
33 |
+
(function() {
|
34 |
+
function ldinsp(){if(typeof window.__inspld != "undefined") return; window.__inspld = 1; var insp = document.createElement('script'); insp.type = 'text/javascript'; insp.async = true; insp.id = "inspsync"; insp.src = ('https:' == document.location.protocol ? 'https' : 'http') + '://cdn.inspectlet.com/inspectlet.js'; var x = document.getElementsByTagName('script')[0]; x.parentNode.insertBefore(insp, x); };
|
35 |
+
setTimeout(ldinsp, 500); document.readyState != "complete" ? (window.attachEvent ? window.attachEvent('onload', ldinsp) : window.addEventListener('load', ldinsp, false)) : ldinsp();
|
36 |
+
})();
|
37 |
+
</script>
|
38 |
+
<!-- End Inspectlet Embed Code -->
|
app/design/frontend/base/default/template/eke/maptrack/order_view.phtml
ADDED
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div class="order-info-box">
|
2 |
+
|
3 |
+
<h2 class="table-caption">Tack Order Delivery</h2>
|
4 |
+
<div style="height:500px;" id="map"></div>
|
5 |
+
|
6 |
+
</div>
|
7 |
+
<?php
|
8 |
+
|
9 |
+
|
10 |
+
|
11 |
+
$trackingNumber = 9405516901654213938584;
|
12 |
+
|
13 |
+
$xml = rawurlencode("
|
14 |
+
<TrackID ID=\"9405516901654213938584\"></TrackID>
|
15 |
+
</TrackFieldRequest>");
|
16 |
+
$request = "http://production.shippingapis.com/ShippingAPI.dll?API=TrackV2&XML=<?xml%20version=\"1.0\"%20encoding=\"UTF-8\"%20?><Revision>1</Revision><TrackFieldRequest%20PASSWORD=\"\"%20USERID=\"966EKEDI7934\"%20APPID=\"\">" . $xml;
|
17 |
+
echo $request . '<br /><br /><br /><br />';
|
18 |
+
|
19 |
+
// send the POST values to USPS
|
20 |
+
$ch = curl_init();
|
21 |
+
curl_setopt($ch, CURLOPT_URL,$request);
|
22 |
+
curl_setopt($ch, CURLOPT_HEADER, false);
|
23 |
+
curl_setopt($ch, CURLOPT_HTTPGET, true);
|
24 |
+
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
25 |
+
|
26 |
+
|
27 |
+
$result = curl_exec($ch);
|
28 |
+
|
29 |
+
curl_close($ch);
|
30 |
+
|
31 |
+
//$response = new SimpleXMLElement($result);
|
32 |
+
//$response_array = json_decode(json_encode($response),true);
|
33 |
+
|
34 |
+
print_r($result);
|
35 |
+
/*
|
36 |
+
foreach($response_array as $response){
|
37 |
+
foreach($response['TrackDetail'] as $details){
|
38 |
+
|
39 |
+
if (0 === strpos($details, 'Arrived ')) {
|
40 |
+
//echo $details.'<br />';
|
41 |
+
$details = explode(",", $details);
|
42 |
+
$zip = $details[5];
|
43 |
+
$zip = preg_replace("/[^0-9,.]/", "", $zip);
|
44 |
+
|
45 |
+
|
46 |
+
$url = "http://api.geonames.org/postalCodeSearch?postalcode=".$zip."&username=ekedigital";
|
47 |
+
$ch = curl_init();
|
48 |
+
curl_setopt($ch, CURLOPT_URL, $url);
|
49 |
+
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
50 |
+
curl_setopt($ch, CURLOPT_PROXYPORT, 3128);
|
51 |
+
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
|
52 |
+
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
|
53 |
+
$response = curl_exec($ch);
|
54 |
+
curl_close($ch);
|
55 |
+
$response_a = new SimpleXMLElement($response);
|
56 |
+
$response_a_array = json_decode(json_encode($response_a),true);
|
57 |
+
|
58 |
+
foreach($response_a_array['code'] as $zipDetails){
|
59 |
+
//print_r($zipDetails);
|
60 |
+
$countryCheck = $zipDetails['countryCode'];
|
61 |
+
|
62 |
+
if($countryCheck == 'US'){
|
63 |
+
$lat = $zipDetails['lat'];
|
64 |
+
$long = $zipDetails['lng'];
|
65 |
+
$d4rkString .= "{lat: $lat, lng: $long},";
|
66 |
+
}
|
67 |
+
}
|
68 |
+
|
69 |
+
}
|
70 |
+
|
71 |
+
}
|
72 |
+
}
|
73 |
+
|
74 |
+
*/
|
75 |
+
//echo "LAT DETAILS: $d4rkString";
|
76 |
+
|
77 |
+
$d4rkString = rtrim($d4rkString, ',');
|
78 |
+
|
79 |
+
?>
|
80 |
+
|
81 |
+
|
82 |
+
|
83 |
+
|
84 |
+
<script>
|
85 |
+
|
86 |
+
function initMap() {
|
87 |
+
var map = new google.maps.Map(document.getElementById('map'), {
|
88 |
+
zoom: 3,
|
89 |
+
center: {lat: 25.90966, lng: -80.247} ,
|
90 |
+
mapTypeId: 'terrain'
|
91 |
+
});
|
92 |
+
|
93 |
+
var flightPlanCoordinates = [
|
94 |
+
<?php echo $d4rkString; ?>
|
95 |
+
];
|
96 |
+
var flightPath = new google.maps.Polyline({
|
97 |
+
path: flightPlanCoordinates,
|
98 |
+
geodesic: true,
|
99 |
+
strokeColor: '#FF0000',
|
100 |
+
strokeOpacity: 1.0,
|
101 |
+
strokeWeight: 2
|
102 |
+
});
|
103 |
+
|
104 |
+
flightPath.setMap(map);
|
105 |
+
}
|
106 |
+
</script>
|
107 |
+
|
108 |
+
<script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAGW8TBVdcpyjp7tNA6CB18Ol0wM2U1_EI&callback=initMap"> </script>
|
app/design/frontend/base/default/template/eke/mouseflow/tracker.phtml
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$helper = Mage::helper("eke_mouseflow");
|
3 |
+
if (!$helper->isTrackerEnabled()) {
|
4 |
+
return;
|
5 |
+
}
|
6 |
+
$id = $helper->getTrackerId();
|
7 |
+
?>
|
8 |
+
|
9 |
+
<script type="text/javascript">
|
10 |
+
var _mfq = _mfq || [];
|
11 |
+
(function() {
|
12 |
+
var mf = document.createElement("script");
|
13 |
+
mf.type = "text/javascript"; mf.async = true;
|
14 |
+
mf.src = "//cdn.mouseflow.com/projects/<?php echo $id; ?>.js";
|
15 |
+
document.getElementsByTagName("head")[0].appendChild(mf);
|
16 |
+
})();
|
17 |
+
|
18 |
+
<?php
|
19 |
+
$request = $this->getRequest();
|
20 |
+
$module = $request->getModuleName();
|
21 |
+
$controller = $request->getControllerName();
|
22 |
+
$action = $request->getActionName();
|
23 |
+
|
24 |
+
if(Mage::registry('current_product')) { echo '_mfq.push(["setVariable", "Page", "Product"]);'; }
|
25 |
+
|
26 |
+
if($controller == 'result' || $controller =='advanced') { echo '_mfq.push(["setVariable", "Page", "Search Result"]);'; }
|
27 |
+
|
28 |
+
if($module == 'customer' && $controller == 'account' && $action == 'index'){ echo '_mfq.push(["setVariable", "User", "Account Registered"]);'; }
|
29 |
+
|
30 |
+
if($module == 'checkout' && $controller == 'cart' && $action == 'index') {echo '_mfq.push(["setVariable", "Cart", "Added Product"]);'; }
|
31 |
+
|
32 |
+
if($module == 'wishlist') { echo '_mfq.push(["setVariable", "Wishlist", "Added"]);'; }
|
33 |
+
|
34 |
+
if($module == 'onestepcheckout' && $action == 'index') { echo '_mfq.push(["setVariable", "Checkout", "Initiate"]);'; }
|
35 |
+
|
36 |
+
if($module == 'checkout' && $action == 'success') { echo '_mfq.push(["setVariable", "Checkout", "Completed"]);'; }
|
37 |
+
|
38 |
+
?>
|
39 |
+
|
40 |
+
|
41 |
+
</script>
|
42 |
+
|
43 |
+
|
44 |
+
|
45 |
+
|
app/design/frontend/base/default/template/eke/ogmeta/blog.phtml
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$helper = Mage::helper("eke_ogmeta");
|
3 |
+
if (!$helper->isOgMetaEnabled()) {
|
4 |
+
return;
|
5 |
+
}
|
6 |
+
$image = $helper->getOgImage();
|
7 |
+
$siteName = $helper->getSiteName();
|
8 |
+
?>
|
9 |
+
|
10 |
+
<!-- OG META Data -->
|
11 |
+
<meta property="og:title" content="<?php echo $this->getLayout()->getBlock('head')->getTitle(); ?>" />
|
12 |
+
<meta property="og:site_name" content="<?php echo $siteName; ?>" />
|
13 |
+
<meta property="og:type" content="website" />
|
14 |
+
<meta property="og:url" content="<?php echo $this->helper('core/url')->getCurrentUrl(); ?>" />
|
15 |
+
<meta property="og:image" content="<?php echo $image; ?>" />
|
16 |
+
<meta property="og:description" content="<?php echo $this->getLayout()->getBlock('head')->getDescription(); ?>" />
|
17 |
+
|
app/design/frontend/base/default/template/eke/ogmeta/blog_post.phtml
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$helper = Mage::helper("eke_ogmeta");
|
3 |
+
if (!$helper->isOgMetaEnabled()) {
|
4 |
+
return;
|
5 |
+
}
|
6 |
+
$image = $helper->getOgImage();
|
7 |
+
$siteName = $helper->getSiteName();
|
8 |
+
?>
|
9 |
+
|
10 |
+
<!-- OG META Data -->
|
11 |
+
<meta property="og:title" content="<?php echo $this->getLayout()->getBlock('head')->getTitle(); ?>" />
|
12 |
+
<meta property="og:site_name" content="<?php echo $siteName; ?>" />
|
13 |
+
<meta property="og:type" content="article" />
|
14 |
+
<meta property="og:url" content="<?php echo $this->helper('core/url')->getCurrentUrl(); ?>" />
|
15 |
+
<meta property="og:image" content="<?php echo $image; ?>" />
|
16 |
+
<meta property="og:description" content="<?php echo $this->getLayout()->getBlock('head')->getDescription(); ?>" />
|
17 |
+
|
app/design/frontend/base/default/template/eke/ogmeta/category.phtml
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$helper = Mage::helper("eke_ogmeta");
|
3 |
+
if (!$helper->isOgMetaEnabled()) {
|
4 |
+
return;
|
5 |
+
}
|
6 |
+
$image = $helper->getOgImage();
|
7 |
+
$siteName = $helper->getSiteName();
|
8 |
+
?>
|
9 |
+
|
10 |
+
<!-- OG META Data -->
|
11 |
+
<meta property="og:title" content="<?php echo $this->getLayout()->getBlock('head')->getTitle(); ?>" />
|
12 |
+
<meta property="og:site_name" content="<?php echo $siteName; ?>" />
|
13 |
+
<meta property="og:type" content="product.group" />
|
14 |
+
<meta property="og:url" content="<?php echo $this->helper('core/url')->getCurrentUrl(); ?>" />
|
15 |
+
<meta property="og:description" content="<?php echo $this->getLayout()->getBlock('head')->getDescription(); ?>" />
|
16 |
+
<meta property="og:image" content="<?php echo $image; ?>" />
|
17 |
+
|
app/design/frontend/base/default/template/eke/ogmeta/cms.phtml
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$helper = Mage::helper("eke_ogmeta");
|
3 |
+
if (!$helper->isOgMetaEnabled()) {
|
4 |
+
return;
|
5 |
+
}
|
6 |
+
$image = $helper->getOgImage();
|
7 |
+
$siteName = $helper->getSiteName();
|
8 |
+
?>
|
9 |
+
|
10 |
+
<!-- OG META Data -->
|
11 |
+
<meta property="og:title" content="<?php echo $this->getLayout()->getBlock('head')->getTitle(); ?>" />
|
12 |
+
<meta property="og:site_name" content="<?php echo $siteName; ?>" />
|
13 |
+
<meta property="og:type" content="website" />
|
14 |
+
<meta property="og:url" content="<?php echo $this->helper('core/url')->getCurrentUrl(); ?>" />
|
15 |
+
<meta property="og:image" content="<?php echo $image; ?>" />
|
16 |
+
<meta property="og:description" content="<?php echo $this->getLayout()->getBlock('head')->getDescription(); ?>" />
|
17 |
+
|
app/design/frontend/base/default/template/eke/ogmeta/home.phtml
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$helper = Mage::helper("eke_ogmeta");
|
3 |
+
if (!$helper->isOgMetaEnabled()) {
|
4 |
+
return;
|
5 |
+
}
|
6 |
+
$image = $helper->getOgImage();
|
7 |
+
$siteName = $helper->getSiteName();
|
8 |
+
?>
|
9 |
+
|
10 |
+
<!-- OG META Data -->
|
11 |
+
<meta property="og:title" content="<?php echo $this->getLayout()->getBlock('head')->getTitle(); ?>" />
|
12 |
+
<meta property="og:site_name" content="<?php echo $siteName; ?>" />
|
13 |
+
<meta property="og:type" content="website" />
|
14 |
+
<meta property="og:url" content="<?php echo $this->helper('core/url')->getCurrentUrl(); ?>" />
|
15 |
+
<meta property="og:image" content="<?php echo $image; ?>" />
|
16 |
+
<meta property="og:description" content="<?php echo $this->getLayout()->getBlock('head')->getDescription(); ?>" />
|
17 |
+
|
app/design/frontend/base/default/template/eke/ogmeta/product.phtml
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$helper = Mage::helper("eke_ogmeta");
|
3 |
+
if (!$helper->isOgMetaEnabled()) {
|
4 |
+
return;
|
5 |
+
}
|
6 |
+
$siteName = $helper->getSiteName();
|
7 |
+
$product = Mage::registry('current_product');
|
8 |
+
?>
|
9 |
+
|
10 |
+
<!-- OG META Product Data -->
|
11 |
+
<meta property="og:title" content="<?php echo $this->getLayout()->getBlock('head')->getTitle(); ?>" />
|
12 |
+
<meta property="og:site_name" content="<?php echo $siteName; ?>" />
|
13 |
+
<meta property="og:type" content="product" />
|
14 |
+
<meta property="og:url" content="<?php echo $this->helper('core/url')->getCurrentUrl(); ?>" />
|
15 |
+
<meta property="og:image" content="<?php echo $product->getImageUrl(); ?>" />
|
16 |
+
<meta property="og:description" content="<?php echo strip_tags($product->getDescription()); ?>" />
|
17 |
+
|
app/design/frontend/base/default/template/eke/socialcheckout/order_view.phtml
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$helper = Mage::helper("eke_socialcheckout");
|
3 |
+
if (!$helper->isCheckoutSocialEnabled()) {
|
4 |
+
return;
|
5 |
+
}
|
6 |
+
$heading = $helper->getHeading();
|
7 |
+
$subHeading = $helper->getSubHeading();
|
8 |
+
$twitterUsername = $helper->getTwitterUsername();
|
9 |
+
?>
|
10 |
+
|
11 |
+
<div class="sc_container">
|
12 |
+
<?php if(!empty($heading)) { echo "<h1>$heading</h1>"; } ?>
|
13 |
+
<?php if(!empty($subHeading)) { echo "<h3>$subHeading</h3>"; } ?>
|
14 |
+
|
15 |
+
<?php
|
16 |
+
|
17 |
+
$order = Mage::getSingleton('sales/order');
|
18 |
+
$order->loadByIncrementId(Mage::getSingleton('checkout/session')->getLastRealOrderId());
|
19 |
+
$_items = $order->getAllItems();
|
20 |
+
|
21 |
+
foreach ($_items as $item){ ?>
|
22 |
+
|
23 |
+
<div class="sc_item">
|
24 |
+
|
25 |
+
<img src="<?php echo $item->getProduct()->getImageUrl(); ?>" />
|
26 |
+
<p class="sc_item_name"><?php echo $item->getName(); ?></p>
|
27 |
+
|
28 |
+
<div class="sc_icons">
|
29 |
+
<?php $productUrl = Mage::getBaseUrl() . $item->getProduct()->getUrlPath(); ?>
|
30 |
+
<?php if ($helper->isFacebookEnabled()) { ?>
|
31 |
+
<a onClick="window.open('https://www.facebook.com/sharer.php?u=<?php echo $productUrl; ?>','sc_fbshare','toolbar=0,status=0,width=580,height=525');" href="javascript: void(0)" />
|
32 |
+
<i class="fa fa-facebook-official" aria-hidden="true"></i></a>
|
33 |
+
<?php } ?>
|
34 |
+
|
35 |
+
<?php if ($helper->isTwitterEnabled()) { ?>
|
36 |
+
<a onClick="window.open('https://twitter.com/intent/tweet?url=<?php echo $productUrl; ?>&text=<?php echo $item->getProduct()->getName(); ?><?php if(!empty($twitterUsername)) {echo "&via=$twitterUsername";}?>','sc_twittershare','toolbar=0,status=0,width=580,height=525');" href="javascript: void(0)" />
|
37 |
+
<i class="fa fa-twitter-square" aria-hidden="true"></i></a>
|
38 |
+
<?php } ?>
|
39 |
+
|
40 |
+
<?php if ($helper->isGoogleEnabled()) { ?>
|
41 |
+
<a onClick="window.open('https://plus.google.com/share?url=<?php echo $productUrl; ?>','sc_googleplusshare','toolbar=0,status=0,width=580,height=525');" href="javascript: void(0)" />
|
42 |
+
<i class="fa fa-google-plus-square" aria-hidden="true"></i></a>
|
43 |
+
<?php } ?>
|
44 |
+
|
45 |
+
<?php if ($helper->isPinterestEnabled()) { ?>
|
46 |
+
<a onClick="window.open('https://pinterest.com/pin/create/bookmarklet/?media=<?php echo $item->getProduct()->getImageUrl(); ?>&url=<?php echo $productUrl; ?>&description=<?php echo $item->getProduct()->getName(); ?>','sc_pinterestshare','toolbar=0,status=0,width=800,height=700');" href="javascript: void(0)" />
|
47 |
+
<i class="fa fa-pinterest-square" aria-hidden="true"></i></a>
|
48 |
+
<?php } ?>
|
49 |
+
|
50 |
+
</div>
|
51 |
+
|
52 |
+
</div>
|
53 |
+
<?php } ?>
|
54 |
+
</div>
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Eke_Facebook</name>
|
4 |
-
<version>0.1.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Facebook tracking pixel integration extension for Magento.</summary>
|
10 |
<description>This extension integrations the Facebook tracking pixel and tracks events.</description>
|
11 |
-
<notes>
|
12 |
<authors><author><name>Eke Digital</name><user>ekedigital</user><email>dane@ekedigital.com</email></author></authors>
|
13 |
-
<date>
|
14 |
-
<time>
|
15 |
-
<contents><target name="magecommunity"><dir name="Eke"><dir name="Facebook"><dir name="Helper"><file name="Data.php" hash="fafa66007e137e4ca8bcf75033f14627"/></dir><dir name="etc"><file name="adminhtml.xml" hash="70388eac316c72e69c41d267180b200b"/><file name="config.xml" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php><package><name>Mage_Core_Helper_Abstract</name><channel>community</channel><min>1.6</min><max>1.9</max></package></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Eke_Facebook</name>
|
4 |
+
<version>0.1.1</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Facebook tracking pixel integration extension for Magento.</summary>
|
10 |
<description>This extension integrations the Facebook tracking pixel and tracks events.</description>
|
11 |
+
<notes>Fixed typo on the noscript fallback tracking pixel image path.</notes>
|
12 |
<authors><author><name>Eke Digital</name><user>ekedigital</user><email>dane@ekedigital.com</email></author></authors>
|
13 |
+
<date>2017-03-07</date>
|
14 |
+
<time>00:42:37</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Eke"><dir name="Facebook"><dir name="Block"><dir name="Adminhtml"><file name="About.php" hash="b2e9f56b83d3ec7826d5bab175505ef4"/></dir></dir><dir name="Helper"><file name="Data.php" hash="fafa66007e137e4ca8bcf75033f14627"/></dir><dir name="etc"><file name="adminhtml.xml" hash="70388eac316c72e69c41d267180b200b"/><file name="config.xml" hash="77ce41e9cbb0c81704710d4ca16936a4"/><file name="system.xml" hash="996ae244036cbb518bc943702ae0eeac"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="eke"><dir name="ajaxcategory"><file name="init.phtml" hash="7dc06dd9eb4e118c5cc7279508b5de43"/></dir><dir name="avant"><file name="checkout.phtml" hash="4d37b17e3678707e8aece8dc5be8b030"/><file name="default.phtml" hash="82a8fb850b9af7b5667a062468129fb5"/></dir><dir name="blockdomain"><file name="domain.phtml" hash="bc828f7fa97418a28250118350cd679e"/></dir><dir name="checkoutmap"><file name="order_view.phtml" hash="85aa5d449a2a27fd86374c8763339e02"/></dir><dir name="defaultoption"><file name="product.phtml" hash="2319cd08b6726904dc93b60d5f4f0353"/></dir><dir name="facebook"><file name="tracker.phtml" hash="8185220ec53eff2a5d8619f4d3f93d8d"/></dir><dir name="freeshipnotice"><file name="cart.phtml" hash="3c5608039babe6533467e7a6b4e68de7"/><file name="top_page.phtml" hash="2db005f7cfc88280fa828a72237e0c89"/></dir><dir name="fullcheckout"><dir name="onepage"><file name="billing.phtml" hash="1aeb7feae8e24ec3f75bbfa13675ba27"/><file name="shipping.phtml" hash="f831d611d573e0ed6ce2b9c2dcb88fd2"/></dir><file name="onepage.phtml" hash="46b03eb5c1444fd6dc54b7759d6aee85"/><dir name="summary"><file name="default.phtml" hash="35d911f4bd87187bce91fe75590ee278"/></dir><file name="summary.phtml" hash="bcd61f1898f206b5fb6f33c2eca02a8c"/><dir name="widget"><file name="name.phtml" hash="10e79983207e804366424eff2321331a"/></dir></dir><dir name="gtrusted"><file name="checkout.phtml" hash="ba839b558cfab4b14e89c5fb465e5aed"/><file name="default.phtml" hash="368e4601212cfbb1b8ec687006cbcb9e"/></dir><dir name="inspectlet"><file name="tracker.phtml" hash="cdc20d66ac9b33fb68401d8bf6865f2b"/></dir><dir name="maptrack"><file name="order_view.phtml" hash="e72bb3d018a6adf78852de40913d9f21"/></dir><dir name="mouseflow"><file name="tracker.phtml" hash="bd7f10bdf8e08a77999598d5971812c8"/></dir><dir name="ogmeta"><file name="blog.phtml" hash="060f0a777846496883441c2075860981"/><file name="blog_post.phtml" hash="9ac3af92d391d213321e129054370a98"/><file name="category.phtml" hash="cb9b73a4c5ba10f92f205a64d2d7d5ef"/><file name="cms.phtml" hash="060f0a777846496883441c2075860981"/><file name="home.phtml" hash="060f0a777846496883441c2075860981"/><file name="product.phtml" hash="88aea7d886063345cdefe95df91d3c11"/></dir><dir name="socialcheckout"><file name="order_view.phtml" hash="57080893abbb3fff2dd008329b6801b4"/></dir></dir></dir><dir name="layout"><file name="eke_facebook.xml" hash="b4f8c22bfb782fdf80b196e4d3f12205"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Eke_Facebook.xml" hash="d0d055838e8b56b18c889fa4ed68a3b1"/></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php><package><name>Mage_Core_Helper_Abstract</name><channel>community</channel><min>1.6</min><max>1.9</max></package></required></dependencies>
|
18 |
</package>
|