Version Notes
User can show custom banners on tracking page and email
Download this release
Release Info
| Developer | Packpin Packpin |
| Extension | Packpin_Pptrack |
| Version | 1.2.0 |
| Comparing to | |
| See all releases | |
Code changes from version 1.1.0 to 1.2.0
- app/code/community/Packpin/Pptrack/Block/Adminhtml/System/Config/Fieldset/Scripts.php +53 -0
- app/code/community/Packpin/Pptrack/Block/Ads.php +21 -0
- app/code/community/Packpin/Pptrack/Block/Script.php +9 -0
- app/code/community/Packpin/Pptrack/Model/Adminhtml/System/Config/Source/Crossviews.php +14 -0
- app/code/community/Packpin/Pptrack/Model/Adminhtml/System/Config/Source/Crossviewspage.php +15 -0
- app/code/community/Packpin/Pptrack/Model/Api.php +10 -6
- app/code/community/Packpin/Pptrack/Model/EnableNotifications.php +1 -1
- app/code/community/Packpin/Pptrack/etc/config.xml +3 -1
- app/code/community/Packpin/Pptrack/etc/system.xml +87 -4
- app/design/adminhtml/default/default/layout/pptrack.xml +1 -1
- app/design/adminhtml/default/default/template/pptrack/system/config/fieldset/scripts.phtml +68 -0
- app/design/frontend/base/default/layout/pptrack.xml +3 -1
- app/design/frontend/base/default/template/pptrack/ads.phtml +15 -0
- app/design/frontend/base/default/template/pptrack/ads_email.phtml +15 -0
- app/design/frontend/base/default/template/pptrack/index.phtml +18 -4
- app/design/frontend/base/default/template/pptrack/script.phtml +1 -0
- app/etc/modules/Packpin_Pptrack.xml +1 -1
- app/locale/en_US/template/email/packpin/packpin_delivered_email.html +1 -0
- app/locale/en_US/template/email/packpin/packpin_exception_email.html +1 -0
- app/locale/en_US/template/email/packpin/packpin_failed_attempt_email.html +1 -0
- app/locale/en_US/template/email/packpin/packpin_in_transit_email.html +1 -0
- app/locale/en_US/template/email/packpin/packpin_info_received_email.html +1 -0
- app/locale/en_US/template/email/packpin/packpin_out_for_delivery_email.html +1 -0
- package.xml +5 -5
- skin/adminhtml/default/default/pptrack/css/pptrack.css +12 -0
- skin/adminhtml/default/default/pptrack/js/pptrack.js +1 -0
- skin/frontend/base/default/css/pptrack.css +16 -0
app/code/community/Packpin/Pptrack/Block/Adminhtml/System/Config/Fieldset/Scripts.php
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
class Packpin_Pptrack_Block_Adminhtml_System_Config_Fieldset_Scripts
|
| 4 |
+
extends Mage_Adminhtml_Block_Abstract
|
| 5 |
+
implements Varien_Data_Form_Element_Renderer_Interface
|
| 6 |
+
{
|
| 7 |
+
protected $_template = 'pptrack/system/config/fieldset/scripts.phtml';
|
| 8 |
+
|
| 9 |
+
/**
|
| 10 |
+
* Render fieldset html
|
| 11 |
+
*
|
| 12 |
+
* @param Varien_Data_Form_Element_Abstract $element
|
| 13 |
+
* @return string
|
| 14 |
+
*/
|
| 15 |
+
public function render(Varien_Data_Form_Element_Abstract $element)
|
| 16 |
+
{
|
| 17 |
+
return $this->toHtml();
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
/**
|
| 21 |
+
* Check if user still using temporary key
|
| 22 |
+
*
|
| 23 |
+
* @return bool
|
| 24 |
+
*/
|
| 25 |
+
public function haveTempKey()
|
| 26 |
+
{
|
| 27 |
+
$key = Mage::getStoreConfig('pp_section_setttings/settings/api_key');
|
| 28 |
+
$tempKey = Mage::getStoreConfig('pp_section_setttings/settings/temp_api_key');
|
| 29 |
+
|
| 30 |
+
if ($tempKey && $tempKey == $key) {
|
| 31 |
+
return true;
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
return false;
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
/**
|
| 38 |
+
* Get days left till temp key expiration
|
| 39 |
+
*
|
| 40 |
+
* @return string
|
| 41 |
+
*/
|
| 42 |
+
public function getDaysLeft()
|
| 43 |
+
{
|
| 44 |
+
$tempKeyInstalled = Mage::getStoreConfig('pp_section_setttings/settings/temp_key_installed');
|
| 45 |
+
$timeDiff = $tempKeyInstalled + (86400 * 7) - time();
|
| 46 |
+
if ($timeDiff > 0) {
|
| 47 |
+
return ceil($timeDiff / 86400);
|
| 48 |
+
}
|
| 49 |
+
|
| 50 |
+
return 0;
|
| 51 |
+
}
|
| 52 |
+
}
|
| 53 |
+
|
app/code/community/Packpin/Pptrack/Block/Ads.php
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
class Packpin_Pptrack_Block_Ads extends Mage_Catalog_Block_Product_Abstract
|
| 3 |
+
{
|
| 4 |
+
public function getImage()
|
| 5 |
+
{
|
| 6 |
+
$image = Mage::getStoreConfig('pp_section_setttings/crosssell/cross_sell_page_image');
|
| 7 |
+
|
| 8 |
+
if ($image) {
|
| 9 |
+
return Mage::getBaseUrl('media') . 'theme' . DIRECTORY_SEPARATOR . $image;
|
| 10 |
+
}
|
| 11 |
+
|
| 12 |
+
return false;
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
+
public function getUrl()
|
| 16 |
+
{
|
| 17 |
+
$url = Mage::getStoreConfig('pp_section_setttings/crosssell/cross_sell_page_image_url');
|
| 18 |
+
|
| 19 |
+
return $url;
|
| 20 |
+
}
|
| 21 |
+
}
|
app/code/community/Packpin/Pptrack/Block/Script.php
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
class Packpin_Pptrack_Block_Script extends Mage_Catalog_Block_Product_Abstract
|
| 3 |
+
{
|
| 4 |
+
public function getScript()
|
| 5 |
+
{
|
| 6 |
+
return Mage::getStoreConfig('pp_section_setttings/crosssell/cross_sell_page_script');
|
| 7 |
+
}
|
| 8 |
+
|
| 9 |
+
}
|
app/code/community/Packpin/Pptrack/Model/Adminhtml/System/Config/Source/Crossviews.php
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
class Packpin_Pptrack_Model_Adminhtml_System_Config_Source_Crossviews
|
| 4 |
+
{
|
| 5 |
+
public function toOptionArray()
|
| 6 |
+
{
|
| 7 |
+
$options = array(
|
| 8 |
+
array('value' => 'products', 'label' => 'Assigned cross-sell products'),
|
| 9 |
+
array('value' => 'ads', 'label' => 'Ads banner'),
|
| 10 |
+
);
|
| 11 |
+
|
| 12 |
+
return $options;
|
| 13 |
+
}
|
| 14 |
+
}
|
app/code/community/Packpin/Pptrack/Model/Adminhtml/System/Config/Source/Crossviewspage.php
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
class Packpin_Pptrack_Model_Adminhtml_System_Config_Source_Crossviewspage
|
| 4 |
+
{
|
| 5 |
+
public function toOptionArray()
|
| 6 |
+
{
|
| 7 |
+
$options = array(
|
| 8 |
+
array('value' => 'products', 'label' => 'Assigned cross-sell products'),
|
| 9 |
+
array('value' => 'ads', 'label' => 'Ads banner'),
|
| 10 |
+
array('value' => 'script', 'label' => 'Custom script'),
|
| 11 |
+
);
|
| 12 |
+
|
| 13 |
+
return $options;
|
| 14 |
+
}
|
| 15 |
+
}
|
app/code/community/Packpin/Pptrack/Model/Api.php
CHANGED
|
@@ -94,18 +94,22 @@ class Packpin_Pptrack_Model_Api extends Mage_Api_Model_Resource_Abstract
|
|
| 94 |
$emailTemplate->loadDefault($templateId, $localeCode);
|
| 95 |
}
|
| 96 |
|
| 97 |
-
|
|
|
|
| 98 |
if (Mage::getStoreConfig('pp_section_setttings/crosssell/cross_sell_email')) {
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
|
|
|
|
|
|
| 103 |
}
|
| 104 |
|
| 105 |
$variables = array(
|
| 106 |
'email' => $order->getCustomerEmail(),
|
| 107 |
'track' => $trackModel,
|
| 108 |
-
'crossSell' => $crossSell
|
|
|
|
| 109 |
);
|
| 110 |
|
| 111 |
$processedTemplate = $emailTemplate->getProcessedTemplate($variables);
|
| 94 |
$emailTemplate->loadDefault($templateId, $localeCode);
|
| 95 |
}
|
| 96 |
|
| 97 |
+
$crossSell = '';
|
| 98 |
+
$banner = '';
|
| 99 |
if (Mage::getStoreConfig('pp_section_setttings/crosssell/cross_sell_email')) {
|
| 100 |
+
if (in_array(Mage::getStoreConfig('pp_section_setttings/crosssell/cross_sell_email_type'), array('ads'))) {
|
| 101 |
+
$banner = Mage::app()->getLayout()->createBlock('pptrack/ads')->setData()->setTemplate('pptrack/ads_email.phtml')->toHtml();
|
| 102 |
+
}
|
| 103 |
+
else {
|
| 104 |
+
$crossSell = Mage::app()->getLayout()->createBlock('pptrack/crosssell')->setData(array('orderId' => $trackModel->getOrderId()))->setTemplate('pptrack/crosssell_email.phtml')->toHtml();
|
| 105 |
+
}
|
| 106 |
}
|
| 107 |
|
| 108 |
$variables = array(
|
| 109 |
'email' => $order->getCustomerEmail(),
|
| 110 |
'track' => $trackModel,
|
| 111 |
+
'crossSell' => $crossSell,
|
| 112 |
+
'banner' => $banner,
|
| 113 |
);
|
| 114 |
|
| 115 |
$processedTemplate = $emailTemplate->getProcessedTemplate($variables);
|
app/code/community/Packpin/Pptrack/Model/EnableNotifications.php
CHANGED
|
@@ -75,7 +75,7 @@ class Packpin_Pptrack_Model_Enablenotifications extends Mage_Core_Model_Config_D
|
|
| 75 |
$info = $helper->enableConnector($notificationStatus);
|
| 76 |
|
| 77 |
if(!$info OR $info['statusCode'] == 400) {
|
| 78 |
-
if($info['body']['reason'] && !empty($info['body']['reason'])) {
|
| 79 |
Mage::throwException('Could not enable notifications: '.$info['body']['reason']);
|
| 80 |
}
|
| 81 |
else {
|
| 75 |
$info = $helper->enableConnector($notificationStatus);
|
| 76 |
|
| 77 |
if(!$info OR $info['statusCode'] == 400) {
|
| 78 |
+
if(isset($info['body']['reason']) && !empty($info['body']['reason'])) {
|
| 79 |
Mage::throwException('Could not enable notifications: '.$info['body']['reason']);
|
| 80 |
}
|
| 81 |
else {
|
app/code/community/Packpin/Pptrack/etc/config.xml
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
<config>
|
| 3 |
<modules>
|
| 4 |
<Packpin_Pptrack>
|
| 5 |
-
<version>1.
|
| 6 |
</Packpin_Pptrack>
|
| 7 |
</modules>
|
| 8 |
<frontend>
|
|
@@ -231,6 +231,8 @@
|
|
| 231 |
<cross_sell_email>1</cross_sell_email>
|
| 232 |
<cross_sell_page_items>6</cross_sell_page_items>
|
| 233 |
<cross_sell_email_items>4</cross_sell_email_items>
|
|
|
|
|
|
|
| 234 |
</crosssell>
|
| 235 |
</pp_section_setttings>
|
| 236 |
<pp_section_notification_emails>
|
| 2 |
<config>
|
| 3 |
<modules>
|
| 4 |
<Packpin_Pptrack>
|
| 5 |
+
<version>1.2.0</version>
|
| 6 |
</Packpin_Pptrack>
|
| 7 |
</modules>
|
| 8 |
<frontend>
|
| 231 |
<cross_sell_email>1</cross_sell_email>
|
| 232 |
<cross_sell_page_items>6</cross_sell_page_items>
|
| 233 |
<cross_sell_email_items>4</cross_sell_email_items>
|
| 234 |
+
<cross_sell_page_type>products</cross_sell_page_type>
|
| 235 |
+
<cross_sell_email_type>products</cross_sell_email_type>
|
| 236 |
</crosssell>
|
| 237 |
</pp_section_setttings>
|
| 238 |
<pp_section_notification_emails>
|
app/code/community/Packpin/Pptrack/etc/system.xml
CHANGED
|
@@ -143,32 +143,115 @@
|
|
| 143 |
<show_in_website>1</show_in_website>
|
| 144 |
<show_in_store>0</show_in_store>
|
| 145 |
</cross_sell_page>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 146 |
<cross_sell_page_items translate="label">
|
| 147 |
-
<label>Number of cross-sell
|
| 148 |
<frontend_type>text</frontend_type>
|
| 149 |
-
<sort_order>
|
| 150 |
<show_in_default>1</show_in_default>
|
| 151 |
<show_in_website>1</show_in_website>
|
| 152 |
<show_in_store>0</show_in_store>
|
| 153 |
<comment>Recommended value is between 4 and 6</comment>
|
| 154 |
</cross_sell_page_items>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 155 |
<cross_sell_email translate="label">
|
| 156 |
<label>Show cross-sell items in notification emails</label>
|
| 157 |
<frontend_type>select</frontend_type>
|
| 158 |
<source_model>adminhtml/system_config_source_enabledisable</source_model>
|
| 159 |
-
<sort_order>
|
| 160 |
<show_in_default>1</show_in_default>
|
| 161 |
<show_in_website>1</show_in_website>
|
| 162 |
<show_in_store>0</show_in_store>
|
| 163 |
</cross_sell_email>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 164 |
<cross_sell_email_items translate="label">
|
| 165 |
<label>Number of cross-sell items in emails</label>
|
| 166 |
<frontend_type>text</frontend_type>
|
| 167 |
-
<sort_order>
|
| 168 |
<show_in_default>1</show_in_default>
|
| 169 |
<show_in_website>1</show_in_website>
|
| 170 |
<show_in_store>0</show_in_store>
|
| 171 |
</cross_sell_email_items>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 172 |
</fields>
|
| 173 |
</crosssell>
|
| 174 |
</groups>
|
| 143 |
<show_in_website>1</show_in_website>
|
| 144 |
<show_in_store>0</show_in_store>
|
| 145 |
</cross_sell_page>
|
| 146 |
+
<cross_sell_page_type translate="label">
|
| 147 |
+
<label>What cross-sell items to show on page</label>
|
| 148 |
+
<frontend_type>select</frontend_type>
|
| 149 |
+
<source_model>Packpin_Pptrack_Model_Adminhtml_System_Config_Source_Crossviewspage</source_model>
|
| 150 |
+
<sort_order>35</sort_order>
|
| 151 |
+
<show_in_default>1</show_in_default>
|
| 152 |
+
<show_in_website>1</show_in_website>
|
| 153 |
+
<show_in_store>0</show_in_store>
|
| 154 |
+
</cross_sell_page_type>
|
| 155 |
<cross_sell_page_items translate="label">
|
| 156 |
+
<label>Number of cross-sell products on page</label>
|
| 157 |
<frontend_type>text</frontend_type>
|
| 158 |
+
<sort_order>40</sort_order>
|
| 159 |
<show_in_default>1</show_in_default>
|
| 160 |
<show_in_website>1</show_in_website>
|
| 161 |
<show_in_store>0</show_in_store>
|
| 162 |
<comment>Recommended value is between 4 and 6</comment>
|
| 163 |
</cross_sell_page_items>
|
| 164 |
+
<cross_sell_page_image translate="label">
|
| 165 |
+
<label>Banner image</label>
|
| 166 |
+
<comment>Allowed file types: jpeg, gif, png.</comment>
|
| 167 |
+
<frontend_type>image</frontend_type>
|
| 168 |
+
<backend_model>adminhtml/system_config_backend_image</backend_model>
|
| 169 |
+
<upload_dir config="system/filesystem/media" scope_info="1">theme</upload_dir>
|
| 170 |
+
<base_url type="media" scope_info="1">theme</base_url>
|
| 171 |
+
<sort_order>42</sort_order>
|
| 172 |
+
<show_in_default>1</show_in_default>
|
| 173 |
+
<show_in_website>1</show_in_website>
|
| 174 |
+
<show_in_store>0</show_in_store>
|
| 175 |
+
</cross_sell_page_image>
|
| 176 |
+
<cross_sell_page_image_url translate="label">
|
| 177 |
+
<label>Banner url</label>
|
| 178 |
+
<comment><![CDATA[
|
| 179 |
+
Should start with <b>http</b>
|
| 180 |
+
]]></comment>
|
| 181 |
+
<frontend_type>text</frontend_type>
|
| 182 |
+
<sort_order>44</sort_order>
|
| 183 |
+
<show_in_default>1</show_in_default>
|
| 184 |
+
<show_in_website>1</show_in_website>
|
| 185 |
+
<show_in_store>0</show_in_store>
|
| 186 |
+
</cross_sell_page_image_url>
|
| 187 |
+
<cross_sell_page_script translate="label">
|
| 188 |
+
<label>Script</label>
|
| 189 |
+
<frontend_type>textarea</frontend_type>
|
| 190 |
+
<sort_order>46</sort_order>
|
| 191 |
+
<show_in_default>1</show_in_default>
|
| 192 |
+
<show_in_website>1</show_in_website>
|
| 193 |
+
<show_in_store>0</show_in_store>
|
| 194 |
+
<comment>Can enter HTML or JavaScript code here</comment>
|
| 195 |
+
</cross_sell_page_script>
|
| 196 |
+
|
| 197 |
+
|
| 198 |
<cross_sell_email translate="label">
|
| 199 |
<label>Show cross-sell items in notification emails</label>
|
| 200 |
<frontend_type>select</frontend_type>
|
| 201 |
<source_model>adminhtml/system_config_source_enabledisable</source_model>
|
| 202 |
+
<sort_order>50</sort_order>
|
| 203 |
<show_in_default>1</show_in_default>
|
| 204 |
<show_in_website>1</show_in_website>
|
| 205 |
<show_in_store>0</show_in_store>
|
| 206 |
</cross_sell_email>
|
| 207 |
+
<cross_sell_email_type translate="label">
|
| 208 |
+
<label>What cross-sell items to show in email</label>
|
| 209 |
+
<frontend_type>select</frontend_type>
|
| 210 |
+
<source_model>Packpin_Pptrack_Model_Adminhtml_System_Config_Source_Crossviews</source_model>
|
| 211 |
+
<sort_order>55</sort_order>
|
| 212 |
+
<show_in_default>1</show_in_default>
|
| 213 |
+
<show_in_website>1</show_in_website>
|
| 214 |
+
<show_in_store>0</show_in_store>
|
| 215 |
+
</cross_sell_email_type>
|
| 216 |
<cross_sell_email_items translate="label">
|
| 217 |
<label>Number of cross-sell items in emails</label>
|
| 218 |
<frontend_type>text</frontend_type>
|
| 219 |
+
<sort_order>60</sort_order>
|
| 220 |
<show_in_default>1</show_in_default>
|
| 221 |
<show_in_website>1</show_in_website>
|
| 222 |
<show_in_store>0</show_in_store>
|
| 223 |
</cross_sell_email_items>
|
| 224 |
+
<cross_sell_email_image translate="label">
|
| 225 |
+
<label>Banner image</label>
|
| 226 |
+
<comment>Height should be at least 100px.</comment>
|
| 227 |
+
<frontend_type>image</frontend_type>
|
| 228 |
+
<backend_model>adminhtml/system_config_backend_image</backend_model>
|
| 229 |
+
<upload_dir config="system/filesystem/media" scope_info="1">theme</upload_dir>
|
| 230 |
+
<base_url type="media" scope_info="1">theme</base_url>
|
| 231 |
+
<sort_order>62</sort_order>
|
| 232 |
+
<show_in_default>1</show_in_default>
|
| 233 |
+
<show_in_website>1</show_in_website>
|
| 234 |
+
<show_in_store>0</show_in_store>
|
| 235 |
+
</cross_sell_email_image>
|
| 236 |
+
<cross_sell_email_image_url translate="label">
|
| 237 |
+
<label>Banner url</label>
|
| 238 |
+
<comment><![CDATA[
|
| 239 |
+
Should start with <b>http</b>
|
| 240 |
+
]]></comment>
|
| 241 |
+
<frontend_type>text</frontend_type>
|
| 242 |
+
<sort_order>64</sort_order>
|
| 243 |
+
<show_in_default>1</show_in_default>
|
| 244 |
+
<show_in_website>1</show_in_website>
|
| 245 |
+
<show_in_store>0</show_in_store>
|
| 246 |
+
</cross_sell_email_image_url>
|
| 247 |
+
<cross_sell_scripts>
|
| 248 |
+
<frontend_type>text</frontend_type>
|
| 249 |
+
<frontend_model>pptrack/adminhtml_system_config_fieldset_scripts</frontend_model>
|
| 250 |
+
<sort_order>70</sort_order>
|
| 251 |
+
<show_in_default>1</show_in_default>
|
| 252 |
+
<show_in_website>1</show_in_website>
|
| 253 |
+
<show_in_store>0</show_in_store>
|
| 254 |
+
</cross_sell_scripts>
|
| 255 |
</fields>
|
| 256 |
</crosssell>
|
| 257 |
</groups>
|
app/design/adminhtml/default/default/layout/pptrack.xml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
-
<layout version="1.
|
| 3 |
<adminhtml_system_config_edit>
|
| 4 |
<reference name="head">
|
| 5 |
<action method="addCss">
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
+
<layout version="1.2.0">
|
| 3 |
<adminhtml_system_config_edit>
|
| 4 |
<reference name="head">
|
| 5 |
<action method="addCss">
|
app/design/adminhtml/default/default/template/pptrack/system/config/fieldset/scripts.phtml
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<script>
|
| 2 |
+
//Event.observe(window, 'load', function() {
|
| 3 |
+
//Event.observe('points_options_config_points_expiration_period', 'change', checkExpirationPeriod);
|
| 4 |
+
//checkExpirationPeriod();
|
| 5 |
+
//})
|
| 6 |
+
function checkCrossInputs() {
|
| 7 |
+
var v1 = $('pp_section_setttings_crosssell_cross_sell_page_type').value;
|
| 8 |
+
var v2 = $('pp_section_setttings_crosssell_cross_sell_email_type').value;
|
| 9 |
+
|
| 10 |
+
if (v1 == 'products') {
|
| 11 |
+
$('row_pp_section_setttings_crosssell_cross_sell_page_image').hide();
|
| 12 |
+
$('row_pp_section_setttings_crosssell_cross_sell_page_image_url').hide();
|
| 13 |
+
$('row_pp_section_setttings_crosssell_cross_sell_page_script').hide();
|
| 14 |
+
$('row_pp_section_setttings_crosssell_cross_sell_page_items').show();
|
| 15 |
+
}
|
| 16 |
+
else if (v1 == 'ads') {
|
| 17 |
+
$('row_pp_section_setttings_crosssell_cross_sell_page_image').show();
|
| 18 |
+
$('row_pp_section_setttings_crosssell_cross_sell_page_image_url').show();
|
| 19 |
+
$('row_pp_section_setttings_crosssell_cross_sell_page_items').hide();
|
| 20 |
+
$('row_pp_section_setttings_crosssell_cross_sell_page_script').hide();
|
| 21 |
+
}
|
| 22 |
+
else {
|
| 23 |
+
$('row_pp_section_setttings_crosssell_cross_sell_page_script').show();
|
| 24 |
+
$('row_pp_section_setttings_crosssell_cross_sell_page_image').hide();
|
| 25 |
+
$('row_pp_section_setttings_crosssell_cross_sell_page_image_url').hide();
|
| 26 |
+
$('row_pp_section_setttings_crosssell_cross_sell_page_items').hide();
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
if (v2 == 'products') {
|
| 30 |
+
$('row_pp_section_setttings_crosssell_cross_sell_email_image').hide();
|
| 31 |
+
$('row_pp_section_setttings_crosssell_cross_sell_email_image_url').hide();
|
| 32 |
+
$('row_pp_section_setttings_crosssell_cross_sell_email_items').show();
|
| 33 |
+
}
|
| 34 |
+
else if (v2 == 'ads') {
|
| 35 |
+
$('row_pp_section_setttings_crosssell_cross_sell_email_image').show();
|
| 36 |
+
$('row_pp_section_setttings_crosssell_cross_sell_email_image_url').show();
|
| 37 |
+
$('row_pp_section_setttings_crosssell_cross_sell_email_items').hide();
|
| 38 |
+
}
|
| 39 |
+
else {
|
| 40 |
+
$('row_pp_section_setttings_crosssell_cross_sell_email_image').show();
|
| 41 |
+
$('row_pp_section_setttings_crosssell_cross_sell_email_image_url').show();
|
| 42 |
+
$('row_pp_section_setttings_crosssell_cross_sell_email_items').show();
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
Event.observe(window, "load", function() {
|
| 48 |
+
checkCrossInputs();
|
| 49 |
+
Event.observe('pp_section_setttings_crosssell_cross_sell_page_type', 'change', checkCrossInputs);
|
| 50 |
+
Event.observe('pp_section_setttings_crosssell_cross_sell_email_type', 'change', checkCrossInputs);
|
| 51 |
+
});
|
| 52 |
+
|
| 53 |
+
//for packpin chat
|
| 54 |
+
<?php $user = Mage::getSingleton('admin/session'); ?>
|
| 55 |
+
window.intercomSettings = {
|
| 56 |
+
"plugin": "magento",
|
| 57 |
+
name: "<?php echo $user->getUser()->getFirstname() . ' ' . $user->getUser()->getLastname() ?>",
|
| 58 |
+
email: "<?php echo $user->getUser()->getEmail() ?>",
|
| 59 |
+
app_id: "n806bjdu",
|
| 60 |
+
"api_key": "<?php echo Mage::getStoreConfig('pp_section_setttings/settings/api_key') ?>",
|
| 61 |
+
"plugin_version": "<?php echo (string) Mage::getConfig()->getNode()->modules->Packpin_Pptrack->version ?>",
|
| 62 |
+
"plugin_shop_version": "<?php echo Mage::getVersion() ?>",
|
| 63 |
+
"shop_name": "<?php echo Mage::getStoreConfig('trans_email/ident_general/name') ?>",
|
| 64 |
+
"shop_email": "<?php echo Mage::getStoreConfig('trans_email/ident_general/email') ?>",
|
| 65 |
+
"shop_url": "<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB) ?>"
|
| 66 |
+
};
|
| 67 |
+
(function(){var w=window;var ic=w.Intercom;if(typeof ic==="function"){ic('reattach_activator');ic('update',intercomSettings);}else{var d=document;var i=function(){i.c(arguments)};i.q=[];i.c=function(args){i.q.push(args)};w.Intercom=i;function l(){var s=d.createElement('script');s.type='text/javascript';s.async=true;s.src='https://widget.intercom.io/widget/n806bjdu';var x=d.getElementsByTagName('script')[0];x.parentNode.insertBefore(s,x);}if(w.attachEvent){w.attachEvent('onload',l);}else{w.addEventListener('load',l,false);}}})();
|
| 68 |
+
</script>
|
app/design/frontend/base/default/layout/pptrack.xml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
-
<layout version="1.
|
| 3 |
<pptrack_index_index>
|
| 4 |
<reference name="root">
|
| 5 |
<action method="setTemplate">
|
|
@@ -14,6 +14,8 @@
|
|
| 14 |
<reference name="content">
|
| 15 |
<block type="pptrack/index" name="pptrack_index" template="pptrack/index.phtml">
|
| 16 |
<block type="pptrack/crosssell" name="pptrack_crosssell" template="pptrack/crosssell.phtml"/>
|
|
|
|
|
|
|
| 17 |
</block>
|
| 18 |
</reference>
|
| 19 |
</pptrack_index_index>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
+
<layout version="1.2.0">
|
| 3 |
<pptrack_index_index>
|
| 4 |
<reference name="root">
|
| 5 |
<action method="setTemplate">
|
| 14 |
<reference name="content">
|
| 15 |
<block type="pptrack/index" name="pptrack_index" template="pptrack/index.phtml">
|
| 16 |
<block type="pptrack/crosssell" name="pptrack_crosssell" template="pptrack/crosssell.phtml"/>
|
| 17 |
+
<block type="pptrack/ads" name="pptrack_ads" template="pptrack/ads.phtml"/>
|
| 18 |
+
<block type="pptrack/script" name="pptrack_script" template="pptrack/script.phtml"/>
|
| 19 |
</block>
|
| 20 |
</reference>
|
| 21 |
</pptrack_index_index>
|
app/design/frontend/base/default/template/pptrack/ads.phtml
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
$image = $this->getImage();
|
| 3 |
+
$url = $this->getUrl();
|
| 4 |
+
?>
|
| 5 |
+
<?php if ($image) : ?>
|
| 6 |
+
<div class="pptrack-top-image">
|
| 7 |
+
<?php if ($url) : ?>
|
| 8 |
+
<a href="<?php echo $url ?>" target="_blank">
|
| 9 |
+
<?php endif; ?>
|
| 10 |
+
<img src="<?php echo $image ?>" alt="">
|
| 11 |
+
<?php if ($url) : ?>
|
| 12 |
+
</a>
|
| 13 |
+
<?php endif; ?>
|
| 14 |
+
</div>
|
| 15 |
+
<?php endif; ?>
|
app/design/frontend/base/default/template/pptrack/ads_email.phtml
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
$image = $this->getImage();
|
| 3 |
+
$url = $this->getUrl();
|
| 4 |
+
?>
|
| 5 |
+
<?php if ($image) : ?>
|
| 6 |
+
<div class="pptrack-top-image" style="margin-top:5px;text-align:center;width:100%;">
|
| 7 |
+
<?php if ($url) : ?>
|
| 8 |
+
<a style="display:block;text-align:center;width:100%;text-decoration: none;" href="<?php echo $url ?>" target="_blank">
|
| 9 |
+
<?php endif; ?>
|
| 10 |
+
<img style="max-width: 100%;height: auto;margin: 0 auto;" src="<?php echo $image ?>" alt="">
|
| 11 |
+
<?php if ($url) : ?>
|
| 12 |
+
</a>
|
| 13 |
+
<?php endif; ?>
|
| 14 |
+
</div>
|
| 15 |
+
<?php endif; ?>
|
app/design/frontend/base/default/template/pptrack/index.phtml
CHANGED
|
@@ -10,10 +10,24 @@ $_helper = $this->helper('catalog/output');
|
|
| 10 |
|
| 11 |
<?php
|
| 12 |
if (Mage::getStoreConfig('pp_section_setttings/crosssell/cross_sell_page')) {
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
$child
|
| 16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
}
|
| 18 |
}
|
| 19 |
?>
|
| 10 |
|
| 11 |
<?php
|
| 12 |
if (Mage::getStoreConfig('pp_section_setttings/crosssell/cross_sell_page')) {
|
| 13 |
+
if (in_array(Mage::getStoreConfig('pp_section_setttings/crosssell/cross_sell_page_type'), array('script'))) {
|
| 14 |
+
$child = $this->getChild("pptrack_script");
|
| 15 |
+
if ($child) {
|
| 16 |
+
echo $this->getChildHtml('pptrack_script');
|
| 17 |
+
}
|
| 18 |
+
}
|
| 19 |
+
if (in_array(Mage::getStoreConfig('pp_section_setttings/crosssell/cross_sell_page_type'), array('ads', 'both'))) {
|
| 20 |
+
$child = $this->getChild("pptrack_ads");
|
| 21 |
+
if ($child) {
|
| 22 |
+
echo $this->getChildHtml('pptrack_ads');
|
| 23 |
+
}
|
| 24 |
+
}
|
| 25 |
+
if (in_array(Mage::getStoreConfig('pp_section_setttings/crosssell/cross_sell_page_type'), array('products', 'both'))) {
|
| 26 |
+
$child = $this->getChild("pptrack_crosssell");
|
| 27 |
+
if ($child) {
|
| 28 |
+
$child->setData("orderId", $model->getOrderId());
|
| 29 |
+
echo $this->getChildHtml('pptrack_crosssell');
|
| 30 |
+
}
|
| 31 |
}
|
| 32 |
}
|
| 33 |
?>
|
app/design/frontend/base/default/template/pptrack/script.phtml
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
| 1 |
+
<?php echo $this->getScript(); ?>
|
app/etc/modules/Packpin_Pptrack.xml
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
<Packpin_Pptrack>
|
| 5 |
<active>true</active>
|
| 6 |
<codePool>community</codePool>
|
| 7 |
-
<version>1.
|
| 8 |
</Packpin_Pptrack>
|
| 9 |
</modules>
|
| 10 |
</config>
|
| 4 |
<Packpin_Pptrack>
|
| 5 |
<active>true</active>
|
| 6 |
<codePool>community</codePool>
|
| 7 |
+
<version>1.2.0</version>
|
| 8 |
</Packpin_Pptrack>
|
| 9 |
</modules>
|
| 10 |
</config>
|
app/locale/en_US/template/email/packpin/packpin_delivered_email.html
CHANGED
|
@@ -27,6 +27,7 @@
|
|
| 27 |
<div style="font-size:18px;font-weight:700;text-align:center;padding-left:10px;padding-right:10px;">
|
| 28 |
YOUR PACKAGE STATUS HAS BEEN UPDATED!
|
| 29 |
</div>
|
|
|
|
| 30 |
{{var crossSell}}
|
| 31 |
<fieldset style="margin-top:20px;border-left-style:none;border-right-style:none;border-bottom-style:none;margin-left:10px;margin-right:10px;">
|
| 32 |
<legend style="font-size:14px;">YOUR PACKAGE INFORMATION</legend>
|
| 27 |
<div style="font-size:18px;font-weight:700;text-align:center;padding-left:10px;padding-right:10px;">
|
| 28 |
YOUR PACKAGE STATUS HAS BEEN UPDATED!
|
| 29 |
</div>
|
| 30 |
+
{{var banner}}
|
| 31 |
{{var crossSell}}
|
| 32 |
<fieldset style="margin-top:20px;border-left-style:none;border-right-style:none;border-bottom-style:none;margin-left:10px;margin-right:10px;">
|
| 33 |
<legend style="font-size:14px;">YOUR PACKAGE INFORMATION</legend>
|
app/locale/en_US/template/email/packpin/packpin_exception_email.html
CHANGED
|
@@ -27,6 +27,7 @@
|
|
| 27 |
<div style="font-size:18px;font-weight:700;text-align:center;padding-left:10px;padding-right:10px;">
|
| 28 |
YOUR PACKAGE STATUS HAS BEEN UPDATED!
|
| 29 |
</div>
|
|
|
|
| 30 |
{{var crossSell}}
|
| 31 |
<fieldset style="margin-top:20px;border-left-style:none;border-right-style:none;border-bottom-style:none;margin-left:10px;margin-right:10px;">
|
| 32 |
<legend style="font-size:14px;">YOUR PACKAGE INFORMATION</legend>
|
| 27 |
<div style="font-size:18px;font-weight:700;text-align:center;padding-left:10px;padding-right:10px;">
|
| 28 |
YOUR PACKAGE STATUS HAS BEEN UPDATED!
|
| 29 |
</div>
|
| 30 |
+
{{var banner}}
|
| 31 |
{{var crossSell}}
|
| 32 |
<fieldset style="margin-top:20px;border-left-style:none;border-right-style:none;border-bottom-style:none;margin-left:10px;margin-right:10px;">
|
| 33 |
<legend style="font-size:14px;">YOUR PACKAGE INFORMATION</legend>
|
app/locale/en_US/template/email/packpin/packpin_failed_attempt_email.html
CHANGED
|
@@ -27,6 +27,7 @@
|
|
| 27 |
<div style="font-size:18px;font-weight:700;text-align:center;padding-left:10px;padding-right:10px;">
|
| 28 |
YOUR PACKAGE STATUS HAS BEEN UPDATED!
|
| 29 |
</div>
|
|
|
|
| 30 |
{{var crossSell}}
|
| 31 |
<fieldset style="margin-top:20px;border-left-style:none;border-right-style:none;border-bottom-style:none;margin-left:10px;margin-right:10px;">
|
| 32 |
<legend style="font-size:14px;">YOUR PACKAGE INFORMATION</legend>
|
| 27 |
<div style="font-size:18px;font-weight:700;text-align:center;padding-left:10px;padding-right:10px;">
|
| 28 |
YOUR PACKAGE STATUS HAS BEEN UPDATED!
|
| 29 |
</div>
|
| 30 |
+
{{var banner}}
|
| 31 |
{{var crossSell}}
|
| 32 |
<fieldset style="margin-top:20px;border-left-style:none;border-right-style:none;border-bottom-style:none;margin-left:10px;margin-right:10px;">
|
| 33 |
<legend style="font-size:14px;">YOUR PACKAGE INFORMATION</legend>
|
app/locale/en_US/template/email/packpin/packpin_in_transit_email.html
CHANGED
|
@@ -27,6 +27,7 @@
|
|
| 27 |
<div style="font-size:18px;font-weight:700;text-align:center;padding-left:10px;padding-right:10px;">
|
| 28 |
YOUR PACKAGE STATUS HAS BEEN UPDATED!
|
| 29 |
</div>
|
|
|
|
| 30 |
{{var crossSell}}
|
| 31 |
<fieldset style="margin-top:20px;border-left-style:none;border-right-style:none;border-bottom-style:none;margin-left:10px;margin-right:10px;">
|
| 32 |
<legend style="font-size:14px;">YOUR PACKAGE INFORMATION</legend>
|
| 27 |
<div style="font-size:18px;font-weight:700;text-align:center;padding-left:10px;padding-right:10px;">
|
| 28 |
YOUR PACKAGE STATUS HAS BEEN UPDATED!
|
| 29 |
</div>
|
| 30 |
+
{{var banner}}
|
| 31 |
{{var crossSell}}
|
| 32 |
<fieldset style="margin-top:20px;border-left-style:none;border-right-style:none;border-bottom-style:none;margin-left:10px;margin-right:10px;">
|
| 33 |
<legend style="font-size:14px;">YOUR PACKAGE INFORMATION</legend>
|
app/locale/en_US/template/email/packpin/packpin_info_received_email.html
CHANGED
|
@@ -27,6 +27,7 @@
|
|
| 27 |
<div style="font-size:18px;font-weight:700;text-align:center;padding-left:10px;padding-right:10px;">
|
| 28 |
YOUR PACKAGE STATUS HAS BEEN UPDATED!
|
| 29 |
</div>
|
|
|
|
| 30 |
{{var crossSell}}
|
| 31 |
<fieldset style="margin-top:20px;border-left-style:none;border-right-style:none;border-bottom-style:none;margin-left:10px;margin-right:10px;">
|
| 32 |
<legend style="font-size:14px;">YOUR PACKAGE INFORMATION</legend>
|
| 27 |
<div style="font-size:18px;font-weight:700;text-align:center;padding-left:10px;padding-right:10px;">
|
| 28 |
YOUR PACKAGE STATUS HAS BEEN UPDATED!
|
| 29 |
</div>
|
| 30 |
+
{{var banner}}
|
| 31 |
{{var crossSell}}
|
| 32 |
<fieldset style="margin-top:20px;border-left-style:none;border-right-style:none;border-bottom-style:none;margin-left:10px;margin-right:10px;">
|
| 33 |
<legend style="font-size:14px;">YOUR PACKAGE INFORMATION</legend>
|
app/locale/en_US/template/email/packpin/packpin_out_for_delivery_email.html
CHANGED
|
@@ -27,6 +27,7 @@
|
|
| 27 |
<div style="font-size:18px;font-weight:700;text-align:center;padding-left:10px;padding-right:10px;">
|
| 28 |
YOUR PACKAGE STATUS HAS BEEN UPDATED!
|
| 29 |
</div>
|
|
|
|
| 30 |
{{var crossSell}}
|
| 31 |
<fieldset style="margin-top:20px;border-left-style:none;border-right-style:none;border-bottom-style:none;margin-left:10px;margin-right:10px;">
|
| 32 |
<legend style="font-size:14px;">YOUR PACKAGE INFORMATION</legend>
|
| 27 |
<div style="font-size:18px;font-weight:700;text-align:center;padding-left:10px;padding-right:10px;">
|
| 28 |
YOUR PACKAGE STATUS HAS BEEN UPDATED!
|
| 29 |
</div>
|
| 30 |
+
{{var banner}}
|
| 31 |
{{var crossSell}}
|
| 32 |
<fieldset style="margin-top:20px;border-left-style:none;border-right-style:none;border-bottom-style:none;margin-left:10px;margin-right:10px;">
|
| 33 |
<legend style="font-size:14px;">YOUR PACKAGE INFORMATION</legend>
|
package.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Packpin_Pptrack</name>
|
| 4 |
-
<version>1.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://opensource.org/licenses/gpl-license.php">GNU General Public License (GPL)</license>
|
| 7 |
<channel>community</channel>
|
|
@@ -18,11 +18,11 @@ Packpin created shipment tracking and cross selling solution within email notifi
|
|
| 18 |
- Shipment tracking button on shipment notification email.
|
| 19 |
- Tracking button in customer order.
|
| 20 |
- Easy 10 minutes installation.</description>
|
| 21 |
-
<notes>
|
| 22 |
<authors><author><name>Packpin Packpin</name><user>packpin</user><email>info@packpin.com</email></author></authors>
|
| 23 |
-
<date>2015-05-
|
| 24 |
-
<time>
|
| 25 |
-
<contents><target name="magecommunity"><dir name="Packpin"><dir name="Pptrack"><dir name="Block"><dir name="Adminhtml"><dir name="Sales"><dir name="Order"><dir name="Shipment"><dir name="Create"><file name="Tracking.php" hash="4a791af6ab6580a2485daf02b2df852e"/></dir><dir name="View"><file name="Tracking.php" hash="b8fb4c70f98fd1565685b1aaaf50989d"/></dir></dir></dir></dir><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Hint-owner.php" hash="3f3029efceb1d0e1c8f37f08aa21a371"/><file name="Hint.php" hash="c961a7b4cd0ce5d7b8024a2996262028"/></dir><dir name="Form"><dir name="Fieldset"><file name="Carrier.php" hash="8dcd2c2fbfbd6eb5938f06e537c939e3"/></dir></dir></dir></dir></dir><file name="Crosssell.php" hash="1964eb986f699a500cd445cceed78c1c"/><file name="Index.php" hash="d2d92ae24bad53b4b6f360d04b58f35d"/><file name="Trackings.php" hash="3313a04f6ee29e1a93a940ba52d5af6b"/></dir><dir name="Helper"><file name="Data.php" hash="af454382ee0d5a99e0d79692c463cba9"/></dir><dir name="Model"><file name="Api.php" hash="
|
| 26 |
<compatible/>
|
| 27 |
<dependencies><required><php><min>5.2.13</min><max>5.6.6</max></php></required></dependencies>
|
| 28 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Packpin_Pptrack</name>
|
| 4 |
+
<version>1.2.0</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://opensource.org/licenses/gpl-license.php">GNU General Public License (GPL)</license>
|
| 7 |
<channel>community</channel>
|
| 18 |
- Shipment tracking button on shipment notification email.
|
| 19 |
- Tracking button in customer order.
|
| 20 |
- Easy 10 minutes installation.</description>
|
| 21 |
+
<notes>User can show custom banners on tracking page and email</notes>
|
| 22 |
<authors><author><name>Packpin Packpin</name><user>packpin</user><email>info@packpin.com</email></author></authors>
|
| 23 |
+
<date>2015-05-26</date>
|
| 24 |
+
<time>14:11:40</time>
|
| 25 |
+
<contents><target name="magecommunity"><dir name="Packpin"><dir name="Pptrack"><dir name="Block"><dir name="Adminhtml"><dir name="Sales"><dir name="Order"><dir name="Shipment"><dir name="Create"><file name="Tracking.php" hash="4a791af6ab6580a2485daf02b2df852e"/></dir><dir name="View"><file name="Tracking.php" hash="b8fb4c70f98fd1565685b1aaaf50989d"/></dir></dir></dir></dir><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Hint-owner.php" hash="3f3029efceb1d0e1c8f37f08aa21a371"/><file name="Hint.php" hash="c961a7b4cd0ce5d7b8024a2996262028"/><file name="Scripts.php" hash="79d629b135d51296ee0ba3e3a805ba5f"/></dir><dir name="Form"><dir name="Fieldset"><file name="Carrier.php" hash="8dcd2c2fbfbd6eb5938f06e537c939e3"/></dir></dir></dir></dir></dir><file name="Ads.php" hash="1df7b9d1e40e3af409d1f5f4a7dc00ca"/><file name="Crosssell.php" hash="1964eb986f699a500cd445cceed78c1c"/><file name="Index.php" hash="d2d92ae24bad53b4b6f360d04b58f35d"/><file name="Script.php" hash="f7f9d2f660f958e4e4448f88c860d91c"/><file name="Trackings.php" hash="3313a04f6ee29e1a93a940ba52d5af6b"/></dir><dir name="Helper"><file name="Data.php" hash="af454382ee0d5a99e0d79692c463cba9"/></dir><dir name="Model"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Source"><file name="Crossviews.php" hash="2f353f1eca123be3d5d6628cd6fec9bc"/><file name="Crossviewspage.php" hash="c28db6e0df790fd0f0cd521d31340618"/></dir></dir></dir></dir><file name="Api.php" hash="968a40ee199e67a14f088ac8f0b3796e"/><file name="Carrier.php" hash="cc1d7e12e7b8a01768ebebbcebe26c47"/><file name="EnableNotifications.php" hash="cd6b75203e32b4cc8b5a44c179efd1cc"/><file name="Observer.php" hash="ad5352f45180121691500d32bd1da85b"/><dir name="Order"><file name="Shipment.php" hash="97b3f6ad711842e3066300db6dc8a2c5"/></dir><dir name="Resource"><dir name="Carrier"><file name="Collection.php" hash="03005aa1067c8df71710d1224b9eb838"/></dir><file name="Carrier.php" hash="353d1d39c03e23dbbeacc181c1eb7ce9"/><dir name="Setting"><file name="Collection.php" hash="aa4e67bcd7016180fc6febf974533c93"/></dir><file name="Setting.php" hash="3eeee7198164abc0885e3c938b7d8bb4"/><dir name="Track"><file name="Collection.php" hash="cc6adf831c0248a202394e36d458b623"/></dir><file name="Track.php" hash="3f1d555d29f49ef8f6d2f6967d355ee8"/><dir name="Trackdetail"><file name="Collection.php" hash="941c6277814680ec85eb12c51ecf89d4"/></dir><file name="Trackdetail.php" hash="aedb43bb11215a694251e49ad9425eb6"/><dir name="Trackunsubscribed"><file name="Collection.php" hash="33f9820631af51c4e3aa62f34b5a7a3c"/></dir><file name="Trackunsubscribed.php" hash="038ffa7b345e528c808b03932baaf99c"/></dir><file name="Setting.php" hash="1f7b781d526211dcb29c78cb498033a2"/><file name="Track.php" hash="6d10a2d0f2b988198f937a78b072bc34"/><file name="Trackdetail.php" hash="3c73ff2978792c755758b35865b54467"/><file name="Trackunsubscribed.php" hash="47770b68d49a554c7e18250578ecddfc"/><file name="Translate.php" hash="dd80869c7e8dec6c0c3260db5cff3ccd"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="PpnotificationsController.php" hash="eb07f8257c9f13854e48c638bfe5e5c5"/></dir><file name="IndexController.php" hash="e8efcec6bf578d58bfe53bb6dadfb357"/><file name="UnsubscribeController.php" hash="635e1f44908436801b4e7b4c1222fcc5"/></dir><dir name="data"><dir name="pptrack_setup"><file name="data-upgrade-0.1.5-1.1.0.php" hash="412052d61996b3b32ab4608bf1d1dffc"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="b57c34e9a0ed06573f88bda77f12799d"/><file name="api.xml" hash="5986c3cfd16372143cf2d4d0d3252f38"/><file name="config.xml" hash="5c51696035bcbc1c7358376778e413e0"/><file name="system.xml" hash="9a5152829866b693435346ea2ff82bdc"/></dir><dir name="sql"><dir name="pptrack_setup"><file name="mysql4-install-0.1.2.php" hash="41ddf13aef299e050bd4586c4473eb66"/><file name="mysql4-upgrade-0.1.2-0.1.5.php" hash="edfc436309165f115aeacf29df9d3398"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="pptrack.xml" hash="265d0dd194827105e655276989a30eea"/></dir><dir name="template"><dir name="pptrack"><file name="ads.phtml" hash="86ae4c0f4841819a32957be6f7309c42"/><file name="ads_email.phtml" hash="8c5af6d1a0ff7369c12d09def9106203"/><file name="crosssell.phtml" hash="a9f57ccf4e28b7dd75a65d93a5de2ad9"/><file name="crosssell_email.phtml" hash="84a09283849c332a9a65c60f2a69c6e8"/><dir name="email"><dir name="order"><dir name="shipment"><file name="track.phtml" hash="86d49d54129bd81cb785a7a477d17359"/></dir></dir></dir><file name="index.phtml" hash="2418c918bf206333c68b58d1cb34f4cf"/><file name="popup.phtml" hash="f8692aeedd28f2b13c92f626b2f6c6ad"/><file name="script.phtml" hash="213e0fc610eb4d66f3ec67cfa82a63a4"/><file name="unsubscribe.phtml" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="pptrack.xml" hash="8489e561597ac1c27a19f6f03a78c2b4"/></dir><dir name="template"><dir name="pptrack"><dir name="system"><dir name="config"><dir name="fieldset"><file name="hint.phtml" hash="cb1396e7c7f78da4b3d4fe993c37da49"/><file name="scripts.phtml" hash="0a19ed021cb1edeeecd85aa28286151c"/></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Packpin_Pptrack.xml" hash="0b54bf07fd7688fe3fa70463ffd4f9cd"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><file name="pptrack.css" hash="3415b5e34a6c18f24d03b81a9b98effb"/></dir><dir name="images"><dir name="pptrack"><file name="bulletIcon.png" hash="15f6fd65c7a62f940b7d17b9186a2b35"/><file name="checkedIcon.png" hash="cef38265bdd7675a0497a2296f5b7332"/><file name="postnlLogo.png" hash="3b4595ba4262c574c1147ed39e862092"/><file name="trackingStatus.png" hash="6dcf522f4e22b69bb25c3b3c199bb464"/><file name="truck.png" hash="3eb50f750a0fefa1903613e0bc26a2ee"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="pptrack"><dir name="css"><file name="pptrack.css" hash="b4c42edf3884eb62617f2347f1740b3f"/></dir><dir name="images"><file name="pp_logo1.png" hash="1a79f10d0f028271ac0b2646243e39d1"/></dir><dir name="js"><file name="pptrack.js" hash="7bc0ee636b3b83484fc3b9348863bd22"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><dir name="template"><dir name="email"><dir name="packpin"><file name="packpin_delivered_email.html" hash="11d00272d82b3607068429ea494f08f3"/><file name="packpin_exception_email.html" hash="483af61fd9c1fbbca098d1bfcee0ad75"/><file name="packpin_failed_attempt_email.html" hash="483af61fd9c1fbbca098d1bfcee0ad75"/><file name="packpin_in_transit_email.html" hash="483af61fd9c1fbbca098d1bfcee0ad75"/><file name="packpin_info_received_email.html" hash="483af61fd9c1fbbca098d1bfcee0ad75"/><file name="packpin_out_for_delivery_email.html" hash="483af61fd9c1fbbca098d1bfcee0ad75"/></dir></dir></dir></dir></target></contents>
|
| 26 |
<compatible/>
|
| 27 |
<dependencies><required><php><min>5.2.13</min><max>5.6.6</max></php></required></dependencies>
|
| 28 |
</package>
|
skin/adminhtml/default/default/pptrack/css/pptrack.css
CHANGED
|
@@ -19,4 +19,16 @@ ul.tabs dd:last-child a.packpin-settings:hover span {
|
|
| 19 |
}
|
| 20 |
.packpin-notice-date {
|
| 21 |
color: red;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
}
|
| 19 |
}
|
| 20 |
.packpin-notice-date {
|
| 21 |
color: red;
|
| 22 |
+
}
|
| 23 |
+
#row_pp_section_setttings_crosssell_cross_sell_email td {
|
| 24 |
+
border-top: 3px solid #6f8992 !important;
|
| 25 |
+
padding-top: 15px !important;
|
| 26 |
+
}
|
| 27 |
+
#intercom-container .intercom-launcher-button {
|
| 28 |
+
width: 105px !important;
|
| 29 |
+
height: 40px !important;
|
| 30 |
+
background: #c03a2b url("https://packpin.com/packpinSupportLogo.png") no-repeat center center !important;
|
| 31 |
+
-webkit-border-radius: 20px !important;
|
| 32 |
+
-moz-border-radius: 20px !important;
|
| 33 |
+
border-radius: 20px !important;
|
| 34 |
}
|
skin/adminhtml/default/default/pptrack/js/pptrack.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
| 1 |
+
//
|
skin/frontend/base/default/css/pptrack.css
CHANGED
|
@@ -340,4 +340,20 @@ ul.pptrack-products-grid > li img {
|
|
| 340 |
}
|
| 341 |
.clearfix:after {
|
| 342 |
clear: both;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 343 |
}
|
| 340 |
}
|
| 341 |
.clearfix:after {
|
| 342 |
clear: both;
|
| 343 |
+
}
|
| 344 |
+
.pptrack-top-image,
|
| 345 |
+
.pptrack-top-image a {
|
| 346 |
+
display: block;
|
| 347 |
+
text-align: center;
|
| 348 |
+
width: 100%;
|
| 349 |
+
margin-bottom: 30px;
|
| 350 |
+
overflow: auto;
|
| 351 |
+
}
|
| 352 |
+
.pptrack-top-image a {
|
| 353 |
+
text-decoration: none;
|
| 354 |
+
}
|
| 355 |
+
.pptrack-top-image img {
|
| 356 |
+
max-width: 100%;
|
| 357 |
+
height: auto;
|
| 358 |
+
margin: 0 auto;
|
| 359 |
}
|
