Version Notes
Initial release
Download this release
Release Info
Developer | Mukesh Chapagain |
Extension | Chapagain_ClearPrint |
Version | 0.1.0 |
Comparing to | |
See all releases |
Version 0.1.0
- app/code/community/Chapagain/ClearPrint/Block/Catalog/Product/View.php +9 -0
- app/code/community/Chapagain/ClearPrint/Helper/Data.php +27 -0
- app/code/community/Chapagain/ClearPrint/controllers/Catalog/ProductController.php +23 -0
- app/code/community/Chapagain/ClearPrint/controllers/Checkout/CartController.php +9 -0
- app/code/community/Chapagain/ClearPrint/etc/config.xml +75 -0
- app/code/community/Chapagain/ClearPrint/etc/system.xml +39 -0
- app/design/frontend/base/default/layout/clearprint.xml +238 -0
- app/design/frontend/base/default/template/clearprint/catalog/product/view.phtml +155 -0
- app/design/frontend/base/default/template/clearprint/catalog/product/view/addtocart.phtml +13 -0
- app/design/frontend/base/default/template/clearprint/catalog/product/view/media.phtml +66 -0
- app/design/frontend/base/default/template/clearprint/catalog/product/view/printlink.phtml +18 -0
- app/design/frontend/base/default/template/clearprint/checkout/cart.phtml +121 -0
- app/design/frontend/base/default/template/clearprint/checkout/cart/item/default.phtml +272 -0
- app/design/frontend/base/default/template/clearprint/checkout/cart/item/downloadable/default.phtml +309 -0
- app/design/frontend/base/default/template/clearprint/checkout/cart/printlink.phtml +6 -0
- app/design/frontend/base/default/template/clearprint/page/print.phtml +60 -0
- app/etc/modules/Chapagain_ClearPrint.xml +9 -0
- app/locale/en_US/Chapagain_ClearPrint.csv +3 -0
- package.xml +14 -0
- skin/frontend/base/default/css/clearprint/print.css +46 -0
app/code/community/Chapagain/ClearPrint/Block/Catalog/Product/View.php
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Chapagain_ClearPrint_Block_Catalog_Product_View extends Mage_Catalog_Block_Product_View
|
3 |
+
{
|
4 |
+
public function _prepareLayout()
|
5 |
+
{
|
6 |
+
return parent::_prepareLayout();
|
7 |
+
}
|
8 |
+
|
9 |
+
}
|
app/code/community/Chapagain/ClearPrint/Helper/Data.php
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Chapagain_ClearPrint_Helper_Data extends Mage_Core_Helper_Abstract
|
4 |
+
{
|
5 |
+
public function isEnabledPrintProduct()
|
6 |
+
{
|
7 |
+
return Mage::getStoreConfig('catalog/clearprint/enable_print_product');
|
8 |
+
}
|
9 |
+
|
10 |
+
public function isEnabledPrintCart()
|
11 |
+
{
|
12 |
+
return Mage::getStoreConfig('catalog/clearprint/enable_print_cart');
|
13 |
+
}
|
14 |
+
|
15 |
+
public function getVersion()
|
16 |
+
{
|
17 |
+
return Mage::getVersion();
|
18 |
+
}
|
19 |
+
|
20 |
+
public function getVersion19()
|
21 |
+
{
|
22 |
+
if (version_compare($this->getVersion(), '1.9', '>=')){
|
23 |
+
return true;
|
24 |
+
}
|
25 |
+
return false;
|
26 |
+
}
|
27 |
+
}
|
app/code/community/Chapagain/ClearPrint/controllers/Catalog/ProductController.php
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Chapagain_ClearPrint_Catalog_ProductController extends Mage_Core_Controller_Front_Action
|
3 |
+
{
|
4 |
+
public function viewAction()
|
5 |
+
{
|
6 |
+
$productId = $this->getRequest()->getParam('id');
|
7 |
+
$product = Mage::getModel('catalog/product')->load($productId);
|
8 |
+
Mage::register('product', $product);
|
9 |
+
Mage::register('current_product', $product);
|
10 |
+
|
11 |
+
#$this->loadLayout();
|
12 |
+
$update = $this->getLayout()->getUpdate();
|
13 |
+
$update->addHandle('default');
|
14 |
+
$this->addActionLayoutHandles();
|
15 |
+
$update->addHandle('clearprint_PRODUCT_TYPE_'.$product->getTypeId());
|
16 |
+
$this->loadLayoutUpdates();
|
17 |
+
$this->generateLayoutXml();
|
18 |
+
$this->generateLayoutBlocks();
|
19 |
+
$this->_isLayoutLoaded = true;
|
20 |
+
|
21 |
+
$this->renderLayout();
|
22 |
+
}
|
23 |
+
}
|
app/code/community/Chapagain/ClearPrint/controllers/Checkout/CartController.php
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Chapagain_ClearPrint_Checkout_CartController extends Mage_Core_Controller_Front_Action
|
3 |
+
{
|
4 |
+
public function indexAction()
|
5 |
+
{
|
6 |
+
$this->loadLayout();
|
7 |
+
$this->renderLayout();
|
8 |
+
}
|
9 |
+
}
|
app/code/community/Chapagain/ClearPrint/etc/config.xml
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Chapagain_ClearPrint>
|
5 |
+
<version>0.1.0</version>
|
6 |
+
</Chapagain_ClearPrint>
|
7 |
+
</modules>
|
8 |
+
<frontend>
|
9 |
+
<routers>
|
10 |
+
<clearprint>
|
11 |
+
<use>standard</use>
|
12 |
+
<args>
|
13 |
+
<module>Chapagain_ClearPrint</module>
|
14 |
+
<frontName>clearprint</frontName>
|
15 |
+
</args>
|
16 |
+
</clearprint>
|
17 |
+
</routers>
|
18 |
+
<layout>
|
19 |
+
<updates>
|
20 |
+
<clearprint>
|
21 |
+
<file>clearprint.xml</file>
|
22 |
+
</clearprint>
|
23 |
+
</updates>
|
24 |
+
</layout>
|
25 |
+
<translate>
|
26 |
+
<modules>
|
27 |
+
<Chapagain_ClearPrint>
|
28 |
+
<files>
|
29 |
+
<default>Chapagain_ClearPrint.csv</default>
|
30 |
+
</files>
|
31 |
+
</Chapagain_ClearPrint>
|
32 |
+
</modules>
|
33 |
+
</translate>
|
34 |
+
</frontend>
|
35 |
+
<global>
|
36 |
+
<resources>
|
37 |
+
<clearprint_setup>
|
38 |
+
<setup>
|
39 |
+
<module>Chapagain_ClearPrint</module>
|
40 |
+
</setup>
|
41 |
+
<connection>
|
42 |
+
<use>core_setup</use>
|
43 |
+
</connection>
|
44 |
+
</clearprint_setup>
|
45 |
+
<clearprint_write>
|
46 |
+
<connection>
|
47 |
+
<use>core_write</use>
|
48 |
+
</connection>
|
49 |
+
</clearprint_write>
|
50 |
+
<clearprint_read>
|
51 |
+
<connection>
|
52 |
+
<use>core_read</use>
|
53 |
+
</connection>
|
54 |
+
</clearprint_read>
|
55 |
+
</resources>
|
56 |
+
<blocks>
|
57 |
+
<clearprint>
|
58 |
+
<class>Chapagain_ClearPrint_Block</class>
|
59 |
+
</clearprint>
|
60 |
+
</blocks>
|
61 |
+
<helpers>
|
62 |
+
<clearprint>
|
63 |
+
<class>Chapagain_ClearPrint_Helper</class>
|
64 |
+
</clearprint>
|
65 |
+
</helpers>
|
66 |
+
</global>
|
67 |
+
<default>
|
68 |
+
<catalog>
|
69 |
+
<clearprint>
|
70 |
+
<enable_print_product>1</enable_print_product>
|
71 |
+
<enable_print_cart>1</enable_print_cart>
|
72 |
+
</clearprint>
|
73 |
+
</catalog>
|
74 |
+
</default>
|
75 |
+
</config>
|
app/code/community/Chapagain/ClearPrint/etc/system.xml
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<config>
|
3 |
+
<sections>
|
4 |
+
<catalog translate="label">
|
5 |
+
<groups>
|
6 |
+
<clearprint translate="label" module="clearprint">
|
7 |
+
<label>Clear Print</label>
|
8 |
+
<frontend_type>text</frontend_type>
|
9 |
+
<sort_order>10</sort_order>
|
10 |
+
<show_in_default>1</show_in_default>
|
11 |
+
<show_in_website>1</show_in_website>
|
12 |
+
<show_in_store>1</show_in_store>
|
13 |
+
<fields>
|
14 |
+
<enable_print_product translate="label comment">
|
15 |
+
<label>Enable</label>
|
16 |
+
<comment>Enable/Disable Product Print</comment>
|
17 |
+
<frontend_type>select</frontend_type>
|
18 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
19 |
+
<sort_order>20</sort_order>
|
20 |
+
<show_in_default>1</show_in_default>
|
21 |
+
<show_in_website>1</show_in_website>
|
22 |
+
<show_in_store>1</show_in_store>
|
23 |
+
</enable_print_product>
|
24 |
+
<enable_print_cart translate="label comment">
|
25 |
+
<label>Enable</label>
|
26 |
+
<comment>Enable/Disable Cart Print</comment>
|
27 |
+
<frontend_type>select</frontend_type>
|
28 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
29 |
+
<sort_order>30</sort_order>
|
30 |
+
<show_in_default>1</show_in_default>
|
31 |
+
<show_in_website>1</show_in_website>
|
32 |
+
<show_in_store>1</show_in_store>
|
33 |
+
</enable_print_cart>
|
34 |
+
</fields>
|
35 |
+
</clearprint>
|
36 |
+
</groups>
|
37 |
+
</catalog>
|
38 |
+
</sections>
|
39 |
+
</config>
|
app/design/frontend/base/default/layout/clearprint.xml
ADDED
@@ -0,0 +1,238 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<layout version="0.1.0">
|
3 |
+
<default>
|
4 |
+
</default>
|
5 |
+
|
6 |
+
<checkout_cart_index>
|
7 |
+
<reference name="content">
|
8 |
+
<reference name="checkout.cart.methods">
|
9 |
+
<block type="core/template" name="clearprint.cart.printlink" as="printlinkcart" template="clearprint/checkout/cart/printlink.phtml"/>
|
10 |
+
</reference>
|
11 |
+
</reference>
|
12 |
+
</checkout_cart_index>
|
13 |
+
|
14 |
+
<clearprint_checkout_cart_index translate="label">
|
15 |
+
<label>Shopping Cart</label>
|
16 |
+
<remove name="right"/>
|
17 |
+
<remove name="left"/>
|
18 |
+
<!-- Mage_Checkout -->
|
19 |
+
<reference name="root">
|
20 |
+
<action method="setTemplate"><template>clearprint/page/print.phtml</template></action>
|
21 |
+
</reference>
|
22 |
+
<reference name="head">
|
23 |
+
<action method="addCss"><stylesheet>css/clearprint/print.css</stylesheet><params>media="print"</params></action>
|
24 |
+
</reference>
|
25 |
+
<reference name="content">
|
26 |
+
<block type="checkout/cart" name="checkout.cart">
|
27 |
+
<action method="setCartTemplate"><value>clearprint/checkout/cart.phtml</value></action>
|
28 |
+
<action method="setEmptyTemplate"><value>checkout/cart/noItems.phtml</value></action>
|
29 |
+
<action method="chooseTemplate"/>
|
30 |
+
<action method="addItemRender"><type>simple</type><block>checkout/cart_item_renderer</block><template>clearprint/checkout/cart/item/default.phtml</template></action>
|
31 |
+
<action method="addItemRender"><type>virtual</type><block>checkout/cart_item_renderer</block><template>clearprint/checkout/cart/item/default.phtml</template></action>
|
32 |
+
<action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>clearprint/checkout/cart/item/default.phtml</template></action>
|
33 |
+
<action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>clearprint/checkout/cart/item/default.phtml</template></action>
|
34 |
+
|
35 |
+
<block type="checkout/cart_totals" name="checkout.cart.totals" as="totals" template="checkout/cart/totals.phtml"/>
|
36 |
+
</block>
|
37 |
+
</reference>
|
38 |
+
<block type="core/text_list" name="additional.product.info" translate="label">
|
39 |
+
<label>Additional Product Info</label>
|
40 |
+
</block>
|
41 |
+
|
42 |
+
<reference name="checkout.cart">
|
43 |
+
<action method="addItemRender"><type>downloadable</type><block>downloadable/checkout_cart_item_renderer</block><template>clearprint/checkout/cart/item/downloadable/default.phtml</template></action>
|
44 |
+
</reference>
|
45 |
+
|
46 |
+
<reference name="checkout.cart">
|
47 |
+
<action method="addItemRender"><type>bundle</type><block>bundle/checkout_cart_item_renderer</block><template>clearprint/checkout/cart/item/default.phtml</template></action>
|
48 |
+
</reference>
|
49 |
+
<reference name="checkout.cart.crosssell">
|
50 |
+
<action method="addPriceBlockType"><type>bundle</type><block>bundle/catalog_product_price</block><template>bundle/catalog/product/price.phtml</template></action>
|
51 |
+
</reference>
|
52 |
+
</clearprint_checkout_cart_index>
|
53 |
+
|
54 |
+
<catalog_product_view>
|
55 |
+
<reference name="content">
|
56 |
+
<reference name="product.info">
|
57 |
+
<reference name="product.info.addtocart">
|
58 |
+
<block type="clearprint/catalog_product_view" name="clearprint.product.printlink" as="printlinkproduct" template="clearprint/catalog/product/view/printlink.phtml"/>
|
59 |
+
</reference>
|
60 |
+
</reference>
|
61 |
+
</reference>
|
62 |
+
</catalog_product_view>
|
63 |
+
|
64 |
+
<clearprint_catalog_product_view>
|
65 |
+
|
66 |
+
<!-- Mage_Catalog -->
|
67 |
+
<reference name="root">
|
68 |
+
<action method="setTemplate"><template>clearprint/page/print.phtml</template></action>
|
69 |
+
</reference>
|
70 |
+
<reference name="head">
|
71 |
+
<action method="addJs"><script>varien/product.js</script></action>
|
72 |
+
<action method="addJs"><script>varien/configurable.js</script></action>
|
73 |
+
|
74 |
+
<action method="addItem"><type>js_css</type><name>calendar/calendar-win2k-1.css</name><params/><!--<if/><condition>can_load_calendar_js</condition>--></action>
|
75 |
+
<action method="addItem"><type>js</type><name>calendar/calendar.js</name><!--<params/><if/><condition>can_load_calendar_js</condition>--></action>
|
76 |
+
<action method="addItem"><type>js</type><name>calendar/calendar-setup.js</name><!--<params/><if/><condition>can_load_calendar_js</condition>--></action>
|
77 |
+
|
78 |
+
<action method="addCss"><stylesheet>css/clearprint/print.css</stylesheet><params>media="print"</params></action>
|
79 |
+
</reference>
|
80 |
+
<reference name="content">
|
81 |
+
<block type="clearprint/catalog_product_view" name="product.info" template="clearprint/catalog/product/view.phtml">
|
82 |
+
|
83 |
+
<block type="catalog/product_view_media" name="product.info.media" as="media" template="clearprint/catalog/product/view/media.phtml"/>
|
84 |
+
<block type="core/text_list" name="alert.urls" as="alert_urls" translate="label">
|
85 |
+
<label>Alert Urls</label>
|
86 |
+
</block>
|
87 |
+
|
88 |
+
<action method="setTierPriceTemplate"><template>catalog/product/view/tierprices.phtml</template></action>
|
89 |
+
|
90 |
+
<block type="catalog/product_view_additional" name="product.info.additional" as="product_additional_data" />
|
91 |
+
<block type="catalog/product_view_description" name="product.description" as="description" template="catalog/product/view/description.phtml">
|
92 |
+
<action method="addToParentGroup"><group>detailed_info</group></action>
|
93 |
+
</block>
|
94 |
+
<block type="catalog/product_view_attributes" name="product.attributes" as="additional" template="catalog/product/view/attributes.phtml">
|
95 |
+
<action method="addToParentGroup"><group>detailed_info</group></action>
|
96 |
+
</block>
|
97 |
+
<!--<block type="clearprint/catalog_product_view" name="product.info.addto" as="addto" template="catalog/product/view/addto.phtml"/>-->
|
98 |
+
<block type="clearprint/catalog_product_view" name="product.info.addtocart" as="addtocart" template="clearprint/catalog/product/view/addtocart.phtml"/>
|
99 |
+
|
100 |
+
<block type="core/text_list" name="product.info.extrahint" as="extrahint" translate="label">
|
101 |
+
<label>Product View Extra Hint</label>
|
102 |
+
</block>
|
103 |
+
|
104 |
+
<block type="clearprint/catalog_product_view" name="product.info.options.wrapper" as="product_options_wrapper" template="catalog/product/view/options/wrapper.phtml" translate="label">
|
105 |
+
<label>Info Column Options Wrapper</label>
|
106 |
+
<block type="core/template" name="options_js" template="catalog/product/view/options/js.phtml"/>
|
107 |
+
<block type="catalog/product_view_options" name="product.info.options" as="product_options" template="catalog/product/view/options.phtml">
|
108 |
+
<action method="addOptionRenderer"><type>text</type><block>catalog/product_view_options_type_text</block><template>catalog/product/view/options/type/text.phtml</template></action>
|
109 |
+
<action method="addOptionRenderer"><type>file</type><block>catalog/product_view_options_type_file</block><template>catalog/product/view/options/type/file.phtml</template></action>
|
110 |
+
<action method="addOptionRenderer"><type>select</type><block>catalog/product_view_options_type_select</block><template>catalog/product/view/options/type/select.phtml</template></action>
|
111 |
+
<action method="addOptionRenderer"><type>date</type><block>catalog/product_view_options_type_date</block><template>catalog/product/view/options/type/date.phtml</template></action>
|
112 |
+
</block>
|
113 |
+
<block type="core/html_calendar" name="html_calendar" as="html_calendar" template="page/js/calendar.phtml"/>
|
114 |
+
</block>
|
115 |
+
<block type="clearprint/catalog_product_view" name="product.info.options.wrapper.bottom" as="product_options_wrapper_bottom" template="catalog/product/view/options/wrapper/bottom.phtml" translate="label">
|
116 |
+
<label>Bottom Block Options Wrapper</label>
|
117 |
+
<action method="insert"><block>product.tierprices</block></action>
|
118 |
+
<block type="clearprint/catalog_product_view" name="product.clone_prices" as="prices" template="catalog/product/view/price_clone.phtml"/>
|
119 |
+
<action method="append"><block>product.info.addtocart</block></action>
|
120 |
+
<action method="append"><block>product.info.addto</block></action>
|
121 |
+
</block>
|
122 |
+
|
123 |
+
<block type="core/template_facade" name="product.info.container1" as="container1">
|
124 |
+
<action method="setDataByKey"><key>alias_in_layout</key><value>container1</value></action>
|
125 |
+
<action method="setDataByKeyFromRegistry"><key>options_container</key><key_in_registry>product</key_in_registry></action>
|
126 |
+
<action method="append"><block>product.info.options.wrapper</block></action>
|
127 |
+
<action method="append"><block>product.info.options.wrapper.bottom</block></action>
|
128 |
+
</block>
|
129 |
+
<block type="core/template_facade" name="product.info.container2" as="container2">
|
130 |
+
<action method="setDataByKey"><key>alias_in_layout</key><value>container2</value></action>
|
131 |
+
<action method="setDataByKeyFromRegistry"><key>options_container</key><key_in_registry>product</key_in_registry></action>
|
132 |
+
<action method="append"><block>product.info.options.wrapper</block></action>
|
133 |
+
<action method="append"><block>product.info.options.wrapper.bottom</block></action>
|
134 |
+
</block>
|
135 |
+
<action method="unsetCallChild"><child>container1</child><call>ifEquals</call><if>0</if><key>alias_in_layout</key><key>options_container</key></action>
|
136 |
+
<action method="unsetCallChild"><child>container2</child><call>ifEquals</call><if>0</if><key>alias_in_layout</key><key>options_container</key></action>
|
137 |
+
</block>
|
138 |
+
</reference>
|
139 |
+
</clearprint_catalog_product_view>
|
140 |
+
|
141 |
+
<!--
|
142 |
+
Additional block dependant on product type
|
143 |
+
-->
|
144 |
+
<clearprint_PRODUCT_TYPE_simple translate="label" module="catalog">
|
145 |
+
<label>Catalog Product View (Simple)</label>
|
146 |
+
<reference name="product.info">
|
147 |
+
<block type="catalog/product_view_type_simple" name="product.info.simple" as="product_type_data" template="catalog/product/view/type/default.phtml">
|
148 |
+
<block type="core/text_list" name="product.info.simple.extra" as="product_type_data_extra" translate="label">
|
149 |
+
<label>Product Extra Info</label>
|
150 |
+
</block>
|
151 |
+
</block>
|
152 |
+
</reference>
|
153 |
+
</clearprint_PRODUCT_TYPE_simple>
|
154 |
+
<clearprint_PRODUCT_TYPE_configurable translate="label" module="catalog">
|
155 |
+
<label>Catalog Product View (Configurable)</label>
|
156 |
+
<reference name="product.info">
|
157 |
+
<block type="catalog/product_view_type_configurable" name="product.info.configurable" as="product_type_data" template="catalog/product/view/type/default.phtml">
|
158 |
+
<block type="core/text_list" name="product.info.configurable.extra" as="product_type_data_extra" translate="label">
|
159 |
+
<label>Product Extra Info</label>
|
160 |
+
</block>
|
161 |
+
</block>
|
162 |
+
</reference>
|
163 |
+
<!--<reference name="product.info.options.wrapper">
|
164 |
+
<block type="catalog/product_view_type_configurable" name="product.info.options.configurable" as="options_configurable" before="-" template="catalog/product/view/type/options/configurable.phtml"/>
|
165 |
+
</reference>-->
|
166 |
+
<reference name="product.info.options.wrapper">
|
167 |
+
<block type="catalog/product_view_type_configurable" name="product.info.options.configurable" as="options_configurable" before="-" template="catalog/product/view/type/options/configurable.phtml">
|
168 |
+
<block type="core/text_list" name="product.info.options.configurable.renderers" as="attr_renderers" />
|
169 |
+
<block type="core/text_list" name="product.info.options.configurable.after" as="after" />
|
170 |
+
</block>
|
171 |
+
</reference>
|
172 |
+
</clearprint_PRODUCT_TYPE_configurable>
|
173 |
+
<clearprint_PRODUCT_TYPE_grouped translate="label" module="catalog">
|
174 |
+
<label>Catalog Product View (Grouped)</label>
|
175 |
+
<reference name="product.info">
|
176 |
+
<block type="catalog/product_view_type_grouped" name="product.info.grouped" as="product_type_data" template="catalog/product/view/type/grouped.phtml">
|
177 |
+
<block type="core/text_list" name="product.info.grouped.extra" as="product_type_data_extra" translate="label">
|
178 |
+
<label>Product Extra Info</label>
|
179 |
+
</block>
|
180 |
+
</block>
|
181 |
+
</reference>
|
182 |
+
</clearprint_PRODUCT_TYPE_grouped>
|
183 |
+
<clearprint_PRODUCT_TYPE_virtual translate="label" module="catalog">
|
184 |
+
<label>Catalog Product View (Virtual)</label>
|
185 |
+
<reference name="product.info">
|
186 |
+
<block type="catalog/product_view_type_virtual" name="product.info.virtual" as="product_type_data" template="catalog/product/view/type/default.phtml">
|
187 |
+
<block type="core/text_list" name="product.info.virtual.extra" as="product_type_data_extra" translate="label">
|
188 |
+
<label>Product Extra Info</label>
|
189 |
+
</block>
|
190 |
+
</block>
|
191 |
+
</reference>
|
192 |
+
</clearprint_PRODUCT_TYPE_virtual>
|
193 |
+
<clearprint_PRODUCT_TYPE_downloadable translate="label" module="downloadable">
|
194 |
+
<label>Catalog Product View (Downloadable)</label>
|
195 |
+
<reference name="product.info">
|
196 |
+
<block type="downloadable/catalog_product_view_type" name="product.info.downloadable" as="product_type_data" template="downloadable/catalog/product/type.phtml">
|
197 |
+
<block type="downloadable/catalog_product_samples" name="product.info.downloadable.samples" as="samples" template="downloadable/catalog/product/samples.phtml"/>
|
198 |
+
<block type="cataloginventory/stockqty_default" name="product.info.downloadable.extra" as="product_type_data_extra" template="cataloginventory/stockqty/default.phtml"/>
|
199 |
+
</block>
|
200 |
+
</reference>
|
201 |
+
<reference name="product.info.options.wrapper">
|
202 |
+
<block type="downloadable/catalog_product_links" name="product.info.downloadable.options" as="type_downloadable_options" before="-" template="downloadable/catalog/product/links.phtml"/>
|
203 |
+
<action method="insert"><block>product.info.downloadable.options</block></action>
|
204 |
+
</reference>
|
205 |
+
</clearprint_PRODUCT_TYPE_downloadable>
|
206 |
+
<clearprint_PRODUCT_TYPE_bundle translate="label" module="bundle">
|
207 |
+
<label>Catalog Product View (Bundle)</label>
|
208 |
+
<reference name="head">
|
209 |
+
<action method="addItem"><type>skin_js</type><name>js/bundle.js</name></action>
|
210 |
+
</reference>
|
211 |
+
<reference name="product.info">
|
212 |
+
<block type="bundle/catalog_product_view_type_bundle" name="product.info.bundle" as="product_type_data" template="bundle/catalog/product/view/type/bundle.phtml">
|
213 |
+
<action method="addPriceBlockType"><type>bundle</type><block>bundle/catalog_product_price</block><template>bundle/catalog/product/price.phtml</template></action>
|
214 |
+
<block type="bundle/catalog_product_price" name="bundle.prices" as="bundle_prices" template="bundle/catalog/product/view/price.phtml">
|
215 |
+
<action method="setMAPTemplate"><tmpl>catalog/product/price_msrp_item.phtml</tmpl></action>
|
216 |
+
</block>
|
217 |
+
</block>
|
218 |
+
</reference>
|
219 |
+
<reference name="product.info.options.wrapper">
|
220 |
+
<block type="bundle/catalog_product_view_type_bundle" name="product.info.bundle.options" as="type_bundle_options" template="bundle/catalog/product/view/type/bundle/options.phtml">
|
221 |
+
<action method="addRenderer"><type>select</type><block>bundle/catalog_product_view_type_bundle_option_select</block></action>
|
222 |
+
<action method="addRenderer"><type>multi</type><block>bundle/catalog_product_view_type_bundle_option_multi</block></action>
|
223 |
+
<action method="addRenderer"><type>radio</type><block>bundle/catalog_product_view_type_bundle_option_radio</block></action>
|
224 |
+
<action method="addRenderer"><type>checkbox</type><block>bundle/catalog_product_view_type_bundle_option_checkbox</block></action>
|
225 |
+
</block>
|
226 |
+
<action method="insert"><block>product.info.bundle.options</block></action>
|
227 |
+
</reference>
|
228 |
+
<reference name="product.info.options.wrapper.bottom">
|
229 |
+
<remove name="product.tierprices" />
|
230 |
+
<block type="bundle/catalog_product_view" name="bundle.tierprices" as="tierprices" before="-" template="bundle/catalog/product/view/tierprices.phtml"/>
|
231 |
+
<block type="cataloginventory/qtyincrements" name="product.info.qtyincrements" before="-" template="cataloginventory/qtyincrements.phtml"/>
|
232 |
+
</reference>
|
233 |
+
<reference name="product.clone_prices">
|
234 |
+
<action method="addPriceBlockType"><type>bundle</type><block>bundle/catalog_product_price</block><template>bundle/catalog/product/view/price.phtml</template></action>
|
235 |
+
</reference>
|
236 |
+
</clearprint_PRODUCT_TYPE_bundle>
|
237 |
+
|
238 |
+
</layout>
|
app/design/frontend/base/default/template/clearprint/catalog/product/view.phtml
ADDED
@@ -0,0 +1,155 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
<?php $_helper = $this->helper('catalog/output'); ?>
|
3 |
+
<?php $_product = $this->getProduct(); ?>
|
4 |
+
<script type="text/javascript">
|
5 |
+
var optionsPrice = new Product.OptionsPrice(<?php echo $this->getJsonConfig() ?>);
|
6 |
+
</script>
|
7 |
+
<div id="messages_product_view"><?php echo $this->getMessagesBlock()->getGroupedHtml() ?></div>
|
8 |
+
<div class="product-view">
|
9 |
+
<div class="product-essential">
|
10 |
+
<form action="<?php echo $this->getSubmitUrl($_product) ?>" method="post" id="product_addtocart_form"<?php if($_product->getOptions()): ?> enctype="multipart/form-data"<?php endif; ?>>
|
11 |
+
<?php echo $this->getBlockHtml('formkey') ?>
|
12 |
+
<div class="no-display">
|
13 |
+
<input type="hidden" name="product" value="<?php echo $_product->getId() ?>" />
|
14 |
+
<input type="hidden" name="related_product" id="related-products-field" value="" />
|
15 |
+
</div>
|
16 |
+
|
17 |
+
<div class="product-shop">
|
18 |
+
|
19 |
+
<h1><?php echo $_helper->productAttribute($_product, $_product->getName(), 'name') ?></h1>
|
20 |
+
|
21 |
+
<?php //echo $this->getReviewsSummaryHtml($_product, false, true)?>
|
22 |
+
<?php echo $this->getChildHtml('alert_urls') ?>
|
23 |
+
<?php echo $this->getChildHtml('product_type_data') ?>
|
24 |
+
|
25 |
+
<?php if ($this->helper('clearprint')->getVersion19()): ?>
|
26 |
+
<p style="clear:both;">
|
27 |
+
<?php echo $this->getPriceHtml($_product); ?>
|
28 |
+
<?php echo $this->getChildHtml('bundle_prices') ?>
|
29 |
+
|
30 |
+
<?php if ($this->displayProductStockStatus() && $_product->getTypeId() != 'downloadable'): ?>
|
31 |
+
<?php if ($_product->isAvailable()): ?>
|
32 |
+
<p class="availability in-stock">
|
33 |
+
<span class="label"><?php echo $this->helper('catalog')->__('Availability:') ?></span>
|
34 |
+
<span class="value"><?php echo $this->helper('catalog')->__('In stock') ?></span>
|
35 |
+
</p>
|
36 |
+
<?php else: ?>
|
37 |
+
<p class="availability out-of-stock">
|
38 |
+
<span class="label"><?php echo $this->helper('catalog')->__('Availability:') ?></span>
|
39 |
+
<span class="value"><?php echo $this->helper('catalog')->__('Out of stock') ?></span>
|
40 |
+
</p>
|
41 |
+
<?php endif; ?>
|
42 |
+
<?php endif; ?>
|
43 |
+
</p>
|
44 |
+
<?php endif; ?>
|
45 |
+
|
46 |
+
<?php echo $this->getTierPriceHtml() ?>
|
47 |
+
<?php echo $this->getChildHtml('extrahint') ?>
|
48 |
+
|
49 |
+
<?php if (!$this->hasOptions()):?>
|
50 |
+
<div class="add-to-box">
|
51 |
+
<?php if($_product->isSaleable()): ?>
|
52 |
+
<?php echo $this->getChildHtml('addtocart') ?>
|
53 |
+
<?php if( $this->helper('wishlist')->isAllow() || $_compareUrl=$this->helper('catalog/product_compare')->getAddUrl($_product)): ?>
|
54 |
+
<span class="or"><?php echo Mage::helper('catalog')->__('OR') ?></span>
|
55 |
+
<?php endif; ?>
|
56 |
+
<?php endif; ?>
|
57 |
+
<?php echo $this->getChildHtml('addto') ?>
|
58 |
+
</div>
|
59 |
+
<?php echo $this->getChildHtml('extra_buttons') ?>
|
60 |
+
<?php elseif (!$_product->isSaleable()): ?>
|
61 |
+
<div class="add-to-box">
|
62 |
+
<?php echo $this->getChildHtml('addto') ?>
|
63 |
+
</div>
|
64 |
+
<?php endif; ?>
|
65 |
+
|
66 |
+
<?php if ($_product->getShortDescription()):?>
|
67 |
+
<div class="short-description">
|
68 |
+
<h2><?php echo Mage::helper('catalog')->__('Quick Overview') ?></h2>
|
69 |
+
<div class="std"><?php echo $_helper->productAttribute($_product, nl2br($_product->getShortDescription()), 'short_description') ?></div>
|
70 |
+
</div>
|
71 |
+
<?php endif;?>
|
72 |
+
|
73 |
+
<?php echo $this->getChildHtml('other');?>
|
74 |
+
|
75 |
+
<?php if ($_product->isSaleable() && $this->hasOptions()):?>
|
76 |
+
<?php echo $this->getChildChildHtml('container1', '', true, true) ?>
|
77 |
+
<?php endif;?>
|
78 |
+
|
79 |
+
</div>
|
80 |
+
|
81 |
+
<div class="product-img-box">
|
82 |
+
<?php echo $this->getChildHtml('media') ?>
|
83 |
+
</div>
|
84 |
+
|
85 |
+
<div class="clearer"></div>
|
86 |
+
<?php if ($_product->isSaleable() && $this->hasOptions()):?>
|
87 |
+
<?php echo $this->getChildChildHtml('container2', '', true, true) ?>
|
88 |
+
<?php endif;?>
|
89 |
+
</form>
|
90 |
+
<script type="text/javascript">
|
91 |
+
//<![CDATA[
|
92 |
+
var productAddToCartForm = new VarienForm('product_addtocart_form');
|
93 |
+
productAddToCartForm.submit = function(button, url) {
|
94 |
+
if (this.validator.validate()) {
|
95 |
+
var form = this.form;
|
96 |
+
var oldUrl = form.action;
|
97 |
+
|
98 |
+
if (url) {
|
99 |
+
form.action = url;
|
100 |
+
}
|
101 |
+
var e = null;
|
102 |
+
try {
|
103 |
+
this.form.submit();
|
104 |
+
} catch (e) {
|
105 |
+
}
|
106 |
+
this.form.action = oldUrl;
|
107 |
+
if (e) {
|
108 |
+
throw e;
|
109 |
+
}
|
110 |
+
|
111 |
+
if (button && button != 'undefined') {
|
112 |
+
button.disabled = true;
|
113 |
+
}
|
114 |
+
}
|
115 |
+
}.bind(productAddToCartForm);
|
116 |
+
|
117 |
+
productAddToCartForm.submitLight = function(button, url){
|
118 |
+
if(this.validator) {
|
119 |
+
var nv = Validation.methods;
|
120 |
+
delete Validation.methods['required-entry'];
|
121 |
+
delete Validation.methods['validate-one-required'];
|
122 |
+
delete Validation.methods['validate-one-required-by-name'];
|
123 |
+
// Remove custom datetime validators
|
124 |
+
for (var methodName in Validation.methods) {
|
125 |
+
if (methodName.match(/^validate-datetime-.*/i)) {
|
126 |
+
delete Validation.methods[methodName];
|
127 |
+
}
|
128 |
+
}
|
129 |
+
|
130 |
+
if (this.validator.validate()) {
|
131 |
+
if (url) {
|
132 |
+
this.form.action = url;
|
133 |
+
}
|
134 |
+
this.form.submit();
|
135 |
+
}
|
136 |
+
Object.extend(Validation.methods, nv);
|
137 |
+
}
|
138 |
+
}.bind(productAddToCartForm);
|
139 |
+
//]]>
|
140 |
+
</script>
|
141 |
+
</div>
|
142 |
+
|
143 |
+
<div class="product-collateral">
|
144 |
+
<?php foreach ($this->getChildGroup('detailed_info', 'getChildHtml') as $alias => $html):?>
|
145 |
+
<div class="box-collateral <?php echo "box-{$alias}"?>">
|
146 |
+
<?php if ($title = $this->getChildData($alias, 'title')):?>
|
147 |
+
<h2><?php echo $this->escapeHtml($title); ?></h2>
|
148 |
+
<?php endif;?>
|
149 |
+
<?php echo $html; ?>
|
150 |
+
</div>
|
151 |
+
<?php endforeach;?>
|
152 |
+
<?php echo $this->getChildHtml('upsell_products') ?>
|
153 |
+
<?php echo $this->getChildHtml('product_additional_data') ?>
|
154 |
+
</div>
|
155 |
+
</div>
|
app/design/frontend/base/default/template/clearprint/catalog/product/view/addtocart.phtml
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
<?php $_product = $this->getProduct(); ?>
|
3 |
+
|
4 |
+
<?php if($_product->isSaleable()): ?>
|
5 |
+
<div class="add-to-cart">
|
6 |
+
<?php if(!$_product->isGrouped()): ?>
|
7 |
+
<label for="qty"><?php echo $this->__('Qty:') ?></label>
|
8 |
+
<input type="text" name="qty" id="qty" maxlength="12" value="<?php echo $this->getProductDefaultQty() * 1 ?>" title="<?php echo $this->__('Qty') ?>" class="input-text qty" />
|
9 |
+
<?php endif; ?>
|
10 |
+
|
11 |
+
<?php echo $this->getChildHtml('', true, true) ?>
|
12 |
+
</div>
|
13 |
+
<?php endif; ?>
|
app/design/frontend/base/default/template/clearprint/catalog/product/view/media.phtml
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2013 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
|
27 |
+
/**
|
28 |
+
* Product media data template
|
29 |
+
*
|
30 |
+
* @see Mage_Catalog_Block_Product_View_Media
|
31 |
+
*/
|
32 |
+
?>
|
33 |
+
<?php
|
34 |
+
$_product = $this->getProduct();
|
35 |
+
$_helper = $this->helper('catalog/output');
|
36 |
+
?>
|
37 |
+
<?php if ($_product->getImage() != 'no_selection' && $_product->getImage()): ?>
|
38 |
+
<p class="product-image product-image-zoom">
|
39 |
+
<?php
|
40 |
+
$_img = '<img id="image" src="'.$this->helper('catalog/image')->init($_product, 'image').'" alt="'.$this->escapeHtml($this->getImageLabel()).'" title="'.$this->escapeHtml($this->getImageLabel()).'" />';
|
41 |
+
echo $_helper->productAttribute($_product, $_img, 'image');
|
42 |
+
?>
|
43 |
+
</p>
|
44 |
+
|
45 |
+
<div class="zoom">
|
46 |
+
<img id="zoom_out" src="<?php echo $this->getSkinUrl('images/slider_btn_zoom_out.gif') ?>" alt="<?php echo $this->__('Zoom Out') ?>" title="<?php echo $this->__('Zoom Out') ?>" class="btn-zoom-out" />
|
47 |
+
<div id="track">
|
48 |
+
<div id="handle"></div>
|
49 |
+
</div>
|
50 |
+
<img id="zoom_in" src="<?php echo $this->getSkinUrl('images/slider_btn_zoom_in.gif') ?>" alt="<?php echo $this->__('Zoom In') ?>" title="<?php echo $this->__('Zoom In') ?>" class="btn-zoom-in" />
|
51 |
+
</div>
|
52 |
+
<script type="text/javascript">
|
53 |
+
//<![CDATA[
|
54 |
+
Event.observe(window, 'load', function() {
|
55 |
+
product_zoom = new Product.Zoom('image', 'track', 'handle', 'zoom_in', 'zoom_out', 'track_hint');
|
56 |
+
});
|
57 |
+
//]]>
|
58 |
+
</script>
|
59 |
+
<?php else: ?>
|
60 |
+
<p class="product-image">
|
61 |
+
<?php
|
62 |
+
$_img = '<img src="'.$this->helper('catalog/image')->init($_product, 'image')->resize(265).'" alt="'.$this->escapeHtml($this->getImageLabel()).'" title="'.$this->escapeHtml($this->getImageLabel()).'" />';
|
63 |
+
echo $_helper->productAttribute($_product, $_img, 'image');
|
64 |
+
?>
|
65 |
+
</p>
|
66 |
+
<?php endif; ?>
|
app/design/frontend/base/default/template/clearprint/catalog/product/view/printlink.phtml
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
<?php if ($this->helper('clearprint')->isEnabledPrintProduct()): ?>
|
3 |
+
|
4 |
+
<?php
|
5 |
+
$_product = $this->getProduct();
|
6 |
+
$url = "clearprint/catalog_product/view/".$_product->getEntityId();
|
7 |
+
$buttonTitle = $this->__('Print Product');
|
8 |
+
?>
|
9 |
+
|
10 |
+
<?php /*
|
11 |
+
<button style="margin-left:2px" type="button" title="<?php echo $buttonTitle ?>" class="button btn-cart" onclick='window.open("<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB).'clearprint/catalog_product/view/id/'.$_product->getEntityId() ?>", "_blank", "toolbar=0,location=0,menubar=0");'><span><span><?php echo $buttonTitle ?></span></span></button>
|
12 |
+
*/ ?>
|
13 |
+
|
14 |
+
<ul class="add-to-links">
|
15 |
+
<li style="margin-left:5px"><a href="#" onclick='window.open("<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB).'clearprint/catalog_product/view/id/'.$_product->getEntityId() ?>", "_blank", "toolbar=0,location=0,menubar=0");' class="link-wishlist"><?php echo $this->__('Print Product') ?></a></li>
|
16 |
+
</ul>
|
17 |
+
|
18 |
+
<?php endif; ?>
|
app/design/frontend/base/default/template/clearprint/checkout/cart.phtml
ADDED
@@ -0,0 +1,121 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2013 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* Shopping cart template
|
30 |
+
*
|
31 |
+
* @see Mage_Checkout_Block_Cart
|
32 |
+
*/
|
33 |
+
?>
|
34 |
+
<div class="cart">
|
35 |
+
<div class="page-title title-buttons">
|
36 |
+
<h1><?php echo Mage::helper('checkout')->__('Shopping Cart') ?></h1>
|
37 |
+
<?php if(!$this->hasError()): ?>
|
38 |
+
<ul class="checkout-types">
|
39 |
+
<?php foreach ($this->getMethods('top_methods') as $method): ?>
|
40 |
+
<?php if ($methodHtml = $this->getMethodHtml($method)): ?>
|
41 |
+
<li><?php echo $methodHtml; ?></li>
|
42 |
+
<?php endif; ?>
|
43 |
+
<?php endforeach; ?>
|
44 |
+
</ul>
|
45 |
+
<?php endif; ?>
|
46 |
+
</div>
|
47 |
+
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
48 |
+
<?php echo $this->getChildHtml('form_before') ?>
|
49 |
+
<form action="<?php echo $this->getUrl('checkout/cart/updatePost') ?>" method="post">
|
50 |
+
<?php echo $this->getBlockHtml('formkey'); ?>
|
51 |
+
<fieldset>
|
52 |
+
<table id="shopping-cart-table" class="data-table cart-table">
|
53 |
+
<col width="1" />
|
54 |
+
<col />
|
55 |
+
<col width="1" />
|
56 |
+
<?php if ($this->helper('wishlist')->isAllowInCart()) : ?>
|
57 |
+
<col width="1" />
|
58 |
+
<?php endif ?>
|
59 |
+
<?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
60 |
+
<col width="1" />
|
61 |
+
<?php endif; ?>
|
62 |
+
<?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
63 |
+
<col width="1" />
|
64 |
+
<?php endif; ?>
|
65 |
+
<col width="1" />
|
66 |
+
<?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
67 |
+
<col width="1" />
|
68 |
+
<?php endif; ?>
|
69 |
+
<?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
70 |
+
<col width="1" />
|
71 |
+
<?php endif; ?>
|
72 |
+
<col width="1" />
|
73 |
+
|
74 |
+
<?php $mergedCells = ($this->helper('tax')->displayCartBothPrices() ? 2 : 1); ?>
|
75 |
+
<thead>
|
76 |
+
<tr>
|
77 |
+
<th style="border-bottom: 1px solid #d9dde3 !important" rowspan="<?php echo $mergedCells; ?>"> </th>
|
78 |
+
<th style="border-bottom: 1px solid #d9dde3 !important" rowspan="<?php echo $mergedCells; ?>"><span class="nobr"><?php echo Mage::helper('checkout')->__('Product Name') ?></span></th>
|
79 |
+
|
80 |
+
<th style="border-bottom: 1px solid #d9dde3 !important" class="a-center" colspan="<?php echo $mergedCells; ?>"><span class="nobr"><?php echo Mage::helper('checkout')->__('Unit Price') ?></span></th>
|
81 |
+
<th style="border-bottom: 1px solid #d9dde3 !important" rowspan="<?php echo $mergedCells; ?>" class="a-center"><?php echo Mage::helper('checkout')->__('Qty') ?></th>
|
82 |
+
<th style="border-bottom: 1px solid #d9dde3 !important" class="a-center" colspan="<?php echo $mergedCells; ?>"><?php echo Mage::helper('checkout')->__('Subtotal') ?></th>
|
83 |
+
|
84 |
+
</tr>
|
85 |
+
<?php if ($this->helper('tax')->displayCartBothPrices()): ?>
|
86 |
+
<tr>
|
87 |
+
<th class="a-right"><?php echo $this->helper('tax')->getIncExcTaxLabel(false) ?></th>
|
88 |
+
<th><?php echo $this->helper('tax')->getIncExcTaxLabel(true) ?></th>
|
89 |
+
<th class="a-right"><?php echo $this->helper('tax')->getIncExcTaxLabel(false) ?></th>
|
90 |
+
<th><?php echo $this->helper('tax')->getIncExcTaxLabel(true) ?></th>
|
91 |
+
</tr>
|
92 |
+
<?php endif; ?>
|
93 |
+
|
94 |
+
</thead>
|
95 |
+
<tfoot>
|
96 |
+
|
97 |
+
</tfoot>
|
98 |
+
<tbody>
|
99 |
+
<?php foreach($this->getItems() as $_item): ?>
|
100 |
+
<?php echo $this->getItemHtml($_item) ?>
|
101 |
+
<?php endforeach ?>
|
102 |
+
</tbody>
|
103 |
+
</table>
|
104 |
+
<script type="text/javascript">decorateTable('shopping-cart-table')</script>
|
105 |
+
</fieldset>
|
106 |
+
</form>
|
107 |
+
<div class="cart-collaterals">
|
108 |
+
<div class="totals">
|
109 |
+
<?php echo $this->getChildHtml('totals'); ?>
|
110 |
+
<?php if(!$this->hasError()): ?>
|
111 |
+
<ul class="checkout-types">
|
112 |
+
<?php foreach ($this->getMethods('methods') as $method): ?>
|
113 |
+
<?php if ($methodHtml = $this->getMethodHtml($method)): ?>
|
114 |
+
<li><?php echo $methodHtml; ?></li>
|
115 |
+
<?php endif; ?>
|
116 |
+
<?php endforeach; ?>
|
117 |
+
</ul>
|
118 |
+
<?php endif; ?>
|
119 |
+
</div>
|
120 |
+
</div>
|
121 |
+
</div>
|
app/design/frontend/base/default/template/clearprint/checkout/cart/item/default.phtml
ADDED
@@ -0,0 +1,272 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2013 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
$_item = $this->getItem();
|
29 |
+
$isVisibleProduct = $_item->getProduct()->isVisibleInSiteVisibility();
|
30 |
+
|
31 |
+
$canApplyMsrp = false;
|
32 |
+
if (method_exists(Mage::helper('catalog'), 'canApplyMsrp')):
|
33 |
+
$canApplyMsrp = Mage::helper('catalog')->canApplyMsrp($_item->getProduct(), Mage_Catalog_Model_Product_Attribute_Source_Msrp_Type::TYPE_BEFORE_ORDER_CONFIRM);
|
34 |
+
endif;
|
35 |
+
?>
|
36 |
+
<tr>
|
37 |
+
<td><?php if ($this->hasProductUrl()):?><a href="<?php echo $this->getProductUrl() ?>" title="<?php echo $this->escapeHtml($this->getProductName()) ?>" class="product-image"><?php endif;?><img src="<?php echo $this->getProductThumbnail()->resize(75); ?>" width="75" height="75" alt="<?php echo $this->escapeHtml($this->getProductName()) ?>" /><?php if ($this->hasProductUrl()):?></a><?php endif;?></td>
|
38 |
+
<td>
|
39 |
+
<h2 class="product-name">
|
40 |
+
<?php if ($this->hasProductUrl()):?>
|
41 |
+
<a href="<?php echo $this->getProductUrl() ?>"><?php echo $this->escapeHtml($this->getProductName()) ?></a>
|
42 |
+
<?php else: ?>
|
43 |
+
<?php echo $this->escapeHtml($this->getProductName()) ?>
|
44 |
+
<?php endif; ?>
|
45 |
+
</h2>
|
46 |
+
<?php if ($_options = $this->getOptionList()):?>
|
47 |
+
<dl class="item-options">
|
48 |
+
<?php foreach ($_options as $_option) : ?>
|
49 |
+
<?php $_formatedOptionValue = $this->getFormatedOptionValue($_option) ?>
|
50 |
+
<dt><?php echo $this->escapeHtml($_option['label']) ?></dt>
|
51 |
+
<dd<?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?>><?php echo $_formatedOptionValue['value'] ?>
|
52 |
+
<?php if (isset($_formatedOptionValue['full_view'])): ?>
|
53 |
+
<div class="truncated_full_value">
|
54 |
+
<dl class="item-options">
|
55 |
+
<dt><?php echo $this->escapeHtml($_option['label']) ?></dt>
|
56 |
+
<dd><?php echo $_formatedOptionValue['full_view'] ?></dd>
|
57 |
+
</dl>
|
58 |
+
</div>
|
59 |
+
<?php endif; ?>
|
60 |
+
</dd>
|
61 |
+
<?php endforeach; ?>
|
62 |
+
</dl>
|
63 |
+
<?php endif;?>
|
64 |
+
<?php if ($messages = $this->getMessages()): ?>
|
65 |
+
<?php foreach ($messages as $message): ?>
|
66 |
+
<p class="item-msg <?php echo $message['type'] ?>">* <?php echo $this->escapeHtml($message['text']) ?></p>
|
67 |
+
<?php endforeach; ?>
|
68 |
+
<?php endif; ?>
|
69 |
+
<?php $addInfoBlock = $this->getProductAdditionalInformationBlock(); ?>
|
70 |
+
<?php if ($addInfoBlock): ?>
|
71 |
+
<?php echo $addInfoBlock->setItem($_item)->toHtml() ?>
|
72 |
+
<?php endif;?>
|
73 |
+
</td>
|
74 |
+
|
75 |
+
|
76 |
+
<?php if ($canApplyMsrp): ?>
|
77 |
+
<td class="a-right"<?php if ($this->helper('tax')->displayCartBothPrices()): ?> colspan="2"<?php endif; ?>>
|
78 |
+
<span class="cart-price">
|
79 |
+
<span class="cart-msrp-unit"><?php echo $this->__('See price before order confirmation.'); ?></span>
|
80 |
+
<?php $helpLinkId = 'cart-msrp-help-' . $_item->getId(); ?>
|
81 |
+
<a id="<?php echo $helpLinkId ?>" href="#" class="map-help-link"><?php echo $this->__("What's this?"); ?></a>
|
82 |
+
<script type="text/javascript">
|
83 |
+
Catalog.Map.addHelpLink($('<?php echo $helpLinkId ?>'), "<?php echo $this->__("What's this?") ?>");
|
84 |
+
</script>
|
85 |
+
</span>
|
86 |
+
</td>
|
87 |
+
<?php else: ?>
|
88 |
+
|
89 |
+
<?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
90 |
+
<td class="a-right">
|
91 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
92 |
+
<span class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
93 |
+
<?php else: ?>
|
94 |
+
<span class="cart-price">
|
95 |
+
<?php endif; ?>
|
96 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
97 |
+
<?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?>
|
98 |
+
<?php else: ?>
|
99 |
+
<?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()) ?>
|
100 |
+
<?php endif; ?>
|
101 |
+
|
102 |
+
</span>
|
103 |
+
|
104 |
+
<?php if (Mage::helper('weee')->getApplied($_item)): ?>
|
105 |
+
|
106 |
+
<div class="cart-tax-info" id="eunit-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
|
107 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
108 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
109 |
+
<span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span>
|
110 |
+
<?php endforeach; ?>
|
111 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
112 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
113 |
+
<span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span>
|
114 |
+
<?php endforeach; ?>
|
115 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
116 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
117 |
+
<span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span>
|
118 |
+
<?php endforeach; ?>
|
119 |
+
<?php endif; ?>
|
120 |
+
</div>
|
121 |
+
|
122 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
123 |
+
<div class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
124 |
+
<span class="weee"><?php echo Mage::helper('weee')->__('Total'); ?>: <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?></span>
|
125 |
+
</div>
|
126 |
+
<?php endif; ?>
|
127 |
+
<?php endif; ?>
|
128 |
+
</td>
|
129 |
+
<?php endif; ?><!-- inclusive price starts here -->
|
130 |
+
<?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
131 |
+
<td>
|
132 |
+
<?php $_incl = $this->helper('checkout')->getPriceInclTax($_item); ?>
|
133 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
134 |
+
<span class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
135 |
+
<?php else: ?>
|
136 |
+
<span class="cart-price">
|
137 |
+
<?php endif; ?>
|
138 |
+
|
139 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
140 |
+
<?php echo $this->helper('checkout')->formatPrice($_incl + Mage::helper('weee')->getWeeeTaxInclTax($_item)); ?>
|
141 |
+
<?php else: ?>
|
142 |
+
<?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxDisposition()) ?>
|
143 |
+
<?php endif; ?>
|
144 |
+
|
145 |
+
</span>
|
146 |
+
<?php if (Mage::helper('weee')->getApplied($_item)): ?>
|
147 |
+
|
148 |
+
<div class="cart-tax-info" id="unit-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
|
149 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
150 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
151 |
+
<span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
|
152 |
+
<?php endforeach; ?>
|
153 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
154 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
155 |
+
<span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
|
156 |
+
<?php endforeach; ?>
|
157 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
158 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
159 |
+
<span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
|
160 |
+
<?php endforeach; ?>
|
161 |
+
<?php endif; ?>
|
162 |
+
</div>
|
163 |
+
|
164 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
165 |
+
<div class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
166 |
+
<span class="weee"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>: <?php echo $this->helper('checkout')->formatPrice($_incl + Mage::helper('weee')->getWeeeTaxInclTax($_item)); ?></span>
|
167 |
+
</div>
|
168 |
+
<?php endif; ?>
|
169 |
+
<?php endif; ?>
|
170 |
+
</td>
|
171 |
+
<?php endif; ?>
|
172 |
+
<?php endif; ?>
|
173 |
+
<td class="a-center">
|
174 |
+
<input name="cart[<?php echo $_item->getId() ?>][qty]" value="<?php echo $this->getQty() ?>" size="4" title="<?php echo $this->__('Qty') ?>" class="input-text qty" maxlength="12" />
|
175 |
+
</td>
|
176 |
+
|
177 |
+
<!--Sub total starts here -->
|
178 |
+
<?php if (($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()) && !$_item->getNoSubtotal()): ?>
|
179 |
+
<td class="a-right">
|
180 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
181 |
+
<span class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
182 |
+
<?php else: ?>
|
183 |
+
<span class="cart-price">
|
184 |
+
<?php endif; ?>
|
185 |
+
|
186 |
+
<?php if ($canApplyMsrp): ?>
|
187 |
+
<span class="cart-msrp-subtotal">--</span>
|
188 |
+
<?php else: ?>
|
189 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
190 |
+
<?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?>
|
191 |
+
<?php else: ?>
|
192 |
+
<?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()) ?>
|
193 |
+
<?php endif; ?>
|
194 |
+
<?php endif; ?>
|
195 |
+
|
196 |
+
</span>
|
197 |
+
<?php if (Mage::helper('weee')->getApplied($_item)): ?>
|
198 |
+
|
199 |
+
<div class="cart-tax-info" id="esubtotal-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
|
200 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
201 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
202 |
+
<span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span>
|
203 |
+
<?php endforeach; ?>
|
204 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
205 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
206 |
+
<span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span>
|
207 |
+
<?php endforeach; ?>
|
208 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
209 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
210 |
+
<span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span>
|
211 |
+
<?php endforeach; ?>
|
212 |
+
<?php endif; ?>
|
213 |
+
</div>
|
214 |
+
|
215 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
216 |
+
<div class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
217 |
+
<span class="weee"><?php echo Mage::helper('weee')->__('Total'); ?>: <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?></span>
|
218 |
+
</div>
|
219 |
+
<?php endif; ?>
|
220 |
+
<?php endif; ?>
|
221 |
+
</td>
|
222 |
+
<?php endif; ?>
|
223 |
+
<?php if (($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()) && !$_item->getNoSubtotal()): ?>
|
224 |
+
<td>
|
225 |
+
<?php $_incl = $this->helper('checkout')->getSubtotalInclTax($_item); ?>
|
226 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
227 |
+
<span class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
228 |
+
<?php else: ?>
|
229 |
+
<span class="cart-price">
|
230 |
+
<?php endif; ?>
|
231 |
+
|
232 |
+
<?php if ($canApplyMsrp): ?>
|
233 |
+
<span class="cart-msrp-subtotal">--</span>
|
234 |
+
<?php else: ?>
|
235 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
236 |
+
<?php echo $this->helper('checkout')->formatPrice($_incl + Mage::helper('weee')->getRowWeeeTaxInclTax($_item)); ?>
|
237 |
+
<?php else: ?>
|
238 |
+
<?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxRowDisposition()) ?>
|
239 |
+
<?php endif; ?>
|
240 |
+
<?php endif; ?>
|
241 |
+
|
242 |
+
</span>
|
243 |
+
|
244 |
+
|
245 |
+
<?php if (Mage::helper('weee')->getApplied($_item)): ?>
|
246 |
+
|
247 |
+
<div class="cart-tax-info" id="subtotal-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
|
248 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
249 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
250 |
+
<span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
|
251 |
+
<?php endforeach; ?>
|
252 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
253 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
254 |
+
<span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
|
255 |
+
<?php endforeach; ?>
|
256 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
257 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
258 |
+
<span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
|
259 |
+
<?php endforeach; ?>
|
260 |
+
<?php endif; ?>
|
261 |
+
</div>
|
262 |
+
|
263 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
264 |
+
<div class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
265 |
+
<span class="weee"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>: <?php echo $this->helper('checkout')->formatPrice($_incl + Mage::helper('weee')->getRowWeeeTaxInclTax($_item)); ?></span>
|
266 |
+
</div>
|
267 |
+
<?php endif; ?>
|
268 |
+
<?php endif; ?>
|
269 |
+
</td>
|
270 |
+
<?php endif; ?>
|
271 |
+
|
272 |
+
</tr>
|
app/design/frontend/base/default/template/clearprint/checkout/cart/item/downloadable/default.phtml
ADDED
@@ -0,0 +1,309 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2013 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
$_item = $this->getItem();
|
29 |
+
|
30 |
+
$canApplyMsrp = false;
|
31 |
+
if (method_exists(Mage::helper('catalog'), 'canApplyMsrp')):
|
32 |
+
$canApplyMsrp = Mage::helper('catalog')->canApplyMsrp($_item->getProduct(), Mage_Catalog_Model_Product_Attribute_Source_Msrp_Type::TYPE_BEFORE_ORDER_CONFIRM);
|
33 |
+
endif;
|
34 |
+
?>
|
35 |
+
<tr>
|
36 |
+
<td><a href="<?php echo $this->getProductUrl() ?>" class="product-image"
|
37 |
+
title="<?php echo $this->escapeHtml($this->getProductName()) ?>"><img
|
38 |
+
src="<?php echo $this->getProductThumbnail()->resize(75); ?>"
|
39 |
+
alt="<?php echo $this->escapeHtml($this->getProductName()) ?>"/></a></td>
|
40 |
+
<td>
|
41 |
+
<h2 class="product-name"><a
|
42 |
+
href="<?php echo $this->getProductUrl() ?>"><?php echo $this->escapeHtml($this->getProductName()) ?></a>
|
43 |
+
</h2>
|
44 |
+
<?php if ($_options = $this->getOptionList()): ?>
|
45 |
+
<dl class="item-options">
|
46 |
+
<?php foreach ($_options as $_option) : ?>
|
47 |
+
<?php $_formatedOptionValue = $this->getFormatedOptionValue($_option) ?>
|
48 |
+
<dt><?php echo $this->escapeHtml($_option['label']) ?></dt>
|
49 |
+
<dd<?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?>><?php echo $_formatedOptionValue['value'] ?>
|
50 |
+
<?php if (isset($_formatedOptionValue['full_view'])): ?>
|
51 |
+
<div class="truncated_full_value">
|
52 |
+
<dl class="item-options">
|
53 |
+
<dt><?php echo $this->escapeHtml($_option['label']) ?></dt>
|
54 |
+
<dd><?php echo $_formatedOptionValue['full_view'] ?></dd>
|
55 |
+
</dl>
|
56 |
+
</div>
|
57 |
+
<?php endif; ?>
|
58 |
+
</dd>
|
59 |
+
<?php endforeach; ?>
|
60 |
+
</dl>
|
61 |
+
<?php endif; ?>
|
62 |
+
<!-- downloadable -->
|
63 |
+
<?php if ($links = $this->getLinks()): ?>
|
64 |
+
<dl class="item-options">
|
65 |
+
<dt><?php echo $this->getLinksTitle() ?></dt>
|
66 |
+
<?php foreach ($links as $link): ?>
|
67 |
+
<dd><?php echo $this->escapeHtml($link->getTitle()); ?></dd>
|
68 |
+
<?php endforeach; ?>
|
69 |
+
</dl>
|
70 |
+
<?php endif; ?>
|
71 |
+
<!-- EOF downloadable -->
|
72 |
+
|
73 |
+
<?php if ($messages = $this->getMessages()): ?>
|
74 |
+
<?php foreach ($messages as $message): ?>
|
75 |
+
<div class="shopping-cart-item-message <?php echo $message['type'] ?>">
|
76 |
+
* <?php echo $this->escapeHtml($message['text']) ?>
|
77 |
+
</div>
|
78 |
+
<?php endforeach; ?>
|
79 |
+
<?php endif; ?>
|
80 |
+
</td>
|
81 |
+
|
82 |
+
<?php if ($canApplyMsrp): ?>
|
83 |
+
<td class="a-right"<?php if ($this->helper('tax')->displayCartBothPrices()): ?> colspan="2"<?php endif; ?>>
|
84 |
+
<span class="cart-price">
|
85 |
+
<span class="cart-msrp-unit"><?php echo $this->__('See price before order confirmation.'); ?></span>
|
86 |
+
<?php $helpLinkId = 'cart-msrp-help-' . $_item->getId(); ?>
|
87 |
+
<a id="<?php echo $helpLinkId ?>" href="#"
|
88 |
+
class="map-help-link"><?php echo $this->__("What's this?"); ?></a>
|
89 |
+
<script type="text/javascript">
|
90 |
+
Catalog.Map.addHelpLink($('<?php echo $helpLinkId ?>'), "<?php echo $this->__("What's this?") ?>");
|
91 |
+
</script>
|
92 |
+
</span>
|
93 |
+
</td>
|
94 |
+
<?php else: ?>
|
95 |
+
|
96 |
+
|
97 |
+
<?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
98 |
+
<td class="a-right">
|
99 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
100 |
+
<div class="cart-tax-total"
|
101 |
+
onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
102 |
+
<?php else: ?>
|
103 |
+
<div class="cart-price">
|
104 |
+
<?php endif; ?>
|
105 |
+
|
106 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
107 |
+
<?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice() + $_item->getWeeeTaxAppliedAmount() + $_item->getWeeeTaxDisposition()); ?>
|
108 |
+
<?php else: ?>
|
109 |
+
<?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()) ?>
|
110 |
+
<?php endif; ?>
|
111 |
+
|
112 |
+
</div>
|
113 |
+
|
114 |
+
|
115 |
+
<?php if (Mage::helper('weee')->getApplied($_item)): ?>
|
116 |
+
|
117 |
+
<div class="cart-tax-info" id="eunit-item-tax-details<?php echo $_item->getId(); ?>"
|
118 |
+
style="display:none;">
|
119 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
120 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
121 |
+
<span class="weee"><?php echo $tax['title']; ?>
|
122 |
+
: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'], true, true); ?></span>
|
123 |
+
<?php endforeach; ?>
|
124 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
125 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
126 |
+
<span class="weee"><?php echo $tax['title']; ?>
|
127 |
+
: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'], true, true); ?></span>
|
128 |
+
<?php endforeach; ?>
|
129 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
130 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
131 |
+
<span class="weee"><?php echo $tax['title']; ?>
|
132 |
+
: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'], true, true); ?></span>
|
133 |
+
<?php endforeach; ?>
|
134 |
+
<?php endif; ?>
|
135 |
+
</div>
|
136 |
+
|
137 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
138 |
+
<div class="cart-tax-total"
|
139 |
+
onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
140 |
+
<span class="weee"><?php echo Mage::helper('weee')->__('Total'); ?>
|
141 |
+
: <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice() + $_item->getWeeeTaxAppliedAmount() + $_item->getWeeeTaxDisposition()); ?></span>
|
142 |
+
</div>
|
143 |
+
<?php endif; ?>
|
144 |
+
<?php endif; ?>
|
145 |
+
</td>
|
146 |
+
<?php endif; ?>
|
147 |
+
<?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
|
148 |
+
<td>
|
149 |
+
<?php $_incl = $this->helper('checkout')->getPriceInclTax($_item); ?>
|
150 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
151 |
+
<div class="cart-tax-total"
|
152 |
+
onclick="taxToggle('unit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
153 |
+
<?php else: ?>
|
154 |
+
<div class="cart-price">
|
155 |
+
<?php endif; ?>
|
156 |
+
|
157 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
158 |
+
<?php echo $this->helper('checkout')->formatPrice($_incl + Mage::helper('weee')->getWeeeTaxInclTax($_item)); ?>
|
159 |
+
<?php else: ?>
|
160 |
+
<?php echo $this->helper('checkout')->formatPrice($_incl - $_item->getWeeeTaxDisposition()) ?>
|
161 |
+
<?php endif; ?>
|
162 |
+
|
163 |
+
</div>
|
164 |
+
<?php if (Mage::helper('weee')->getApplied($_item)): ?>
|
165 |
+
|
166 |
+
<div class="cart-tax-info" id="unit-item-tax-details<?php echo $_item->getId(); ?>"
|
167 |
+
style="display:none;">
|
168 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
169 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
170 |
+
<span class="weee"><?php echo $tax['title']; ?>
|
171 |
+
: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'], true, true); ?></span>
|
172 |
+
<?php endforeach; ?>
|
173 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
174 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
175 |
+
<span class="weee"><?php echo $tax['title']; ?>
|
176 |
+
: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'], true, true); ?></span>
|
177 |
+
<?php endforeach; ?>
|
178 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
179 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
180 |
+
<span class="weee"><?php echo $tax['title']; ?>
|
181 |
+
: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'], true, true); ?></span>
|
182 |
+
<?php endforeach; ?>
|
183 |
+
<?php endif; ?>
|
184 |
+
</div>
|
185 |
+
|
186 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
187 |
+
<div class="cart-tax-total"
|
188 |
+
onclick="taxToggle('unit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
189 |
+
<span class="weee"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>
|
190 |
+
: <?php echo $this->helper('checkout')->formatPrice($_incl + Mage::helper('weee')->getWeeeTaxInclTax($_item)); ?></span>
|
191 |
+
</div>
|
192 |
+
<?php endif; ?>
|
193 |
+
<?php endif; ?>
|
194 |
+
</td>
|
195 |
+
<?php endif; ?>
|
196 |
+
<?php endif; ?>
|
197 |
+
<td class="a-center">
|
198 |
+
<input name="cart[<?php echo $_item->getId() ?>][qty]" value="<?php echo $this->getQty() ?>" size="4"
|
199 |
+
title="<?php echo $this->__('Qty') ?>" class="input-text qty" maxlength="12"/>
|
200 |
+
</td>
|
201 |
+
<?php if (($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()) && !$_item->getNoSubtotal()): ?>
|
202 |
+
<td class="a-right">
|
203 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
204 |
+
<div class="cart-tax-total"
|
205 |
+
onclick="taxToggle('esubtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
206 |
+
<?php else: ?>
|
207 |
+
<div class="cart-price">
|
208 |
+
<?php endif; ?>
|
209 |
+
|
210 |
+
<?php if ($canApplyMsrp): ?>
|
211 |
+
<span class="cart-msrp-subtotal">--</span>
|
212 |
+
<?php else: ?>
|
213 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
214 |
+
<?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal() + $_item->getWeeeTaxAppliedRowAmount() + $_item->getWeeeTaxRowDisposition()); ?>
|
215 |
+
<?php else: ?>
|
216 |
+
<?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()) ?>
|
217 |
+
<?php endif; ?>
|
218 |
+
<?php endif; ?>
|
219 |
+
|
220 |
+
</div>
|
221 |
+
<?php if (Mage::helper('weee')->getApplied($_item)): ?>
|
222 |
+
|
223 |
+
<div class="cart-tax-info" id="esubtotal-item-tax-details<?php echo $_item->getId(); ?>"
|
224 |
+
style="display:none;">
|
225 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
226 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
227 |
+
<span class="weee"><?php echo $tax['title']; ?>
|
228 |
+
: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'], true, true); ?></span>
|
229 |
+
<?php endforeach; ?>
|
230 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
231 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
232 |
+
<span class="weee"><?php echo $tax['title']; ?>
|
233 |
+
: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'], true, true); ?></span>
|
234 |
+
<?php endforeach; ?>
|
235 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
236 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
237 |
+
<span class="weee"><?php echo $tax['title']; ?>
|
238 |
+
: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'], true, true); ?></span>
|
239 |
+
<?php endforeach; ?>
|
240 |
+
<?php endif; ?>
|
241 |
+
</div>
|
242 |
+
|
243 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
244 |
+
<div class="cart-tax-total"
|
245 |
+
onclick="taxToggle('esubtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
246 |
+
<span class="weee"><?php echo Mage::helper('weee')->__('Total'); ?>
|
247 |
+
: <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal() + $_item->getWeeeTaxAppliedRowAmount() + $_item->getWeeeTaxRowDisposition()); ?></span>
|
248 |
+
</div>
|
249 |
+
<?php endif; ?>
|
250 |
+
<?php endif; ?>
|
251 |
+
</td>
|
252 |
+
<?php endif; ?>
|
253 |
+
<?php if (($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()) && !$_item->getNoSubtotal()): ?>
|
254 |
+
<td>
|
255 |
+
<?php $_incl = $this->helper('checkout')->getSubtotalInclTax($_item); ?>
|
256 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
257 |
+
<div class="cart-tax-total"
|
258 |
+
onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
259 |
+
<?php else: ?>
|
260 |
+
<div class="cart-price">
|
261 |
+
<?php endif; ?>
|
262 |
+
|
263 |
+
<?php if ($canApplyMsrp): ?>
|
264 |
+
<span class="cart-msrp-subtotal">--</span>
|
265 |
+
<?php else: ?>
|
266 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
267 |
+
<?php echo $this->helper('checkout')->formatPrice($_incl + Mage::helper('weee')->getRowWeeeTaxInclTax($_item)); ?>
|
268 |
+
<?php else: ?>
|
269 |
+
<?php echo $this->helper('checkout')->formatPrice($_incl - $_item->getWeeeTaxRowDisposition()) ?>
|
270 |
+
<?php endif; ?>
|
271 |
+
<?php endif; ?>
|
272 |
+
|
273 |
+
</div>
|
274 |
+
|
275 |
+
|
276 |
+
<?php if (Mage::helper('weee')->getApplied($_item)): ?>
|
277 |
+
|
278 |
+
<div class="cart-tax-info" id="subtotal-item-tax-details<?php echo $_item->getId(); ?>"
|
279 |
+
style="display:none;">
|
280 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
281 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
282 |
+
<span class="weee"><?php echo $tax['title']; ?>
|
283 |
+
: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'], true, true); ?></span>
|
284 |
+
<?php endforeach; ?>
|
285 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
286 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
287 |
+
<span class="weee"><?php echo $tax['title']; ?>
|
288 |
+
: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'], true, true); ?></span>
|
289 |
+
<?php endforeach; ?>
|
290 |
+
<?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
291 |
+
<?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
|
292 |
+
<span class="weee"><?php echo $tax['title']; ?>
|
293 |
+
: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'], true, true); ?></span>
|
294 |
+
<?php endforeach; ?>
|
295 |
+
<?php endif; ?>
|
296 |
+
</div>
|
297 |
+
|
298 |
+
<?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
|
299 |
+
<div class="cart-tax-total"
|
300 |
+
onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
|
301 |
+
<span class="weee"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>
|
302 |
+
: <?php echo $this->helper('checkout')->formatPrice($_incl + Mage::helper('weee')->getRowWeeeTaxInclTax($_item)); ?></span>
|
303 |
+
</div>
|
304 |
+
<?php endif; ?>
|
305 |
+
<?php endif; ?>
|
306 |
+
</td>
|
307 |
+
<?php endif; ?>
|
308 |
+
|
309 |
+
</tr>
|
app/design/frontend/base/default/template/clearprint/checkout/cart/printlink.phtml
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
<?php if ($this->helper('clearprint')->isEnabledPrintCart()): ?>
|
3 |
+
|
4 |
+
<a href="#" onclick='window.open("<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB).'clearprint/checkout_cart/index' ?>", "_blank", "toolbar=0,location=0,menubar=0");' class="link-wishlist"><?php echo $this->__('Print Shopping Cart') ?></a>
|
5 |
+
|
6 |
+
<?php endif; ?>
|
app/design/frontend/base/default/template/clearprint/page/print.phtml
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2013 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* Template for Mage_Page_Block_Html
|
30 |
+
*/
|
31 |
+
?>
|
32 |
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
33 |
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->getLang() ?>" lang="<?php echo $this->getLang() ?>">
|
34 |
+
<head>
|
35 |
+
<?php echo $this->getChildHtml('head') ?>
|
36 |
+
</head>
|
37 |
+
<body class="page-print<?php echo $this->getBodyClass()?$this->getBodyClass():'' ?>">
|
38 |
+
<div class="wrapper">
|
39 |
+
<div class="page">
|
40 |
+
<div class="buttons-set" style="margin:0 0 0em; padding:0 0 8px; border-top:0px; border-bottom:0px solid #e4e4e4;">
|
41 |
+
<button type="button" title="<?php echo Mage::helper('page')->__('Close Window') ?>" class="button" onclick="window.close();"><span><span><?php echo Mage::helper('page')->__('Close Window') ?></span></span></button>
|
42 |
+
<button title="<?php echo $this->__('Print this Page') ?>" class="button" onclick="window.print()"><span><span><?php echo $this->__('Print this Page') ?></span></span></button>
|
43 |
+
</div>
|
44 |
+
<div class="print-head">
|
45 |
+
<img style="float:left" src="<?php echo $this->getPrintLogoUrl() ? $this->getPrintLogoUrl() : $this->getSkinUrl('images/logo_print.gif') ?>" class="logo" alt="" />
|
46 |
+
<?php if ($this->getPrintLogoText()):?>
|
47 |
+
<address style="float:right"><?php echo nl2br($this->escapeHtml($this->getPrintLogoText())) ?></address>
|
48 |
+
<?php endif;?>
|
49 |
+
</div>
|
50 |
+
<p style="clear:both"> </p>
|
51 |
+
<?php echo $this->getChildHtml('content') ?>
|
52 |
+
<div class="buttons-set">
|
53 |
+
<button type="button" title="<?php echo Mage::helper('page')->__('Close Window') ?>" class="button" onclick="window.close();"><span><span><?php echo Mage::helper('page')->__('Close Window') ?></span></span></button>
|
54 |
+
<button title="<?php echo $this->__('Print this Page') ?>" class="button" onclick="window.print()"><span><span><?php echo $this->__('Print this Page') ?></span></span></button>
|
55 |
+
</div>
|
56 |
+
<?php echo $this->getAbsoluteFooter() ?>
|
57 |
+
</div>
|
58 |
+
</div>
|
59 |
+
</body>
|
60 |
+
</html>
|
app/etc/modules/Chapagain_ClearPrint.xml
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Chapagain_ClearPrint>
|
5 |
+
<active>true</active>
|
6 |
+
<codePool>community</codePool>
|
7 |
+
</Chapagain_ClearPrint>
|
8 |
+
</modules>
|
9 |
+
</config>
|
app/locale/en_US/Chapagain_ClearPrint.csv
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
1 |
+
Print Product,Print Product
|
2 |
+
Print Shopping Cart,Print Shopping Cart
|
3 |
+
Print this Page,Print this Page
|
package.xml
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package><name>Chapagain_ClearPrint</name><version>0.1.0</version><stability>stable</stability><license>OSL v3.0</license><channel>community</channel><extends></extends><summary>Neat and clean print of products and shopping cart page.</summary><description>Print products and shopping cart page in a neat and clean format without unnecessary header menus, sidebars, and footer.
|
3 |
+
|
4 |
+
"Print Product link" is added to product page and "Print Shopping Cart" link is added to cart page.
|
5 |
+
|
6 |
+
You can enable/disable to show Print link in product and cart page from admin.
|
7 |
+
|
8 |
+
System -> Configuration -> CATALOG -> Catalog -> ClearPrint
|
9 |
+
|
10 |
+
Features:-
|
11 |
+
|
12 |
+
Easy to install and use
|
13 |
+
100% Free
|
14 |
+
100% Open Source</description><notes>Initial release</notes><authors><author><name>Mukesh Chapagain</name><user>chapagain</user><email>mukesh.chapagain@gmail.com</email></author></authors><date>2015-07-02</date><time>0:05:42</time><compatible></compatible><dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies><contents><target name="mage"><dir name="app"><dir name="design"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="clearprint.xml" hash="d6c0328cdb35a2198059b2bba1fe74f6"/></dir><dir name="template"><dir name="clearprint"><dir name="page"><file name="print.phtml" hash="b228a10b757ee540cbddb0da9dc1b25c"/></dir><dir name="checkout"><file name="cart.phtml" hash="f708b115e58b3f952485c2df17608aa1"/><dir name="cart"><file name="printlink.phtml" hash="961e329d46b1af5a2085828399114d3f"/><dir name="item"><file name="default.phtml" hash="017667969e0f613fbaa602901c9daa01"/><dir name="downloadable"><file name="default.phtml" hash="21b5de0844964f48a4f8e5f4ed8366fa"/></dir></dir></dir></dir><dir name="catalog"><dir name="product"><file name="view.phtml" hash="5fe44033f653d163c9a883c00107f98b"/><dir name="view"><file name="addtocart.phtml" hash="b8549bb7237c198a6e7b73f5ec63c9a9"/><file name="media.phtml" hash="a187c5b2f2ff1db03c9d05edcd36f489"/><file name="printlink.phtml" hash="94468bf19321d4ac88144cb0e4c20027"/></dir></dir></dir></dir></dir></dir></dir></dir></dir><dir name="locale"><dir name="en_US"><file name="Chapagain_ClearPrint.csv" hash="7b9d589d94f6c932eeb723ab6835dfd4"/></dir></dir><dir name="code"><dir name="community"><dir name="Chapagain"><dir name="ClearPrint"><dir name="controllers"><dir name="Catalog"><file name="ProductController.php" hash="5e7723a471c4ab42f09d8b2de1df1868"/></dir><dir name="Checkout"><file name="CartController.php" hash="571b79f215f27064fd8ce4075b4bd51b"/></dir></dir><dir name="etc"><file name="config.xml" hash="807f9285c4f269323616c3a1537e5baf"/><file name="system.xml" hash="acc79eebd204555930995b3f13dfb59d"/></dir><dir name="Helper"><file name="Data.php" hash="232f2c7257856281f2d1b419a1daa663"/></dir><dir name="Block"><dir name="Catalog"><dir name="Product"><file name="View.php" hash="2fa844d764aabbe6d2bf4cd960573415"/></dir></dir></dir></dir></dir></dir></dir><dir name="etc"><dir name="modules"><file name="Chapagain_ClearPrint.xml" hash="90b0cdea2307ad38b3a8b1641619f77f"/></dir></dir></dir><dir name="skin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="clearprint"><file name="print.css" hash="f3c892b447d8a23deb2fbe4339642b79"/></dir></dir></dir></dir></dir></dir></target></contents></package>
|
skin/frontend/base/default/css/clearprint/print.css
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Magento
|
3 |
+
*
|
4 |
+
* NOTICE OF LICENSE
|
5 |
+
*
|
6 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
7 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
8 |
+
* It is also available through the world-wide-web at this URL:
|
9 |
+
* http://opensource.org/licenses/afl-3.0.php
|
10 |
+
* If you did not receive a copy of the license and are unable to
|
11 |
+
* obtain it through the world-wide-web, please send an email
|
12 |
+
* to license@magento.com so we can send you a copy immediately.
|
13 |
+
*
|
14 |
+
* DISCLAIMER
|
15 |
+
*
|
16 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
17 |
+
* versions in the future. If you wish to customize Magento for your
|
18 |
+
* needs please refer to http://www.magento.com for more information.
|
19 |
+
*
|
20 |
+
* @category design
|
21 |
+
* @package default_default
|
22 |
+
* @copyright Copyright (c) 2006-2014 X.commerce, Inc. (http://www.magento.com)
|
23 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
24 |
+
*/
|
25 |
+
* { background:none !important; text-align:left !important; }
|
26 |
+
html { margin:0 !important; padding:0 !important; }
|
27 |
+
body { background:#fff !important; font-size:9pt !important; padding:0 !important; margin:10px !important; }
|
28 |
+
a { color:#2976c9 !important; }
|
29 |
+
th,td { color:#2f2f2f !important; border-color:#ccc !important; }
|
30 |
+
|
31 |
+
.header-container,
|
32 |
+
.nav-container,
|
33 |
+
.footer-container,
|
34 |
+
.pager,
|
35 |
+
.toolbar,
|
36 |
+
.actions,
|
37 |
+
.buttons-set { display:none !important; }
|
38 |
+
|
39 |
+
.page-print .data-table .cart-tax-total { background-position:100% -54px; }
|
40 |
+
.page-print .data-table .cart-tax-info { display:block !important; }
|
41 |
+
|
42 |
+
.page-print .data-table {width:100%}
|
43 |
+
|
44 |
+
.page-print .cart .totals {
|
45 |
+
float:right;
|
46 |
+
}
|