Version Notes
0.1.1 Initial release
0.1.2 fix locale data
0.2.0 add cancel order
0.3.0 fix bug
0.4.0 change theme files path & fix bug
Download this release
Release Info
| Developer | Hirokazu Nishi |
| Extension | Rack_SelfDelete |
| Version | 0.4.0 |
| Comparing to | |
| See all releases | |
Code changes from version 0.3.0 to 0.4.0
- app/code/community/Rack/SelfDelete/Block/Order/View.php +2 -2
- app/code/community/Rack/SelfDelete/etc/config.xml +1 -1
- app/design/frontend/{default → base}/default/layout/rack_selfdelete.xml +0 -0
- app/design/frontend/{default → base}/default/template/selfdelete/form.phtml +0 -0
- app/design/frontend/{default → base}/default/template/selfdelete/order/cancel.phtml +0 -0
- app/design/frontend/{default → base}/default/template/selfdelete/order/view.phtml +0 -0
- app/design/frontend/{default → base}/default/template/selfdelete/success.phtml +1 -1
- app/locale/ja_JP/Rack_SelfDelete.csv +1 -1
- package.xml +15 -16
app/code/community/Rack/SelfDelete/Block/Order/View.php
CHANGED
|
@@ -18,13 +18,13 @@ class Rack_SelfDelete_Block_Order_View extends Mage_Sales_Block_Order_View
|
|
| 18 |
if ($this->getOrder()->canCancel() &&
|
| 19 |
$this->getOrder()->getState() === Mage_Sales_Model_Order::STATE_NEW) {
|
| 20 |
$param = array ('order_id' => $this->getOrder()->getId());
|
| 21 |
-
return Mage::getUrl('selfdelete/order/
|
| 22 |
}
|
| 23 |
}
|
| 24 |
|
| 25 |
public function canCancel()
|
| 26 |
{
|
| 27 |
-
if (Mage::getStoreConfig('selfdelete/selfdelete/candeleteorder')
|
| 28 |
$this->getOrder()->canCancel() &&
|
| 29 |
$this->getOrder()->getState() === Mage_Sales_Model_Order::STATE_NEW) {
|
| 30 |
return true;
|
| 18 |
if ($this->getOrder()->canCancel() &&
|
| 19 |
$this->getOrder()->getState() === Mage_Sales_Model_Order::STATE_NEW) {
|
| 20 |
$param = array ('order_id' => $this->getOrder()->getId());
|
| 21 |
+
return Mage::getUrl('selfdelete/order/cancel', $param) . "key/" . Mage::getSingleton("selfdelete/session")->getSecretKey() . "/";
|
| 22 |
}
|
| 23 |
}
|
| 24 |
|
| 25 |
public function canCancel()
|
| 26 |
{
|
| 27 |
+
if (Mage::getStoreConfig('selfdelete/selfdelete/candeleteorder') == true &&
|
| 28 |
$this->getOrder()->canCancel() &&
|
| 29 |
$this->getOrder()->getState() === Mage_Sales_Model_Order::STATE_NEW) {
|
| 30 |
return true;
|
app/code/community/Rack/SelfDelete/etc/config.xml
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
<config>
|
| 3 |
<modules>
|
| 4 |
<Rack_SelfDelete>
|
| 5 |
-
<version>0.
|
| 6 |
</Rack_SelfDelete>
|
| 7 |
</modules>
|
| 8 |
<global>
|
| 2 |
<config>
|
| 3 |
<modules>
|
| 4 |
<Rack_SelfDelete>
|
| 5 |
+
<version>0.4.0</version>
|
| 6 |
</Rack_SelfDelete>
|
| 7 |
</modules>
|
| 8 |
<global>
|
app/design/frontend/{default → base}/default/layout/rack_selfdelete.xml
RENAMED
|
File without changes
|
app/design/frontend/{default → base}/default/template/selfdelete/form.phtml
RENAMED
|
File without changes
|
app/design/frontend/{default → base}/default/template/selfdelete/order/cancel.phtml
RENAMED
|
File without changes
|
app/design/frontend/{default → base}/default/template/selfdelete/order/view.phtml
RENAMED
|
File without changes
|
app/design/frontend/{default → base}/default/template/selfdelete/success.phtml
RENAMED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<div class="page-title">
|
| 2 |
<h1><?php echo Mage::helper('selfdelete')->__('Thank you for using our survice!') ?></h1>
|
| 3 |
</div>
|
| 4 |
-
<p><?php echo Mage::helper('
|
| 5 |
<script type="text/javascript">
|
| 6 |
//<