Version Notes
Stable for Magento Vesrion 1.7, 1.8 ,1.8.1 and 1.9
Download this release
Release Info
Developer | Niko K |
Extension | Nikolakisae_ShippingLogo |
Version | 0.1.1 |
Comparing to | |
See all releases |
Code changes from version 0.1.0 to 0.1.1
- app/code/community/Nikolakisae/ShippingLogo/Block/Checkout/Onepage/Shipping/Method/Available.php +2 -2
- app/code/community/Nikolakisae/ShippingLogo/etc/config.xml +1 -1
- app/code/community/Nikolakisae/ShippingLogo/etc/system.xml +93 -0
- app/design/frontend/{default → base}/default/layout/shippinglogo.xml +0 -0
- app/design/frontend/{default → base}/default/template/shippinglogo/checkout/onepage/shipping_method/available.phtml +0 -0
- package.xml +5 -5
app/code/community/Nikolakisae/ShippingLogo/Block/Checkout/Onepage/Shipping/Method/Available.php
CHANGED
@@ -21,10 +21,10 @@
|
|
21 |
class Nikolakisae_ShippingLogo_Block_Checkout_Onepage_Shipping_Method_Available extends Mage_Checkout_Block_Onepage_Shipping_Method_Available {
|
22 |
|
23 |
public function getTitleImage($code) {
|
24 |
-
|
25 |
$imageLogo = '';
|
26 |
if (file_exists(Mage::getBaseDir('media') . DS . 'shipping' . DS . $code . DS . Mage::getStoreConfig('carriers/' . $code . '/image')) && Mage::getStoreConfig('carriers/' . $code . '/image')) {
|
27 |
-
$imageLogo = '<img src="' . Mage::getBaseUrl('media') . 'shipping/' . $code . '/' . Mage::getStoreConfig('carriers/' . $code . '/image') . '">';
|
28 |
}
|
29 |
|
30 |
if ($imageLogo != '' && Mage::getStoreConfig('carriers/' . $code . '/display_options') == 2) {
|
21 |
class Nikolakisae_ShippingLogo_Block_Checkout_Onepage_Shipping_Method_Available extends Mage_Checkout_Block_Onepage_Shipping_Method_Available {
|
22 |
|
23 |
public function getTitleImage($code) {
|
24 |
+
|
25 |
$imageLogo = '';
|
26 |
if (file_exists(Mage::getBaseDir('media') . DS . 'shipping' . DS . $code . DS . Mage::getStoreConfig('carriers/' . $code . '/image')) && Mage::getStoreConfig('carriers/' . $code . '/image')) {
|
27 |
+
$imageLogo = '<img src="' . Mage::getBaseUrl('media') . 'shipping/' . $code . '/' . Mage::getStoreConfig('carriers/' . $code . '/image') . '" style="width:100%;" border="0" alt="Null">';
|
28 |
}
|
29 |
|
30 |
if ($imageLogo != '' && Mage::getStoreConfig('carriers/' . $code . '/display_options') == 2) {
|
app/code/community/Nikolakisae/ShippingLogo/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Nikolakisae_ShippingLogo>
|
5 |
-
<version>0.1.
|
6 |
</Nikolakisae_ShippingLogo>
|
7 |
</modules>
|
8 |
<global>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Nikolakisae_ShippingLogo>
|
5 |
+
<version>0.1.1</version>
|
6 |
</Nikolakisae_ShippingLogo>
|
7 |
</modules>
|
8 |
<global>
|
app/code/community/Nikolakisae/ShippingLogo/etc/system.xml
CHANGED
@@ -103,6 +103,99 @@
|
|
103 |
</display_options>
|
104 |
</fields>
|
105 |
</tablerate>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
106 |
</groups>
|
107 |
</carriers>
|
108 |
</sections>
|
103 |
</display_options>
|
104 |
</fields>
|
105 |
</tablerate>
|
106 |
+
<fedex translate="label" module="usa">
|
107 |
+
<label>FedEx</label>
|
108 |
+
<frontend_type>text</frontend_type>
|
109 |
+
<sort_order>120</sort_order>
|
110 |
+
<show_in_default>1</show_in_default>
|
111 |
+
<show_in_website>1</show_in_website>
|
112 |
+
<show_in_store>1</show_in_store>
|
113 |
+
<fields>
|
114 |
+
<image translate="label">
|
115 |
+
<label>Shipping Logo</label>
|
116 |
+
<frontend_type>image</frontend_type>
|
117 |
+
<backend_model>adminhtml/system_config_backend_image</backend_model>
|
118 |
+
<upload_dir config="system/filesystem/media" scope_info="1">shipping/fedex</upload_dir>
|
119 |
+
<base_url type="media" scope_info="1">shipping/fedex</base_url>
|
120 |
+
<sort_order>22</sort_order>
|
121 |
+
<show_in_default>1</show_in_default>
|
122 |
+
<show_in_website>1</show_in_website>
|
123 |
+
<show_in_store>1</show_in_store>
|
124 |
+
<comment>Allowed file types: jpeg, gif, png.</comment>
|
125 |
+
</image>
|
126 |
+
<display_options translate="label">
|
127 |
+
<label>Display Logo Options</label>
|
128 |
+
<frontend_type>select</frontend_type>
|
129 |
+
<source_model>shippinglogo/adminhtml_system_config_source_options</source_model>
|
130 |
+
<sort_order>24</sort_order>
|
131 |
+
<show_in_default>1</show_in_default>
|
132 |
+
<show_in_website>1</show_in_website>
|
133 |
+
<show_in_store>1</show_in_store>
|
134 |
+
</display_options>
|
135 |
+
</fields>
|
136 |
+
</fedex>
|
137 |
+
<usps translate="label" module="usa">
|
138 |
+
<label>USPS</label>
|
139 |
+
<frontend_type>text</frontend_type>
|
140 |
+
<sort_order>110</sort_order>
|
141 |
+
<show_in_default>1</show_in_default>
|
142 |
+
<show_in_website>1</show_in_website>
|
143 |
+
<show_in_store>1</show_in_store>
|
144 |
+
<fields>
|
145 |
+
<image translate="label">
|
146 |
+
<label>Shipping Logo</label>
|
147 |
+
<frontend_type>image</frontend_type>
|
148 |
+
<backend_model>adminhtml/system_config_backend_image</backend_model>
|
149 |
+
<upload_dir config="system/filesystem/media" scope_info="1">shipping/usps</upload_dir>
|
150 |
+
<base_url type="media" scope_info="1">shipping/usps</base_url>
|
151 |
+
<sort_order>42</sort_order>
|
152 |
+
<show_in_default>1</show_in_default>
|
153 |
+
<show_in_website>1</show_in_website>
|
154 |
+
<show_in_store>1</show_in_store>
|
155 |
+
<comment>Allowed file types: jpeg, gif, png.</comment>
|
156 |
+
</image>
|
157 |
+
<display_options translate="label">
|
158 |
+
<label>Display Logo Options</label>
|
159 |
+
<frontend_type>select</frontend_type>
|
160 |
+
<source_model>shippinglogo/adminhtml_system_config_source_options</source_model>
|
161 |
+
<sort_order>44</sort_order>
|
162 |
+
<show_in_default>1</show_in_default>
|
163 |
+
<show_in_website>1</show_in_website>
|
164 |
+
<show_in_store>1</show_in_store>
|
165 |
+
</display_options>
|
166 |
+
</fields>
|
167 |
+
</usps>
|
168 |
+
<dhlint translate="label" module="usa">
|
169 |
+
<label>DHL</label>
|
170 |
+
<frontend_type>text</frontend_type>
|
171 |
+
<sort_order>140</sort_order>
|
172 |
+
<show_in_default>1</show_in_default>
|
173 |
+
<show_in_website>1</show_in_website>
|
174 |
+
<show_in_store>1</show_in_store>
|
175 |
+
<fields>
|
176 |
+
<image translate="label">
|
177 |
+
<label>Shipping Logo</label>
|
178 |
+
<frontend_type>image</frontend_type>
|
179 |
+
<backend_model>adminhtml/system_config_backend_image</backend_model>
|
180 |
+
<upload_dir config="system/filesystem/media" scope_info="1">shipping/dhlint</upload_dir>
|
181 |
+
<base_url type="media" scope_info="1">shipping/dhlint</base_url>
|
182 |
+
<sort_order>22</sort_order>
|
183 |
+
<show_in_default>1</show_in_default>
|
184 |
+
<show_in_website>1</show_in_website>
|
185 |
+
<show_in_store>1</show_in_store>
|
186 |
+
<comment>Allowed file types: jpeg, gif, png.</comment>
|
187 |
+
</image>
|
188 |
+
<display_options translate="label">
|
189 |
+
<label>Display Logo Options</label>
|
190 |
+
<frontend_type>select</frontend_type>
|
191 |
+
<source_model>shippinglogo/adminhtml_system_config_source_options</source_model>
|
192 |
+
<sort_order>24</sort_order>
|
193 |
+
<show_in_default>1</show_in_default>
|
194 |
+
<show_in_website>1</show_in_website>
|
195 |
+
<show_in_store>1</show_in_store>
|
196 |
+
</display_options>
|
197 |
+
</fields>
|
198 |
+
</dhlint>
|
199 |
</groups>
|
200 |
</carriers>
|
201 |
</sections>
|
app/design/frontend/{default → base}/default/layout/shippinglogo.xml
RENAMED
File without changes
|
app/design/frontend/{default → base}/default/template/shippinglogo/checkout/onepage/shipping_method/available.phtml
RENAMED
File without changes
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Nikolakisae_ShippingLogo</name>
|
4 |
-
<version>0.1.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Shipping Logo extension for Magento</summary>
|
10 |
<description>Display a shipping method logo or shipping method logo and method title or method title and shipping method logo or just method title for the Magento's default shipping methods: Flat Rate, Table Rates and Free Shipping.</description>
|
11 |
-
<notes>Stable for Magento Vesrion 1.7, 1.8
|
12 |
<authors><author><name>Niko K</name><user>nikolakisae</user><email>info@nikolakisae.com</email></author></authors>
|
13 |
-
<date>
|
14 |
-
<time>18:
|
15 |
-
<contents><target name="magecommunity"><dir name="Nikolakisae"><dir name="ShippingLogo"><dir name="Block"><dir name="Checkout"><dir name="Onepage"><dir name="Shipping"><dir name="Method"><file name="Available.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.13</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Nikolakisae_ShippingLogo</name>
|
4 |
+
<version>0.1.1</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Shipping Logo extension for Magento</summary>
|
10 |
<description>Display a shipping method logo or shipping method logo and method title or method title and shipping method logo or just method title for the Magento's default shipping methods: Flat Rate, Table Rates and Free Shipping.</description>
|
11 |
+
<notes>Stable for Magento Vesrion 1.7, 1.8 ,1.8.1 and 1.9</notes>
|
12 |
<authors><author><name>Niko K</name><user>nikolakisae</user><email>info@nikolakisae.com</email></author></authors>
|
13 |
+
<date>2014-09-18</date>
|
14 |
+
<time>18:54:59</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Nikolakisae"><dir name="ShippingLogo"><dir name="Block"><dir name="Checkout"><dir name="Onepage"><dir name="Shipping"><dir name="Method"><file name="Available.php" hash="941f3ba4f627e0f146cc01332b94d36d"/></dir></dir></dir></dir></dir><dir name="Model"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Source"><file name="Options.php" hash="cd50982d7bf483348a50e6fcf298138a"/></dir></dir></dir></dir></dir><dir name="etc"><file name="config.xml" hash="91f15828762875e54fea24d8dcb3899f"/><file name="system.xml" hash="71c3c633f9eb530bc67144ab552c3ad6"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="shippinglogo.xml" hash="d2a2cc30b82d87dc56458999e1d227d5"/></dir><dir name="template"><dir name="shippinglogo"><dir name="checkout"><dir name="onepage"><dir name="shipping_method"><file name="available.phtml" hash="cc754addaf0da4884334143b33678cfd"/></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Nikolakisae_ShippingLogo.xml" hash="5ec80126ca88bbc68af44ede7eda5cdb"/></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.13</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|