Version Notes
Bug Fix of Root Category
Download this release
Release Info
Developer | Manthan |
Extension | Service_Checker |
Version | 1.0.2 |
Comparing to | |
See all releases |
Code changes from version 1.0.1 to 1.0.2
app/code/local/Sitegurus/Rules/Block/Adminhtml/Rules/Edit/Tab/Form.php
CHANGED
@@ -15,7 +15,8 @@ class Sitegurus_Rules_Block_Adminhtml_Rules_Edit_Tab_Form extends Mage_Adminhtml
|
|
15 |
'required' => true,
|
16 |
'name' => 'title',
|
17 |
));
|
18 |
-
|
|
|
19 |
$root_cat = Mage::app()->getWebsite(true)->getDefaultStore()->getRootCategoryId();
|
20 |
$cats=Mage::getModel('catalog/category')->load($root_cat)->getChildren();
|
21 |
$catIds=explode(',',$cats);
|
15 |
'required' => true,
|
16 |
'name' => 'title',
|
17 |
));
|
18 |
+
|
19 |
+
//$cats=Mage::getModel('catalog/category')->load(2)->getChildren();
|
20 |
$root_cat = Mage::app()->getWebsite(true)->getDefaultStore()->getRootCategoryId();
|
21 |
$cats=Mage::getModel('catalog/category')->load($root_cat)->getChildren();
|
22 |
$catIds=explode(',',$cats);
|
app/design/adminhtml/default/default/layout/rules.xml
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<layout version="0.1.0">
|
3 |
+
<rules_adminhtml_rules_index>
|
4 |
+
<reference name="content">
|
5 |
+
<block type="rules/adminhtml_rules" name="rules" />
|
6 |
+
</reference>
|
7 |
+
</rules_adminhtml_rules_index>
|
8 |
+
</layout>
|
app/design/frontend/default/default/template/rules/rules.phtml
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
Developed by Sitegurus
|
4 |
+
Manthan Vora<manthan18121989@gmail.com>*/
|
5 |
+
$rules = Mage::getModel('rules/rules')->getCollection();
|
6 |
+
$current_product = Mage::registry('current_product');
|
7 |
+
$procut_ids = Mage::registry('current_product')->getCategoryIds();
|
8 |
+
foreach($rules as $rule){
|
9 |
+
$rule_category = $rule->getData('category_name');
|
10 |
+
if(in_array($rule_category,$procut_ids)){
|
11 |
+
?>
|
12 |
+
<div class="block block-category">
|
13 |
+
<div class="block-title">
|
14 |
+
<strong>
|
15 |
+
<span>Product's Features</span>
|
16 |
+
</strong>
|
17 |
+
</div>
|
18 |
+
<div class="block-content block-category-content">
|
19 |
+
<div class="shipping-block">
|
20 |
+
<?php if($rule->getData('shipping_method') == "Free Shipping"){?>
|
21 |
+
<div class="free-shipping"><?php echo $rule->getData('shipping_method')." is available" ?></div>
|
22 |
+
<?php } else{ ?>
|
23 |
+
<div class="paid-shipping"><?php echo "Only ".$rule->getData('shipping_method')." is available" ?></div>
|
24 |
+
<?php }?>
|
25 |
+
</div>
|
26 |
+
<div class="payment-block">
|
27 |
+
<?php if($rule->getData('payment_method') == "Pre/Post Payment"){?>
|
28 |
+
<div class="pre-post-payment"><?php echo $rule->getData('payment_method')." Methods are available"?></div>
|
29 |
+
<?php } else{ ?>
|
30 |
+
<div class="pre-payment"><?php echo $rule->getData('payment_method')." Method is available"?></div>
|
31 |
+
<?php } ?>
|
32 |
+
</div>
|
33 |
+
<div class="return-block">
|
34 |
+
<?php if($rule->getData('return_method') == "Not Available"){?>
|
35 |
+
<div class="no-return"><?php echo "Return is ".$rule->getData('return_method') ?></div>
|
36 |
+
<?php } else if($rule->getData('return_method') == "Paid Return"){?>
|
37 |
+
<div class="paid-return"><?php echo $rule->getData('return_method')." is available" ?></div>
|
38 |
+
<?php } else {?>
|
39 |
+
<div class="free-return"><?php echo $rule->getData('return_method')." is available" ?></div>
|
40 |
+
<?php } ?>
|
41 |
+
</div>
|
42 |
+
</div>
|
43 |
+
</div>
|
44 |
+
<?php break; }
|
45 |
+
}
|
46 |
+
?>
|
package.xml
CHANGED
@@ -1,20 +1,20 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Service_Checker</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license>Open Software License (OSL)</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
-
<summary>This extension allows admin to add Shipping, Payment
|
10 |
<description>Shipping/Payment and Return Services Checker of Product allows admin to add Shipping, Payment and Return Method for particular Category Product which can be displayed on particular product page on front end.
|
11 |
It can help your customers to check the availability of services provided by the store with particular products.
|
12 |
It is the stable version of Shipping/Payment and Return Services Checker of Product and it is completely free to download. And as it is an open source, one can easily modify it as per the requirements</description>
|
13 |
<notes>Bug Fix of Root Category</notes>
|
14 |
<authors><author><name>Manthan</name><user>manthanext</user><email>manthan18121989@gmail.com</email></author></authors>
|
15 |
<date>2013-12-26</date>
|
16 |
-
<time>11:
|
17 |
-
<contents><target name="magelocal"><dir name="Sitegurus"><dir name="Rules"><dir name="Block"><dir name="Adminhtml"><dir name="Rules"><dir name="Edit"><file name="Form.php" hash="cea86a3b2a64ff77ab1ccb25afa77892"/><dir name="Tab"><file name="Form.php" hash="
|
18 |
<compatible/>
|
19 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
20 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Service_Checker</name>
|
4 |
+
<version>1.0.2</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>Open Software License (OSL)</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
+
<summary>This extension allows admin to add Shipping, Payment Return Methods for particular Category Products for user information</summary>
|
10 |
<description>Shipping/Payment and Return Services Checker of Product allows admin to add Shipping, Payment and Return Method for particular Category Product which can be displayed on particular product page on front end.
|
11 |
It can help your customers to check the availability of services provided by the store with particular products.
|
12 |
It is the stable version of Shipping/Payment and Return Services Checker of Product and it is completely free to download. And as it is an open source, one can easily modify it as per the requirements</description>
|
13 |
<notes>Bug Fix of Root Category</notes>
|
14 |
<authors><author><name>Manthan</name><user>manthanext</user><email>manthan18121989@gmail.com</email></author></authors>
|
15 |
<date>2013-12-26</date>
|
16 |
+
<time>11:44:06</time>
|
17 |
+
<contents><target name="magelocal"><dir name="Sitegurus"><dir name="Rules"><dir name="Block"><dir name="Adminhtml"><dir name="Rules"><dir name="Edit"><file name="Form.php" hash="cea86a3b2a64ff77ab1ccb25afa77892"/><dir name="Tab"><file name="Form.php" hash="f7a8c3d761b2da3fc483e06dddadd015"/></dir><file name="Tabs.php" hash="482d4038890a49dec0cf75e348305ae9"/></dir><file name="Edit.php" hash="bacbe31c8c9e0cc1121fac7bb8159183"/><file name="Grid.php" hash="04100bb6841de6afe01b1a6d70893660"/></dir><file name="Rules.php" hash="72ac2e31387a4e0a8be49790241c0739"/></dir><file name="Rules.php" hash="8354e6e1f17cd65d78501f08fc04dfaa"/></dir><dir name="Helper"><file name="Data.php" hash="96a1aa41cc4e052bdcc1221e0776c747"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Rules"><file name="Collection.php" hash="1be2df25dc55f1199c231460adebe3f4"/></dir><file name="Rules.php" hash="629d2e01834cdb4f1e9e68b0826279ca"/></dir><file name="Rules.php" hash="05cf70eea26afb5ab4bb760f9f468ed1"/><file name="Status.php" hash="f366805c100700f57184d407e203c62a"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="RulesController.php" hash="c1e2ca4ca2470d4444e8be1726c983fa"/></dir><file name="IndexController.php" hash="b39f2fd8ce6949bde3982b5911551ba1"/></dir><dir name="etc"><file name="config.xml" hash="1f9af14b7a65bf4cf51bbef8fee5e1f1"/></dir><dir name="sql"><dir name="rules_setup"><file name="mysql4-install-0.1.0.php" hash="447d1349e484b0674ed668363b3d239c"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="rules.xml" hash="502973dffc67acbf2a9eca9926db8528"/></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="rules.xml" hash="e9bdb2dce6d0153fd8c0df18bfa01a42"/></dir><dir name="template"><dir name="rules"><file name="rules.phtml" hash="ec7f2a9a7f9525ba0a38947594f51081"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Sitegurus_Rules.xml" hash="fc2150b058a284ac5ab8fdd49a36f7da"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="css"><file name="available.css" hash="b28435824dffd1dc1140d4b7c2a7c7bf"/></dir><dir name="images"><file name="free_shipping.png" hash="7c7a34af358a767b0f7cd4023de7463a"/><file name="no_return.png" hash="c9f6787b5720911c69c31a55dd3db879"/><file name="paid_shipping.png" hash="29d59f0e0c3a10a048198cb61bc9e9c1"/><file name="post_pre_payment.png" hash="25a49ff2221147a203ccadcb6fe6bd96"/><file name="pre_payment.png" hash="00165feba9995809df88222f6405b6f9"/></dir></dir></dir></dir></target></contents>
|
18 |
<compatible/>
|
19 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
20 |
</package>
|