Version Notes
3.0.0 - Added Magento 1.6 compatibility.
Download this release
Release Info
Developer | Magento Core Team |
Extension | Mage_PDF_per_Product |
Version | 3.0.0 |
Comparing to | |
See all releases |
Code changes from version 2.2.17 to 3.0.0
app/code/community/Mage/Codi/Model/Codi.php
CHANGED
@@ -7,7 +7,7 @@ class Mage_Codi_Model_Codi extends Mage_Core_Model_Abstract
|
|
7 |
public $userid ;
|
8 |
public $password ;
|
9 |
public $disableextension ;
|
10 |
-
public $version = "
|
11 |
|
12 |
public $customerid ;
|
13 |
public $customerdatasourceid ;
|
7 |
public $userid ;
|
8 |
public $password ;
|
9 |
public $disableextension ;
|
10 |
+
public $version = "3.0.0";
|
11 |
|
12 |
public $customerid ;
|
13 |
public $customerdatasourceid ;
|
app/code/community/Mage/Codi/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Mage_Codi>
|
5 |
-
<version>
|
6 |
</Mage_Codi>
|
7 |
</modules>
|
8 |
<adminhtml>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Mage_Codi>
|
5 |
+
<version>3.0.0</version>
|
6 |
</Mage_Codi>
|
7 |
</modules>
|
8 |
<adminhtml>
|
app/design/frontend/default/default/template/catalog/product/view.phtml
DELETED
@@ -1,199 +0,0 @@
|
|
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) 2010 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 view template
|
29 |
-
*
|
30 |
-
* @see Mage_Catalog_Block_Product_View
|
31 |
-
* @see Mage_Review_Block_Product_View
|
32 |
-
*/
|
33 |
-
?>
|
34 |
-
<?php $_helper = $this->helper('catalog/output'); ?>
|
35 |
-
<?php $_product = $this->getProduct();?>
|
36 |
-
|
37 |
-
<?php
|
38 |
-
//Catalog-on-Demand
|
39 |
-
|
40 |
-
if ( Mage::getStoreConfig('codi/codi/codflyerlinkimg') =='Custom')
|
41 |
-
$codflyerlinkimgurl = Mage::getStoreConfig('codi/codi/codflyerlinkimgurl');
|
42 |
-
else
|
43 |
-
$codflyerlinkimgurl = 'http://www.catalog-on-demand.com/print-catalog.png';
|
44 |
-
|
45 |
-
$enablefreshflyers = Mage::getStoreConfig('codi/codi/enablefreshflyers');
|
46 |
-
|
47 |
-
$flyerlink = '<a target="_blank" href="http://catalog-on-demand.com/PDF-e-Link/?FlyerA&AID=' . Mage::getStoreConfig('codi/codi/codusername'). '|' . urlencode($_product->getId() . '#$#' . $_product->getName()) . '">'. '<img id="codflyerlinkimgalt" title="' . Mage::getStoreConfig('codi/codi/codflyerlinkimgalt') . '" alt="' . Mage::getStoreConfig('codi/codi/codflyerlinkimgalt') . '" src="' . $codflyerlinkimgurl . '">'. '</a>';
|
48 |
-
|
49 |
-
//Catalog-on-Demand
|
50 |
-
?>
|
51 |
-
|
52 |
-
|
53 |
-
<script type="text/javascript">
|
54 |
-
var optionsPrice = new Product.OptionsPrice(<?php echo $this->getJsonConfig() ?>);
|
55 |
-
</script>
|
56 |
-
<div id="messages_product_view"><?php echo $this->getMessagesBlock()->getGroupedHtml() ?></div>
|
57 |
-
<div class="product-view">
|
58 |
-
<div class="product-essential">
|
59 |
-
<form action="<?php echo $this->getSubmitUrl($_product) ?>" method="post" id="product_addtocart_form"<?php if($_product->getOptions()): ?> enctype="multipart/form-data"<?php endif; ?>>
|
60 |
-
<div class="no-display">
|
61 |
-
<input type="hidden" name="product" value="<?php echo $_product->getId() ?>" />
|
62 |
-
<input type="hidden" name="related_product" id="related-products-field" value="" />
|
63 |
-
</div>
|
64 |
-
|
65 |
-
<div class="product-shop">
|
66 |
-
<div class="product-name">
|
67 |
-
<h1>
|
68 |
-
<!--Catalog-on-Demand-->
|
69 |
-
<?php if(Mage::getStoreConfig('codi/codi/codbeforename')=="checked" && $enablefreshflyers) echo $flyerlink; ?>
|
70 |
-
<?php echo $_helper->productAttribute($_product, $_product->getName(), 'name') ?>
|
71 |
-
<?php if(Mage::getStoreConfig('codi/codi/codaftername')=="checked" && $enablefreshflyers) echo $flyerlink; ?>
|
72 |
-
<!--Catalog-on-Demand-->
|
73 |
-
</h1>
|
74 |
-
</div>
|
75 |
-
|
76 |
-
<?php if ($this->canEmailToFriend()): ?>
|
77 |
-
<p class="email-friend">
|
78 |
-
<!--Catalog-on-Demand-->
|
79 |
-
<?php if(Mage::getStoreConfig('codi/codi/codbeforeemailto')=="checked" && $enablefreshflyers) echo $flyerlink; ?>
|
80 |
-
<a href="<?php echo $this->helper('catalog/product')->getEmailToFriendUrl($_product) ?>"><?php echo $this->__('Email to a Friend') ?></a>
|
81 |
-
<?php if(Mage::getStoreConfig('codi/codi/codafteremailto')=="checked" && $enablefreshflyers) echo $flyerlink; ?>
|
82 |
-
<!--Catalog-on-Demand-->
|
83 |
-
</p>
|
84 |
-
<?php endif; ?>
|
85 |
-
|
86 |
-
<?php echo $this->getReviewsSummaryHtml($_product, false, true)?>
|
87 |
-
<?php echo $this->getChildHtml('alert_urls') ?>
|
88 |
-
<?php echo $this->getChildHtml('product_type_data') ?>
|
89 |
-
<?php echo $this->getTierPriceHtml() ?>
|
90 |
-
<?php echo $this->getChildHtml('extrahint') ?>
|
91 |
-
|
92 |
-
<?php if (!$this->hasOptions()):?>
|
93 |
-
<div class="add-to-box">
|
94 |
-
<?php if($_product->isSaleable()): ?>
|
95 |
-
<?php echo $this->getChildHtml('addtocart') ?>
|
96 |
-
<?php if( $this->helper('wishlist')->isAllow() || $_compareUrl=$this->helper('catalog/product_compare')->getAddUrl($_product)): ?>
|
97 |
-
<span class="or">
|
98 |
-
<!--Catalog-on-Demand-->
|
99 |
-
<?php if(Mage::getStoreConfig('codi/codi/codbeforeOR')=="checked" && $enablefreshflyers) echo $flyerlink; ?>
|
100 |
-
<?php echo $this->__('OR') ?>
|
101 |
-
<?php if(Mage::getStoreConfig('codi/codi/codafterOR')=="checked" && $enablefreshflyers) echo $flyerlink; ?>
|
102 |
-
<!--Catalog-on-Demand-->
|
103 |
-
</span>
|
104 |
-
<?php endif; ?>
|
105 |
-
<?php endif; ?>
|
106 |
-
<?php echo $this->getChildHtml('addto') ?>
|
107 |
-
</div>
|
108 |
-
<?php echo $this->getChildHtml('extra_buttons') ?>
|
109 |
-
<?php endif; ?>
|
110 |
-
|
111 |
-
<?php if ($_product->getShortDescription()):?>
|
112 |
-
<div class="short-description">
|
113 |
-
<h2>
|
114 |
-
<!--Catalog-on-Demand-->
|
115 |
-
<?php if(Mage::getStoreConfig('codi/codi/codbeforeoverview')=="checked" && $enablefreshflyers) echo $flyerlink; ?>
|
116 |
-
<?php echo $this->__('Quick Overview') ?>
|
117 |
-
<?php if(Mage::getStoreConfig('codi/codi/codafteroverview')=="checked" && $enablefreshflyers) echo $flyerlink; ?>
|
118 |
-
<!--Catalog-on-Demand-->
|
119 |
-
</h2>
|
120 |
-
<div class="std"><?php echo $_helper->productAttribute($_product, nl2br($_product->getShortDescription()), 'short_description') ?></div>
|
121 |
-
</div>
|
122 |
-
<?php endif;?>
|
123 |
-
|
124 |
-
<?php echo $this->getChildHtml('other');?>
|
125 |
-
|
126 |
-
<?php if ($_product->isSaleable() && $this->hasOptions()):?>
|
127 |
-
<?php echo $this->getChildChildHtml('container1', '', true, true) ?>
|
128 |
-
<?php endif;?>
|
129 |
-
|
130 |
-
</div>
|
131 |
-
|
132 |
-
<div class="product-img-box">
|
133 |
-
<?php echo $this->getChildHtml('media') ?>
|
134 |
-
</div>
|
135 |
-
|
136 |
-
<div class="clearer"></div>
|
137 |
-
<?php if ($_product->isSaleable() && $this->hasOptions()):?>
|
138 |
-
<?php echo $this->getChildChildHtml('container2', '', true, true) ?>
|
139 |
-
<?php endif;?>
|
140 |
-
</form>
|
141 |
-
<script type="text/javascript">
|
142 |
-
//<![CDATA[
|
143 |
-
var productAddToCartForm = new VarienForm('product_addtocart_form');
|
144 |
-
productAddToCartForm.submit = function(button, url) {
|
145 |
-
if (this.validator.validate()) {
|
146 |
-
var form = this.form;
|
147 |
-
var oldUrl = form.action;
|
148 |
-
|
149 |
-
if (url) {
|
150 |
-
form.action = url;
|
151 |
-
}
|
152 |
-
var e = null;
|
153 |
-
try {
|
154 |
-
this.form.submit();
|
155 |
-
} catch (e) {
|
156 |
-
}
|
157 |
-
this.form.action = oldUrl;
|
158 |
-
if (e) {
|
159 |
-
throw e;
|
160 |
-
}
|
161 |
-
|
162 |
-
if (button && button != 'undefined') {
|
163 |
-
button.disabled = true;
|
164 |
-
}
|
165 |
-
}
|
166 |
-
}.bind(productAddToCartForm);
|
167 |
-
|
168 |
-
productAddToCartForm.submitLight = function(button, url){
|
169 |
-
if(this.validator) {
|
170 |
-
var nv = Validation.methods;
|
171 |
-
delete Validation.methods['required-entry'];
|
172 |
-
delete Validation.methods['validate-one-required'];
|
173 |
-
delete Validation.methods['validate-one-required-by-name'];
|
174 |
-
if (this.validator.validate()) {
|
175 |
-
if (url) {
|
176 |
-
this.form.action = url;
|
177 |
-
}
|
178 |
-
this.form.submit();
|
179 |
-
}
|
180 |
-
Object.extend(Validation.methods, nv);
|
181 |
-
}
|
182 |
-
}.bind(productAddToCartForm);
|
183 |
-
//]]>
|
184 |
-
</script>
|
185 |
-
</div>
|
186 |
-
|
187 |
-
<div class="product-collateral">
|
188 |
-
<?php foreach ($this->getChildGroup('detailed_info', 'getChildHtml') as $alias => $html):?>
|
189 |
-
<div class="box-collateral <?php echo "box-{$alias}"?>">
|
190 |
-
<?php if ($title = $this->getChildData($alias, 'title')):?>
|
191 |
-
<h2><?php echo $this->escapeHtml($title); ?></h2>
|
192 |
-
<?php endif;?>
|
193 |
-
<?php echo $html; ?>
|
194 |
-
</div>
|
195 |
-
<?php endforeach;?>
|
196 |
-
<?php echo $this->getChildHtml('upsell_products') ?>
|
197 |
-
<?php echo $this->getChildHtml('product_additional_data') ?>
|
198 |
-
</div>
|
199 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Mage_PDF_per_Product</name>
|
4 |
-
<version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Catalog-On-Demand</summary>
|
10 |
<description>Catalog-On-Demand</description>
|
11 |
-
<notes>
|
12 |
-
<authors><author><name>catalogondemand</name><user>
|
13 |
-
<date>2011-
|
14 |
-
<time>
|
15 |
-
<contents><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="images"><file name="codimport_run.gif" hash="e805ea7eca1f34c75ba0f93780d32d38"/><file name="codimport_yes.gif" hash="0afb20898a704a106cb4c598868abf32"/><file name="preview_field_help.png" hash="1b1601459d25e8b1a6b1d109782078d2"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="codi"><file name="index.phtml" hash="38238ebed2e682ac0b655f912e405f83"/></dir></dir></dir></dir></dir
|
16 |
<compatible/>
|
17 |
-
<dependencies
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Mage_PDF_per_Product</name>
|
4 |
+
<version>3.0.0</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Catalog-On-Demand</summary>
|
10 |
<description>Catalog-On-Demand</description>
|
11 |
+
<notes>3.0.0 - Added Magento 1.6 compatibility.</notes>
|
12 |
+
<authors><author><name>catalogondemand</name><user>auto-converted</user><email>timh@catalog-on-demand.com</email></author></authors>
|
13 |
+
<date>2011-11-01</date>
|
14 |
+
<time>13:32:46</time>
|
15 |
+
<contents><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="images"><file name="codimport_run.gif" hash="e805ea7eca1f34c75ba0f93780d32d38"/><file name="codimport_yes.gif" hash="0afb20898a704a106cb4c598868abf32"/><file name="preview_field_help.png" hash="1b1601459d25e8b1a6b1d109782078d2"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="codi"><file name="index.phtml" hash="38238ebed2e682ac0b655f912e405f83"/></dir></dir></dir></dir></dir></target><target name="mageweb"><dir name="js"><dir name="jquery"><file name="jquery-1.2.6.noConflict.min.js" hash="090fdb3fbcb4727c0ca20cca87e7e12d"/><file name="jquery.tooltip.js" hash="d17cc8af1b8a595bd597084232be87e0"/></dir></dir></target><target name="magecommunity"><dir name="Mage"><dir name="Codi"><dir name="Block"><dir name="Adminhtml"><file name="Menu.php" hash="ae8a9d1be49f00102911ef5fbe97c126"/></dir><dir name="Customer"><file name="Codi.php" hash="17c557dbcfadd336dc7ba773d6304fc0"/></dir></dir><dir name="Helper"><file name="Data.php" hash="d4b1d32935b0564a5f2fae2965155d61"/></dir><dir name="Model"><file name="Codi.php" hash="604eb9bf5d41a5db3870a3a323da5d0f"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="MenuController.php" hash="2e0ba5fdd17637fccbb9b2837616c0d5"/></dir><file name="DeleteController.php" hash="fed4a29a509a181f0f185de0609872db"/><file name="NsyncController.php" hash="9ca19dc97a9cdef75a9e49bd5daea5c8"/><file name="SyncController.php" hash="4ba97098c8cbf330982b03911181fc3e"/></dir><dir name="etc"><file name="config.xml" hash="4f075b507ccebf6db2ae4bde4c0252b0"/></dir><file name="Codi_Process.php" hash="fbbd13784f36efb5db3cf10f5981bcce"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Mage_Codi.xml" hash="5d635cd2a0d415b67f095bda0298445d"/></dir></target></contents>
|
16 |
<compatible/>
|
17 |
+
<dependencies/>
|
18 |
</package>
|